Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: 1.00, by Admin (Coder) Admin is offline
Developer Last Online: Nov 2024 Show Printable Version Email this Page

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.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 02-20-2002, 11:42 AM
pdatoon pdatoon is offline
 
Join Date: Nov 2001
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

+-------------------------------------------------------------------------------------------------+
| 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;
Reply With Quote
  #33  
Old 02-20-2002, 12:09 PM
pdatoon pdatoon is offline
 
Join Date: Nov 2001
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #34  
Old 02-20-2002, 12:26 PM
pdatoon pdatoon is offline
 
Join Date: Nov 2001
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #35  
Old 02-20-2002, 08:48 PM
SWFans.net's Avatar
SWFans.net SWFans.net is offline
 
Join Date: Oct 2001
Posts: 243
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I wonder if there wouldn’t be a way to add to this a tiny bit and insert random usernames for replacement variables in posts?
Reply With Quote
  #36  
Old 02-20-2002, 08:49 PM
SWFans.net's Avatar
SWFans.net SWFans.net is offline
 
Join Date: Oct 2001
Posts: 243
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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.
Reply With Quote
  #37  
Old 02-20-2002, 09:10 PM
Tim Wheatley's Avatar
Tim Wheatley Tim Wheatley is offline
 
Join Date: Nov 2001
Location: England
Posts: 489
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #38  
Old 02-20-2002, 11:04 PM
techno techno is offline
 
Join Date: Nov 2001
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #39  
Old 02-20-2002, 11:31 PM
Psychdrone Psychdrone is offline
 
Join Date: Nov 2001
Posts: 525
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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?!).
Reply With Quote
  #40  
Old 02-20-2002, 11:54 PM
techno techno is offline
 
Join Date: Nov 2001
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes, but i noticed that someone else had the same problem earlier and seems to have gotten it fixed.
Reply With Quote
  #41  
Old 02-21-2002, 01:26 AM
Sharp Sharp is offline
 
Join Date: Dec 2001
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahem....testing... {bbusername} Neato hack...
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 02:39 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05319 seconds
  • Memory Usage 2,305KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete