Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Newbie Questions (http://www.greenguysboard.com/board/forumdisplay.php?f=5)
-   -   Banner Rotator (http://www.greenguysboard.com/board/showthread.php?t=43910)

Xallow 2007-11-16 11:07 AM

Banner Rotator
 
Hey guys

I am looking for a a banner rotator to put on my hub, I am sick of having to change my banners around manually, so a simple rotator with a database where I can dump all my banners in and rotate them according to category is really what I need.

Anybody know of a good and simple 1 to use?

Thanks

Xallow

Simon 2007-11-16 12:01 PM

This may be more than you need today but it will scale up nicely as you grow.

http://www.openads.org/

Xallow 2007-11-16 12:06 PM

I thought that script was for when You have "outside" advertisers on Your site, is it simple to use?

Preacher 2007-11-16 12:41 PM

No, openads allows you to have outside marketing log in and handle their campaigns, but it's not required. I use it just for my own campaigns.

I love open ads! It's not hard to use either. If you've ever set up any script that connects with a database, you'll be able to install openads.

And you can always ask here if you have any problems. :)

ponygirl 2007-11-16 01:04 PM

Quote:

Originally Posted by Preacher (Post 374383)
I love open ads! It's not hard to use either. If you've ever set up any script that connects with a database, you'll be able to install openads.

And you can always ask here if you have any problems. :)

the first time I looked at it, it was a bit overwhelming. Then I got the good advice to throw away the manual and just dig in - I just finished getting it set up and I have to say I love it too! Once you get started it's easier to understand, and I'm glad I took another shot at it (and I owe that to MML & the OTB bunch so thanks guys |waves|)

koolkat 2007-11-16 06:53 PM

Yeah... OpenAds is definitely the way to go! It may be a little overwhelming the first time you use is, but once you understand how things work, it is pretty simple.

HowlingWulf 2007-11-16 09:24 PM

OpenAds is pretty good if you want to set up something large scale. If not I have this handy little php script I wrote for one of my sites. You should be able to figure it out. I just left 2 entries to rotate.

file rotate.php

$item = array();
# array entries are url link, banner url, text
array_push($item,array("http://bbp.brazzers.com/m/mlib/109p/?t=34&nats=Mjg5NjE6MzoxOA,0,0,0,74871","bb/ava-lauren.jpg","Ava Laur
en"));
array_push($item,array("http://www.bigtitsroundasses.com/t1/cfree=howling/free_movies_bigtitsroundasses/btra2488.htm","bb/brandy
-talore.jpg","Brandy Talore"));
#display a random banner
srand ((double)microtime()*1000000);
$randomnum = rand(0, count($item)-1);
print "\n";
print "
A Boob Girl Favorite
\n";
print "
" . $item[$randomnum][2] . "
\n";
?>


And inside my main php page I have

where I want the random banner to show. Not fancy but does the trick.

cockhungryhoes 2007-11-16 11:39 PM

I been looking for something like this too, thanks Simon.

cockhungryhoes 2007-11-16 11:42 PM

Quote:

Originally Posted by cockhungryhoes (Post 374469)
I been looking for something like this too, thanks Simon.

O that does look a little hard. I will mess with it a while.

Xallow 2007-11-17 03:51 AM

Thanks guys, I have installed openads and am gonna mess about with it for a while... I'd say that a little overwhelming when You first look at it is an understatement though.

Nice little script there HowlingWulf, keeping that in my script locker for future use :)

Simon 2007-11-17 07:03 AM

We still have many hundreds of pages with stand-alone Javascript or PHP coding that was put there to rotate some banners just on that page or just on that site or in that directory. Actually we used to have many thousands of pages like that but we sold off some older sites so I don't have to count those anymore.

If I could go back to when we first were putting a lot of those pages out there, I'd definitely tell myself to use a centralized ad management/banner rotator script in almost all cases.

YMMV 'cause the map is not the terrain.

:)



.

NY Jester 2007-11-17 09:04 PM

I have a java script rotator..I know not the best thing but, is there a way to keep that script on my root web in a diurectory and have it called from the area that I want the banners to appear? Because just like HW's php script above you have to have each URL/banner url etc included into it.

Thanks

J-

SheepGuy 2007-11-18 01:00 AM

Isn't there a way to use SSI for that? I seem to remember a buddy using includes for random banners but that was a few years ago. Never tried it but it looked pretty straightforward.

Licker4U 2007-11-18 05:16 AM

I use this script and put it in a folder called "rotator". In that folder I have my ads on html pages and another folder called "ads" with copies of the same html pages. Upload everything and on the page where I want the ads to rotate I have:

I don't know anything about all this and how it works, but it does. Hit refresh and the ads rotate |thumb

###################################################################
# #
# Easy Ad Rotation #
# #
# Written by Tom Armstrong #
# #
# Support Available at http://www.tomsnewbiebooster.com/ #
# #
# This script may not be modified or re-sold #
# #
###################################################################

// TEST MODE - SET TO on OR off
$test_mode = "off";


###################################################################
# #
# Don't edit anything below here :-) #
# #
###################################################################

// RESET ADS
$ads = "";

// AND PICK AN AD

// COUNT ADS

$dirhandle = opendir("ads/");
while($filename = readdir($dirhandle)) {
if (ereg ("htm", $filename)) {
$ads[]=$filename;
}
}
closedir($dirhandle);

$number_of_ads = count($ads);

if($test_mode == "on") {
print("There are $number_of_ads ads in the ads folder
");
}

// SET THE RANDOM SEED
mt_srand(doubleval(microtime()) * 100000000);

// PICK A RANDOM NUMBER
$random_number = mt_rand(1, $number_of_ads);

if($test_mode == "on") {
print("I am going to show advert $random_number of $number_of_ads

");
}

$array_number = $random_number -1;

include("ads/$ads[$array_number]");

?>

Simon 2007-11-18 08:29 AM

Quote:

Originally Posted by NY Jester (Post 374572)
I have a java script rotator..I know not the best thing but, is there a way to keep that script on my root web in a diurectory and have it called from the area that I want the banners to appear? Because just like HW's php script above you have to have each URL/banner url etc included into it.

Yes, you can keep all your Javascripts in a directory just for them, on the root of your site is fine. And yes, then you can call those scripts from anywhere else you like.

You can even have multiple copies of your banner rotator script in that directory, named, for example, banners-amateurs.js, banners-grannies.js and banners-teens.js -- each script with only the banners you want to use for that niche/category -- and then call just the banners you want by selecting the script that has them.

But please read my post #11 before you waste a lot of time going down that road.

:)



.

NY Jester 2007-11-18 09:06 AM

Thanks Simon, I know there are more simple ways to do things, and Im just learning them. I used to just rotate by hand based on what the banners did for me, how they drew clicks etc. BUt with so many options available to me, Im trying to find time saving techniques and this board has helped at least show me that there is plenty and I appreciate any and all feedback/opinions in that regard.

J-

Tommy 2007-11-18 10:35 AM

I have a old one that is written part in perl and part in C+

I been using it for years but the cool thing about it is you have to put your html code in for the banners

so I use it to rotate all kinds of things: images, text, text links etc etc etc

LD 2007-11-18 02:15 PM

I have an html editor/website builder called "Namo" thst is cheap and has all kinds of included goodies including a banner rotater. I'm using Dreamweaver now to build sites, but I still find myself opening up Namo to do task that Dreamweaver doesn't do. Pretty amazing little app for the money.


All times are GMT -4. The time now is 08:50 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc