I made my own banner-rotator, which works great!
It does not take a great deal of time, since it's really very simple!
I made this out.php script, which one makes hyperlinks to like this:
<a href="out.php?id=2" title="blah">blah</a>
Then the out.php uses header location to redirect.
For the frontend, I have one file which SELECT ... from ... ORDER BY RAND()
then you can either LIMIT 0,1 or you can fill an array with the resultset and then loop through it at each refresh of page, and if at end, make random again.. Or you just might loop thru all records..
You also make the out.php increase a field "clicks out" by one.
an admin interface can be nice too, but it's truly very simple! it's not much more advanced than a guestbook script..
I think a mediocre progrmamer can do it in 2-3 hrs, a beginner will maybe need 5+ hrs.
how much time it takes, depends on how good you want it to be. I think it's a great experience to write simple things as this by yourself.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.