Advertisement:

Çıkış Yaptığım halde Menüler Duruyor

Aloittaja lordreco, toukokuu 13, 2009, 08:22:09 AP

« edellinen - seuraava »

lordreco

çıkış yaptığım halde temanın bütün butonları hala gözüküyor admin paneli felan olduğu gibi duruyor bunu nasıl hallederim?? Hangi Kodla Düzeltebilirim ve o kodu nereye yerleştiririz.



index t.

<?php
// Version: 1.1; index

/*   This template is, perhaps, the most important template in the theme. It
   contains the main template layer that displays the header and footer of
   the forum, namely with main_above and main_below. It also contains the
   menu sub template, which appropriately displays the menu; the init sub
   template, which is there to set the theme up; (init can be missing.) and
   the linktree sub template, which sorts out the link tree.

   The init sub template should load any data and set any hardcoded options.

   The main_above sub template is what is shown above the main content, and
   should contain anything that should be shown up there.

   The main_below sub template, conversely, is shown after the main content.
   It should probably contain the copyright statement and some other things.

   The linktree sub template should display the link tree, using the data
   in the $context['linktree'] variable.

   The menu sub template should display all the relevant buttons the user
   wants and or needs.

   For more information on the templating system, please see the site at:
   http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
   global 
$context$settings$options$txt;

   
/* Use images from default theme when using templates from the default theme?
      if this is 'always', images from the default theme will be used.
      if this is 'defaults', images from the default theme will only be used with default templates.
      if this is 'never' or isn't set at all, images from the default theme will not be used. */
   
$settings['use_default_images'] = 'never';

   
/* What document type definition is being used? (for font size and other issues.)
      'xhtml' for an XHTML 1.0 document type definition.
      'html' for an HTML 4.01 document type definition. */
   
$settings['doctype'] = 'xhtml';

   
/* The version this template/theme is for.
      This should probably be the version of SMF it was created for. */
   
$settings['theme_version'] = '1.1';

   
/* Set a setting that tells the theme that it can render the tabs. */
   
$settings['use_tabs'] = true;

   
/* Use plain buttons - as oppossed to text buttons? */
   
$settings['use_buttons'] = true;

   
/* Show sticky and lock status seperate from topic icons? */
   
$settings['seperate_sticky_lock'] = true;
}

// The main sub template above the content.
function template_main_above()
{
   global 
$context$settings$options$scripturl$txt$modSettings;

   
// Show right to left and the character set for ease of translating.
   
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
   <meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
   <meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
   <meta name="robots" content="noindex" />'
'
   <meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
   <script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>
   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
      var smf_theme_url = "'
$settings['theme_url'], '";
      var smf_images_url = "'
$settings['images_url'], '";
      var smf_scripturl = "'
$scripturl'";
      var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
      var smf_charset = "'
$context['character_set'], '";
   // ]]></script>
   <title>'
$context['page_title'], '</title>';
      
// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
   
echo '
   <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
      <link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';

   
/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
      Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
      Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
      Standards compliance mode happens when you use xhtml... */
   
if ($context['browser']['needs_size_fix'])
      echo 
'
   <link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

   
// Show all the relative links, such as help, search, contents, and the like.
   
echo '
   <link rel="help" href="'
$scripturl'?action=help" target="_blank" />
   <link rel="search" href="' 
$scripturl '?action=search" />
   <link rel="contents" href="'
$scripturl'" />';

   
// If RSS feeds are enabled, advertise the presence of one.
   
if (!empty($modSettings['xmlnews_enable']))
      echo 
'
   <link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

   
// If we're viewing a topic, these should be the previous and next topics, respectively.
   
if (!empty($context['current_topic']))
      echo 
'
   <link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
   <link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

   
// If we're in a board, or a topic for that matter, the index will be the board's index.
   
if (!empty($context['current_board']))
      echo 
'
   <link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

   
// We'll have to use the cookie to remember the header...
   
if ($context['user']['is_guest'])
      
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

   
// Output any remaining HTML headers. (from mods, maybe?)
   
echo $context['html_headers'], '

   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
      var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

      function shrinkHeader(mode)
      {'
;

   
// Guests don't have theme options!!
   
if ($context['user']['is_guest'])
      echo 
'
         document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
   else
      echo 
'
         smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

   echo 
'
         document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

         document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
         document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

         current_header = mode;
      }
   // ]]></script>'
;

   
// the routine for the info center upshrink
   
echo '
      <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
         var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

         function shrinkHeaderIC(mode)
         {'
;

   if (
$context['user']['is_guest'])
      echo 
'
            document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
   else
      echo 
'
            smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

   echo 
'
            document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

            document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

            current_header_ic = mode;
         }
      // ]]></script>

'
;

echo 
'


<script type="text/javascript"  src="'
$settings['theme_url'], '/menu.js"></script>
<script type="text/javascript"  src="'
$settings['theme_url'], '/global.js"></script>
</STYLE>'
;
echo
'

<SCRIPT type=text/javascript>

var IMGDIR_MISC = "'
$settings['images_url'], '";

</SCRIPT>'
;

echo
'
<SCRIPT type=text/javascript>
<!--
function log_out()
{
   ht = document.getElementsByTagName("html");
   ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
   if (confirm(' 
$txt[108] , '))
   {
      return true;
   }
   else
   {
      ht[0].style.filter = "";
      return false;
   }
}
//-->
</SCRIPT>
</head>
<body>

'
;

//Yararlı linkler menüsü by Turklord
echo'
   <div class="tborder"   id="usercptools_menu" style="display:none">
      <table  cellpadding="4" cellspacing="1" border="0">
      
      <tr><td class="yararli_link">Yararli Linkler</td></tr>      
      <tr><td style="border-top:1px solid #ffffff;" class="vbmenu_option"><a href="'
$scripturl'?action=unread">Bugünkü Mesajlar </a></td></tr>
      <tr><td style="border-top:1px solid #ffffff;" class="vbmenu_option"><a href="'
$scripturl'?action=unreadreplies">Mesajlarıma Yazılan Cevaplar </a></td></tr>
      <tr><td style="border-top:1px solid #ffffff;" class="vbmenu_option"><a href="'
$scripturl'?action=markasread;sa=all;sesc=' $context['session_id'] . '">Forumlari Okundu Kabul Et</a></td></tr>
      
      <tr><td class="yararli_link"><a href="'
$scripturl'?action=profile">Profiliniz</a></td></tr>
      <tr><td style="border-top:1px solid #ffffff;" class="vbmenu_option"><a href="' 
$scripturl '?action=profile;u=' $context['member']['id'] . ';sa=account">Üyelik ayarlariniz</a></td></tr>
      <tr><td style="border-top:1px solid #ffffff;"  class="vbmenu_option"><a href="' 
$scripturl '?action=profile;u=' $context['member']['id'] . ';sa=forumProfile">Kimlik bilginiz</a></td></tr>
      <tr><td style="border-top:1px solid #ffffff; border-bottom:1px solid #ffffff;"   class="vbmenu_option"><a href="' 
$scripturl '?action=profile;u=' $context['member']['id'] . ';sa=theme">Forum ayarlarınız</a></td></tr>
      
      <tr><td class="yararli_link">Çesitli</td></tr>
      <tr><td style="border-top:1px solid #ffffff;"  class="vbmenu_option"><a href="'
$scripturl'?action=pm">Özel Mesajlar</a></td></tr>
      <tr><td style="border-top:1px solid #ffffff;"  class="vbmenu_option"><a href="'
$scripturl'?action=stats">Daha Fazla İstatistik</a></td></tr>
      <tr><td style="border-top:1px solid #ffffff;border-bottom:1px solid #ffffff;"    class="vbmenu_option"><a href="' 
$scripturl '?action=who">Kimler Online</a></td></tr>
      
      
      </table>
   </div>   '
;
//Hızlı arama by Turklord
echo'
   <div class="tborder" id="navbar_search_menu" style="display:none">
   
      <table cellpadding="4" cellspacing="1" border="0">
      <tr>
         <td class="yararli_link">Hizli Arama</td>
      </tr>
      <tr>
         <td class="windowbg" title="">
<form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">

            <div class="middletext"><input type="text" name="search" value="" size="25" tabindex="1001"/>

            
         <input type="submit" class="button" value="Git" tabindex="1004" /></div>
         <input type="hidden" name="advenced" value="0"  size="25" tabindex="1001">
         </td>
      </tr>
      
         <tr>         <td style="border-top:1px solid #ffffff;border-bottom:1px solid #ffffff;"    class="vbmenu_option"><a href="'
$scripturl'?action=search;advanced" accesskey="4" rel="nofollow">Gelismis Arama Yap</a></td>
      </tr>
      </table>
      </form>
   </div>'
;

echo
'
<!-- logo -->
<a name="top"></a>
<div id="logo"><a href="http://localhost/forum/index.php"></a></div>
<!-- /logo -->
<!-- Navi -->
<div class="nav_bg">
      <div class="nav_left">
      <div class="nav_right">
            <ul class="list_m">

         <li class="button_forum"><a class="button_forum" href="http://localhost/forum/index.php" title="Anasayfa"><span>Anasayfa</span></a></li>
      
         
         <li class="button_usercp"><a class="button_usercp" href="http://localhost/forum/index.php?action=profile" title="Profilim"><span>Profilim</span></a></li>
      
      <li class="button_memberlist"><a class="button_memberlist" href="http://localhost/forum/index.php?action=mlist" title="Üyeler"><span>Üyeler</span></a></li>
            
         
            
            <li class="button_calender"><a class="button_calender" href="http://localhost/forum/index.php?action=calendar" title="Takvim"><span>Takvim</span></a></li>

<li class="button_getnew"><a class="button_getnew" href="http://localhost/forum/index.php?action=recent" title="Yeni Mesajlar"><span>Yeni Mesajlar</span></a></li>

<li class="button_tema"><a class="button_tema" href="http://www.forumbol.com/lordreco-temalari-artik-bu-sayfada-t10080.0.html" title="SMF Temalar"><span>SMF Temalar</span></a></li>

<li class="button_menu"><span id="usercptools"><a href="http://localhost/forum/index.php#usercptools" title="Hızlı Linkler"><span class="bs">Hızlı Linkler</span></a></span> <script type="text/javascript"> vbmenu_register("usercptools", true); </script></li>
            
         
            <li  class="button_search"><span id="navbar_search"><a class="button_search" href="http://localhost/forum/index.php?action=search" accesskey="4" rel="nofollow" title="Arama"><span class="bs">Arama</span></a></span> <script type="text/javascript"> vbmenu_register("navbar_search", true); </script></li>
         
            </ul>
      </div>
      </div>
</div>

<!-- /Navi -->
<!-- Top Border -->
<div class="top_bo_bg">
      <div class="top_bo_left">
      <div class="top_bo_right">
            <ul class="list_mu">
                  <li class="m_home"><a class="m_home" href="http://localhost/forum/index.php" title="Anasayfa"><span>Anasayfa</span></a></li>
                  <li class="m_faq"><a class="m_faq" href="index.php?action=help" title="Yardım" accesskey="5"><span>Yardım</span></a></li>
                  <li class="m_contact"><a class="m_contact" href="mailto:[email protected]" title="İletişim"><span>İletişim</span></a></li>

            </ul>
      </div>
      </div>
</div>
<!-- /Top Border -->
<div class="bo_left_bg">
<div class="bo_right_bg">
      <div class="bo_left_pic">
      <div class="bo_right_pic">
            <div class="pages">

<div align="center">
   <div class="page" style="width:100%; text-align:left">
      <div style="padding:3ex 22px 2ex 22px" align="left">
<div class="fornbg">
      <div class="fornl"> 
      <div class="fornr"> 
            <div class="fortitel">Hoşgeldiniz
             </div>
      </div>
      </div>
</div>

<div class="n_border_left">
<div class="n_border_right">
<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="4" cellspacing="1" border="0" width="100%" align="center">
<tr>
   <td class="windowbg2" width="100%">
      
         <div class="navbar" style="font-size:10pt"> <strong><span class="nav-tree"><img src="'
$settings['images_url'], '/icons/folder_open.gif" alt="+" border="0" />&nbsp;<b><a href="http://localhost/forum/index.php" class="nav-tree">Benim Topluluğum</a></b></span></strong></div>
      
   </td>
      <td class="windowbg" valign="top" nowrap="nowrap">
      <div class="smallfont">

         

      </div>
      </td>      
   
   
</tr>
</table>

<!-- / breadcrumb, login, pm info -->
</div>
</div>
<div class="c_border_bottombg"> 
      <div class="c_border_bottom_left">
      <div class="c_border_bottom-right">
      </div>
      </div>
</div> <br>
'
;

echo 
'
<table border="0" width="100%" cellpadding="10" cellspacing="0" style="background-color:#FFFFFF;">
<tr>
  <td><table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-color:#FFFFFF;">
      <tr>

      </tr>
    </table>
    <!-- content table -->
    <table width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color:#FFFFFF;">
    <tr>
      <td>
<!-- content table -->
<!-- open content container -->


<div align="center">
   <div class="page" style="width:100%; text-align:left">
      <div style="padding:0px 15px 0px 15px">



<div class="spacer"></div>
<div class="spacer"></div>

<!-- breadcrumb, login, pm info -->
<!-- Aria Categoty Top -->
<table   border="0" cellpadding="0" cellspacing="0"  width="100%"  align="center" style="background-image: url('
$settings['images_url'], '/cat_t.gif)">
  <tr>
    <td width="57" height="25" align="left" valign="top"><img border="0" src="'
$settings['images_url'], '/cat_tleft.gif" alt="" /></td>
    <td width="100%"  height="25" align="left" valign="middle">&nbsp;&nbsp;</td>
    <td width="57" height="25" align="right" valign="top"><img border="0" src="'
$settings['images_url'], '/cat_tright.gif" alt="" /></td>
  </tr>

</table>
<!-- /Aria Categoty Top -->
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<tr>
   <td class="windowbg2" width="100%">
      
          <div class="smallfont" style="font-size:10pt"> <strong>'
theme_linktree(), '</strong></div>
      
   </td>'
;   
   
   if (
$context['user']['is_guest'])
echo 
'   
      
      <td class="windowbg" nowrap="nowrap" style="padding:0px">
         
      <!-- login form -->
      <form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" class="middletext" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
      <script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>
      <table cellpadding="0" cellspacing="3" border="0">
      <tr>
         <td class="smallfont"><label for="navbar_username">Kullanıcı Adı</label></td>
         <td><input type="text" class="bginput" style="font-size: 11px" name="user" id="navbar_username" size="10" accesskey="u" tabindex="101" value="Kullanıcı Adı" onfocus="if (this.value == \'Kullanıcı Adı\') this.value = \'\';" /></td>
         <td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieneverexp"'
$context['never_expire'] ? ' checked="checked"' ''' class="check" onclick="this.form.cookielength.disabled = this.checked;" />Beni Hatırla?</label></td>
      </tr>
      <tr>
         <td class="smallfont"><label for="navbar_password">Şifre</label></td>
         <td><input type="password" class="bginput" style="font-size: 11px" name="passwrd" id="navbar_password" size="10" tabindex="102" /></td>
         <td class="smallfont"><input type="submit" class="button" value="Giriş" tabindex="104" accesskey="s" /></td>
      </tr>
      </table>
      <input type="hidden" name="cookielength" value="-1" />
      </form>
      <!-- / login form -->
         
      </td>'
;

   if (
$context['user']['is_logged'])
echo 
'
      <td class="windowbg" valign="top" nowrap="nowrap">
      <div class="smallfont">
         <strong>Hoşgeldiniz, '
$context['user']['name'] , '.</strong><br />
         <a href="'
$scripturl'?action=unreadreplies">Mesajlarıma Yazılan Cevapları Göster</a>
         <br /><a href="'
$scripturl'?action=pm">Özel Mesajlarınız</a>: '$context['user']['unread_messages'], ' Okunmamış, Toplam  '$context['user']['messages'], '.
         
      </div>
      </td>'
;


      
echo 
'      
   
</tr>
</table>
<!-- Aria Categoty Bottom -->
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="11" align="left" valign="top"><img src="'
$settings['images_url'], '/cat_bleft.gif" width="11" height="11" alt=" " border="0" /></td>
        <td  width="100%" style="background-image:url('
$settings['images_url'], '/cat_b.gif)"><img src="'$settings['images_url'], '/clear.gif" width="100%" height="11" alt=" " border="0" /></td>
        <td width="11" align="right" valign="top"><img src="'
$settings['images_url'], '/cat_bright.gif" width="11" height="11" alt=" " border="0" /></td>
      </tr>
    </table>
 <!-- /Aria Categoty Bottom -->
<!-- / breadcrumb, login, pm info -->

<div class="spacer"></div>'
;




      
   
// The main content should go here.
   
echo '
   <div id="bodyarea" style="padding: 3ex 0px 2ex 0px;">'
;




// İMANIN VARSA, ALLAH'IN VARSA, COPYRİGHTE DOKUNMA HAKKIMI HELAL ETMEM!!!
}

function 
template_main_below()
{
   global 
$context$settings$options$scripturl$txt;

   echo 
'
   </div>'
;


   
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
   
echo '

   
      <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
         function smfFooterHighlight(element, value)
         {
            element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
         }
      // ]]></script>
      <table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
         <tr>

            <td valign="middle" align="center" style="smallfont">
               '
theme_copyright(), '<br><font size="1">Aria by <a href="http://www.forumbol.com">LordReco</a> | <a href="http://www.forumbol.com/lordreco-temalari-artik-bu-sayfada-t10080.0.html" target="_blank" title="SMF Temalar">FoRuMBoL Themes</a></font>
            </td>

         </tr>
      </table></br>'
;
echo 
'
   </div>'
;

echo
'
</td>
</tr>
</table>
<table width="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>

  </tr>
</table>
</td>
  </tr>
</table>'
;









echo
'
<table cellpadding="4" cellspacing="1" border="0" width="100%" class="tborder" align="center">
<tr>

   <td class="windowbg" align="right" width="100%">
      <div class="smallfont">
         <strong>
            <a href="mailto:[email protected]" rel="nofollow">İletişim</a> -
            <a href="http://www.forumbol.com">FoRuMBoL Forumları</a> -
            
            
            <a href="http://www.forumbol.com/archives.php">Arşiv</a> -
            <a href="http://www.forumbol.com/index.php/topic,2.0.html">Kurallar</a> -
            <a onclick="return log_out()" href="action=logout"">Çıkış Yap</a> -
            <a href="#top" onclick="self.scrollTo(0, 0); return false;">Yukarı Git</a>

         </strong>
      </div>
   </td>
</tr>
</table><br>'
;

   
   
   
      
// Show the load time?
   
if ($context['show_load_time'])
      echo 
'
      <span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

   
// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
   
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
   {
      
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
      
echo '
      <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

      
// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
      
if ($context['browser']['is_safari'])
         echo 
'
         window.addEventListener("load", smf_codeFix, false);

         function smf_codeFix()
         {
            var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

            for (var i = 0; i < codeFix.length; i++)
            {
               if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "Aria") && codeFix[i].offsetHeight < 20)
                  codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
            }
         }'
;
      elseif (
$context['browser']['is_firefox'])
         echo 
'
         window.addEventListener("load", smf_codeFix, false);
         function smf_codeFix()
         {
            var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

            for (var i = 0; i < codeFix.length; i++)
            {
               if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
                  codeFix[i].style.overflow = "scroll";
            }
         }'
;         
      else
         echo 
'
         var window_oldOnload = window.onload;
         window.onload = smf_codeFix;

         function smf_codeFix()
         {
            var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

            for (var i = codeFix.length - 1; i > 0; i--)
            {
               if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
                  codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
            }

            if (window_oldOnload)
            {
               window_oldOnload();
               window_oldOnload = null;
            }
         }'
;

      echo 
'
      // ]]></script>'
;
   }




   
// The following will be used to let the user know that some AJAX process is running
   
echo '<SCRIPT type=text/javascript>vBulletin_init();</SCRIPT>
   <div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>
</body></html>'
;
}

// Show a linktree (vB Clone).  This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
        global 
$context$settings$options;

        
// Folder style or inline?  Inline has a smaller font.
        
echo '<span class="inlineimg">';
      
      echo 
'<img class="inlineimg" src="' $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" />&nbsp;';

        
// Each tree item has a URL and name.  Some may have extra_before and extra_after.
        
foreach ($context['linktree'] as $link_num => $tree)
        {
                
// Show something before the link?
                
if (isset($tree['extra_before']))
                        echo 
$tree['extra_before'];

                if ((
$link_num == count($context['linktree']) - 1) && count($context['linktree'])>1)
                        echo 
'<br />
                  <img src="' 
$settings['images_url'] . '/icons/linktree_side.gif" alt="" border="0" />&nbsp;';

                
// Show the link, including a URL if it should have one.
                
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav-tree">' $tree['name'] . '</a>' $tree['name'], '</b>';

                
// Show something after the link...?
                
if (isset($tree['extra_after']))
                        echo 
$tree['extra_after'];

                
// Don't show a separator for the last one.
                
if ($link_num count($context['linktree']) - 2)
                        echo 
'&nbsp;&raquo;&nbsp;';

        }

        echo 
'</span>';
}



// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
   
global 
$context$settings$options$scripturl$txt;

   
// Work out where we currently are.
   
$current_action 'home';
   if (
in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
      
$current_action 'admin';
   if (
in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm')))
      
$current_action $context['current_action'];
   if (
$context['current_action'] == 'search2')
      
$current_action 'search';
   if (
$context['current_action'] == 'theme')
      
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';


   
// Show the [home] button.
   
echo '
         <td width="78" height="37"  class="css_nav"><a href="'
$scripturl'">' $txt[103] , '</a></td>';

   
// Show the [help] button.
   
echo '
         <td  width="78" height="37"  class="css_nav"><a href="'
$scripturl'?action=help">' $txt[119] , '</a></td>';



      
            

   
// Edit Profile... [profile]
   
if ($context['allow_edit_profile'])
      echo 
'
            <td width="78" height="37"  class="css_nav"><a href="'
$scripturl'?action=profile">' $txt[79] , '</a></td>';
            

   
// Go to PM center... [pm]
   
if ($context['user']['is_logged'] && $context['allow_pm'])
         echo 
'
            <td  width="78" height="37"  class="css_nav"><a href="'
$scripturl'?action=pm">' $txt['pm_short'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</a></td>';
            

   
// The [calendar]!
   
if ($context['allow_calendar'])
      echo 
'
            <td width="78" height="37"  class="css_nav"><a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a></td>';

   
// the [member] list button
   
if ($context['allow_memberlist'])
      echo 
'
            <td  width="78" height="37"  class="css_nav"><a href="'
$scripturl'?action=mlist">' $txt[331] , '</a></td>';
   
// Is the user allowed to administrate at all? ([admin])
   
if ($context['allow_admin'])
      echo   
'<td  width="78" height="37"  class="css_nav"><a href="'$scripturl'?action=admin">' $txt[2] , '</a></td>';

   
// How about the [search] button?
   
if ($context['allow_search'])
      echo 
'
            <td width="78" height="37"  class="css_nav">
               <a href="' 
$scripturl '?action=search" rel="nofollow">Arama</a></td>';
       


   
// If the user is a guest, show [login] button.
   
if ($context['user']['is_guest'])
      echo 
'
         <td  width="78" height="37"  class="css_nav"><a href="'
$scripturl'?action=login">' $txt[34] , '</a></td>';


   
// If the user is a guest, also show [register] button.
   
if ($context['user']['is_guest'])
      echo 
'
            <td width="78" height="37"  class="css_nav"><a href="'
$scripturl'?action=register">' $txt[97] , '</a></td>';


   
// Otherwise, they might want to [logout]...
   
if ($context['user']['is_logged'])
      echo 
'
            <td  width="78" height="37"  class="css_nav"><a onclick="return log_out()" href="'
$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a></td>';



}


// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
   global 
$settings$buttons$context$txt$scripturl;

   
// Create the buttons...
   
foreach ($button_strip as $key => $value)
   {
      if (isset(
$value['test']) && empty($context[$value['test']]))
      {
         unset(
$button_strip[$key]);
         continue;
      }
      elseif (!isset(
$buttons[$key]) || $force_reset)
         
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

      
$button_strip[$key] = $buttons[$key];
   }

   if (empty(
$button_strip))
      return 
'<td>&nbsp;</td>';

   echo 
'
      <td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
      <td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
      <td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}

?>

Gurbet_42

Kullandigin temanin index.template.php'de butonlarin oldugu bölümü incele.

İndex.template.php dosyanızı eklerseniz bir yardım eden olur.

lordreco

yukarıda index template dosyası menü bölümünü inceledim ama nasıl yapacağımı bilmiyorum. Mesela foruma giriş yapıyorum. Ama üye ol butonu duruyor.

Yağız...

Tema sitesinde bulunmayan temalar hakkında destek verilmiyor.

Advertisement: