The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Use of variables in template
In our country there is an "official" statistic platform with all advertising agency's use. Therefore I must add a tag in the footer of or forum. With use a keyword where I need to place the forumID and threadID
I have placed this code in the footer template: Code:
forum id was $GLOBAL[forumid] <script type="text/javascript" src="/metriweb/mwTag.js"></script> <script type="text/javascript"> var mw_forumid = "$GLOBAL[forumid]"; var mw_threadid = "$GLOBAL[threadid]"; var mw_postid = ""; var keyword = ""; var extra = "nl"; metriwebTag ("sitename", keyword, extra); </script> But we get always this information in our output code Code:
forum id was <script type="text/javascript" src="/metriweb/mwTag.js"></script> <script type="text/javascript"> var mw_forumid = ""; var mw_threadid = ""; var mw_postid = ""; var keyword = ""; var extra = "nl"; metriwebTag ("sitename", keyword, extra); </script> Is there a reason why we don't get the information? Do we something wrong? Thanks for your help, |
#2
|
||||
|
||||
Try $forumid and perhaps $threadinfo[threadid] ? Also, those variables won't get populated on every page.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|