Caddyman 02-28-2007, 07:27 AM ok we have all seen a static banner/header rotator script, i have scoured vb.org to no result. anyone know where a script is to rotate the image that make a fluid header?
left_head.gif.......................mid_head.gif(r epeater)...................right_head.gif
etc....
if not ill just set them in a new folder and change the url's in the ACP periodically.
Do you mean a banner/advert?
However - you could use phpAdsNew for this too :)
Caddyman 02-28-2007, 08:33 AM no the header image on talk delaware, i have these here.
left side
http://www.talkdelaware.com/talkstuffbg/misc/header_left.jpg
middle repeater
http://www.talkdelaware.com/talkstuffbg/misc/header_bg.jpg
right side
http://www.talkdelaware.com/talkstuffbg/misc/header_right.jpg
if i could make 3 more, same size as those, add them in a folder and have them (all 3 as a set) randomize so they match that would be great.
Joeychgo 02-28-2007, 11:50 AM You can use this: How To Implement A Random / Rotating Banner (http://www.vbulletin-faq.com/forum/showthread.php?t=5624)
Caddyman 02-28-2007, 12:15 PM ok so for example, you have this code described in the hack
$random_number = rand(1, 5);
$random_banner[1] = '<a href="http://www.link1.com/"><img src="path/to/banner1.gif" alt="" border="0" /></a>';
$random_banner[2] = '<a href="http://www.link2.com/"><img src="path/to/banner2.gif" alt="" border="0" /></a>';
this is my header code for the fluid header
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" style="width: 420px; background-image:url($stylevar[imgdir_misc]/header_left.jpg); background-repeat:no-repeat;">
<div style="padding-top: 9px; padding-left: 5px; font-family: tahoma; font-size: 11px; color: #FFFFFF;">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
</td>
<td style="background-image:url($stylevar[imgdir_misc]/header_bg.jpg);"><div align="right"><img src="$stylevar[imgdir_misc]/header_right.jpg" alt="" width="283" height="134"></div></td>
</tr>
</table>
so combined it would be like this?
$random_number = rand(1, 5);
$random_banner[1] = '<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" style="width: 420px; background-image:url($stylevar[imgdir_misc]/header_left.jpg); background-repeat:no-repeat;">
<div style="padding-top: 9px; padding-left: 5px; font-family: tahoma; font-size: 11px; color: #FFFFFF;">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
</td>
<td style="background-image:url($stylevar[imgdir_misc]/header_bg.jpg);"><div align="right"><img src="$stylevar[imgdir_misc]/header_right.jpg" alt="" width="283" height="134"></div></td>
</tr>
</table>';
$random_banner[2] = '<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" style="width: 420px; background-image:url($stylevar[imgdir_misc2]/header_left.jpg); background-repeat:no-repeat;">
<div style="padding-top: 9px; padding-left: 5px; font-family: tahoma; font-size: 11px; color: #FFFFFF;">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
</td>
<td style="background-image:url($stylevar[imgdir_misc2]/header_bg.jpg);"><div align="right"><img src="$stylevar[imgdir_misc2]/header_right.jpg" alt="" width="283" height="134"></div></td>
</tr>
</table>';
so now i have banner 1 in [imgdir_misc] and banner 2 is found in [imgdir_misc2]
sorry but caddy is a coding newbie, and this is a live board.
Peggy 02-28-2007, 01:12 PM I truly am not understanding what you are after Chase, I'm sorry.
Xhris 02-28-2007, 01:20 PM Caddy are you just wanting the header image to change with every page load? So they see a new header image?
Caddyman 02-28-2007, 01:21 PM yeah but its a fluid image, made of 3 parts, but yes, thats what i want Mac :)
Peggy 02-28-2007, 01:27 PM oooooooooohhhhh, I get it now.
can you even do that with a fluid header?
Joeychgo 02-28-2007, 01:58 PM It becomes alot harder when you want to change the entire header image.
If you just want to change 1 side of the header, then its easy with the hack.
Xhris 02-28-2007, 02:05 PM As Joey said it will be hard. What will end up happening is that each image will be different on each page reload. So the header won't match up. If I get some time I will mess around and see if I can come up with something but it might not be this week.
Joeychgo 02-28-2007, 02:09 PM Could always have 1 image fixed - that blends into the background --
Caddyman 02-28-2007, 02:12 PM i could, but i want like a beach scene, and a winter scene and a river scene etc etc.....ill mess with it.
thanks guys.
Xhris 02-28-2007, 02:19 PM You could do like your banner is in your sig and have just the right side picture rotate. Keep the left side the same design. Just a thought.
Caddyman 02-28-2007, 02:21 PM good ideas guys, thanks, now to tinker!
Peggy 02-28-2007, 02:30 PM You could do like your banner is in your sig and have just the right side picture rotate. Keep the left side the same design. Just a thought.
now there's a good idea...
|
|