vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Add a banner image to each forum (vb3.5) (https://vborg.vbsupport.ru/showthread.php?t=94119)

Zachariah 12-05-2005 12:21 AM

Quote:

Originally Posted by divided_by_fear
when do you think that will be out? would be nice to put a random banner... or have it set up where you have a banner and it can be added to each forums auto.... instead of manually doing it... ok so if i uninstall this it should be fine?

If you uninstall it well remove all the banners you added.

Remove the template edit from FORUMDISPLAY / SHOWTHREAD for now. I'll make the update to use your old banner data.

divided_by_fear 12-05-2005 12:33 AM

ok sweet lol yeah thats what i did just removed the template edits... thanks

bigmonay2k 12-05-2005 02:00 AM

Quote:

Originally Posted by Zachariah
Here is a simple JAVA random banner code you can paste in the HTML area of any forum.

EX:
This will show @ random.

image1.jpg @ http://www.yoursite1.com
image2.jpg @ http://www.yoursite2.com
image3.jpg @ http://www.yoursite3.com


Code:

<script language="javascript" type="text/javascript">
<!--
function banner() {
};

banner = new banner();
number = 0;

// bannerArray
banner[number++] = "<a href='http://www.yoursite1.com' target='_blank'><img src='/banners/image1.jpg' alt='' border='0' /></a>"
banner[number++] = "<a href='http://www.yoursite2.com' target='_blank'><img src='/banners/image2.jpg' alt='' border='0' /></a>"
banner[number++] = "<a href='http://www.yoursite3.com' target='_blank'><img src='/banners/image3.jpg' alt='' border='0' /></a>"
 
// keep adding items above here...

increment = Math.floor(Math.random() * number);
document.write(banner[increment]);

//-->
</script>

Useage: If you need more banners edit / add another row.
Code:

banner[number++] = "<a href='http://www.yoursite1.com' target='_blank'><img src='/banners/image1.jpg' alt='' border='0' /></a>"
Link of Destination
Image location


will this work on forumdisplay.php by just edit the template

Zachariah 12-05-2005 02:50 AM

Quote:

Originally Posted by bigmonay2k
will this work on forumdisplay.php by just edit the template

Yes. - FOURMDISPLAY
But, it will show up on all forums. You will not have a choice of a different set of banners per forum.

You can place that in any Template. $header, $footer, ect ..

Bubble #5 12-05-2005 03:02 AM

Quote:

Originally Posted by divided_by_fear
would be nice to put a random banner...

There is javascript posted in this thread which does this :)

divided_by_fear 12-05-2005 04:40 AM

yeah but like my post said would be nice to have it included... with a on, off for it...

Zachariah 12-05-2005 12:47 PM

Quote:

Originally Posted by divided_by_fear
yeah but like my post said would be nice to have it included... with a on, off for it...

you never know :rambo:

craiovaforum 12-06-2005 10:19 AM

Quote:

Originally Posted by Zachariah
you never know :rambo:

btw (I look but I can't find it :( )
any news about this: https://vborg.vbsupport.ru/showpost....&postcount=114

Zachariah 12-06-2005 12:05 PM

Quote:

Originally Posted by craiovaforum
btw (I look but I can't find it :( )
any news about this: https://vborg.vbsupport.ru/showpost....&postcount=114

What your looking for is not made yet (the random banner idea).
Ill take a look @ bubbles Idea too :D.

@ the moment I am redoing the Gallery Home / CMPS and Shoutcast some more. I'll get to it :D.

craiovaforum 12-06-2005 12:50 PM

Quote:

Originally Posted by Zachariah
What your looking for is not made yet (the random banner idea).
Ill take a look @ bubbles Idea too :D.

@ the moment I am redoing the Gallery Home / CMPS and Shoutcast some more. I'll get to it :D.

I was only reffering to bubble's idea about the logo and since it's only a little modification of this hack I think that you can do it... Anyway it's up to you :D
But please let us know in this thread too when (and if) it will be released


All times are GMT. The time now is 05:05 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.01413 seconds
  • Memory Usage 1,745KB
  • 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
  • (2)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete