View Full Version : Rotational Banner in Header
HMBeaty
21 Oct 2005, 03:16
Well, I KNOW alot of you are looking for this as I was so here it is......
Also, found this on vBulletin.com, so ALL credit goes to "express" for this one. :) (I just modified it a little)
Go to AdminCP > Styles and Templates> Style Manager > YOUR TEMPLATE > header
In that, find.....
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Under that, add.....
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Save and you're done
HMBeaty
21 Oct 2005, 03:19
Sorry, this is probably supposed to go in template modifications if someone can move it please.
:Judge:
21 Oct 2005, 03:56
Very nice, thank you much!
HMBeaty
21 Oct 2005, 03:58
You are very welcome. You can't imagine how happy I was when I found this after searching for something like this for 6 weeks
mholtum
21 Oct 2005, 04:16
hmm. A simple image rotator? And?????
:Judge:
21 Oct 2005, 04:54
hmm. A simple image rotator? And?????
Makes it a little easier to find for people such as myself without the time to search all over the place looking for something.
Nice, thanks and installed! :)
TygerTyger
21 Oct 2005, 15:09
I don't mean to rain on anyone's parade :( but this image rotator requries javascript to be enabled in the user's browser. The hack below does exactly the same thing but does not.
http://www.vbulletin.org/forum/showthread.php?t=94433
I like the stylistic idea though, I did exactly the same thing on my own forum and removed the bbtitle to make way for the banner. Looks very cool :D
Nuckolsc.com
21 Oct 2005, 15:45
Thanks man... Ive been looking for a simple banner mod for my sponsors. Installed
Jenkins
21 Oct 2005, 22:28
I don't mean to rain on anyone's parade :( but this image rotator requries javascript to be enabled in the user's browser. The hack below does exactly the same thing but does not.
http://www.vbulletin.org/forum/showthread.php?t=94433
I like the stylistic idea though, I did exactly the same thing on my own forum and removed the bbtitle to make way for the banner. Looks very cool :D
This one allows you to make the Picture a link. I don't see where the one you pointed out does that.
buffness
23 Oct 2005, 03:51
This is not working for me for some reason. Nothing shows up. Where exactly do you edit the url and the image path at?
HMBeaty
23 Oct 2005, 04:51
This is not working for me for some reason. Nothing shows up. Where exactly do you edit the url and the image path at?
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Replace redirect url with URL you want the banner to go to when you click it and Banner image with the URL of your banner. Make sure you leave the quotation marks there though, just replacing the REDIRECT URL and BANNER IMAGE.
buffness
23 Oct 2005, 14:25
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Replace redirect url with URL you want the banner to go to when you click it and Banner image with the URL of your banner. Make sure you leave the quotation marks there though, just replacing the REDIRECT URL and BANNER IMAGE.
thanks, did that but nothing shows up on the page. Any ideas what I maybe missing?
Jenkins
25 Oct 2005, 20:27
how can I make the banner "center"?
i tried adding a <td align="center"> script </td>
but nothing happened..
how can I make the banner "center"?
i tried adding a <td align="center"> script </td>
but nothing happened..
Try putting <center> before the <script......
That should do it.
Excellent script here - just what i was looking for :D
Jenkins
26 Oct 2005, 02:27
Try putting <center> before the <script......
That should do it.
Excellent script here - just what i was looking for :D
yep that worked.. thanks for the info.. how about a page break?
Benderson
29 Oct 2005, 02:59
as a newcomer to Vbulletin, this thread just made my life sooooo much easier. Many Thanx
GamerJunk.net
29 Oct 2005, 03:16
I have a different style than the original and the header looks like this...
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Where would I put the hack?
HMBeaty
30 Oct 2005, 16:53
Try putting it after this.....
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
yinyang
31 Oct 2005, 19:01
is it possible to put the adsense code in here and rotate that with traditional banners?
yinyang
04 Nov 2005, 00:39
is it possible to put the adsense code in here and rotate that with traditional banners?
bueller? bueller?
HMBeaty
04 Nov 2005, 00:43
I have no idea. I've never used or messed with adsense myself
fonzie11
10 Jan 2006, 21:38
i need help
on the main page, when i put my mouse cursor over the banner it says
www.pbontario.com/forums/www.519paintball.com
i want it 2 just say
www.519paintball.com
this is the code i got in my board style thing
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<SCRIPT LANGUAGE="Javascript"><!--
// ***********************************************
// AUTHOR: <a href="http://WWW.CGISCRIPT.NET," target="_blank">WWW.CGISCRIPT.NET,</a> LLC
// URL: <a href="http://www.cgiscript.net" target="_blank">http://www.cgiscript.net</a>
// Use the script, just leave this message intact.
// Download your FREE CGI/Perl Scripts today!
// ( <a href="http://www.cgiscript.net/scripts.htm" target="_blank">http://www.cgiscript.net/scripts.htm</a> )
// ***********************************************
function banner() {
};
banner = new banner();
number = 0;
// bannerArray
banner[number++] = "<a href='www.519paintball.com' target='_blank'><img src='/forums/images/519BANNER.gif' border='1'></a>"
// keep adding items here...
increment = Math.floor(Math.random() * number);
document.write(banner[increment]);
//--></SCRIPT>
<td align="$stylevar[right]"></a></td>
<td align="$stylevar[right]">
</td>
</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output
ALSO
is there away i can get rid of the vbulletin logo at the top and make the bannners appear there?
fonzie11
11 Jan 2006, 20:10
sum 1 plz help?
fonzie11
11 Jan 2006, 20:17
heres an screenshot http://img492.imageshack.us/img492/1397/see2pb.png
fonzie11
12 Jan 2006, 15:47
sum 1?
vBulletin® v3.6.12, Copyright ©2000-2013, Jelsoft Enterprises Ltd.