
02-20-2006, 10:09 PM
|
 |
|
|
Join Date: Dec 2005
Location: United Kingdom!
Posts: 954
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
if you would like to have the option to add BBCODE to the user profile fields, I have a solution that works fine for me. I know there is a HACK but I dont' like it.
Try this, ACP > PLUGIN SYSTEM > ADD NEW PLUGIN
Title: Profile BB Code
Hook Location: Member_Complete
Plugin PHP
Code:
if ($userinfo['fieldX'])
{
if (!is_object($bbcode_parser))
{
require_once(DIR . '/includes/class_bbcode.php');
$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
}
$userinfo['fieldX'] = $bbcode_parser->parse($userinfo['fieldX'],0, true);
}
This is how it works, See the FIELDX you replace them with the profile field you want to phrase BBCODE.
Thats it, to phrase more than one, repeat it, like this:
Code:
if ($userinfo['fieldX'])
{
if (!is_object($bbcode_parser))
{
require_once(DIR . '/includes/class_bbcode.php');
$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
}
$userinfo['fieldX'] = $bbcode_parser->parse($userinfo['fieldX'],0, true);
}
{
if (!is_object($bbcode_parser))
{
require_once(DIR . '/includes/class_bbcode.php');
$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
}
$userinfo['fieldX'] = $bbcode_parser->parse($userinfo['fieldX'],0, true);
}
Not hard at all.
|
 Here
|