Forumun Altında Dil Çubuğu (Vbulletindeki gibi),Admin Seçeneği

Başlatan Maxi, 22 Tem 2014, 17:06

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

Maxi

temanızın İndextemplate.php dosyasını aç

bul
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
Aşağıdaki kodu Üstüne ekle

echo '
   </div>';
echo'
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<td height="30" width="100%" class=titlebg>';
echo'

      <form action="', $scripturl, '" method="get" style="padding:0; margin: 0;">

         <select name="jumpto" id="jumpto" onchange="if (this.selectedIndex > 0 &amp;&amp; this.options[this.selectedIndex].value) window.location.href = smf_scripturl + this.options[this.selectedIndex].value.substr(smf_scripturl.indexOf('?') == -1 || this.options[this.selectedIndex].value.substr(0, 1) != '?' ? 0 : 1);">

         <optgroup style="background-color: #b0c4de;" label="Select Language"></optgroup>

         

            ';
                                 echo '
<option value="?language=turkish">--Dili Seç</option>

                  <option value="?language=turkish">--Turkçe (TR)</option>

                 

                  <option value="?language=english">--English (US)</option>


</form>
';
   // Is the user allowed to administrate at all? ([admin])
   if ($context['allow_admin'])
      echo '
            <td   align="right" class="titlebg"><a href="', $scripturl, '?action=admin">' , $txt[2] , '</a></td>';

echo'
<td   align="right" class="titlebg"><a href="/forum/archive.php">Arsiv</a></td>

           
</td>
</table>';


Arşiv seçeneğinin çıkmamasını istiyorsanız

echo '
   </div>';
echo'
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<td height="30" width="100%" class=titlebg>';
echo'

      <form action="', $scripturl, '" method="get" style="padding:0; margin: 0;">

         <select name="jumpto" id="jumpto" onchange="if (this.selectedIndex > 0 &amp;&amp; this.options[this.selectedIndex].value) window.location.href = smf_scripturl + this.options[this.selectedIndex].value.substr(smf_scripturl.indexOf('?') == -1 || this.options[this.selectedIndex].value.substr(0, 1) != '?' ? 0 : 1);">

         <optgroup style="background-color: #b0c4de;" label="Select Language"></optgroup>

         

            ';
                                 echo '
<option value="?language=turkish">--Dili Seç</option>

                  <option value="?language=turkish">--Turkçe (TR)</option>

                 

                  <option value="?language=english">--English (US)</option>


</form>
';
   // Is the user allowed to administrate at all? ([admin])
   if ($context['allow_admin'])
      echo '
            <td   align="right" class="titlebg"><a href="', $scripturl, '?action=admin">' , $txt[2] , '</a></td>';

echo'


           
</td>
</table>';


bu kodu uygulayın.

ALıntıdır