The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Can someone Walk me through it?
Can someone walk me through the process and theory behind making a Variable visible in a template that it was not intended for? I am trying to integrate $activeusers, $totalonline and some others into my $welcometext and they will not show up. I was told that this requires some hacking, so here I am. I am fairly proficient at modifying templates, but the inner workings of vB is a mystery. I want to change that ASAP so maybe I can give out some advice for a change. Thanks in advance.
JakeC By the way, one of you super vB hackers out there that can swing a pen ought to write a "How to hack vB" book. Not necessarily a book on PHP per say but one that walks you through like 10-15 sample hacks from easy to complicated. I'd buy one. |
#2
|
||||
|
||||
well, learning from a book don't work i think.
best way is learning by doing. try and error rules to answer your question: the variables must be defined inside of the function which calls the template, so you have to edit a php-file (index.php in this case) and there before you parse the template (gettemplate function will be seen in the sourcecode ) you have to add something like $activx = "Blabla", then you can use $activx in your template |
#3
|
||||
|
||||
LOL i don't think instilling hacks is that hard most of the time there is a help file
but ALWAYS try on a other forum first |
#4
|
||||
|
||||
Make sure the variables are assigned the values before the template is evaluated.
|
#5
|
|||
|
|||
Ok, the light is beginning to shine a little brighter but I need you guys to break it down even further. Is there any way you could give me an example. Maybe walk me through all of the steps so I can get an idea of what is doing what and why it works. I am a rank beginner so allot of the terms and tasks you mentioned are a little new to me. Thanks.
JakeC |
#6
|
||||
|
||||
PHP Code:
PHP Code:
|
#7
|
||||
|
||||
Quote:
PHP Code:
PHP Code:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|