The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hand coding custom BB code
Hello,
I need to create a clone of [code] by editing the vbulletin files. We are currently trying to create custom BB code that will parse its contents with white-spacing and fixed width (similar to [code] tag). This is how we do it using the admincp custom bb code menu: <pre style="font-family:"Courier New", Courier, monospace !important;"> Your tabs here </pre> However, the WYSIWYG editor still adds <br> tags to every new line, resulting in twice as many new lines as we need: <pre style="font-family:"Courier New", Courier, monospace !important;"> Lorum ipsum<br> dolor ist </pre> shows as: Lorum ipsum dolor ist So how do I "carbon-copy" [code] but change the name to [chords] and change it's div width? Thanks! [EDIT] Just to add, I know next to nothing about how vBulletin uses "hooks" and "callbacks". I know PHP 4, but not too familiar with PHP 5's OOP. I am currently looking at https://vborg.vbsupport.ru/showthread.php?t=200769 for help. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|