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.
zaten o var diye biliyorum ....hiç admin ksımından bakmadın mı ?
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 :)
http://custom.simplemachines.org/mods/index.php?mod=2454
şu moda bi bakın sanırım istediniz bu
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.
manuel yapın zaten 3 dosyada deişiklik istiyor...
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.
menü yapısı farklıdır bazı temaların uyum sağlamayabilir..
ö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
tamamdır teşekkürler ben bir tane ), eksik koymuşum ondan hata vermiş :)
Konu çözüldü.
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.