![]() |
Banner Scheme
I Urgently need a banner rotation script...
Just a simple one that i cant track clicks and displays a random banner at the top of each page. Thanks in Advance Steve |
Same for me.. so anyone?
|
<a href="http://www.phpadsnew.com" target="_blank">www.phpadsnew.com</a>
|
This has.. nothing to do with vB3 :p
|
i run php ads new on the server - but never got a good way to just iclude the banner at the top - can anyone show me the code mods required - i have previously got it to display using a layer but that scrolls with the screen - all i want it to do is just stay in the top right.
Anymore help would be appreciated |
Code:
ob_start(); |
1 Attachment(s)
I've tried just about all of the banner programs. Either too much work to keep on top of things, additional server resources, etc. Plus, about 2 years or so ago I had to do something quickly to keep my sponsor's banners up and running. I too wanted something simple.
Open up and enter your banner info in banner.txt Open up and edit the $base_dir, $img_url and $max information in banner.php Upload banner.php and banner.txt to your forum's dir. Place the following in your phpinclude_start template: ob_start(); include("banner.php"); $showbanner = ob_get_contents(); ob_end_clean(); Wherever you want the banner, insert $showbanner This has been working great for me for the past two years. Yes, I have to open these two files whenever I add or change info but it only takes a couple minutes. If a particular banner is expired, I just move it to a line down under the text "EXPIRED GOES HERE" Remember to adjust the $max variable in banner.php to the number of line of banners you have in banner.txt. Honestly, I thought that after I got my vB2.3 upgraded to vB3 that I would get a little fancier with this by making a table and adding banner/sponsor info in the database plus counting clicks, etc. But, like I said previously this thing works so great I may just leave it alone and K.I.S.S. it! :squareeyed: Feel free to use it, hack it or whatever you want! |
Awesome stuff Indyshooter. Works great!
|
Thanks Indy!!!
Just what I needed Eric Rackspeed Web Dev. |
indy.. great little system.. i really like how small it is.. i have a question.. any idea how i can get it working on my main page? it is at "/" where my forums are "/forums"
any advice would be greatly appreciated.. |
All times are GMT. The time now is 07:51 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:
|