Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
/you replacement variable Details »»
/you replacement variable
Version: 1.00, by aranthorn aranthorn is offline
Developer Last Online: Oct 2019 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 08-28-2004 Last Update: Never Installs: 8
 
No support by the author.

This is an example of how to add a replacement variable
in VBulletin 3.0.3.

I had the [you] code installed in 3.0.1 and thought there
must be an easier way. Now, since the original hack does
not work with 3.0.3, I just installed this on my board @
http://www.dancingmokey.com and it works flawlessly. Due
to the nature of this being a replacement variable, no
screenshot is possible, but you're welcome to try it out
over at the board if you like using test/test.

Tweaking is simple, just replace the "/you" with whatever
you want to replace and replace "$bbuserinfo['username']"
with whatever willdcard you wish.

Much respect to everone who did the original [you] hack
as well as everyone else who's hacks I have installed
and my users enjoy. I don't claim in any way to be inventing
the wheel, just standing on the shoulders of others before me

Code:
--------------------------------------------
###########################################
--------------------------------------------
1. Open includes/functions_bbcodeparse.php
--------------------------------------------
--------------------------------------------
Find:
--------------------------------------------
	} // end smilies
--------------------------------------------
After add:
--------------------------------------------

	$bbcode = preg_replace('#/you#', $bbuserinfo['username'], $bbcode);

--------------------------------------------

Show Your Support

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

Comments
  #2  
Old 08-29-2004, 04:43 AM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool, thanks for sharing
Reply With Quote
  #3  
Old 08-29-2004, 07:02 AM
AN-net's Avatar
AN-net AN-net is offline
 
Join Date: Dec 2003
Location: AnimationTalk.com
Posts: 2,367
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cease and desist! all code posted must be attached or put inside code tags!!! unlicensed members are not allowd to view code or attachments so please remove the edit from post or put it in tags. failing to do so will require administrative action
Reply With Quote
  #4  
Old 08-29-2004, 02:26 PM
aranthorn's Avatar
aranthorn aranthorn is offline
 
Join Date: Jun 2004
Location: Chicago
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AN-net
cease and desist! all code posted must be attached or put inside code tags!!! unlicensed members are not allowd to view code or attachments so please remove the edit from post or put it in tags. failing to do so will require administrative action
Wanna try the decaf? Simple mistake on my part, code tags are on.
Reply With Quote
  #5  
Old 08-29-2004, 05:17 PM
Deimos Deimos is offline
 
Join Date: Oct 2002
Posts: 529
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by aranthorn
Wanna try the decaf?
lol, I was about to say the same thing
"cease and desist".....oh my god hehe

nice hack btw.
Reply With Quote
  #6  
Old 08-30-2004, 02:37 PM
Phalynx Phalynx is offline
 
Join Date: Feb 2004
Location: Erlangen, Germany
Posts: 2,747
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice one, thanks!
Reply With Quote
  #7  
Old 08-30-2004, 02:57 PM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me installs
Reply With Quote
Reply

Thread Tools

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 01:19 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
  • Page Generation 0.03963 seconds
  • Memory Usage 2,253KB
  • Queries Executed 20 (?)
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
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete