![]() |
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. :D 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. :D |
a classic lets see if it can provide the same type of amusement we have on other boards :p
|
'Zactly. This hack is completely useless from a practical standpoint. However, I could use a good laugh. :D :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. :( |
I realize this hack is useless, but I think it's fun nonetheless.
Chris, gotcha'. Updated the file. :) |
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...
|
Great fun hack, thanks :up:
|
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. |
Yep, got it working around 10 minutes after posting that.
|
Good. :)
|
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); Code:
mail($toemail,$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>"); |
All times are GMT. The time now is 01:44 PM. |
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:
|