Features include global settings, advertisements allowing template conditionals, ad sharing and ad revenue sharing, timed advertisements, preset popular ad locations and functions such as sponsors, additional custom ad locations, random and static advertisements and its all very easy to use. You can use it for ordinary ads like adsense, banner rotations, or any content at all as well as using it to manage ads outside your forum too.
If you are using autoinsertion and were using vB Ad Management before version 4.00, you will need to remove your old template edits or advertisements will appear multiple times. Just reverse the old instructions below.
Quote:
* Find <!-- post $post[postid] popup menu --> and paste $postbit_advertisement above it in your postbit & postbit_legacy templates.
* Paste $forumbit_advertisement at the bottom of your forumhome_forumbit_level1_post and forumhome_forumbit_level2_post templates.
* Paste $threadbit_advertisement at the bottom of your threadbit template.
* Paste $footer_advertisement at the top of your footer template.
* Find $spacer_close in your footer template and below it paste $rightcolumn_advertisement.
* Find in your header template and replace it with $header_advertisement.
* Find $spacer_open in your header template and below it paste $leftcolumn_advertisement.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
That I couldn't tell you, I don't actually use advertisements myself so I'm not au fait with Adsense's TOS. But I believe roughly speaking they require original "content" on a page displayed with advertisements. So search results, registration pages, redirection pages and so on where there is none would be a no-go.
Don't take my word for it though, be sure to look it up yourself.
Specifically, if I wish to prevent an ad on a login page, which script would I enter in the exclude. How can I tell which script produces which page. Is there a list somewhere?
Specifically, if I wish to prevent an ad on a login page, which script would I enter in the exclude. How can I tell which script produces which page. Is there a list somewhere?
Code:
<if condition="!(
(THIS_SCRIPT == 'login') OR
(THIS_SCRIPT == 'register') OR
(THIS_SCRIPT == 'usercp') OR
(THIS_SCRIPT == 'private') OR
(THIS_SCRIPT == 'subscription') OR
(THIS_SCRIPT == 'payments') OR
(THIS_SCRIPT == 'invites') OR
(THIS_SCRIPT == 'memberlist') OR
(THIS_SCRIPT == 'online') OR
(THIS_SCRIPT == 'member') OR
(THIS_SCRIPT == 'spiders') OR
(THIS_SCRIPT == 'psistats') OR
(THIS_SCRIPT == 'profile') OR
(THIS_SCRIPT == 'faq') OR
(THIS_SCRIPT == 'sendmessage') OR
(THIS_SCRIPT == 'arcade') OR
(THIS_SCRIPT == 'showgroups') OR
(THIS_SCRIPT == 'calendar') OR
(THIS_SCRIPT == 'calendar') AND $_REQUEST['do'] == 'add') OR
(THIS_SCRIPT == 'misc') AND $_REQUEST['moderator_stats'] == '') OR
(THIS_SCRIPT == 'search') AND $_REQUEST['searchid'] == '') OR
(THIS_SCRIPT == 'THIS_SCRIPT')
Oh, I forgot. The column templates actually spread across two templates, not one. And also I gave you the wrong conditional. Faux pas, sorry 'bout that.
Because the columns use multiple templates, this means that you can't do the usual technique of just excluding it from a page because it would exclude everything between that template and the footer as well. Which is a lot.
So for a bit of a rough workaround, we can remove the adcode and just hide the table instead.
Replace the contents of the leftcolumn_advertisement template with:
Brilliant, cheers for that mate. Just one more thing, when you view a thread it's all centred, how can I make it so its the same as the default, see below.