The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Variable Relocation
It has been a while since I needed to request anything, most anything that I needed was already being released or had been released some time ago . I want to thank all the code hackers for that, makes my life a lot easier.
---------- Down to the request, what I need is to be able to use the statistics variables in the header template, as well as the forumhome template (currently they can only be used in the foumhome template). The statistics variables are the ones that state the member count, total thread & post count, the Un-Registered/Registered welcome message (ie: Welcome Back SaintDog!). I would appreciate it very much if someone could make it to where I could use these variables in the header template. Regards, - SaintDog |
#2
|
||||
|
||||
hmm, i'm not really sure, but try this:
copy this code from index.php PHP Code:
PHP Code:
|
#3
|
|||
|
|||
Does not seem to work - I do appreciate you trying though
- SaintDog |
#4
|
||||
|
||||
oh, i see a fault
try to put the code from index.php just before this line in global.php: // parse css, header & footer ################## |
#5
|
|||
|
|||
That does not work either....
- SaintDog |
#6
|
||||
|
||||
Grab whatever variables you need in the PHP Include template thing, so copy that code into that template. I think that should work.
|
#7
|
|||
|
|||
That too does not work, I tried placing the code from index.php in there and nothing happened, no errors, but nothing worked either.
- SaintDog |
#8
|
||||
|
||||
You could use this hack for a base to see how it might be done.
https://vborg.vbsupport.ru/showthrea...e+users+header |
#9
|
||||
|
||||
Saintdog: what Xenon suggested is correct and does the trick. Pls double check your steps. For instance did you add the variable $numbermembers to header template after the adding the code to global.php?
|
#10
|
|||
|
|||
Yes, that does not work for me at all, vBT is unhacked - this would be #1 for vBT, everything else is simply template modifications.
- SaintDog |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|