View Full Version : Question in how to add adsense code
Penicillin
10-21-2009, 03:33 PM
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.
Penicillin
10-23-2009, 10:35 PM
Please help
HMBeaty
10-23-2009, 10:40 PM
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.
Attitude5ire
10-25-2009, 03:47 PM
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'
Penicillin
10-26-2009, 01:37 AM
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'
So thanks
But how can I use a conditional?
For information I want to display the ad code under forumid #1.
Attitude5ire
10-26-2009, 03:45 AM
<if condition="$forum[forumid] == X">
Your code.. try this
</if>
Penicillin
10-26-2009, 10:36 PM
<if condition="$forum[forumid] == X">
Your code.. try this
</if>
It's working, thanks very much.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.