Log in

View Full Version : Call a vBulletin Option in a JavaScript File


Mko
07-14-2012, 12:33 PM
Hey all,
I'm trying to make it so if a vBulletin Option is true, then a tab will become visible in one of my .js files.
However, I'm having some trouble finding or creating the right tag that will do what I want that would work in JavaScript.

If anyone knows how to call vBulletin Options in a JavaScript file, please let me know.

Thanks in advance,
Mark

kh99
07-14-2012, 12:48 PM
I think the easiest thing to do is to edit a template to create a javascript variable. You can see where this is already done in the headinclude template for things like SESSIONURL.

Mko
07-14-2012, 12:54 PM
I think the easiest thing to do is to edit a template to create a javascript variable. You can see where this is already done in the headinclude template for things like SESSIONURL.
Ah, excellent idea. Thanks so much :)