The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
adding a variable in forum home template
Hi,
How do i add a variable in form home template? Im trying to do this: Display stats on the forumhome yes/no Display chatbox stats on the forumhome. Don't forget to add the $mgc_cb_evo_stats variable in the FORUMHOME template where you want to display them otherwise they won't appear. Warning : Add 4 sql queries on the forumhome. For the users of a vBulletin version prior to 3.7.2, you will have to manually add the $mgc_cb_evo_stats var in the FORUMHOME template where you want the stats to appear. How do i get this done guys? Thanks in advance! |
#2
|
||||
|
||||
If that mod has not yet been updated for vB4 by the author, there's no way to do that.
|
#3
|
|||
|
|||
Why does it need to be updated to vb4? It's compatible for vb3, not 4 yet.
It doesn't have to be very 'user friendly' for me to get this done. I can program, just not that experienced in php. |
#4
|
||||
|
||||
You are posting this question in the vB4 subforum, so I gather you want to do this in vB4. If the mod's php code is not altered to adapt to vB4, there is no way of showing the variable in the template at this time. In vB4, variables need to be registered to be available in templates.
See this article on what is needed: https://vborg.vbsupport.ru/showthread.php?p=1915830 |
#5
|
|||
|
|||
My bad sorry! I just noticed the 4 behind the 'vb'!
|
#6
|
||||
|
||||
Moved to VB3 forum as that seems to be the version in question.
However, if you have a question about a modification, then you need to post it in the mods thread. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|