Forgott3n
01-22-2009, 03:35 AM
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.
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.