The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Ho to show ads only on CMS index page?
Hi,
i want to show Wallpaper Ads on my frontpage: CMS: domain.tld Forum: domain.tld/forum/ If i use: <vb:if condition="THIS_SCRIPT == 'vbcms'">CMS</vb:if> The Wallpaper Ad is on every CMS Page, every article. But i want only to show the wallpaper on CMS index page. Any idea how to do this? |
#2
|
|||
|
|||
No Idea?
Is there no condition available to choose only cms index page? |
#3
|
||||
|
||||
I think you can use $_GET['r'] == 1 to be the first page.
|
#4
|
||||
|
||||
Lynne, any chance of elaboration on this?
I'm after the same thing as the OP, but can't understand how I would use your code to implement anything. |
#5
|
||||
|
||||
To only put something on the very first page, put a condition around it like this:
HTML Code:
<vb:if condition="$_GET['r'] == '1-home-page-one' OR !$_GET['r']">hello</vb:if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|