![]() |
thanks i tried this but getting the old error if i place this code in showthread template.
Code:
<if condition="THIS_SCRIPT != 'register' AND $threadinfo[forumid] != 6"> i am using the conditional so that i can enable my software section where my users share software with each other and google ads wouldn't appear in Software section in this way , I wouldn't break the google dcma and have the software section on my forum too. thanks waiting for reply --------------- Added [DATE]1298972595[/DATE] at [TIME]1298972595[/TIME] --------------- Thanks i have found out its place in ad_navbar_below template and its working fine. However, i have also found out that when i add like forum restriction Code:
<if condition="THIS_SCRIPT != 'register' AND $GLOBALS[forumid] != 6,51,58,69,75,97,95,100,52"> Code:
The following error occurred when attempting to evaluate this template: any help please waiting for reply |
Instead of:
HTML Code:
$GLOBALS[forumid] != 6,51,58,69,75,97,95,100,52 HTML Code:
in_array($GLOBALS['forumid'], array(6,51,58,69,75,97,95,100,52)) |
ok here i put this
Code:
<if condition="THIS_SCRIPT != 'register' AND in_array($GLOBALS['forumid'], array(6,51,58,69,75,97,95,100,52))"> Anyhelp please --------------- Added [DATE]1299012484[/DATE] at [TIME]1299012484[/TIME] --------------- Okay found the solution . Explaining incase anyone else need help regarding this. Actually in template navbar_below ads i have to include the id in which i want to show the google ads . for example i want to show the ads on forum id 2,3,4,5 so i have to add the code in navbar_below ads template like this [code]<if condition="THIS_SCRIPT != 'register' AND in_array($GLOBALS['forumid'], array(2,3,4,5))"> google ads [/if] ads will show on forum id 2,3,4,5 and the rest wouldn't appear. Thanks once again for the help. |
This will show ads ONLY in forums 2, 3, 4, 5:
Code:
<if condition="THIS_SCRIPT != 'register' AND in_array($GLOBALS['forumid'], array(2,3,4,5))"> Code:
<if condition="THIS_SCRIPT != 'register' AND !in_array($GLOBALS['forumid'], array(2,3,4,5))"> |
All times are GMT. The time now is 01:17 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|