Kestryll
07-16-2007, 01:07 PM
I tried this (http://www.vbulletin.com/forum/showthread.php?t=170826) out and it does look to work but I as wondring if there was any flexibility with it.
I currently have my forum title centered at the top of the page, I would like to set up two random banners one on each side of the title and possibly down below in the footer.
Is it possible to do this?
Thanks,
Kest
Kestryll
07-16-2007, 02:03 PM
Whoops! I knew I forgot something!
http://www.calguns.net/calgunforum/index.php
Right now I have static HTML ads but they are starting to take up to much space. I'd like to change it to two banners, one on either side of the forum title.
Peggy
07-16-2007, 02:39 PM
Umm I would seriously use caution with this. Unless Jake has stated that this will work ok with 3.6.7, I wouldn't use it.
Reason being, so much code has changed since he posted this in January 2006 - the code for the random function may not work right? Hopefully one of these coders around here can take a look at it and tell us.
nymyth
07-16-2007, 02:45 PM
that random function doesnt have to do with vbulletin specifically, its a php function so it should work fine. The only thing vbulletin specific is the plugin and that hasnt changed since 3.6
Kestryll
07-16-2007, 02:47 PM
I tested it as a single rotating banner on 3.6.7 and it seemed to work.
It has been put forward that just installing the mod again with a '2' appended to all aspects of the name would give two working examples that could run concurrently.
I'm going to try that after a full back up.
I'm learning all this as I go so at times I feel like a surfer with no skags for steering! ;)
nymyth
07-16-2007, 02:48 PM
Whoops! I knew I forgot something!
http://www.calguns.net/calgunforum/index.php
Right now I have static HTML ads but they are starting to take up to much space. I'd like to change it to two banners, one on either side of the forum title.
crap its blocked at work, ill take a look at it from home: Off the top of my head and looking at the code
1. create 2 sets: $random_banner and $random_banner1 the random function can remain the same (you shouldnt need 2 sets)
2. Depending on how your header is, if its in tables, make a 3 cell table and just put $random_banner[$random_number] in each cell either side of the logo (like i said i still cant see your site so im not sure what you header looks like)....hopefully ill have a better answer for you after i can take a look at it.
Peggy
07-16-2007, 02:48 PM
I tested it as a single rotating banner on 3.6.7 and it seemed to work.
It has been put forward that just installing the mod again with a '2' appended to all aspects of the name would give two working examples that could run concurrently.
I'm going to try that after a full back up.
I'm learning all this as I go so at times I feel like a surfer with no skags for steering! ;)Hun we all feel like that sometimes. And trust me on this one - it doesn't get any better the longer you have a vB either :no:
karabaja
07-16-2007, 04:24 PM
That can cause problems if one of the banners is an iframe. But it works with iframes as well if hook location is changed from parse templates to global start.
And I guess you can use different banner sets in two different locations. You just add another plugin and alter php code with something other then used in first one($random_number,$random_banner) it can be named anything.
nymyth
07-16-2007, 05:06 PM
well looking at your site, you dont need inline frames, just create 2 hooks and put them inside table cells, should do the trick