PDA

View Full Version : Use of variables in template


crepo
02-10-2009, 02:17 PM
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:


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


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,

Lynne
02-10-2009, 02:41 PM
Try $forumid and perhaps $threadinfo[threadid] ? Also, those variables won't get populated on every page.