vBulletin Mods

The Official vBulletin Modifications Site

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.


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 12:50.

Powered by vBulletin® Version 3.8.14
Copyright © 2022, 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.