Log in

View Full Version : /you replacement variable


aranthorn
08-28-2004, 10:00 PM
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

--------------------------------------------
###########################################
--------------------------------------------
1. Open includes/functions_bbcodeparse.php
--------------------------------------------
--------------------------------------------
Find:
--------------------------------------------
} // end smilies
--------------------------------------------
After add:
--------------------------------------------

$bbcode = preg_replace('#/you#', $bbuserinfo['username'], $bbcode);

--------------------------------------------

Polo
08-29-2004, 04:43 AM
Cool, thanks for sharing ;)

AN-net
08-29-2004, 07:02 AM
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

aranthorn
08-29-2004, 02:26 PM
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
Wanna try the decaf? Simple mistake on my part, code tags are on.

Deimos
08-29-2004, 05:17 PM
Wanna try the decaf?

lol, I was about to say the same thing
"cease and desist".....oh my god hehe

nice hack btw.

Phalynx
08-30-2004, 02:37 PM
nice one, thanks!

Revan
08-30-2004, 02:57 PM
/me installs