Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 23 Jan 2017, 20:23
solocommand solocommand is offline
 
Join Date: Sep 2013
Ad module conditions in vBulletin Cloud 5

Hi folks,

After submitting a support request on vbulletin.com I was told to post here requesting help. We are using the hosted version of vBulletin Cloud (5.2.5) and having trouble using conditionals and variables inside an ad module. Ultimately I need access to the current thread ID if there is one to map to a topic ID with my ad provider. This was previously done as a PHP plugin in the non-hosted version.

Screenshot of the ad module is attached (with the direction that you can use conditionals and variables!)

The following code


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

results in the following HTML output


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

Note that the <vb:if> and {vb:raw} tags are rendered in the HTML response when loading the page.

I tried to report that this wasn't working as it is supposed to be and was told to post about it here by the support staff. Any ideas? Are conditionals and variables not actually available or am I doing something wrong?
Attached Images
File Type: png Screen Shot 2017-01-17 at 1.12.54 PM.png (51.8 KB, 19 views)
Reply With Quote
  #2  
Old 23 Jan 2017, 20:40
solocommand solocommand is offline
 
Join Date: Sep 2013
According to a VB developer, template conditionals are disabled in all ad modules. Mods, feel free to close.
Reply With Quote
  #3  
Old 24 Jan 2017, 01:14
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Aug 2013
The thread id is stored in the pageData.nodeid JS variable. If you are on a thread page, that nodeid is the id of the thread.
__________________
Glenn Vergara, an ex-vB Developer, now a vB Mod Developer

GIPHY for vB5 | AutoLinker | Video Attachments Player | New Registered Users Module | Clear System Cache Cron | DragNDrop Upload | Topic AJAX AutoUpdate | Force Read Topic
Reply With Quote
  #4  
Old 24 Jan 2017, 17:57
solocommand solocommand is offline
 
Join Date: Sep 2013
Originally Posted by noypiscripter View Post
The thread id is stored in the pageData.nodeid JS variable. If you are on a thread page, that nodeid is the id of the thread.
Thanks! This should actually get me exactly what I need.
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word Cloud: Display Most Common Words from Posts in Cloud calorie vBulletin 3.6 Add-ons 38 24 Mar 2013 16:35


Tags
ads, cloud, conditional, variable


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 14:03.

Layout Options | Width: Wide Color: