BBcode Manager
-Version 1.22b-
Works with vB 3.5 and vB 3.6
*********************************************
By Cédric Claerhout
-Description-
This modification allows you to have new looks for quote, code, phg and html bbcodes. The setup is very easy.
-Functionalities-
>5 news looks for bbcodes in order to enhance your messages : Light bbcode set ; Dark bbcode set ; Pastel bbcode set ; Simple bbcode set and Simple bbcode with transparency b/g
>Configure this sets according to your styles
>gif or png formats available for pictures
>Autodetect IE 6 function to use gif extension for this browser
In order to work efficiently the Cached Posts Lifespan must be set to 0 in vB options
>Mono or double bubbles for simple quote bbcode
>If you forget or don't want to specify a set for a style, it will use the defaut vB display.
>vBadvanced option to use a special vBadvanced bbcodes set in the first message of a topic. Configure it for all your forums or just a few ones.
-Installation-
1-Upload "bbcodemanager" pictures directory in vBulletin images directory :
/forums/images/
2-Import the product xml file
3-Configure the mod in vBulletin options -> "BBcode templates manager"
4-Modify includes/class_bbcode.php as described in 02_modification.txt file included in the archive.
-Updates-
-15/07/2006 : version 1.22b released ; link to a picture corrected
-14/07/2006 : version 1.22 released ; code is simpler ; use now $style[styleid] variable instead of $styleid ->allow guests to see the right bbcode set
-12/07/2006 : version 1.21 released ; now you can config several style ids (for real this time)
-12/07/2006 : version 1.2 released ; new installation procedure ; many big problems corrected ; html code of new bbodes templates updated ; tested and validated XHTML
-03/07/2006 : now you can config several style ids
-Important-
To uninstall version 1.1, you have to follow a specific procedure described in the archive or in the message below.
BBcode Manager - Uninstall version 1.1 product file
Loading Master style
Sorry for this, i'm guilty. You have to import again your vB Master templates
---Why this ?---
The xml product installation file of BBcode Manager version 1.1 replaces bbcodes original vbulletin templates. It means when you uninstall the product file, it delete quote, code, php and html bbcodes templates ! The good news is that the version 1.2 installation file corrects this. The bad news : before install it, you have to import vB Master style templates.
---How to do this ?---
0-Delete BBcode manager version 1.1 (or less) with product file manager.
1-Download on vbulletin.com the same version of vB than the one you're using (your forum works with 3.5.1, so download 3.5.1 archive)
2-Import on your ftp server, the install directory (/install)
3)Launch the update procedure (/install/upgrade.php) ; Click on "next" until the end.
The update is only going to import master template and master language. It won't affect your forum.
4)Delete the install directory from your ftp server.
Update includes/class_bbcode.php file
With 1.2 version, you have to modify includes/class_bbcode.php file. If you have already made the modifications of 1.1 version, update the file like discribed below.
Find (4 times) :
Code:
// BBcode Manager start
if ($vbulletin->options['quote_vba'] and !$GLOBALS['FIRSTPOSTID'])
{
if ($vbulletin->options['quote_vba_forums_all'] or in_array($GLOBALS[forumid], array($vbulletin->options['quote_vba_forums'])))
{
switch ($template)
{
case 'bbcode_quote':
$template = 'bbcode_quote_vba';
break;
case 'bbcode_code':
$template = 'bbcode_code_vba';
break;
case 'bbcode_php':
$template = 'bbcode_php_vba';
break;
case 'bbcode_html':
$template = 'bbcode_html_vba';
break;
}
}
}
// BBcode Manager end
Replace with (4 times) :
---------------------------------------------------------------------------------
Code:
// BBcode Manager start
if ($vbulletin->options['quote_vba'] and !$GLOBALS['FIRSTPOSTID'])
{
if ($vbulletin->options['quote_vba_forums_all'] or in_array($GLOBALS[forumid], array($vbulletin->options['quote_vba_forums'])))
{
switch ($template)
{
case 'bbcode_quote':
$template = 'bbcode_quote_vba';
break;
case 'bbcode_code':
$template = 'bbcode_code_vba';
break;
case 'bbcode_php':
$template = 'bbcode_php_vba';
break;
case 'bbcode_html':
$template = 'bbcode_html_vba';
break;
}
}
}
elseif ($GLOBALS[bbcodeset] == 'bbsetlight')
{
switch ($template)
{
case 'bbcode_quote':
$template = 'bbcode_quote_light';
break;
case 'bbcode_code':
$template = 'bbcode_code_light';
break;
case 'bbcode_php':
$template = 'bbcode_php_light';
break;
case 'bbcode_html':
$template = 'bbcode_html_light';
break;
}
}
elseif ($GLOBALS[bbcodeset] == 'bbsetdark')
{
switch ($template)
{
case 'bbcode_quote':
$template = 'bbcode_quote_dark';
break;
case 'bbcode_code':
$template = 'bbcode_code_light';
break;
case 'bbcode_php':
$template = 'bbcode_php_light';
break;
case 'bbcode_html':
$template = 'bbcode_html_light';
break;
}
}
elseif ($GLOBALS[bbcodeset] == 'bbsetpastel')
{
switch ($template)
{
case 'bbcode_quote':
$template = 'bbcode_quote_pastel';
break;
case 'bbcode_code':
$template = 'bbcode_code_pastel';
break;
case 'bbcode_php':
$template = 'bbcode_php_pastel';
break;
case 'bbcode_html':
$template = 'bbcode_html_pastel';
break;
}
}
elseif ($GLOBALS[bbcodeset] == 'bbsetsimple')
{
switch ($template)
{
case 'bbcode_quote':
$template = 'bbcode_quote_simple';
break;
case 'bbcode_code':
$template = 'bbcode_code_simple';
break;
case 'bbcode_php':
$template = 'bbcode_php_simple';
break;
case 'bbcode_html':
$template = 'bbcode_html_simple';
break;
}
}
elseif ($GLOBALS[bbcodeset] == 'bbsetsimpletr')
{
switch ($template)
{
case 'bbcode_quote':
$template = 'bbcode_quote_simple_tr';
break;
case 'bbcode_code':
$template = 'bbcode_code_simple_tr';
break;
case 'bbcode_php':
$template = 'bbcode_php_simple_tr';
break;
case 'bbcode_html':
$template = 'bbcode_html_simple_tr';
break;
}
}
// BBcode Manager end