vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   /you replacement variable (https://vborg.vbsupport.ru/showthread.php?t=68832)

aranthorn 08-28-2004 10:00 PM

/you replacement variable
 
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);

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


Polo 08-29-2004 04:43 AM

Cool, thanks for sharing ;)

AN-net 08-29-2004 07:02 AM

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

aranthorn 08-29-2004 02:26 PM

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.

Deimos 08-29-2004 05:17 PM

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.

Phalynx 08-30-2004 02:37 PM

nice one, thanks!

Revan 08-30-2004 02:57 PM

/me installs


All times are GMT. The time now is 04:49 AM.

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.01083 seconds
  • Memory Usage 1,722KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete