Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-11-2003, 02:48 AM
PAINTBALLM's Avatar
PAINTBALLM PAINTBALLM is offline
 
Join Date: Oct 2003
Location: Orlando, FL
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Wish you could have banners in your header/footer templates?

When I try to use a banner rotating program (a banner management) program it wont allow me to put the include in the header template where I have it saying "banner goes here" on http://www.paintballmessage.com. When I put the include there, its just blank, the banners never show up.

I am thinking this is beacuse vbulletin is already template driven, and putting an include, inside something thats already being included within the layout, may make a problem.

I have noticed many other people complain about this as well from time to time, so I have figured out a simple fix for this problem. Note: This is NOT the global.php fix, that simply adds a banner to the texttop or exactbottom of every page, this will allow you to place a banner rotation anywhere within your site.

I know maybe someone has thought of this before, but Ive had people question me about it, so I figured I'd make a post!

This requires the use of an Iframe, with a border of 0px and one html page with 1 table spanned 100% x 100% with 0 cell spacing, 0

First off you will need to find the area in your header and or footer templates via your ACP. Once you know where you want to insert the banners, the Iframe code with transparency is:

<iframe name="bannerframe" width="468" height="60" src="bannerrotate.html" frameborder="0" allowtransparency="true" STYLE="background-color: transparent"></iframe>

Second thing you will need to do is setup your banner rotating script, there are many to be found by searching for "banner system" on VB.org.
The script will give you a bit of code that looks something like this <? php include 'banner.php'; ?>, you will need to put this in the table in your html file "bannerrotate.html" or watever you have the iframe calling to.

The html file that I use is called bannerrotate.html, and the code on the html page should look like this:

<html>
<head>
<title>Banner Rotation Frame</title>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><? php include "banner.php(changetowhatyourscriptcallsfor)"; ?></td>
</tr>
</table>
</body>
</html>


Now, it is completed, you have a rotating banner anywhere on your forum that you please!!!! The iframe is also 100% transparent, so feel free to put it over a background like I did on my site, it wont show anything until the banner has loaded.

I might ad one more thing... Make sure you have the banners set to open in a BLANK window, that away it will not load inside the iframe. You can also have it load to "parent" to take them from the window they are in and still preventing it from loading in the iframe.

I hope this helps solve some of your problems with trying to discover why you cannot put a banner into rotation in your templates.

Before a closing, I would like to mention that there is a banner script, which I replace my iframe with if an advert wants to pay for a whole month or a pre-set date at either the head or foot of my site. So it may be smart to comment your addition <//--like this--//> in your templates when adding your iframe code so you can always remove it without difficulty.

Thanks everyone!!!
Justin
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:40 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.06876 seconds
  • Memory Usage 2,261KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (2)postbit
  • (2)postbit_onlinestatus
  • (2)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_threadedmode.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete