View Single Post
  #4  
Old 01-09-2004, 02:30 PM
digital vettes digital vettes is offline
 
Join Date: Jan 2003
Location: Tippy top of Illinois
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I gave up on everything else.

This might help you. My friend who has a vb site sent me this code for my vb header, that's the only file that gets changed. (you can put it in your footer as well). Works like a charm, it's so simple it's awesome. Been using it for 3 weeks now without any issues. I add banners all the time.

Cons: You make all the banner changes in your vb header. There is no way to track click outs.... nothing fancy here.

Pros: Damn fast! Banners rotate great. Simple, simple, simple to get running. Should take you less than 5 minutes.

See it in action at www.digitalcorvettes.com .

Patrick

Code:
<tr>
  <td>
    <tr>
      <td>
        <table width="470" border="0" cellspacing="0" cellpadding="0" align="center" height="62">
          <tr> 
            <td bgcolor="#3B77FF" width="470" height="62"> 
              <div align="center"> 
                <table width="100%" border="0" cellspacing="1" cellpadding="0">
                  <tr> 
                    <td width="468" height="60" bgcolor="#01257B"> 
                      <!-- ...................... BANNER ROTATOR VERSION........................ -->
                      <center>
                        <script language="Javascript"><!--

function banner() {
};

banner = new banner();
number = 0;

// bannerArray
banner[number++] = "<a href='http://www.flp2win.com' target='_blank'><img src='http://www.digitalcorvettes.com/images/banners/advertisers/finish_line_performance2.gif' border='0'></a>"
banner[number++] = "<a href='http://www.thelapd.com' target='_blank'><img src='http://www.digitalcorvettes.com/images/banners/advertisers/lapd2.gif' border='0'></a>"
banner[number++] = "<a href='http://www.c60vette.com/dc.htm' target='_blank'><img src='http://www.digitalcorvettes.com/images/banners/advertisers/C60_banner5.gif' border='0'></a>"
banner[number++] = "<a href='http://www.vettefinders.com/index.cfm?fuseaction=CarIndex&Source=DigitalCorvettes&SourceID=9' target='_blank'><img src='http://www.digitalcorvettes.com/images/banners/advertisers/vettefinders.gif' border='0'></a>"
banner[number++] = "<a href='http://www.westcoastcorvette.com' target='_blank'><img src='http://www.digitalcorvettes.com/images/banners/advertisers/wcc.gif' border='0'></a>"

increment = Math.floor(Math.random() * number);

document.write(banner[increment]);

//--></script>
                      </center>
                    </td>
                  </tr>
                </table>
              </div>
            </td>
          </tr>
        </table>
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01195 seconds
  • Memory Usage 1,772KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete