View Full Version : Miscellaneous Hacks - Rotating Banners in your Navbar
HMBeaty
05-09-2009, 10:00 PM
A quick and easy mod that will add an area for rotating your advertisers banners
Support will only be given to those who have clicked INSTALL :).
ArnyVee
05-10-2009, 09:50 PM
Do you happen to have a demo?
HMBeaty
05-10-2009, 10:14 PM
Screenshot added
Shankoty
06-30-2009, 06:16 AM
how can i change the background for the TD
Maxman1544
07-07-2009, 01:54 AM
This works well, thanks!
jkcerda
07-10-2009, 12:31 AM
will give it a try
Brandon Sheley
07-10-2009, 01:40 AM
right on Redline, I may add this one to my site :)
does it only show on the forumhome page? The reason I ask is because I have RR's (relevant replacements) on the forumdisplay and show thread page, so there wouldn't be room for the banner
Tilly
07-10-2009, 01:46 AM
Live Demo @ http://www.sportbikex.com/
Thanks!
Kottonmouth801
07-22-2009, 01:34 PM
Love It :) ....! :up:
This is an awesome "little" mod.
""" I am impressed""
Kottonmouth801 Marks Installed :up: :up: :up: :up:
Raptor
07-27-2009, 02:43 AM
can you add flash banners with this ?
Markos
08-03-2009, 11:17 PM
this is cool thanks is there anyway to change the background of it to match my style colour
HMBeaty
08-03-2009, 11:27 PM
If you mean changing the alt, just find:
<td class="alt2">
<SCRIPT LANGUAGE="Javascript"><!--
function banner() {
And replace with
<td class="alt1">
<SCRIPT LANGUAGE="Javascript"><!--
function banner() {
Markos
08-04-2009, 12:05 AM
If you mean changing the alt, just find:
<td class="alt2">
<SCRIPT LANGUAGE="Javascript"><!--
function banner() {
And replace with
<td class="alt1">
<SCRIPT LANGUAGE="Javascript"><!--
function banner() {
nice one thanks that did the trick
jkcerda
08-16-2009, 02:39 AM
need noob help,,,where do I upload the banners to?
I dont see an XML file, just change the navbar template then?
guessing the template needs to be modified with each banner added?:confused:
HMBeaty
08-16-2009, 02:45 AM
need noob help,,,where do I upload the banners to?
I dont see an XML file, just change the navbar template then?
Where ever you want to upload them to and just add the link for where you uploaded the banner to your code
guessing the template needs to be modified with each banner added?:confused:
Yes
gersforum@gmail
09-05-2009, 02:40 PM
can you add flash banners with this ?
Not with this one either :(:(:(
Is there any others like this available where you can add flash banners to? This is ideal too!
bigdjam
10-13-2009, 07:46 PM
thanks!
Gav-n-Tn
10-26-2009, 07:03 AM
need noob help,,,where do I upload the banners to?
I dont see an XML file, just change the navbar template then?
guessing the template needs to be modified with each banner added?:confused:
Someone explain that to a newbie in layman's terms :)
cybergas
10-27-2009, 01:38 AM
Installed this mod, thanks a lot!!!!
I had to play a little with Code since I need it to be xhtml complaint, I finally came up with some little modifications that makes the code validated trough the validator.w3.org (once installed on the forum it throw couple of minimal errors but worked OK)
<!-- Banner Rotator -->
<td class="alt1"><script language="Javascript" type="text/javascript">
//<![CDATA[
<!--
function banner() {
};
banner = new banner();
number = 0;
// bannerArray
banner[number++] = "<a href='REDIRECT_URL' target='_blank'><img src='BANNER_URL' border='1'><\/a>"
banner[number++] = "<a href='REDIRECT_URL' target='_blank'><img src='BANNER_URL' border='1'><\/a>"
banner[number++] = "<a href='REDIRECT_URL' target='_blank'><img src='BANNER_URL' border='1'><\/a>"
banner[number++] = "<a href='REDIRECT_URL' target='_blank'><img src='BANNER_URL' border='1'><\/a>"
increment = Math.floor(Math.random() * number);
document.write(banner[increment]);
//-->
//]]>
</script></td>
<!-- End Banner Rotator -->
:)
Skydiver10
11-02-2009, 11:54 PM
Hey..great mod...love it...and thank you!!! :up::up::up::up::up: .....:)
Live demo: http://www.skydive-info.com/skydiving
motorola
11-07-2009, 09:28 AM
Instaled.Great mod. Thanks
vwcaddy
11-26-2009, 09:22 PM
Installed, many thanks :cool:
Live demo here (http://www.vwcaddy.com)
championcycle
11-29-2009, 09:48 PM
Nvm i got it. the problem was in thestyle manager i had the txt backround set to white, had to change it to transperant.
cheers mate great hack.
SpeedyHire
09-13-2010, 05:19 PM
Hi All,
I am a noob with all this stuff, and have run into a small problem.
i followed this direction
In your navbar template, find:
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
</if>
</td>
Below that, add
[QUOTE]
// bannerArray
banner[number++] = "<a href='http://www.xxxxxxxc' target='_blank'><img src='http://www.xxxxx.com/xxx/images/foldernew/misc/image_size_forum.jpg' border='1'></a>"
banner[number++] = "<a href='REDIRECT_URL' target='_blank'><img src='BANNER_URL' border='1'></a>"
banner[number++] = "<a href='REDIRECT_URL' target='_blank'><img src='BANNER_URL' border='1'></a>"
banner[number++] = "<a href='REDIRECT_URL' target='_blank'><img src='BANNER_URL' border='1'></a>"
I seem to end up with this error see attachment.
Could anyone please help a noob out.
Regards
Speedy
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.