Version: 1.00, by Admin (Coder)
Developer Last Online: Nov 2024
Version: 2.2.x
Rating:
Released: 02-18-2002
Last Update: Never
Installs: 35
No support by the author.
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.
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
This modification may not be copied, reproduced or published elsewhere without author's permission.
Originally posted by FireFly
Could be that the $fullpm was removed in version 2.2.2, because we are still running version 2.2.1 and that's where I test my hacks as well.
Its possible, but I?m really not sure. I upgraded my forums to 2.2.2 via PPN?s hack he posted here, but don?t remember if that was a step.
Goes to check
Nope, I don?t see it in his update file as a change. Oddness.
Well, I can only guess, but maybe it's part of a hack (if it exists) that adds a "Your inbox is full" popup to pages, like "You have a new message". Or maybe that's already a feature... god I can't remember.
It's possible to limit this hack to admins, yes.
Replace this:
Code:
$replacewords=array(0 => "$bbuserinfo[username]<!-- auto name hack -->");
with this:
Code:
$replacewords=array(0 => iif($bbuserinfo['usergroupid']==6,"$bbuserinfo[username]<!-- auto name hack -->",'{bbusername}'));
Very cute hack Firefly. It'll be great fun trying it out.
Quote:
Originally posted by SWFans.net And I think I may actually have a practical use for it at our forums. A great deal of our members are role players with multiple names. I may add that into the templates for forumdisplay to let people know exactly what name they are logged in as.
You don't need the hack to do that, though. Just use $username in the templates.
I have been holding off unleashing it on my forums cuz i want to think of something really good to get them with! I know 1 or 2 people posted what they did, anyone else actually implement this on their site yet and feel like sharing?
The effect is rather spoilt by the <--! AUTO NAME HACK --> thing, so I removed that from the version I installed. The funniest bit is page 2, where two users both quote and reply to the text, saying how kind it is of me... !