The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
How do you use THIS_SCRIPT in a template outside of a conditional statement?
I need the value stored in THIS_SCRIPT to print in some template javascript code so phpAdsNew can track the ad request source. Adding Code:
<script type="text/javascript"> <!-- // phpAdsNew variables var panSource = "THIS_SCRIPT"; // --> </script> |
#2
|
|||
|
|||
![]()
Try moving THIS_SCRIPT into a var like $this_script before the template is parsed. I don't think constants are parsed in templates. But I could be wrong.
|
#3
|
|||
|
|||
![]()
Normally I just use a plugin to attach the code to the headinclude in the template. Are you doing this for all pages?
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|