Paylaşım Sitesi  

Geri git   Paylaşım Sitesi > Webmaster & vBulletin > Hazır Sistemler > SMF
Kayıt ol Yardım Üye Listesi Ajanda Forumları Okundu Kabul Et

Tags:

Cevapla
 
LinkBack Seçenekler Stil
  #1 (permalink)  
Alt 06-25-2008, 03:26
By_OmeR - ait Kullanıcı Resmi (Avatar)
Administrator
 
Üyelik tarihi: Apr 2007
Yaş: 25
Mesajlar: 1.381
Tecrübe Puanı: 10000000
By_OmeR isimli üye Tecrübe puanını kapatmıştır.
By_OmeR - MSN üzeri Mesaj gönder
Standart Default Temaya Gif Buton Koymak...

Eğer Defaulet Temanın Kodlardan Oluşan Butonlarından Sıkıldıysanız ve Butonların Yerine Gif Buton Koymak İstiyorsanız Aşağıda Vereceğim İşlemleri Yapın...

Ben Çölateşi Temasının Butonlarını Kullandım Ama Siz İsterseniz Başka Butonlarda Uygulayabilirsiniz...

[img width=600 height=156]http://img484.imageshack.us/img484/1349/adszlx9.png[/img]

Default Temanızın / index.template.php Dosyasını Açın Ve Aşağıdaki Kodu Bulun :
PHP- Kodu:
<td class="maintab_' , $first , '">&nbsp;</td>';

    // Show the [home] button.
    echo ($current_action=='
home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
                
<td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
                    <
a href="', $scripturl, '">' , $txt[103] , '</a>
                </
td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

    // Show the [help] button.
    echo ($current_action == '
help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
                
<td valign="top" class="maintab_' , $current_action == 'help' ? 'active_back' : 'back' , '">
                    <
a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
                </
td>' , $current_action == 'help' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

    // How about the [search] button?
    if ($context['
allow_search'])
        echo ($current_action == '
search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
                
<td valign="top" class="maintab_' , $current_action == 'search' ? 'active_back' : 'back' , '">
                    <
a href="', $scripturl, '?action=search">' , $txt[182] , '</a>
                </
td>' , $current_action == 'search' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

    // Is the user allowed to administrate at all? ([admin])
    if ($context['
allow_admin'])
        echo ($current_action == '
admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
                
<td valign="top" class="maintab_' , $current_action == 'admin' ? 'active_back' : 'back' , '">
                    <
a href="', $scripturl, '?action=admin">' , $txt[2] , '</a>
                </
td>' , $current_action == 'admin' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

    // Edit Profile... [profile]
    if ($context['
allow_edit_profile'])
        echo ($current_action == '
profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
                
<td valign="top" class="maintab_' , $current_action == 'profile' ? 'active_back' : 'back' , '">
                    <
a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>
                </
td>' , $current_action == 'profile' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

    // Go to PM center... [pm]
    if ($context['
user']['is_logged'] && $context['allow_pm'])
        echo ($current_action == '
pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
                
<td valign="top" class="maintab_' , $current_action == 'pm' ? 'active_back' : 'back' , '">
                    <
a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a>
                </
td>' , $current_action == 'pm' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

    // The [calendar]!
    if ($context['
allow_calendar'])
        echo ($current_action == '
calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
                
<td valign="top" class="maintab_' , $current_action == 'calendar' ? 'active_back' : 'back' , '">
                    <
a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
                </
td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

    // the [member] list button
    if ($context['
allow_memberlist'])
        echo ($current_action == '
mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
                
<td valign="top" class="maintab_' , $current_action == 'mlist' ? 'active_back' : 'back' , '">
                    <
a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>
                </
td>' , $current_action == 'mlist' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


    // If the user is a guest, show [login] button.
    if ($context['
user']['is_guest'])
        echo ($current_action == '
login' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
                
<td valign="top" class="maintab_' , $current_action == 'login' ? 'active_back' : 'back' , '">
                    <
a href="', $scripturl, '?action=login">' , $txt[34] , '</a>
                </
td>' , $current_action == 'login' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


    // If the user is a guest, also show [register] button.
    if ($context['
user']['is_guest'])
        echo ($current_action == '
register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
                
<td valign="top" class="maintab_' , $current_action == 'register' ? 'active_back' : 'back' , '">
                    <
a href="', $scripturl, '?action=register">' , $txt[97] , '</a>
                </
td>' , $current_action == 'register' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


    // Otherwise, they might want to [logout]...
    if ($context['
user']['is_logged'])
        echo ($current_action == '
logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
                
<td valign="top" class="maintab_' , $current_action == 'logout' ? 'active_back' : 'back' , '">
                    <
a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a>
                </
td>' , $current_action == 'logout' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

    // The end of tab section.
    echo '
                
<td class="maintab_' , $last , '">&nbsp;</td>
            </
tr>
        </
table>; 
Aşağıdaki Kodlarla Değiştirin :

// Show the start of the tab section.
echo '
<center><br><div class="0" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '>
<tr>
';

// Show the [home] button.
echo '<a href="', $scripturl, '?action=home"><img src="', $settings['images_url'], '/buton/anasayfa.gif"></a>';

// How about the [search] button?
if ($context['allow_search'])
echo '<a href="', $scripturl, '?action=search"><img src="', $settings['images_url'], '/buton/ara.gif"></a>';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '<a href="', $scripturl, '?action=admin"><img src="', $settings['images_url'], '/buton/admin.gif"></a>';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '<a href="', $scripturl, '?action=profile"><img src="', $settings['images_url'], '/buton/profil.gif"></a>';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
{
echo '<a href="', $scripturl, '?action=pm">';

if($context['user']['unread_messages'] <= 0)
{
echo '<img src="', $settings['images_url'], '/buton/mesaj.gif"></a>';
}
elseif($context['user']['unread_messages'] <= 1)
{
echo '<img src="', $settings['images_url'], '/buton/mesaj1.gif"></a>';
}
elseif($context['user']['unread_messages'] <= 2)
{
echo '<img src="', $settings['images_url'], '/buton/mesaj2.gif"></a>';
}
elseif($context['user']['unread_messages'] <= 3)
{
echo '<img src="', $settings['images_url'], '/buton/mesaj3.gif"></a>';
}
elseif($context['user']['unread_messages'] <= 4)
{
echo '<img src="', $settings['images_url'], '/buton/mesaj4.gif"></a>';
}
elseif($context['user']['unread_messages'] <= 5)
{
echo '<img src="', $settings['images_url'], '/buton/mesaj5.gif"></a>';
}
elseif($context['user']['unread_messages'] <= 6)
{
echo '<img src="', $settings['images_url'], '/buton/mesaj6.gif"></a>';
}
elseif($context['user']['unread_messages'] <= 7)
{
echo '<img src="', $settings['images_url'], '/buton/mesaj7.gif"></a>';
}
elseif($context['user']['unread_messages'] <= 8)
{
echo '<img src="', $settings['images_url'], '/buton/mesaj8.gif"></a>';
}
elseif($context['user']['unread_messages'] <= 9)
{
echo '<img src="', $settings['images_url'], '/buton/mesaj9.gif"></a>';
}
elseif($context['user']['unread_messages'] <= 10)
{
echo '<img src="', $settings['images_url'], '/buton/mesaj10.gif"></a>';
}
elseif($context['user']['unread_messages'] >= 10)
{
echo '<img src="', $settings['images_url'], '/buton/mesajlar.gif"></a>';
}
}

// The [calendar]!
if ($context['allow_calendar'])
echo '<a href="', $scripturl, '?action=calendar"><img src="', $settings['images_url'], '/buton/takvim.gif"></a>';

// the [member] list button
if ($context['allow_memberlist'])
echo '<a href="', $scripturl, '?action=mlist"><img src="', $settings['images_url'], '/buton/uyeler.gif"></a>';


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo '<a href="', $scripturl, '?action=login"><img src="', $settings['images_url'], '/buton/giris.gif"></a>';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo '<a href="', $scripturl, '?action=register"><img src="', $settings['images_url'], '/buton/kayit.gif"></a>';


// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '"><img src="', $settings['images_url'], '/buton/cikis.gif"></a>';


echo '
<td colspan="2" width="32%" align="center" class="catbg"><span class="middletext">';

// The end of tab section.
echo '
<td class="maintab_' , $last , '">&nbsp;</td>
</tr>
</table></center>';

Extra Buton Eklemek İçin Aşağıda Verdiğim Örneği Kullanabilirsiniz :


// Show the [Yardim] button.
echo'<a href="http://www.rengeyik.com/forum/index.php?action=help"><img src="', $settings['images_url'], '/buton/yardim.gif"></a>';

echo '
__________________
[Linkleri sadece üyelerimiz görebilir. Üye olmak için tıklayın...]


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Alıntı ile Cevapla
Cevapla



Seçenekler
Stil

Yetkileriniz
Yeni Mesaj yazma yetkiniz aktif değil dir.
Mesajlara Cevap verme yetkiniz aktif değil dir.
Eklenti ekleme yetkiniz aktif değil dir.
Kendi Mesajınızı değiştirme yetkiniz aktif değil dir.

Smileler Açık
[IMG] Kodları Açık
HTML-KodlarıKapalı
Trackbacks are Açık
Pingbacks are Kapalı
Refbacks are Açık


Style Webmasteriz
Powered by vBulletin® ~ Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0