![]() |
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>"); |
Okay, I'm easily amused... I'll admit it.
I installed this hack and posted a message that reads "{bbusername}, you are my favorite user. I wish everyone else on here was like you..." I'm dying laughing as the responses start to appear. The hardest part is the anticipation of how long it is going to take until people start to catch on. Too funny - thanks for the laugh ;) |
TWTCommish, you are using the wrong variable in the second lind.
hondastyle - hehe. :D Care to give us the link? :) |
D'oh, my bad. The email subject part doesn't work either, though. :( Any idea what the problem is?
|
the first piece of code i have to find isnt in my function.php and i havent edited it :noid:
|
Ah I get it now....I suddenly thought I was populiar after reading this thread :D
|
Quote:
|
That's awesome...Thanks for yet another great hack FireFly! :)
|
Thank you for this nice hack
But is there a way to hide "Unregisterd" if the user is not loged in. |
^^^ lol...yeah same here. I have a question, Is it possible to put this in a template? So if I wanted to include the readers name in a template....is that possible?
|
This is going to be a great hack to use on April Fool's Day! :D
|
cool thanx
|
works like a charm, thanks! :)
|
I am enjoying confusing my moderators right now, after I finally tell them what is going on, we are going to have some fun on the board. For now I am keeping this little secret all to myself.
|
Quote:
|
Quote:
And FF, pat yourself on the back, for another amusing hack:) |
Okay, read it and weep:
http://www.hondastyle.com/forums/sho...?threadid=3068 Mind you, my moderators gave it away a bit (i got 'em good in the moderator's forum...) But I suspect I'll still catch enough off-guard to make it worth my while.. lol ;) Chris |
hmmm... I keep getting that really bright rainbow looking web page too...?? Whats the deal with that?
|
this hack is extremely useful for rping boards. You can set up actions like for ex. IRC chat rooms
(Typed) /me jumps (displayed) *Zajako jumps you get the picture. I think its great FireFly |
You got a big 5 star rating.
Thanks for the laugh. |
Hehe, it even works in topic titles. :D
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. :) Thanks for the nice hack Firefly. |
+-------------------------------------------------------------------------------------------------+
| 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; |
help!
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 mysql error number: 1064 Date: Wednesday 20th of February 2002 05:56:28 AM Script: http://www.pdafrance.com/pdaforum/pd...&action=logout Referer: http://www.pdafrance.com/pdaforum/index.php?s= " and the who's online doesnt show people in the board anymore :( |
man i dont know what happened.
I had to reupload a bunch of files. I think it kept corrupting the files on the server. very weird :rolleyes: |
I wonder if there wouldnt be a way to add to this a tiny bit and insert random usernames for replacement variables in posts?
|
Quote:
|
Why is this is ANY way useless??
If you have an important new bit of info which EVERYONE should read - put their username in the title - LOL |
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? |
Quote:
FF, said something like this Quote:
|
yes, but i noticed that someone else had the same problem earlier and seems to have gotten it fixed.
|
Ahem....testing... {bbusername} :D Neato hack...
|
All times are GMT. The time now is 04: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:
|