![]() |
Rotating banners
I created this simple and easy hack for a rotating banner block. All you have to do is create a template and add a plugin location and your done.
1. Go to your ADMINCP and create a template called "banner" and insert the attacked code: PHP Code:
HOOK LOCATION is "global_start" TITLE is "banner" PLUGIN PHP CODE: PHP Code:
3. Now you can go into any template you want and where ever you put the $banner your rotating banners will appear. 4. Most people want to put this in the top right corner of the forums. If this is what where you want it then. go into you ADMINCP templates and into you header: Find: PHP Code:
PHP Code:
You can add more rotating banners then what is in the code. All you have to do in insert more lines with banners in the right location in the code. That should be self explanatory. Note: You can make your link open in a seperate browser window by adding the target='ad' in the line as shown below. PHP Code:
|
Seems Interesting and something that I needed to add to my forums!
Thanks for the hack :)! * First to Install :D |
I have one small suggestion or you may call it a request !
You have provided a way to add images and link them to various sites, what if I wanted to add various codes like, google adsense, yahoo and other publisher codes which provide them as JavaScript, and I need to add 5 such codes, so each time the page loads, different ads appear. Any help on this ? Thanks in advance ! Btw, I installed this and works fine :) Regards, DC |
I did exactly what is dictated above but cant see any banners..... :ermm:
|
Quote:
If you could explain more about what you mean I could probably answer your question better. |
just wat i was looking for after some other code wasnt working properly :)
cheers and installed |
Awesome (and simple) mod! Thank You!
Has anyone tried to add the target="_blank" piece to the banner's URL (so it opens the banner link in an external browser window?) example: Code:
// imageArray |
Quote:
PHP Code:
|
Installed and works great!! Thanks
|
Does this not do the same? or does yours have more unique qualities?
http://www.vbulletin.com/forum/showthread.php?t=170826 |
All times are GMT. The time now is 04:34 AM. |
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:
|