vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=323463

passing a vbulletin variable to javascript
by m0nde
15 Sep 2016 08:37

I'm trying to pass a person's userid to javascript. I've set up the following test in my footer.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I get the following.

https://www.vbulletin.org/forum/external/2016/09/8.png

What am I doing wrong?

Dave 15 Sep 2016 14:29

If this is in a template, then you have to use vBulletin 4 template syntax.
It would be something like {vb:raw bbuserinfo.userid} instead of $bbuserinfo['userid'].


All times are GMT. The time now is 14:27.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.