![]() |
|
|||||||
| vBulletin技术交流 主要讨论vBulletin的安装使用、模板风格、插件以及小技巧等。 |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
#1
IP: 117.95.53.162
|
|||
|
|||
|
Hello,
I use vBulletin 3.8.x and vBadvanced, so I have this little problem. I have insert some banner Adsense in the template "navbar" only for guest, and I see it also in my Portal. I am finding a variable to show it only in my forum, forumhome and showthread and not in Portal/Home also if they are include in navbar. What variable can I use? I am trying this variabile but perhaps is is wrong: <if condition="THIS_SCRIPT != 'showthread"> ? Thank you |
|
#2
IP: 117.95.53.162
|
|||
|
|||
|
Code:
<if condition="THIS_SCRIPT != 'showthread"> Code:
<if condition="THIS_SCRIPT == 'index' OR THIS_SCRIPT == 'forumdisplay' OR THIS_SCRIPT == 'showthread'"> show your ad </if> |
|
#3
IP: 117.95.53.162
|
|||
|
|||
|
To trim Lynne's 2nd example a bit...
Code:
<if condition="in_array(THIS_SCRIPT, array('index', 'forumdisplay', 'showthread'))">
ad code
</if>
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|