![]() |
|
Mod Options |
![]() |
|||||||||||||||||||||||||||||
This modification is in the archives.
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:
2. Now still in your ADMINCP go to PLUGIN SYSTEM-->ADD NEW PLUGIN HOOK LOCATION is "global_start" TITLE is "banner" PLUGIN PHP CODE:
Do not forget to make the plugin active. 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:
Under that insert:
Now you done. All you have to do is edit your template your created with the links and banners you want to use. 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.
Download Now Only licensed members can download files, Click Here for more information. Show Your Support
No members have liked this post.
|
Comments |
#2
|
|||
|
|||
Seems Interesting and something that I needed to add to my forums!
Thanks for the hack ![]() * First to Install ![]() No members have liked this post.
|
#3
|
|||
|
|||
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 No members have liked this post.
|
#4
|
|||
|
|||
Its not working
I did exactly what is dictated above but cant see any banners..... :ermm:
No members have liked this post.
|
#5
|
||||
|
||||
Originally Posted by Dreamchaser
If you using google adsense then you have no choice what ads appear anyways. They are random ads and read the content of your site to pick what ads are displayed. I don't know much about Yahoo because they are still in the test stages and I can not find where to apply for them to get them. I would like to get Yahoo ads so I could answer you question and use them. But I would be willing to bet that they work on the same principle as google adsense.
If you could explain more about what you mean I could probably answer your question better. No members have liked this post.
|
#6
|
||||
|
||||
just wat i was looking for after some other code wasnt working properly
![]() cheers and installed No members have liked this post.
|
#7
|
||||
|
||||
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:
The default script works great but when I try to do it that way the banner disappears on the forum page. Perhaps I have a typo? No members have liked this post.
Last edited by CopoGuy; 30 Jan 2006 at 05:46. |
#8
|
||||||||
|
||||||||
Originally Posted by CopoGuy
You can make it open in a seperate browser window by adding the target='ad' in the line as shown below. Sorry I did not explain that. I left it out because I wanted to make this hack very easy.
I have just added this to the documentation. No members have liked this post.
Last edited by attroll; 30 Jan 2006 at 16:20. |
#9
|
||||
|
||||
![]()
Installed and works great!! Thanks
No members have liked this post.
|
#10
|
|||
|
|||
Does this not do the same? or does yours have more unique qualities?
http://www.vbulletin.com/forum/showthread.php?t=170826 No members have liked this post.
|
#11
|
||||
|
||||
Look man, he made something and shared it for free. If something already does it who cares. If you have nothing ot contribute shut up. I'm getting tired of seeing posts like this "well this already does this"
Dells and Gateways d othe same thing. As does IPB and vBulletin. Its a matter of choice. Contribute or don't post at all. Thank you for the hack. A client of mine might be needing this soon. No members have liked this post.
|
#12
|
|||
|
|||
Originally Posted by TruthElixirX
You are a fool for answering that way! I was asking a legitimate question from the coder and not some lame member who has nothing, but time to troll threads and start flaming everyone. Stick to your own hacks and let ppl ask their own question. :disappointed:
No members have liked this post.
|
#13
|
|||
|
|||
Attroll,
The target='ad' modification worked perfectly. Thanks again for sharing! Exactly what I needed something nice and simple. No members have liked this post.
|
#14
|
||||
|
||||
Originally Posted by LEAD_WEIGHT
No matter how many times we tried to get that one to work, it wouldn't. First try on this one and bam it works great. So I think it is a great thing to have many different ways to do the same thing.
No members have liked this post.
|
#15
|
||||
|
||||
/me clicks on install
No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 03:03.