Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Reader's name inside post (+) Details »
Reader's name inside post (+)
Mod Version: 1.00, by Chen (Member) Chen is offline
Developer Last Online: Mar 2009 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (0 vote - 0 average) Installs: 35
Released: 19 Feb 2002 Last Update: Never Downloads: 19
Not Supported  

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

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #91  
Old 09 Apr 2002, 22:33
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
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!
Reply With Quote
  #92  
Old 10 Apr 2002, 15:50
Hwulex's Avatar
Hwulex Hwulex is offline
 
Join Date: Mar 2002
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 (here)
Reply With Quote
  #93  
Old 10 Apr 2002, 19:27
CeleronXL's Avatar
CeleronXL CeleronXL is offline
 
Join Date: Nov 2001
Ah ha, I found it. Ok, here it is:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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.
__________________
[ StarCraft Sector | Forum Sector ]
Reply With Quote
  #94  
Old 10 Apr 2002, 19:34
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
Replace this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

With this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

[email protected]
Reply With Quote
  #95  
Old 10 Apr 2002, 19:45
CeleronXL's Avatar
CeleronXL CeleronXL is offline
 
Join Date: Nov 2001
Nice response time, man! That area of the code now looks like this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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....
__________________
[ StarCraft Sector | Forum Sector ]

Last edited by CeleronXL; 10 Apr 2002 at 19:50.
Reply With Quote
  #96  
Old 10 Apr 2002, 19:52
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
Make sure $bbuserinfo is still in the global line in dovars().
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

[email protected]
Reply With Quote
  #97  
Old 10 Apr 2002, 19:55
CeleronXL's Avatar
CeleronXL CeleronXL is offline
 
Join Date: Nov 2001
Thanks!! You are a bloody genius! Works now! W000000t!
__________________
[ StarCraft Sector | Forum Sector ]
Reply With Quote
  #98  
Old 10 Apr 2002, 23:35
CeleronXL's Avatar
CeleronXL CeleronXL is offline
 
Join Date: Nov 2001
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.
__________________
[ StarCraft Sector | Forum Sector ]
Reply With Quote
  #99  
Old 11 Apr 2002, 11:10
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
See the thread by smachol in this forum "Fix replacement" thing.
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

[email protected]
Reply With Quote
  #100  
Old 17 Apr 2002, 12:31
Slynderdale Slynderdale is offline
 
Join Date: Mar 2002
Real name: John
would it be possible to make it work in certain forums for example forumid 57 and 58?
Reply With Quote
  #101  
Old 24 Apr 2002, 09:56
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
LOL
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

[email protected]
Reply With Quote
  #102  
Old 27 Apr 2002, 15:42
LaNder LaNder is offline
 
Join Date: Nov 2001
Originally posted by FireFly
It's possible to limit this hack to admins, yes.
Replace this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

with this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


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
Reply With Quote
  #103  
Old 27 Apr 2002, 23:04
Robouk5 Robouk5 is offline
 
Join Date: Nov 2001
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
Reply With Quote
  #104  
Old 10 May 2002, 16:26
bandersen's Avatar
bandersen bandersen is offline
 
Join Date: Feb 2002
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?

Last edited by bandersen; 10 May 2002 at 16:47.
Reply With Quote
  #105  
Old 19 May 2002, 15:58
zeedy2k's Avatar
zeedy2k zeedy2k is offline
 
Join Date: Nov 2001
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
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 05:48.

Layout Options | Width: Wide Color: