![]() |
|
Thread Tools |
#1
|
||||||||
|
||||||||
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
results in the following HTML output
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? No members have liked this post.
|
#2
|
|||
|
|||
According to a VB developer, template conditionals are disabled in all ad modules. Mods, feel free to close.
No members have liked this post.
|
#3
|
||||
|
||||
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 No members have liked this post.
|
#4
|
|||
|
|||
Thanks! This should actually get me exactly what I need.
No members have liked this post.
|
![]() |
![]() |
||||
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 |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 21:31.