![]() |
Advertisements Enhancer + TOS Compatibility
Most advertising companies will ask you not to have their ads on pages without content. This is a problem in vBulletin, because you want to have the ads on as many pages as possible, but you dont want to get banned from the service (i.e. adsense ;))
The solution is not to try and find places we CAN put the ads, but rather to exclude all the places we would NOT want them. What this hack does is make sure ads do not appear on pages we dont want them to (This includes most hacks which add pages, such as the cyber paypal donation hack, invites hack, etc. Plus, it is quite simple to add any other page you want to the no-no list :)) Another thing this hack does is put the ads in a table, to make it look neater. In addition, it gives the members an option to collapse the ads. It will still get you impressions, and it wont be annoying for the user, so its a win-win situation. ------------------------------------------------------------ UPDATE 1.01: There seemed to have been code which was one style specific (satellite skin spacer) so I replaced it with a <br />. If you had a problem with spaces between the ads table and the navbar and/or forum categories, use this updated code. ------------------------------------------------------------ The following script will work with any type of affiliates, including referencers, search boxes, and links/images. NOTE: It works best with Leaderboard size advertisements (Approximately 728x90) Code:
<if condition="!( This default version of the code will display the ads on every page except the following: Login Pages Registry Pages User CP Pages Private Messages List Pages Subscription Payment Pages Invitations Hack Pages Members List Page Online Members Page Member Pages Spider Watcher Hack Pages psiStats Hack Pages User Profile Page FAQ Page Send PM Page Cyber PayPal Donation Hack Page Calendar Page Adding Calendar Events Moderator Statistics Hack Page Search Form Page Gallery Searching Page Gallery Uploading Page Error Pages ------------------------------------------------------ NOTE: If you find that the spacing between the table is too big or too little, add/remove the colored <br /> s If you add a modification that ads another page, add the following in the space below (THIS_SCRIPT == 'CybPayPal') OR Code:
(THIS_SCRIPT == '<PHP FILE NAME HERE>') OR Code:
(THIS_SCRIPT == 'arcade') OR Code:
http://www.siteurl.com/forum/search.php?do=getnew Code:
((THIS_SCRIPT == 'search') AND $_REQUEST['getnew'] == '') OR Support is available if needed. You can contact me via MSN at rsx@nerdshack.com, or by email (same address) Please give feedback! Thanks & Enjoy! P.S. THIS MODIFICATION IS COMPATIBLE WITH EVERY VERSION OF VBULLETIN :) P.S 2: This is my first mod release so if I did anything wrong don't hurt me. Just tell me what the problem is and I will fix it ASAP ;) :bunny: |
RsX thank you will give it a try :)
|
No problem :)
Glad I could help EDIT: (Yey 5 installs ^_^ Thank you!!) |
Very nice hack, sadly I've already been removed from Adsense because I didn't exclude one of these pages (they didn't say what one); trust me, once you get kicked from Adsense their customer support seems to ignore you :(
|
thats based on satallite skin right? So it needs adapting :)
|
Sweet I've been waiting for this. Thanks!
|
Quote:
Ill rewrite it as a <br /> Thanks :) |
Quote:
Don't forget to click instal (if you did :bunny:) |
Thx man. nice idea.
/me installed... |
Thanks :) Im glad you like it
|
Thanks installed...
What if I wanted to to have it not show in another directory? ie: I use photopost and I have photopost installed in the http://www.mysite.com/forums/gallery/ directory. Photopost is using my vb navbar tempate where I have your hack installed. How would I make it so it wouldn't show on http://www.mysite.com/forums/gallery/uploadphoto.php ? I tried just adding (THIS_SCRIPT == 'uploadphoto') OR in the middle but, that didn't work. Thanks, Miguel |
Try (THIS_SCRIPT == 'gallery/uploadphoto')
|
hmm i got the collapsed box but it still shows on every page
|
the banners still show on every page. what could i be doing wrong
|
nice!:banana:
:installed: |
the banners still show on every page. what could i have done wrong
thanks |
Did you use the if commands correctly?
Could you also please provide a link to your forum? |
props dude this is exactly what i was looking for lets hope i make myself some money from adsense now
|
Great.. But i'm using adense in 'ForumHome','Showthread' & 'Forum Display' Only. This seems more good for me as i don't want to be kicked out by adsense :D
|
Thanks for installing :)
Im glad you like it! If you have any questions or suggestions, I'd be glad to answer/take a look! |
is there a way to put more than one sponsor in and have them side by side...i tried but they sit ontop of one another?
|
Im kinda of a newb around and I was looking to hsi.
I didnt found any type of instroctions on how to set this up. Can any one hlep me out here? |
Place it in your Header template
|
Quote:
Code:
<br /> to look like this: Code:
<br /> |
Installed thx,
Is there anyway to make the ads just viewable to certain usergroups at all? |
Replace the usergroup #'s that you want to be able to see the ad with the 1 2 3 4 etc..
<if condition="is_member_of($bbuserinfo, array(1, 2, 3, 4))"> Insert the code your controlling </if> |
Here is my question, can I remove Adsense ads only from specific folders with this script? I need to do that :)
|
Simple to change... Great idea!
Clicked install... |
:\
I'm using this for my Adsense banners. Anytime someone clicks on a banner, the following error shows up: This page contains the following errors: error on line 1 at column 1: Extra content at the end of the document Below is a rendering of the page up to the first error. Any thoughts? I just pasted my adsense code in the specified area. edit Nevermind. It just doesn't seem to work in Safari. It works perfectly in IE and Firefox. :) |
Great work :)
Installed it currently on my vb3.6.0b4 |
Amazing mode...just what I wanted!
|
The bottom banner I am unable to collapse. I used the same code as the top. I put the code at the very top.
http://www.prisonbreakscene.com Code:
<if condition="!( |
It works fine with one at the header but once you at the second one in the footer or the forumdisplay it wont work at all!
|
Anyone have this issue also?
|
Bump!
|
Any ideas guys!
|
Is it safe to have this (displaying google ads) on vbadvanced and forum index?
|
I dont see why not, there is content on both those pages!
|
Thanks. For some reason I thought they weren't allowed on pages with registration. I understand now though!
|
Hello,
Very nice addition, thank you. Hey, does anyone know where I could find a script (or does anyone know a script 'php, html' java') that would rotate linked banners? The script would go in the spot of: <!-- CODE HERE --> in this new addition. Thank You, Nuguru :) |
All times are GMT. The time now is 05:03 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:
|