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.
  #61  
Old 22 Feb 2002, 09:29
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
FireFly its my "you have a full pm box please empty me" hack to pester people with full pm boxes to remove some. So the $fullpm is from that.
__________________
Scott MacVicar
vBulletin Developer
Reply With Quote
  #62  
Old 22 Feb 2002, 12:50
danielillo danielillo is offline
 
Join Date: Oct 2001
Will it work on 2.0.3 forum?

Thanks,

Daniel.
Reply With Quote
  #63  
Old 22 Feb 2002, 14:27
James Cridland James Cridland is offline
 
Join Date: Nov 2001
One of our forum guides says... "I think you could have more fun if you had a random generator version!! That could really confuse people!!"
Reply With Quote
  #64  
Old 22 Feb 2002, 14:51
Mark Hewitt Mark Hewitt is offline
 
Join Date: Nov 2001
bwhaha great! I've posted my joke thread .

But I do actually have a serious use for this. For putting the forum name inside a post. (As I use cobranding on my forums)

The info I need is contained within the $bbuserinfo array. How can I alter the code so that it supports two replacements?
Reply With Quote
  #65  
Old 22 Feb 2002, 18:48
Rose's Avatar
Rose Rose is offline
 
Join Date: Nov 2001
Real name: Rose
I assume if you aren't using .php3 (and you are using the default .php ext.) then that is the right version?


I've looked around a bit and I still can't see why it's not coming up right. I don't have any errors, just no cool hack. *lol*

Counts steps - Make two changes to functions.php & Upload.

Is that it?

Unless it has something to do with the fullpm hack, which I don't have, so I removed that bit of text from the coding. Would that effect it?

Last edited by Rose; 23 Feb 2002 at 16:07.
Reply With Quote
  #66  
Old 23 Feb 2002, 16:09
Rose's Avatar
Rose Rose is offline
 
Join Date: Nov 2001
Real name: Rose
Anyone have a suggestion? I've edited the two places in my functions.php, uploaded, and tried it out. I see the actual string { bbusername } (without spaces, of course). I logged in as a regular member to see if it was my status, but the same thing. :s
Reply With Quote
  #67  
Old 25 Feb 2002, 03:41
SWFans.net's Avatar
SWFans.net SWFans.net is offline
 
Join Date: Oct 2001
Originally posted by Martin CX
You don't need the hack to do that, though. Just use $username in the templates.
Tried that and had it fail in 2.2.2. It displays other member's usernames for me when I go into the forum when just using that variable.
Reply With Quote
  #68  
Old 25 Feb 2002, 07:09
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
$bbuserinfo[username], SWFans.net.
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

chen@avinadav.com
Reply With Quote
  #69  
Old 11 Mar 2002, 11:07
DWZ's Avatar
DWZ DWZ is offline
 
Join Date: Dec 2001
Real name: Alan
this could become a bit of fun
Reply With Quote
  #70  
Old 11 Mar 2002, 19:42
Matt's Avatar
Matt Matt is offline
 
Join Date: Oct 2001
Real name: Matt
I installed the hack on the board but the problem is it seems to muckup the postbit template. The user title on any posts I use it in comes out as "-" and it goes to display the away image instead of my edited online/offline postbit templates. The rest looks the same.

Any idea what causes this?
Reply With Quote
  #71  
Old 12 Mar 2002, 03:53
DarkReaper DarkReaper is offline
 
Join Date: Oct 2001
Um..I'm confused. What exactly does this do...?
Reply With Quote
  #72  
Old 14 Mar 2002, 16:30
Zaphod Zaphod is offline
 
Join Date: Nov 2001
I have found it does not work with the new security refinements in vb 2.2.x But was able to come up with a easy workaround.

Modify this :

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

to use :

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

and use =bbusername= in your posts.

hope this helps :classic:
Reply With Quote
  #73  
Old 15 Mar 2002, 17:22
Cloughie Cloughie is offline
 
Join Date: Nov 2001
hey i did this..

the {bbusername} works in the thread title but not in the actual thread..

any ideas why?
Reply With Quote
  #74  
Old 15 Mar 2002, 19:03
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
Install the fix by smachol in the sticky thread in this forum.
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

chen@avinadav.com
Reply With Quote
  #75  
Old 31 Mar 2002, 16:32
simon simon is offline
 
Join Date: Jan 2002
will this work with 2.2.4 ???
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:40.

Layout Options | Width: Wide Color: