The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
Note: This hack will only work on PHP 4.0.5 and higher. Sorry for all the others (anyone still using these old versions?!).
![]() Anyhow, this is a great little hack, and most importantly very very fun for the masses. ![]() It gives your users the ability to use {bbusername} in their post, and it will mysteriously be changed into the viewer's username when he reads the page. Demo: FireFly <!-- auto name hack --> You can detect this hack is in action by viewing the HTML source of the page. You will see <!-- auto name hack --> next to the name in the source. You can this hack used in action here as well: https://vborg.vbsupport.ru/showthrea...threadid=35192 This hack also contains a small optimization to vBulletin, which removes a lot of calls to str_replace() and replaces that with only one (which is why this hack only works with PHP 4.0.5 and up). Have fun, I know you will. ![]() Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
a classic lets see if it can provide the same type of amusement we have on other boards
|
|
#3
|
||||
|
||||
|
'Zactly. This hack is completely useless from a practical standpoint. However, I could use a good laugh.
:up:EDIT: yeck...those lines in the text file have to be removed...I either have to copy the code and then weed them all out and such, or re-type it.
|
|
#4
|
||||
|
||||
|
I realize this hack is useless, but I think it's fun nonetheless.
Chris, gotcha'. Updated the file.
|
|
#5
|
||||
|
||||
|
File looks the same to me...also, I installed it, all my replacement variables jacked up and my board looked like a rainbow, so I uninstalled it...
|
|
#6
|
||||
|
||||
|
Great fun hack, thanks :up:
|
|
#7
|
||||
|
||||
|
TWTCommish, the file is updated, you were probably just getting a cached version of it.
Install the hack again and do exactly what it says. |
|
#8
|
||||
|
||||
|
Yep, got it working around 10 minutes after posting that.
|
|
#9
|
||||
|
||||
|
Good.
|
|
#10
|
||||
|
||||
|
I tried to get this same effect with the email notifications (those are sort of a dead give-away)...by sticking this code...
Code:
$emailsubject = str_replace('{bbusername}', $bbuserinfo[username], $emailsubject);
$emailmsg = str_replace('{bbusername}', $bbuserinfo[username], $emailsubject);
Code:
mail($toemail,$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>"); |
![]() |
|
|