![]() |
vB.org Banner Rotation
I have a number of banners that I'd like to display and would like to know whether anybody knows how to make it change on page refresh between 2-3 just like at the top of vB.org.
|
actually very easy.
all you need is to edit phpinclude_start template and add something like: PHP Code:
|
Xenon- thanks a lot for that. If you're banner consists of multiple slices, can that be integrated into the above code?
|
well, you can assing more html code to a variable and put it into the header then as well.
that's not a problem, above is just the technique to make an rotating banner :) |
how would make the banners clickable
IE adding a hyperlink |
Quote:
PHP Code:
HTML Code:
<a href="$banner_url"><img src="$banner" border="0" /></a> |
Quote:
PHP Code:
|
Thanks guys.. !!!!!
|
ah this is a very good lession for novice like me ^^
|
what about assigning a specific banner depending on what style you have chosen?
i.e. I have a light style and a dark style each with their own background color. |
Quote:
Stick this in the phpinclude_start template: PHP Code:
Then use the same html I posted above in your templates. Also this is a bit dirty but it will get the job done just as good as anything else will. :) |
In the meantime, let's move this out modifications hints and tips :)
|
Also, remember to change the:
Quote:
|
How can I get a flash banner using this method?
As of now it doesn't work because it takes it as an image. |
the method is pretty much the same, you just have to assign html code into a variable which is switched in phpinclude_start and then use it in your header template.
it's not important what code is in your variable, the way itself will work on flash banners as well. |
Im not really sure how to do it...
I tried something but didnt work. Can you give me an example? Thanks |
I just need one of the 3 banners to be FLASH.
How would I change the code to fit that? |
Can anyone help me?
|
If support isnt dead on this tip - is there a way to use a banner that is hosted from an outside source? for example - If I try to use the following code it doesnt work.
<img src='https://hobbyclix.com/pm/gadserv.php?APID=00&affID=0000000' border='0'></a> But If i copy and past this banner and put it on my server I can use it... Any idea if this can be done? |
Well, just put in the URL
|
I had been using this with 3.0.7 but upgraded to 3.5.1 and now there isn't a phpinclude_start for me to place my code. Any ideas?
Fixed. I added it as a plugin and used the Hook Location: global_start |
Quote:
add: PHP Code:
|
All times are GMT. The time now is 10:35 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:
|