Back to vBulletin 3.5 Add-ons

Allow BB code to parse in Member titles on their profile page
Mod Version: 1.00, by j883376

This modification is in the archives.
vB Version: 3.5.4 Rating: (1 vote - 5.00 average) Installs: 9
Released: 04 Apr 2006 Last Update: Never Downloads: 0
Not Supported Code Changes  

If you happen to want to allow BB code to be in custom titles, you can do this simple modification to make BB code parse in titles on profile pages.

Open up member.php

Find:
PHP Code:
// CUSTOM TITLE
if ($userinfo['customtitle'] == 2)
{
    
$userinfo['usertitle'] = htmlspecialchars_uni($userinfo['usertitle']);

Change that to:
PHP Code:
// CUSTOM TITLE
if ($userinfo['customtitle'] == 2)
{
require_once(
DIR '/includes/class_bbcode.php');
$parser =& new vB_BbCodeParser($vbulletinfetch_tag_list());
    
$userinfo['usertitle'] = $parser->do_parse(htmlspecialchars_uni($userinfo['usertitle']), falsetruetruefalsetruefalse);

Now everything should parse properly, except for images, because they are not allowed. If you want to allow images to be added, change it to this instead:
PHP Code:
// CUSTOM TITLE
if ($userinfo['customtitle'] == 2)
{
require_once(
DIR '/includes/class_bbcode.php');
$parser =& new vB_BbCodeParser($vbulletinfetch_tag_list());
    
$userinfo['usertitle'] = $parser->do_parse(htmlspecialchars_uni($userinfo['usertitle']), falsetruetruetruetruefalse);

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2024