The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
change bbcode to standards compliant
I want to change the B I U etc bbcode to CSS. Anyone do this?
|
#2
|
|||
|
|||
If you create a plugin using hook bbcode_fetch_tags, you can change the html for those bbcodes. The replacement should be html with the text represented by %1$s. So you probably want something like:
Code:
$tag_list['no_option']['b']['html'] = '<span class="bold">%1$s</span>'; $tag_list['no_option']['i']['html'] = '<span class="italic">%1$s</span>'; $tag_list['no_option']['u']['html'] = '<span class="underline">%1$s</span>'; |
#3
|
|||
|
|||
Thanks! Is this hard coded somewhere? I wouldn't mind changing a file since there will be no updates to 3.8
|
#4
|
|||
|
|||
Do you mean you'd rather change a file than use a plugin? If so, you can make changes in includes/class_bbcode.php, function fetch_tag_list() around line 2232.
|
Благодарность от: | ||
dethfire |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|