The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
The following hack is to add the [color] and [size] functions for posting.
Usage of the funtions: word will seet the "word" size to 10 color of 555555 set the color to that of #555555 Implementation: in global.php find: if ($dobbcode==1) { // user defined bb codes replace with if ($dobbcode==1) { $bbcode=eregi_replace("\\[color=([#0-9A-Za-z]*)\\]","<font color=\\1>",$bbcode); $bbcode=eregi_replace(quotemeta("[/color]"),quotemeta("</font>"),$bbcode); $bbcode=eregi_replace("\\[size=([0-9]*)\\]","<font size=\\1>",$bbcode); $bbcode=eregi_replace(quotemeta("[/size]"),quotemeta("</font>"),$bbcode); // user defined bb codes done! Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Hello,
Good idea...I won't use it just because I think allowing the user to change the color and size of the posts font tends to make the threads messy. An idea for the hack....try to make it so that users can enter just [color=red] or [color=blue]. Most users will not know any hex numbers like #555555 Just a thought
|
|
#3
|
|||
|
|||
|
It would work if you put in the color names also.
|
|
#4
|
|||
|
|||
|
ok cool....nevermnd
|
|
#5
|
|||
|
|||
|
I've been using a color tag on my site for a while, and my users have gone while trying to make up ascii art in their sigs
![]() Some's cool; a lot suck. LOL |
|
#6
|
|||
|
|||
|
this is a very kewl hack
![]() Now i have a reason to turn off HTML
|
|
#7
|
|||
|
|||
|
Awesome man, I wanted this for a while now!
|
![]() |
|
|