vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Rotating Banners in your Navbar (https://vborg.vbsupport.ru/showthread.php?t=213321)

HMBeaty 05-09-2009 10:00 PM

Rotating Banners in your Navbar
 
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:
HTML Code:

<td class="alt2">
<SCRIPT LANGUAGE="Javascript"><!--
function banner() {

And replace with
HTML Code:

<td class="alt1">
<SCRIPT LANGUAGE="Javascript"><!--
function banner() {


Markos 08-04-2009 12:05 AM

Quote:

Originally Posted by Redlinemotorsports (Post 1860947)
If you mean changing the alt, just find:
HTML Code:

<td class="alt2">
<SCRIPT LANGUAGE="Javascript"><!--
function banner() {

And replace with
HTML Code:

<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

Quote:

Originally Posted by jkcerda (Post 1868283)
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
Quote:

Originally Posted by jkcerda (Post 1868283)
guessing the template needs to be modified with each banner added?:confused:

Yes

gersforum@gmail 09-05-2009 02:40 PM

Quote:

Originally Posted by Raptor (Post 1856258)
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

Quote:

Originally Posted by jkcerda (Post 1868283)
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)

Code:

<!-- 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

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

[QUOTE]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


All times are GMT. The time now is 05:23 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01148 seconds
  • Memory Usage 1,765KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_html_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete