The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Is there any way to stop from being shown ads in perticular forums of site ?
This is will be good help for those who have adult sites and want to use google adsense revenue sharing ![]() |
#2
|
||||
|
||||
![]()
Wrap your Ad code in the following conditional ..
Code:
<if condition="$forumid != X"> Your Ad Code here </if> where X is your forum ID where you do not want to display Ad |
#3
|
|||
|
|||
![]()
but where ? in which template. please give me example using any google adsense modification
![]() |
#4
|
||||
|
||||
![]()
For vB 3.7, you now have Ad Location Templates, paste the Google Adsense code in any of the desired templates like ad_header_logo.
And simply wrap that code in the conditional i.e. Code:
<if condition="$forumid != X"> YOUR GOOGLE ADSENSE CODE HERE </if> where X is the forum ID where you do NOT want to show the Ad. Hope this helpsss |
#5
|
|||
|
|||
![]()
I tried this but while adding i am having this error
Quote:
|
#6
|
||||
|
||||
![]()
Post your complete code.. that you applied to the template !!
|
#7
|
|||
|
|||
![]()
<if condition="$forumid != 12,235,236,267">
my adsense code </if> I used this bcoz i dont want show these ads more above these 4 forums |
#8
|
||||
|
||||
![]() Code:
<if condition="$forumid != 12,235,236,267"> the conditional I provided works for just 1 forum like this Code:
<if condition="$forumid != X"> |
#9
|
|||
|
|||
![]()
But i want to bock this in 4 forums like i tried
![]() Please provide me codes for that ![]() |
#10
|
||||
|
||||
![]()
okk... try this for multiple forums.. not sure if it works !!
Code:
<if condition="out_array($forum['forumid'], array(12,235,236,267))"> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|