![]() |
[color] code
Hey guys, i know this prolly right in from of me, but i wanted to know how i would go about using the highlight thing that is used here. If i type in a color is changes on the style, like here is red and yellow. Is this a hack, or a default option? I can't seem to find it after searching forever.
Thanks! |
well, it's both ^^
actually it's very easy to achieve, you have to create an replacement called {highlight} and then just open your functions_bbcodeparse.ophp file and change PHP Code:
PHP Code:
|
I don't get it, i did the code change above, and when you say replacement do i go to the BB Code Manager, or Replacement Variables Manager? Kinda confised sorry.
|
the replacement variable manager :)
|
It is a wonder we don't rely on replacements as much now a days, they are powerful overlooked tools.
|
indeed, there are a few things on vb.org just done via replacements :)
|
I dunno, i tried. But im still abit confused. I go into the replacement variable manager and for the master style i click [Add New Replacement Variable]
Search for Text: {color} Replace with Text: {highlight} Then i get this as an error: Quote:
|
the other way round.
search for {highlight} replace with your color code. but if you got an error that has nothing to do with us here, maybe upgrade to 3.0.3 first? |
ya i should upgrade. Been dreaded doing so seeing as a have some sutom hacks that i lost the instructions to during a format =\
|
All times are GMT. The time now is 06:23 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|