![]() |
|
Mod Options |
![]() |
|||||||||
This modification is in the archives.
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: http://www.vbulletin.org/forum/showt...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. ![]() Download Now Only licensed members can download files, Click Here for more information. Show Your Support
No members have liked this post.
|
#91
|
||||
|
||||
Yes I'm absolutely sure. I did exactly as I said and it worked. It sounds like another hack of yours is causing the problem. I don't have any other hacks so that may be the difference.
__________________
Steve Machol, vBulletin Moderator Please do not email or PM me for vBulletin support. I will try to answer all questions on the vB Forums. Thank you for respecting this request! No members have liked this post.
|
#92
|
||||
|
||||
Excellent.
It didn't work to start with, but I made the changes pointed out by Zaphod (here) and it works a treat. Be interesting to see how the guys react ![]() No members have liked this post.
|
#93
|
||||
|
||||
Ah ha, I found it. Ok, here it is:
The microstats and the bbusername hack interfere with eachother. To fix this, what should I do? Should I change the $i=; value on them or something? I'm not very good with this, but someone should know a way to set them each as their own thing. No members have liked this post.
|
#94
|
||||||||
|
||||||||
Replace this:
With this:
No members have liked this post.
|
#95
|
||||
|
||||
Nice response time, man! That area of the code now looks like this:
So the Microstats works again, but the {bbusername} just shows up as a blank space in the post..... =/ Is there anything I need to change in the lower portion of the code (beginning with "while ($var=....."). Btw, I also had to get rid of one of the $'s before microstats.... No members have liked this post.
Last edited by CeleronXL; 10 Apr 2002 at 19:50. |
#96
|
||||
|
||||
Make sure $bbuserinfo is still in the global line in dovars().
No members have liked this post.
|
#97
|
||||
|
||||
Thanks!! You are a bloody genius! Works now! W000000t!
![]() No members have liked this post.
|
#98
|
||||
|
||||
Waait a second. It only works in the title, not in the post itself.... It doesn't show up in the post, but if you click Edit then it has the username inserted there.... But it still doesn't work in the post.
No members have liked this post.
|
#99
|
||||
|
||||
See the thread by smachol in this forum "Fix replacement" thing.
No members have liked this post.
|
#100
|
|||
|
|||
would it be possible to make it work in certain forums for example forumid 57 and 58?
No members have liked this post.
|
#101
|
||||
|
||||
LOL
![]() No members have liked this post.
|
#102
|
||||||||
|
||||||||
i tried this, but now the joke works only for admins, they see their username instead of {bbusername }. all other users now see the variable instead of their usernames? is there a possibility to limit the posting of replacements only to special usergroups? LaNder No members have liked this post.
|
#103
|
|||
|
|||
For some reason i couldnt fin the first line in the txt file in my functions.php ?
im using 2.24 and i think thats why, would it be possible to update this hack? thanks No members have liked this post.
|
#104
|
||||
|
||||
Its not working by me...
I am on 2.2.5... I did remove the line according to Smachol... and I did try the =bbusername= in functions.php and when posting. I do not get the unsername displayed... just {bbusername} Is it to send an email too? No members have liked this post.
Last edited by bandersen; 10 May 2002 at 16:47. |
#105
|
||||
|
||||
ok, I added this and it works ok except for one thing, when I add the {bbusername} to the subject it works, but in the actual post it doesnt work.
Help Please No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 15:11.