The Arcive of vBulletin Modifications Site. |
|
/you replacement variable Details »»
|
|||||||||||||||||||||||||
This is an example of how to add a replacement variable
in VBulletin 3.0.3. I had the [you] code installed in 3.0.1 and thought there must be an easier way. Now, since the original hack does not work with 3.0.3, I just installed this on my board @ http://www.dancingmokey.com and it works flawlessly. Due to the nature of this being a replacement variable, no screenshot is possible, but you're welcome to try it out over at the board if you like using test/test. Tweaking is simple, just replace the "/you" with whatever you want to replace and replace "$bbuserinfo['username']" with whatever willdcard you wish. Much respect to everone who did the original [you] hack as well as everyone else who's hacks I have installed and my users enjoy. I don't claim in any way to be inventing the wheel, just standing on the shoulders of others before me Code:
--------------------------------------------
###########################################
--------------------------------------------
1. Open includes/functions_bbcodeparse.php
--------------------------------------------
--------------------------------------------
Find:
--------------------------------------------
} // end smilies
--------------------------------------------
After add:
--------------------------------------------
$bbcode = preg_replace('#/you#', $bbuserinfo['username'], $bbcode);
--------------------------------------------
Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Cool, thanks for sharing
|
|
#3
|
||||
|
||||
|
cease and desist! all code posted must be attached or put inside code tags!!! unlicensed members are not allowd to view code or attachments so please remove the edit from post or put it in tags. failing to do so will require administrative action
|
|
#4
|
||||
|
||||
|
Quote:
|
|
#5
|
|||
|
|||
|
Quote:
"cease and desist".....oh my god hehe nice hack btw. |
|
#6
|
|||
|
|||
|
nice one, thanks!
|
|
#7
|
||||
|
||||
|
/me installs
|
![]() |
|
|