![]() |
Displaying Adsense ad's only in specific forums
well i have adult contents on my board...
and i dont want to get kicked out of adsense because i was showing ad's in the adult section.. so is there any way i can select which forums the ad's should be shown? thanks.. |
<if condition="$forumid = in_array(12,14,16)">
That should be it or very close. http://www.vbulletin.com/docs/html/ and search for template conditionals |
I had a similar question at one point and it was suggest I use this format:
<if condition="in_array($GLOBALS[forumid], array(1,2,3,5))"> <tr>content</tr> </if> It's worked well so far. |
Quote:
Code:
<if condition="in_array($GLOBALS[forumid], array(1,2,3,5))"> and do i put in the adsense code in the "content" place? sorry for these questions, dont know anything about this :( |
Yes, ad your asense code where he types in content.
Goto your admincp, styles and templates - edit the style you are using. You will need to edit the template where you want the ad to show but I recommend the bottom of the navbar. |
and how do i make it to display in every where else expect the adult area..
i mean the control panel, forum home, profile page, advanced reply area, calander, etc.. |
those numbers... 1, 2, 3, 4, 5, etc...should be whatever the forumids of your non-adult forums are...that will make the ads show in those forums and no other ones...
|
Quote:
Quote:
|
Code:
<if condition="!in_array($forum[forumid], array(xx,xx))"> |
Quote:
this is much easier than typing in all the forums where i want the ad's to be shown.. but do the ad's show in the forum home, cp, p.m., profile, etc pages? |
All times are GMT. The time now is 03:31 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|