vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - Add a banner image to each forum (vb3.6) (https://vborg.vbsupport.ru/showthread.php?t=132716)

hoatran 06-16-2010 03:25 PM

Thanks for your Add, however it is now does not work with V4.0.X . It even causing problems while we click in to any category...

Zachariah 06-17-2010 12:25 AM

Quote:

Originally Posted by hoatran (Post 2054554)
Thanks for your Add, however it is now does not work with V4.0.X . It even causing problems while we click in to any category...

Updated to VB4.x
https://vborg.vbsupport.ru/showthread.php?t=243176

RedBaron9112 10-17-2010 11:58 PM

OK, I know this is a really stupid question, but...

A few years ago I set up random banners on a forum, top and bottom of all pages. Here it is:

http://www.horseshoes.com/forums

There are 15 banners in that rotation.

For the life of me I can't recall where I got that plug-in, and in searching, discovered yours.

(I've read every post in this thread!)

Regarding random banners, you posted this 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>

When you posted this code, you said it could be pasted in the HTML area of any forum template page. Ummmm.... what does that mean? How do I know where the HTML area is? (Lord, I feel stupid.....)

Where would I put this code to achieve the same top and bottom placement I have in the forums referenced above? (I'm using version 3.6)

To demonstrtae I'm not a total idiot, here's what the current banner plug-in looks like in the Control Panel:

Thank you.

RedBaron9112 10-18-2010 02:02 AM

It's been so long since I did that original banner placement...

OK, I finally figured out how to access the Header template (which shows you how unfamiliar I am with doing this type of stuff), and below is a screen shot of what I did. You'll see that the line:

<if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else />$random_banner[$random_number]</if>

has the $random_banner[$random_number] code in it, so I guess that's where I inserted it, and it calls on the PHP code in the parse_templates, shown in the previous post.

So... where do I put the random banner code you posted, in this header code? Would you please advise as to the exact location? It will be appreciated.

Thanks again.


All times are GMT. The time now is 06:04 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.01107 seconds
  • Memory Usage 1,727KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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