vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Rotational Banner in Header (https://vborg.vbsupport.ru/showthread.php?t=98913)

buffness 10-23-2005 02:51 AM

This is not working for me for some reason. Nothing shows up. Where exactly do you edit the url and the image path at?

HMBeaty 10-23-2005 03:51 AM

Quote:

Originally Posted by buffness
This is not working for me for some reason. Nothing shows up. Where exactly do you edit the url and the image path at?

PHP Code:

banner[number++] = "<a href='REDIRECT URL' target='_blank'><img src='BANNER IMAGE' border='1'></a>" 

Replace redirect url with URL you want the banner to go to when you click it and Banner image with the URL of your banner. Make sure you leave the quotation marks there though, just replacing the REDIRECT URL and BANNER IMAGE.

buffness 10-23-2005 01:25 PM

Quote:

Originally Posted by NRR
PHP Code:

banner[number++] = "<a href='REDIRECT URL' target='_blank'><img src='BANNER IMAGE' border='1'></a>" 

Replace redirect url with URL you want the banner to go to when you click it and Banner image with the URL of your banner. Make sure you leave the quotation marks there though, just replacing the REDIRECT URL and BANNER IMAGE.

thanks, did that but nothing shows up on the page. Any ideas what I maybe missing?

Jenkins 10-25-2005 07:27 PM

how can I make the banner "center"?

i tried adding a <td align="center"> script </td>

but nothing happened..

DjTaz 10-25-2005 08:46 PM

Quote:

Originally Posted by Jenkins
how can I make the banner "center"?

i tried adding a <td align="center"> script </td>

but nothing happened..


Try putting <center> before the <script......
That should do it.

Excellent script here - just what i was looking for :D

Jenkins 10-26-2005 01:27 AM

Quote:

Originally Posted by DjTaz
Try putting <center> before the <script......
That should do it.

Excellent script here - just what i was looking for :D


yep that worked.. thanks for the info.. how about a page break?

Benderson 10-29-2005 01:59 AM

as a newcomer to Vbulletin, this thread just made my life sooooo much easier. Many Thanx

GamerJunk.net 10-29-2005 02:16 AM

I have a different style than the original and the header looks like this...

Code:

<!-- begin disturbed header-->
<div align="center">
<table width="100%" border="0" cellpadding="0" cellspacing="0"  class="border">
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
        <!-- This is where the top logo image goes -->
                <td width="355" height="89" align="left" valign="top"><img src="$stylevar[imgdir_misc]/dis_hdr_logo.jpg" width="355" height="89" alt="" /></td>
        <!-- End top logo area -->
                <td width="386" height="89" align="left" valign="top"><img src="$stylevar[imgdir_misc]/dis_hdr_sliced_rs-top.jpg" width="386" height="89" alt="" /></td>
                <td width="100%" height="89" align="right" valign="top" style="background-image: url($stylevar[imgdir_misc]/dis_hdr_rs.gif)"><img src="$stylevar[imgdir_misc]/dis_hdr_rs.gif" width="100%" height="89" alt="" /></td>
        </tr>
        </table>
<table bgcolor="#111210" width="100%"  border="0" cellpadding="0" cellspacing="0">
        <tr>
        <!-- This is navigation/button area -->
                <td width="13" height="40" align="left" valign="top"><img src="$stylevar[imgdir_misc]/dis_hdr_nav_repeat.gif" width="13" height="40" border="0" alt="" /></td>
                <td width="106" height="40" align="left" valign="top"><a href="$vboptions[forumhome].php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/dis_hdr_nav_home.gif" width="106" height="40"  border="0" alt="" /></a></td>
                <td width="106" height="40" align="left" valign="top"><a href="usercp.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/dis_hdr_nav_userCP.gif" width="106" height="40" border="0" alt="" /></a></td>
                <if condition="$show['registerbutton']">
                <td width="106" height="40" align="left" valign="top"><a href="register.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/dis_hdr_nav_register.gif" width="106" height="40" border="0" alt="" /></a></td>
                <else />
                <td width="106" height="40" align="left" valign="top"  id="usercptools"><a href="#usercptools"><img src="$stylevar[imgdir_misc]/dis_hdr_nav_menu.gif" width="106" height="40" border="0" alt="" /></a><script type="text/javascript"> vbmenu_register("usercptools" ,1); </script></td>
                </if>
                <td width="106" height="40" align="left" valign="top"><a href="memberlist.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/dis_hdr_nav_members.gif" width="106" height="40" border="0" alt="" /></a></td>
                <td width="106" height="40" align="left" valign="top"><a href="calendar.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/dis_hdr_nav_calendar.gif" width="106" height="40" border="0" alt="" /></a></td>
                <td width="106" height="40" align="left" valign="top" id="navbar_search"><a href="search.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/dis_hdr_nav_search.gif" width="106" height="40" border="0" alt="" /></a><script type="text/javascript"> vbmenu_register("navbar_search" ,1); </script></td>
                <td width="108" height="40" align="left" valign="top"><a href="faq.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/dis_hdr_nav_faq.gif" width="108" height="40" border="0" alt="" /></a></td>
                <td width="100%" height="40" align="left" valign="top" style="background-image: url($stylevar[imgdir_misc]/dis_hdr_nav_rs_x.gif)"><img src="$stylevar[imgdir_misc]/dis_hdr_nav_rs_x.gif" width="100%" height="40" border="0" alt="" /></td>
                <!--End navigation/button area -->
        </tr>
        </table>
                          <table bgcolor="#111210" width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
                <td width="2" height="56" align="left" valign="top"><img src="$stylevar[imgdir_misc]/dis_hdr_bottom_bg.gif" width="2" height="56" alt="" /></td>
                <td width="765" height="56" align="left" valign="top"><img src="$stylevar[imgdir_misc]/dis_hdr_bottom_main.gif" width="765" height="56" alt="" /></td>
                <td width="100%" height="56" align="left" valign="top" style="background-image: url($stylevar[imgdir_misc]/dis_hdr_bottom_rs.gif)"><img src="$stylevar[imgdir_misc]/dis_hdr_bottom_rs.gif" width="3" height="56" alt="" /></td>
        </tr>
</table>
<!-- end disturbed header-->

<!-- begin main inner table area-->
<table border="0" width="100%" cellpadding="10" cellspacing="0" bgcolor="#34353B">
<tr><td>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#34353B">
  <tr>
    <td width="12" align="left" valign="top"><img src="$stylevar[imgdir_misc]/ls_main_table_top.gif" width="12" height="8" alt="" /></td>
    <td width="100%" align="left" valign="top"><img src="$stylevar[imgdir_misc]/expand_main_table.gif" width="100%" height="8" alt="" /></td>
    <td width="12" align="left" valign="top"><img src="$stylevar[imgdir_misc]/rs_main_table_top.gif" width="12" height="8" alt="" /></td>
  </tr>
</table>
<!-- content table -->
<table bgcolor="#34353B" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
  <td>

$spacer_open

$_phpinclude_output

Where would I put the hack?

HMBeaty 10-30-2005 03:53 PM

Try putting it after this.....

PHP Code:

    <!-- End top logo area -->
        <
td width="386" height="89" align="left" valign="top"><img src="$stylevar[imgdir_misc]/dis_hdr_sliced_rs-top.jpg" width="386" height="89" alt="" /></td>
        <
td width="100%" height="89" align="right" valign="top" style="background-image: url($stylevar[imgdir_misc]/dis_hdr_rs.gif)"><img src="$stylevar[imgdir_misc]/dis_hdr_rs.gif" width="100%" height="89" alt="" /></td


yinyang 10-31-2005 06:01 PM

is it possible to put the adsense code in here and rotate that with traditional banners?


All times are GMT. The time now is 01: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.01072 seconds
  • Memory Usage 1,770KB
  • 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
  • (3)bbcode_php_printable
  • (4)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
  • (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