![]() |
Very simple "smart" banner rotation ( TUTORIAL ) ghetto openx
I built this recently for something , i thought i would share.
This is a simple script to display ads based on keywords in your pages title . The script will detect the pages title and display ads/banners from a list based on the keywords in the pages title. The idea being many sites have thousands of pages but the banners are template driven so they either have the same banner across the entire site in that spot or they randomly rotate banners based on no criteria. Very usefull for things like tubesites,networks etc make a folder called js on your server http://yoursite.com/js/ save the following as "javascript.php" in the folder you just created Code:
<?php Code:
RewriteEngine on Code:
<?php Code:
default|http://defaultsponsor|https://gfy.com/skins/gfy2007hdr/logo.gif The first banner is the default banner, you can use multiple banners/sponsors for the same keyword , it will randomly pick one. to use just place the following code on your page where you want the banner to appear ( it will show up in the div ) Code:
<div id=stbad></div> |
Sweet, thanks!
|
I have been looking for exactly something like this...THX!
|
Cool script as usual, bump-o.
|
Great little script. Thank you for sharing.:thumbsup
|
Thanks... I've grown to dislike openx because it's so fucking bloated and slow. I've been looking for something like this. I will give you good rep tomorrow.
|
Repped .
|
excellent script, thanks!
|
imaginary rep++ :thumbsup
|
Quote:
We're running two installs for two networks and our host did some stuff to optimize one of them. Yesterday there were 821,200 impressions and it runs great. It's not even hosted on it's own server ... there are about 18 other sites on that server including tubes with 30k visitors a day with clips that are hosted on the server. It's pushing 40 MBPS right now with either 6 or 8 GB RAM (can't remember). No problems to report at all so far. Other than the impression quoted because I was already logged into OpenX, all numbers are rough. |
Quote:
|
Very great script Smokey :thumbsup
but let say I put this up on site1.com and want to use it for site2.com with out uploading the folder to site2.com also. Is that possible to do? Have tried that but it will not work for me :helpme |
Really nice one.
|
Quote:
|
Quote:
Code:
var scriptfolder = "http://site1.com/js/"; |
All times are GMT -7. The time now is 11:45 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc