Uutiset:

Wondering if this will always be free?  See why free is better.

Main Menu
Advertisement:

DynamicDrive Hazır Menüsünde Hata

Aloittaja Hkan, kesäkuu 16, 2009, 03:24:19 IP

« edellinen - seuraava »

Hkan

Arkadaşlar SMF kullanmaya profesyonel olarak başladığımdan beri kendim bir sürü tema tasarladım ve hâlâ yapmaya devam ediyorum. Az önce yeni bir tema denemeleri yaptım. DynamicDrive'dan bir menü kullanmaya çalıştım; ancak ufak bir sorun var. Ben herhangi bir problem göremiyorum; ancak bir de siz göz atar mısınız? :)

Menü bu: http://www.dynamicdrive.com/style/csslibrary/item/jquery_multi_level_css_menu_2/

Bende bu şekilde gözüküyor: http://i44.tinypic.com/1233wk9.jpg
Ancak böyle gözükmesi gerekiyor: http://i44.tinypic.com/1233wk9.jpg

Şu değişiklikleri yaptım (index.template.php):

Koodi (Menüyü böyle yaptım) [Valitse]
// Show the start of the tab section.
echo '
<div id="myslidemenu" class="jqueryslidemenu">
<ul>';

// Show the [home] button.
echo '
<li><a href="', $scripturl, '">' , $txt[103] , '</a></li>';

// Show the [help] button.
echo '
<li><a href="', $scripturl, '?action=help">' , $txt[119] , '</a></li>';

// How about the [search] button?
if ($context['allow_search'])
echo '
<li><a href="', $scripturl, '?action=search">' , $txt[182] , '</a></li>';

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

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '
<li><a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>
<ul>
<li><a href="', $scripturl, '?action=profile;sa=summary">Özet</li>
</ul>
</li>';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo '
<li><a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a></li>';

// The [calendar]!
if ($context['allow_calendar'])
echo '
<li><a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a></li>';

// the [member] list button
if ($context['allow_memberlist'])
echo '
<li><a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a></li>';


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


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


// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '
<li><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a></li>';

// The end of tab section.
echo '
</ul>
</div>';


Koodi (<head> bölümüne bunu ekledim) [Valitse]
<!-- Özel Menü Ayarları -->
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/jqueryslidemenu.css" />
<!--[if lte IE 7]>
<style type="text/css">
html .jqueryslidemenu{height: 1%;} /*Holly Hack for IE7 and below*/
</style>
<![endif]-->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
<script type="text/javascript" src="', $settings['theme_url'], '/jqueryslidemenu.js"></script>
<!-- Özel Menü Ayarları | Son -->

Özgür

So Long

Hkan

Ettim zaten. Ancak çok özür dilerim, kod eksikliğinden hata oluşmuş. <li><a href="', $scripturl, '?action=profile;sa=summary">Özet</li> diye bir kod yazmışım. Zaten başka bir menü kullanmaya başladım. İlgine teşekkürler. :)

Advertisement: