vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Style and Graphics Requests (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=226)
-   -   Making part of hearder to appear only on Forum Home? (https://vborg.vbsupport.ru/showthread.php?t=223390)

Baldilocks 09-17-2009 02:30 AM

Making part of hearder to appear only on Forum Home?
 
One skin I have here: www.euphoricarythmia.com displays the left side column on all pages. I was wondering if there was a code I could use to make it only appear on the forum home page. The code for this side column is in the HEADER template.

Here is the template.

PHP Code:

<div align="center">


<
table width="95%" border="0" cellspacing="0" cellpadding="0">
  <
tr>
    <
td style="width: 3px; background-image:url($stylevar[imgdir_misc]/border_left_top.gif); background-repeat:no-repeat; background-position:top; background-color:#b7b3a2;"></td>
    <
td valign="top" background="$stylevar[imgdir_misc]/sidebar_leftshadow.gif" style="width: 20px;"><table width="20" border="0" cellspacing="0" cellpadding="0">
      <
tr>
        <
td style="width: 20px; height: 99px; background-image:url($stylevar[imgdir_misc]/header_left_top.gif); background-repeat:no-repeat;"></td>
      </
tr>
      <
tr>
        <
td style="width: 20px; height: 40px; background-image:url($stylevar[imgdir_misc]/links_left.gif); background-repeat:no-repeat;"></td>
      </
tr>
    </
table></td>
    <
td style="width: 200px; background-color: #ece8db;" valign="top">
    <
table width="100%" border="0" cellspacing="0" cellpadding="0">
      <
tr>
        <
td style="width: 200px; height: 99px; background-image:url($stylevar[imgdir_misc]/sidebar_top.gif); background-repeat:no-repeat;"></td>
        </
tr>
      
    </
table>
      <
table width="100%" border="0" cellspacing="0" cellpadding="0">
        <
tr>
          <
td class="headlinks" style="width: 200px; height: 39px; border-bottom: 2px solid #d4d0c5; background-image:url($stylevar[imgdir_misc]/sidebar_bar.gif); background-repeat:no-repeat;"><div align="center"><span style="font: 14px arial; font-weight: bold;">Est2008</span></div></td>
        </
tr>







      </
table>


      <
table width="100%" border="0" cellspacing="0" cellpadding="0">
        <
tr>
          <
td bgcolor="#ece8db"><table width="100%" border="0" cellspacing="5" cellpadding="0">
            <
tr>
              <
td class="smallfont"><p><strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
            <
phrase 1="$pmbox[lastvisitdate]2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
            

</
p></td>




            </
tr>
          </
table>



      <
table width="100%" border="0" cellspacing="0" cellpadding="0">
        <
tr>
          <
td class="headlinks" style="width: 200px; height: 39px; border-bottom: 2px solid #d4d0c5; background-image:url($stylevar[imgdir_misc]/sidebar_bar.gif); background-repeat:no-repeat;"><div align="center"><span style="font: 14px tahoma; font-weight: bold;">Our Stats<span style="font: 14px arial; font-weight: bold;"> </div></td>
        </
tr>
      </
table>
      <
table width="100%" border="0" cellspacing="0" cellpadding="0">
        <
tr>
          <
td bgcolor="#ece8db"><table width="100%" border="0" cellspacing="5" cellpadding="0">
            <
tr>
              <
td class="smallfont"><p><strong>Members:</strong><br>  $numbermembers<br>
                <
strong>Threads:</strong><br$totalthreads <br>
                <
strong>Posts:</strong><br$totalposts <br>
                <
strong>Online:</strong><br$totalonline</p>
                <
p><strong>Newest:</strong><br> <a href="$vboptions[bburl]/member.php?u=$newuserid"
        
$newusername</a></p></td>
            </
tr>

<
td><div align="center"><font color="#000000" face="Tahoma">$vbphrase[all_times_are_gmt_x_time_now_is_y]&nbsp;&nbsp;</font></div></td>


          </
table>
       <
table width="100%" border="0" cellspacing="0" cellpadding="0">
        <
tr>
          


        </
tr>

      </
table>
      <
table width="100%" border="0" cellspacing="0" cellpadding="0">
        <
tr>
          <
td bgcolor="#ece8db"><table width="100%" border="0" cellspacing="5" cellpadding="0">
            <
tr>

            </
tr>
          </
table>



<
br>









          



<
table width="100%" border="0" cellspacing="0" cellpadding="0">
        <
tr>
          <
td class="headlinks" style="width: 200px; height: 39px; border-bottom: 2px solid #d4d0c5; background-image:url($stylevar[imgdir_misc]/sidebar_bar.gif); background-repeat:no-repeat;"><div align="center"><span style="font: 14px arial; font-weight: bold;">Latest Posts</span></div></td>
        </
tr>

      </
table><br>

<!-- 
lastthreads -->
<
table cellspacing="0" cellpadding="0" border="0" width="100%">
        <
tr>
            
        </
tr>
        <
tr>
        <
td style="padding-top:1mm;">$last_threads</td>
        </
tr>
                        <
tr
                                  
                              </
tr>
        
</
table>
<!-- /
lasthreads -->
<
br>

<
table width="100%" border="0" cellspacing="0" cellpadding="0">
        <
tr>
          <
td class="headlinks" style="width: 200px; height: 39px; border-bottom: 2px solid #d4d0c5; background-image:url($stylevar[imgdir_misc]/sidebar_bar.gif); background-repeat:no-repeat;"><div align="center"><span style="font: 14px arial; font-weight: bold;">Tag Cloud</span></div></td>
        </
tr>

      </
table><br>



$tag_cloud
    






<br>





<
table width="100%" border="0" cellspacing="0" cellpadding="0">
        <
tr><br>
          <
td class="headlinks" style="width: 200px; height: 39px; border-bottom: 2px solid #d4d0c5; background-image:url($stylevar[imgdir_misc]/sidebar_bar.gif); background-repeat:no-repeat;"><div align="center"><span style="font: 14px arial; font-weight: bold;">Partner Sites</span></div></td>
        </
tr>
      </
table>
      <
table width="100%" border="0" cellspacing="0" cellpadding="0">
        <
tr>
          <
td bgcolor="#ece8db"><table width="100%" border="0" cellspacing="5" cellpadding="0">
            <
tr>
              <
td class="smallfont"><p><a href="http://www.themediadesk.com">
<
strong>The Media Desk</strong>
</
a>

            </
tr>
          </
table>
           
<
tr>
          <
td bgcolor="#ece8db"><table width="100%" border="0" cellspacing="5" cellpadding="0">
<
tr>
              <
td class="smallfont"><p><a href="http://www.m-and-m-investigators.com"><strong>M&M Investigations</strong>
</
a>
 
            </
tr>
          </
table>


<
table width="100%" border="0" cellspacing="0" cellpadding="0">
              <
tr>

</
tr>

            </
table>
<
table width="100%" border="0" cellspacing="0" cellpadding="0">
        <
tr>
          <
td class="headlinks" style="width: 200px; height: 39px; border-bottom: 2px solid #d4d0c5; background-image:url($stylevar[imgdir_misc]/sidebar_bar.gif); background-repeat:no-repeat;"><div align="center"><span style="font: 14px arial; font-weight: bold;"></span></div></td>
        </
tr>
      </
table><br>























<
table width="100%" border="0" cellspacing="7" cellpadding="0">
              <
tr>
                <
td><p align="center"></p>
                </
td>
              </
tr>
            </
table>
                 <
table width="100%" border="0" cellspacing="0" cellpadding="0">
              <
tr>
                <
td class="headlinks" style="width: 200px; height: 39px; border-bottom: 2px solid #d4d0c5; background-image:url($stylevar[imgdir_misc]/); background-repeat:no-repeat;"><div align="center"></div></td>
              </
tr>








            </
table>
                <
table width="100%" border="0" cellspacing="5" cellpadding="0">
             <
br /><tr>
                <
div align="center"></div>
              </
tr>
            </
table></td>
         </
tr>
      </
table></td>
    </
tr>
      </
table></td>
  </
tr>
      </
table></td>






</
tr>
      </
table></td>
    <
td style="background-image:url($stylevar[imgdir_misc]/sidebar_shadowrigh.gif); background-repeat:repeat-y; background-position:left;" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <
tr>
        <
td><div align="left"><a href="index.php"><img src="$stylevar[imgdir_misc]/header_mid_logo.gif" alt="" width="256" height="67" border="0" /></a></div></td>
      </
tr>
      
    </
table>
      <
table width="100%" border="0" cellspacing="0" cellpadding="0">
        <
tr>
          <
td background="$stylevar[imgdir_misc]/header_mid_bot_bg.gif"><div align="left"><img src="$stylevar[imgdir_misc]/header_mid_bot_left.gif" alt="" width="26" height="32"></div></td>
          <
td width="26"><img src="$stylevar[imgdir_misc]/header_mid_bot_right.gif" alt="" width="26" height="32" border="0" /></td>
        </
tr>
      </
table>
      <
table width="100%" border="0" cellspacing="0" cellpadding="0">
        <
tr>
          <
td width="13"><img src="$stylevar[imgdir_misc]/links_midleft.gif" alt="" width="13" height="40"></td>
          <
td class="headlinks" background="$stylevar[imgdir_misc]/links_bg.gif"><div align="center">
<
a href=""></a>&nbsp; &nbsp;&nbsp;<a href="index.php"></a> &nbsp;&nbsp; &nbsp;<a href="register.php"></a></div></td>
        </
tr>
      </
table>
      <
table width="100%" border="0" cellspacing="0" cellpadding="0">
        <
tr>
          <
td>





<
table width="100%" border="0" cellspacing="0" cellpadding="0">

  <
tr>
    <
td width="13" background="$stylevar[imgdir_misc]/sidebar_shadowrigh.gif"><img src="$stylevar[imgdir_misc]/sidebar_shadowrigh.gif" width="13" height="2"></td>
    <
td>




<!-- 
content table -->
$spacer_open

$_phpinclude_output








</div


mmoore5553 09-20-2009 11:04 PM

I can not see all your code correctly but you could just put a

<if condition="THIS_SCRIPT == 'index'">

sidebar info and table


</if>


i would have to see forum in question to see the code but that is all you have to do. This would be in navbar template ..sometimes header


All times are GMT. The time now is 03:15 AM.

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.01128 seconds
  • Memory Usage 1,856KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete