Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

Alt menünün, Alt menüsü yapılabilirmi?

Aloittaja serhatyilmaz, syyskuu 18, 2011, 05:16:12 AP

« edellinen - seuraava »

serhatyilmaz

Forumdaki ana menünün alt menüleri var. peki bunlara yana yada alta doğru açılan bir menü daha eklenebilir mi?

örneğin Profil > Özet'in altına bir menü daha;
Profil > Özet > qweasdzxc gibi.

cee山

zaten o var diye biliyorum ....hiç admin ksımından bakmadın mı ?

serhatyilmaz

admin kısmı ile alakası yok. subs.php de menüye hangi kodu ekleyerek böyle bir şey yapabileceğimi öğrenmeye çalışıyorum, tabi böyle bir şey varsa. daha önceden normal alt menü yaparmış gibi iç içe kod ekledim ama site hata verdi :)

my_wuslat


serhatyilmaz

#4
error

Parse error: syntax error, unexpected ';', expecting ')' in /home/site/public_html/Sources/Subs.php on line 4306

farklı temalarda çalışmıyor sanırım.

my_wuslat

manuel yapın zaten 3 dosyada deişiklik istiyor...

serhatyilmaz

hocam kurulumda hata çıktı hataları giderdim fakat default tema haricinde çalışmıyor sanırım. bu hatada menüye bişeyler ekleyince çıkmıştı zaten.

my_wuslat

menü yapısı farklıdır bazı temaların uyum sağlamayabilir..

Alpay

örnek :

  'profile' => array(
'title' => $txt['profile'],
'href' => $scripturl . '?action=profile',
'show' => $context['allow_edit_profile'],
'sub_buttons' => array(
'summary' => array(
'title' => $txt['summary'],
'href' => $scripturl . '?action=profile',
'show' => true,
),
'account' => array(
'title' => $txt['account'],
'href' => $scripturl . '?action=profile;area=account',
'show' => allowedTo(array('profile_identity_any', 'profile_identity_own', 'manage_membergroups')),
),
'profile' => array(
'title' => $txt['forumprofile'],
'href' => $scripturl . '?action=profile;area=forumprofile',
'show' => allowedTo(array('profile_extra_any', 'profile_extra_own')),
'sub_buttons' => array(
                                                          'profile' => array(
           'title' => $txt['forumprofile'],
                'href' => $scripturl . '?action=profile;area=forumprofile',
        'show' => allowedTo(array('profile_extra_any', 'profile_extra_own')),
                                                     
),
                                             ),

'pm' => array(
'title' => $txt['pm_short'],
'href' => $scripturl . '?action=pm',
'show' => $context['allow_pm'],


),

),

),


                'sub_buttons' => array( bu ek buton açıyor.
               

               bu şöyle bişi yapıcak :
                       
                          profil
                          açılır kısım
                          özet
                          hesap ayarları
                          forum profili
(üstüne geldigind ) (açılır yana) forum profili
                          iletilerim

serhatyilmaz

tamamdır teşekkürler ben bir tane ), eksik koymuşum ondan hata vermiş :)
Konu çözüldü.

zeynepbengibingol

Lainaus käyttäjältä: Alpay - syyskuu 19, 2011, 09:22:02 AP
örnek :

  'profile' => array(
'title' => $txt['profile'],
'href' => $scripturl . '?action=profile',
'show' => $context['allow_edit_profile'],
'sub_buttons' => array(
'summary' => array(
'title' => $txt['summary'],
'href' => $scripturl . '?action=profile',
'show' => true,
),
'account' => array(
'title' => $txt['account'],
'href' => $scripturl . '?action=profile;area=account',
'show' => allowedTo(array('profile_identity_any', 'profile_identity_own', 'manage_membergroups')),
),
'profile' => array(
'title' => $txt['forumprofile'],
'href' => $scripturl . '?action=profile;area=forumprofile',
'show' => allowedTo(array('profile_extra_any', 'profile_extra_own')),
'sub_buttons' => array(
                                                          'profile' => array(
           'title' => $txt['forumprofile'],
                'href' => $scripturl . '?action=profile;area=forumprofile',
        'show' => allowedTo(array('profile_extra_any', 'profile_extra_own')),
                                                     
),
                                             ),

'pm' => array(
'title' => $txt['pm_short'],
'href' => $scripturl . '?action=pm',
'show' => $context['allow_pm'],


),

),

),


                'sub_buttons' => array( bu ek buton açıyor.
               

               bu şöyle bişi yapıcak :
                       
                          profil
                          açılır kısım
                          özet
                          hesap ayarları
                          forum profili
(üstüne geldigind ) (açılır yana) forum profili
                          iletilerim

teşşekürler.

Advertisement: