The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
![]()
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"> my google ad code here </if> 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"> google ads </if> Code:
The following error occurred when attempting to evaluate this template: Parse error: syntax error, unexpected ',' in /home/forums/public_html/includes/adminfunctions_template.php(3772) : eval()'d code on line 1 This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish. any help please waiting for reply |
#12
|
||||
|
||||
![]()
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)) |
#13
|
|||
|
|||
![]()
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))"> google ads [/if] 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. |
#14
|
||||
|
||||
![]()
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))"> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|