/you replacement variable
This modification is in the archives.
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); -------------------------------------------- Download This modification is archived and cannot be downloaded. |