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.
+-------------------------------------------------------------------------------------------------+
| In functions.php, find this code: |
+-------------------------------------------------------------------------------------------------+
global $DB_site,$replacementsetid,$gzipoutput,$gziplevel, $newpmmsg,$fullpm;
+-------------------------------------------------------------------------------------------------+
I'm running 2.2.2 regular and i dont have the fullpm at the end of the line. Mine is just:
global $DB_site,$replacementsetid,$gzipoutput,$gziplevel, $newpmmsg;
I installed the hack and then got all kind of errors, i removed it but still get errors. When i loggout, it says :
"Database error in vBulletin 2.2.2:
Invalid SQL: UPDATE session SET lastactivity=,location='/pdaforum/member.php?s=&action=logout' WHERE sessionhash='553368d684ae4aa1b92856c41f9703af'
mysql error: You have an error in your SQL syntax near 'location='/pdaforum/member.php?s=&action=logout' WHERE sessionhash='553368d684ae' at line 1
Originally posted by pdatoon +-------------------------------------------------------------------------------------------------+
| In functions.php, find this code: |
+-------------------------------------------------------------------------------------------------+
global $DB_site,$replacementsetid,$gzipoutput,$gziplevel, $newpmmsg,$fullpm;
+-------------------------------------------------------------------------------------------------+
I'm running 2.2.2 regular and i dont have the fullpm at the end of the line. Mine is just:
global $DB_site,$replacementsetid,$gzipoutput,$gziplevel, $newpmmsg;
I think some of the variables ($fullpm) that are in that line are from other hacks. I just added the bbusername variable to my line in functions.php and it worked great.
ok, I'm still having problems with this hack. This is the first hack i have ever had problems with, so I am absolutely clueless as to what is going wrong. The pages load, but there all bright and rainbow colored. Most of the .gifs are missing, and at the very top left it says {html doctype}...or something like that.
I am using the version of vB that has the .php3 extension....could that cause any problems?
Originally posted by techno ok, I'm still having problems with this hack. This is the first hack i have ever had problems with, so I am absolutely clueless as to what is going wrong. The pages load, but there all bright and rainbow colored. Most of the .gifs are missing, and at the very top left it says {html doctype}...or something like that.
I am using the version of vB that has the .php3 extension....could that cause any problems?
I bileve that if you actually read the first line
FF, said something like this
Quote:
Note: This hack will only work on PHP 4.0.5 and higher. Sorry for all the others (anyone still using these old versions?!).