-Version 1.4 NEW - Works vB 3.6 -vB 3.8
TESTED WITH : Firefox [OK], Opera[OK], CHROME[OK] & SAFARI[OK], Internet Explorer 8 [OK WITH SPECIAL TEMPLATES], IE 6 (OK WITH SPECIAL TEMPLATES ; SOME OPTIONS WON'T WORK)
********************************************* By C?dric Claerhout and Calorie
-Description-
This modification gives you five new styles for your QUOTE, CODE, PHP and HTML bbcodes. The installation is automatic and very easy.
Five new styles for bbcodes to enhance your messages : Light style, Dark style, Pastel style, Simple style, and Simple Transparency style. Once images uploaded and the product imported, just go to this module's options to configure these five styles according to your forum styles. If you forget or don't want to specify a set for a style, it will use the defaut vB display.
GIF or PNG formats available for pictures. Autodetect IE 6 function to use gif extension for this browser.
This hack works with vBa CMPS : it uses special templates to avoid to break the front page. The detection is automatic (since 1.31 version).
You can configure : the left margin of bbcode, the color and the size of text. NEW:
- You can configure the width of HTML, CODE & PHP bbcodes (in pixels) => no need any more to change the "Code block width" value of your style.
- You can configure the width of QUOTE bbcode (in %)
- You can configure to display a scroll bar in QUOTE bbcode ; in that case, you can also configure its height (max-height ; except on IE6)
- A "safe mode" is available for The CODE bbcode (see options)
You can set a link to quoted user profile. It creates a clickable link between the person's username being quoted and her profile.
Mono or double bubbles for simple quote bbcode | special behaviours for quotes of light, dark and pastel sets.
NEW: if you have selected the Simple Transparency style, all members using IE 6 will be automatically redirected to Simple Style to avoid transparency problem.
-Installation-
Upload "bbcodemanager" pictures directory in vBulletin images directory : /forums/images/
Import the product xml file
Configure the mod in vBulletin options -> "BBcode templates manager"
-Warning-
Once you have installed and configured this hack, no need to jump on your mouse to check if your posts will display the new styles, because they won't immediately. So, no need any more to jump on your keyboard and writing on vB forum : "It doesn't work !". Just wait the update of the "Cached Posts Lifespan" (see vB options). Nevertheless, you can check if the hack is working : just post a new test message using these bbcodes styles.
-Updates-
-5/08/2010 : version 1.4 released. New name, new options, code has been deeply updated to fix bugs with new browsers, etc, etc.
-19/08/2006 : version 1.32 released. New option available : integration of Advanced Syntax Highlighting is now possible. Please note that "Code Block Width" must be in pixels (see "important" paragraph)
-15/08/2006 : version 1.31 released. New vba procedure detection ; it's automatic now. Errors in vBa bbcode templates have been corrected. To upgrade from 1.30, just import product file.
-14/08/2006 : version 1.30 released thanks to Calorie : the installation is now fully automatic ; you just have to upload product file and that's all (no need to edit php file any more) ; the English translation is also better thanks to Calorie.
-07/08/2006 : version 1.23 released ; new options available : Link to profil, Left margin, Text colour and some Special behaviour for quotes of light, dark and pastel sets. Text colour problem for some styles corrected. To update, just import xml product file and upload pictures (there are new ones)
-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-
Like with default vB PHP, HTML and CODE bbcodes, it's not possible to use a liquid width (in %). Why can you do it with QUOTE bbcode ? Because this one doesn't deal with white spaces the same way. The purpose of PHP, HTML and CODE bbcodes is to format a text without any modifications. These bbcodes use then the CSS "white-space: pre". I've tried to use the CSS "white-space: pre-wrap" but it doesn't really avoid over sizing. So that's why you have to enter a fixed width in px. The default one is 500 px. It's working pretty nice with the default "Postbit" template (horizontal one). If you're using the "Legacy Postbit" template (vertical one), you might have to reduce this value to avoid to inconvenient over sizing for users using the 800x600 resolution.
The scroll bar on IE isn't at the sample place for DARK, LIGHT, PASTER styles. That's true and normal. To avoid some bigger problems, theses bbcodes on IE are using a special layout. Actually, it's the same layout that is used with the "Safe mode - CODE bbcode" on Firefox and [Chrome&Safari].
The CODE bbcode isn't like PHP & HTML bbcodes. If you insert a CODE bbcode inside a CODE bbcode, it will be parsed. The display of the top border of the wrapped CODE bbcode will be broken on all browsers. A safe mode has been implemented. It will correct the problem but : 1) The scroll bar won't be at the same place than HTML & PHP bbcodes ones ; 2) This fix has no effect on Opera. I don't see any purpose to insert a CODE bbcode inside another CODE bbcode, but whatever,it's up to you.
If you prefer to use the $stylevar[codeblockwidth] to set the WIDTH of your CODE, HTML and PHP bbcodes, open the xml file, then
> search :
Code:
{$vbulletin->options['quote_bb_width']}px
> replace with :
Code:
$stylevar[codeblockwidth]
SAVE
If the text display doesn't suite you, you can do easily what you want. Just turn off the "CSS BBcode text" module and create the CSS : .bbcode
Do it on your own : you won't be helped for this.