Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 15 Sep 2016, 08:37
m0nde's Avatar
m0nde m0nde is offline
 
Join Date: Mar 2005
passing a vbulletin variable to javascript

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?
Reply With Quote
  #2  
Old 15 Sep 2016, 14:29
Dave Dave is offline
 
Join Date: Jun 2010
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'].
Reply With Quote
Reply


Tags
javascript, vbulletin 4


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 12:29.

Layout Options | Width: Wide Color: