Without searching through every page of this thread, which I already did, I'm trying to figure out how to allow HTML in certain fields on the users profile...
For example, I have those fields set now to allow bbcodes by using a new plugin that looks like this::
PHP Code:
if (!is_object($bbcode_parser))
{
require_once(DIR . '/includes/class_bbcode.php');
$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
}
// myspace link
if (!empty($userinfo['field14'])){
$userinfo['field14'] = str_replace("http://", "", $userinfo['field14']);
$userinfo['field14'] = str_replace("www.", "", $userinfo['field14']);
$userinfo['field14'] = "[url=http://www." . $userinfo['field14'] . "]". $userinfo['field14']. "[/url]";
$userinfo['field14'] = $bbcode_parser->parse($userinfo['field14'],0, true);
$userinfo['field14linked'] = "TRUE";
}
else {
$userinfo['field14linked'] = FALSE;
}
// about me
$userinfo['field23'] = $bbcode_parser->parse($userinfo['field23'],0, true);
$userinfo['field23linked'] = "TRUE";
// who I'm meeting
$userinfo['field8'] = $bbcode_parser->parse($userinfo['field8'],0, true);
$userinfo['field8linked'] = "TRUE";
// custom advertisements for user
$userinfo['field24'] = $bbcode_parser->parse($userinfo['field24'],0, true);
$userinfo['field24linked'] = "TRUE";
I need to be able to quickly convert the certian sections to HTML, and not have them blocked by the system...
I'm sure it's easy, I just can't find the code to accomplish it at the moment...
Great hack.... thanks!!!
INSTALL