Go Back   vb.org Archive > Community Discussions > Style and Graphics Requests (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-17-2009, 02:30 AM
Baldilocks's Avatar
Baldilocks Baldilocks is offline
 
Join Date: Jan 2008
Location: Delaware, USA
Posts: 297
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 09-20-2009, 11:04 PM
mmoore5553 mmoore5553 is offline
 
Join Date: Aug 2008
Posts: 530
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


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 09:00 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.04013 seconds
  • Memory Usage 2,297KB
  • Queries Executed 11 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (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)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_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
  • 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