I would like users to have the ability to put HTML commands in the - Custom User Profile Field.
Then I will output that on there profile page. Right now I have the profile field created. {field8}
Then in the Member Info Template I just
PHP Code:
$userinfo[field8]
Where I want the users custom HTML to appear. But obviously it literally shows the code!
So what would I need to do to output the HTML, kind like the htmlspecialchars_decode funciton in PHP except I want to do this in vBulletin!
Thanks Community!
--------------- Added [DATE]1206459257[/DATE] at [TIME]1206459257[/TIME] ---------------
Ok, I've been looking around, and this is the best information I have so far... Now If I wanted to parse the custom profile field for BB Code I would do so by adding a pluggin to the MEMBER_COMPLETE hook?
PHP Code:
{
if (!is_object($bbcode_parser))
{
require_once(DIR . '/includes/class_bbcode.php');
$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
}
$userinfo['field1'] = $bbcode_parser->parse($userinfo['field8'],0, true);
}
But I want to be able to output REG. HTML commands, so people can embed there own FLASH music files and flash video players or flash photo galleries. Basically anything that can be GENERATED using a (myspace type generator for music players, etc.) and copy and paste the code.