The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Question in how to add adsense code
Hello
I have many main forums, each one has child forums, so I want to add an AdSense code under the first main forum only. In what template should I place the code? Your help is so appreciated. |
#2
|
|||
|
|||
Please help
|
#3
|
||||
|
||||
If you are looking for a template, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source.
|
#4
|
||||
|
||||
You have to use a conditional if you want only under first main one..
it has to been done in this template 'forumhome_forumbit_level1_nopost' |
#5
|
|||
|
|||
Quote:
But how can I use a conditional? For information I want to display the ad code under forumid #1. |
#6
|
||||
|
||||
Code:
<if condition="$forum[forumid] == X"> Your code.. try this </if> |
#7
|
|||
|
|||
It's working, thanks very much.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|