Konu: Header Logo And Top Menu  (Okunma sayısı 1270 defa)

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

04 Temmuz 2014, 22:03
  • *
    • İleti: 2018
    • Karma: 41
    • Spina Bifida
    • Profili Görüntüle

Bu modifikasyonu @soulfather üyemizin isteği üzerine hazırladım.

Forum logosunu en üste alır ve headere 9 ana başlıklı menü ekler. Her bir menünün 5'şer tane sub menüsü olup toplamda 54 adet link ekleyebilirsiniz. Menüler ve submenüler admin panelden aktif ya da pasif edilebilir.

Modifikasyonu kurunca modifikasyon ayarlarından buton ve link isimlerini linkleriyle beraber giriniz.

Paket yöneticisinden ya da manuel olarak kurabilirsiniz.

Demo: Benim Topluluğum - Index

Screenshot:



Manuel kurulum:
./Themes/default/index.template.php
Bul:
Kod: [Seç]
function template_body_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

echo !empty($settings['forum_width']) ? '
<div id="wrapper" style="width: ' . $settings['forum_width'] . '">' : '', '
<div id="header"><div class="frame">
<div id="top_section">
<h1 class="forumtitle">
<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>
</h1>';

// the upshrink image, right-floated
echo '
<img id="upshrink" src="', $settings['images_url'], '/upshrink.png" alt="*" title="', $txt['upshrink_description'], '" style="display: none;" />';
echo '
', empty($settings['site_slogan']) ? '<img id="smflogo" src="' . $settings['images_url'] . '/smflogo.png" alt="Simple Machines Forum" title="Simple Machines Forum" />' : '<div id="siteslogan" class="floatright">' . $settings['site_slogan'] . '</div>', '
</div>
<div id="upper_section" class="middletext"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>

Değiştir:
Kod: [Seç]
function template_body_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '<div class="header_logo"> <a href="', $scripturl, '"> <img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" /> </a></div>';
echo !empty($settings['forum_width']) ? '

<div id="wrapper" style="width: ' . $settings['forum_width'] . '">' : '', '
<div id="header"><div class="frame">
<div id="top_section">
<h1 class="forumtitle">
<a href="', $scripturl, '"> ', $context['forum_name'], '</a>
</h1>';

// the upshrink image, right-floated
echo '
<img id="upshrink" src="', $settings['images_url'], '/upshrink.png" alt="*" title="', $txt['upshrink_description'], '" style="display: none;" />';
echo '


       <div id="site_menu" class="align_right">
        <ul class="dropmenu" id="site_nav">';
if (!empty($modSettings['enable_top_menu_1']))
{
echo '
            <li>
                <a class="firstlevel" href="', $modSettings['top_link_1'] , '"><span class="firstlevel">', $modSettings['top_link_title_1'] , '</span></a>
                <ul>';
   if (!empty($modSettings['enable_sub_top_menu_1'])) echo ' <li><a href="', $modSettings['sub_top_link_1'] , '" class=""><span>', $modSettings['sub_top_link_title_1'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_2'])) echo ' <li><a href="', $modSettings['sub_top_link_2'] , '" class=""><span>', $modSettings['sub_top_link_title_2'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_3'])) echo ' <li><a href="', $modSettings['sub_top_link_3'] , '" class=""><span>', $modSettings['sub_top_link_title_3'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_4'])) echo ' <li><a href="', $modSettings['sub_top_link_4'] , '" class=""><span>', $modSettings['sub_top_link_title_4'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_5'])) echo ' <li><a href="', $modSettings['sub_top_link_5'] , '" class=""><span>', $modSettings['sub_top_link_title_5'] , '</span></a></li>';
echo '</ul>
            </li>';
}
if (!empty($modSettings['enable_top_menu_2']))
{
echo '
            <li>
                <a class="firstlevel" href="', $modSettings['top_link_2'] , '"><span class="firstlevel">', $modSettings['top_link_title_2'] , '</span></a>
                <ul>';
   if (!empty($modSettings['enable_sub_top_menu_6'])) echo ' <li><a href="', $modSettings['sub_top_link_6'] , '" class=""><span>', $modSettings['sub_top_link_title_6'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_7'])) echo ' <li><a href="', $modSettings['sub_top_link_7'] , '" class=""><span>', $modSettings['sub_top_link_title_7'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_8'])) echo ' <li><a href="', $modSettings['sub_top_link_8'] , '" class=""><span>', $modSettings['sub_top_link_title_8'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_9'])) echo ' <li><a href="', $modSettings['sub_top_link_9'] , '" class=""><span>', $modSettings['sub_top_link_title_9'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_10'])) echo ' <li><a href="', $modSettings['sub_top_link_10'] , '" class=""><span>', $modSettings['sub_top_link_title_10'] , '</span></a></li>';
echo '</ul>
            </li>';
}
if (!empty($modSettings['enable_top_menu_3']))
{
echo '
            <li>
                <a class="firstlevel" href="', $modSettings['top_link_3'] , '"><span class="firstlevel">', $modSettings['top_link_title_3'] , '</span></a>
                <ul>';
   if (!empty($modSettings['enable_sub_top_menu_11'])) echo ' <li><a href="', $modSettings['sub_top_link_11'] , '" class=""><span>', $modSettings['sub_top_link_title_11'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_12'])) echo ' <li><a href="', $modSettings['sub_top_link_12'] , '" class=""><span>', $modSettings['sub_top_link_title_12'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_13'])) echo ' <li><a href="', $modSettings['sub_top_link_13'] , '" class=""><span>', $modSettings['sub_top_link_title_13'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_14'])) echo ' <li><a href="', $modSettings['sub_top_link_14'] , '" class=""><span>', $modSettings['sub_top_link_title_14'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_15'])) echo ' <li><a href="', $modSettings['sub_top_link_15'] , '" class=""><span>', $modSettings['sub_top_link_title_15'] , '</span></a></li>';
echo '</ul>
            </li>';
}
if (!empty($modSettings['enable_top_menu_4']))
{
echo '
            <li>
                <a class="firstlevel" href="', $modSettings['top_link_4'] , '"><span class="firstlevel">', $modSettings['top_link_title_4'] , '</span></a>
                <ul>';
   if (!empty($modSettings['enable_sub_top_menu_16'])) echo ' <li><a href="', $modSettings['sub_top_link_16'] , '" class=""><span>', $modSettings['sub_top_link_title_16'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_17'])) echo ' <li><a href="', $modSettings['sub_top_link_17'] , '" class=""><span>', $modSettings['sub_top_link_title_17'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_18'])) echo ' <li><a href="', $modSettings['sub_top_link_18'] , '" class=""><span>', $modSettings['sub_top_link_title_18'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_19'])) echo ' <li><a href="', $modSettings['sub_top_link_19'] , '" class=""><span>', $modSettings['sub_top_link_title_19'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_20'])) echo ' <li><a href="', $modSettings['sub_top_link_20'] , '" class=""><span>', $modSettings['sub_top_link_title_20'] , '</span></a></li>';
echo '</ul>
            </li>';
}
if (!empty($modSettings['enable_top_menu_5']))
{
echo '
            <li>
                <a class="firstlevel" href="', $modSettings['top_link_5'] , '"><span class="firstlevel">', $modSettings['top_link_title_5'] , '</span></a>
                <ul>';
   if (!empty($modSettings['enable_sub_top_menu_21'])) echo ' <li><a href="', $modSettings['sub_top_link_21'] , '" class=""><span>', $modSettings['sub_top_link_title_21'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_22'])) echo ' <li><a href="', $modSettings['sub_top_link_22'] , '" class=""><span>', $modSettings['sub_top_link_title_22'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_23'])) echo ' <li><a href="', $modSettings['sub_top_link_23'] , '" class=""><span>', $modSettings['sub_top_link_title_23'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_24'])) echo ' <li><a href="', $modSettings['sub_top_link_24'] , '" class=""><span>', $modSettings['sub_top_link_title_24'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_25'])) echo ' <li><a href="', $modSettings['sub_top_link_25'] , '" class=""><span>', $modSettings['sub_top_link_title_25'] , '</span></a></li>';
echo '</ul>
            </li>';
}
if (!empty($modSettings['enable_top_menu_6']))
{
echo '
            <li>
                <a class="firstlevel" href="', $modSettings['top_link_6'] , '"><span class="firstlevel">', $modSettings['top_link_title_6'] , '</span></a>
                <ul>';
   if (!empty($modSettings['enable_sub_top_menu_26'])) echo ' <li><a href="', $modSettings['sub_top_link_26'] , '" class=""><span>', $modSettings['sub_top_link_title_26'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_27'])) echo ' <li><a href="', $modSettings['sub_top_link_27'] , '" class=""><span>', $modSettings['sub_top_link_title_27'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_28'])) echo ' <li><a href="', $modSettings['sub_top_link_28'] , '" class=""><span>', $modSettings['sub_top_link_title_28'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_29'])) echo ' <li><a href="', $modSettings['sub_top_link_29'] , '" class=""><span>', $modSettings['sub_top_link_title_29'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_30'])) echo ' <li><a href="', $modSettings['sub_top_link_30'] , '" class=""><span>', $modSettings['sub_top_link_title_30'] , '</span></a></li>';
echo '</ul>
            </li>';
}
if (!empty($modSettings['enable_top_menu_7']))
{
echo '
            <li>
                <a class="firstlevel" href="', $modSettings['top_link_7'] , '"><span class="firstlevel">', $modSettings['top_link_title_7'] , '</span></a>
                <ul>';
   if (!empty($modSettings['enable_sub_top_menu_31'])) echo ' <li><a href="', $modSettings['sub_top_link_31'] , '" class=""><span>', $modSettings['sub_top_link_title_31'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_32'])) echo ' <li><a href="', $modSettings['sub_top_link_32'] , '" class=""><span>', $modSettings['sub_top_link_title_32'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_33'])) echo ' <li><a href="', $modSettings['sub_top_link_33'] , '" class=""><span>', $modSettings['sub_top_link_title_33'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_34'])) echo ' <li><a href="', $modSettings['sub_top_link_34'] , '" class=""><span>', $modSettings['sub_top_link_title_34'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_35'])) echo ' <li><a href="', $modSettings['sub_top_link_35'] , '" class=""><span>', $modSettings['sub_top_link_title_35'] , '</span></a></li>';
echo '</ul>
            </li>';
}
if (!empty($modSettings['enable_top_menu_8']))
{
echo '
            <li>
                <a class="firstlevel" href="', $modSettings['top_link_8'] , '"><span class="firstlevel">', $modSettings['top_link_title_8'] , '</span></a>
                <ul>';
   if (!empty($modSettings['enable_sub_top_menu_36'])) echo ' <li><a href="', $modSettings['sub_top_link_36'] , '" class=""><span>', $modSettings['sub_top_link_title_36'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_37'])) echo ' <li><a href="', $modSettings['sub_top_link_37'] , '" class=""><span>', $modSettings['sub_top_link_title_37'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_38'])) echo ' <li><a href="', $modSettings['sub_top_link_38'] , '" class=""><span>', $modSettings['sub_top_link_title_38'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_39'])) echo ' <li><a href="', $modSettings['sub_top_link_39'] , '" class=""><span>', $modSettings['sub_top_link_title_39'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_40'])) echo ' <li><a href="', $modSettings['sub_top_link_40'] , '" class=""><span>', $modSettings['sub_top_link_title_40'] , '</span></a></li>';
echo '</ul>
            </li>';
}
if (!empty($modSettings['enable_top_menu_9']))
{
echo '
            <li>
                <a class="firstlevel" href="', $modSettings['top_link_9'] , '"><span class="firstlevel">', $modSettings['top_link_title_9'] , '</span></a>
                <ul>';
   if (!empty($modSettings['enable_sub_top_menu_41'])) echo ' <li><a href="', $modSettings['sub_top_link_41'] , '" class=""><span>', $modSettings['sub_top_link_title_41'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_42'])) echo ' <li><a href="', $modSettings['sub_top_link_42'] , '" class=""><span>', $modSettings['sub_top_link_title_42'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_43'])) echo ' <li><a href="', $modSettings['sub_top_link_43'] , '" class=""><span>', $modSettings['sub_top_link_title_43'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_44'])) echo ' <li><a href="', $modSettings['sub_top_link_44'] , '" class=""><span>', $modSettings['sub_top_link_title_44'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_45'])) echo ' <li><a href="', $modSettings['sub_top_link_45'] , '" class=""><span>', $modSettings['sub_top_link_title_45'] , '</span></a></li>';
echo '</ul>
            </li>';
}
echo '

               
        </ul></div>

</div>
<div id="upper_section" class="middletext"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>

./Sources/ManageSettings.php
Bul:
Kod: [Seç]
'general' => 'ModifyGeneralModSettings',
Değiştir:
Kod: [Seç]
'general' => 'ModifyGeneralModSettings',
'top_menu' => 'top_menu',

Bul:
Kod: [Seç]
?>
Öncesine ekle:
Kod: [Seç]
// Top menu admin section.
function top_menu($return_config = false)
{
global $txt, $scripturl, $context, $settings, $sc, $modSettings;

// Get all the text boxes.
$config_vars = array(
'',
array('text', 'top_link_title_1',),
array('text', 'top_link_1',),
array('check', 'enable_top_menu_1'),
array('text', 'sub_top_link_title_1',),
array('text', 'sub_top_link_1',),
array('check', 'enable_sub_top_menu_1'),
array('text', 'sub_top_link_title_2',),
array('text', 'sub_top_link_2',),
array('check', 'enable_sub_top_menu_2'),
array('text', 'sub_top_link_title_3',),
array('text', 'sub_top_link_3',),
array('check', 'enable_sub_top_menu_3'),
array('text', 'sub_top_link_title_4',),
array('text', 'sub_top_link_4',),
array('check', 'enable_sub_top_menu_4'),
array('text', 'sub_top_link_title_5',),
array('text', 'sub_top_link_5',),
array('check', 'enable_sub_top_menu_5'),
'',
array('text', 'top_link_title_2',),
array('text', 'top_link_2',),
array('check', 'enable_top_menu_2'),
array('text', 'sub_top_link_title_6',),
array('text', 'sub_top_link_6',),
array('check', 'enable_sub_top_menu_6'),
array('text', 'sub_top_link_title_7',),
array('text', 'sub_top_link_7',),
array('check', 'enable_sub_top_menu_7'),
array('text', 'sub_top_link_title_8',),
array('text', 'sub_top_link_8',),
array('check', 'enable_sub_top_menu_8'),
array('text', 'sub_top_link_title_9',),
array('text', 'sub_top_link_9',),
array('check', 'enable_sub_top_menu_9'),
array('text', 'sub_top_link_title_10',),
array('text', 'sub_top_link_10',),
array('check', 'enable_sub_top_menu_10'),
'',
array('text', 'top_link_title_3',),
array('text', 'top_link_3',),
array('check', 'enable_top_menu_3'),
array('text', 'sub_top_link_title_11',),
array('text', 'sub_top_link_11',),
array('check', 'enable_sub_top_menu_11'),
array('text', 'sub_top_link_title_12',),
array('text', 'sub_top_link_12',),
array('check', 'enable_sub_top_menu_12'),
array('text', 'sub_top_link_title_13',),
array('text', 'sub_top_link_13',),
array('check', 'enable_sub_top_menu_13'),
array('text', 'sub_top_link_title_14',),
array('text', 'sub_top_link_14',),
array('check', 'enable_sub_top_menu_14'),
array('text', 'sub_top_link_title_15',),
array('text', 'sub_top_link_15',),
array('check', 'enable_sub_top_menu_15'),
'',
array('text', 'top_link_title_4',),
array('text', 'top_link_4',),
array('check', 'enable_top_menu_4'),
array('text', 'sub_top_link_title_16',),
array('text', 'sub_top_link_16',),
array('check', 'enable_sub_top_menu_16'),
array('text', 'sub_top_link_title_17',),
array('text', 'sub_top_link_17',),
array('check', 'enable_sub_top_menu_17'),
array('text', 'sub_top_link_title_18',),
array('text', 'sub_top_link_18',),
array('check', 'enable_sub_top_menu_18'),
array('text', 'sub_top_link_title_19',),
array('text', 'sub_top_link_19',),
array('check', 'enable_sub_top_menu_19'),
array('text', 'sub_top_link_title_20',),
array('text', 'sub_top_link_20',),
array('check', 'enable_sub_top_menu_20'),
'',
array('text', 'top_link_title_5',),
array('text', 'top_link_5',),
array('check', 'enable_top_menu_5'),
array('text', 'sub_top_link_title_21',),
array('text', 'sub_top_link_21',),
array('check', 'enable_sub_top_menu_21'),
array('text', 'sub_top_link_title_22',),
array('text', 'sub_top_link_22',),
array('check', 'enable_sub_top_menu_22'),
array('text', 'sub_top_link_title_23',),
array('text', 'sub_top_link_23',),
array('check', 'enable_sub_top_menu_23'),
array('text', 'sub_top_link_title_24',),
array('text', 'sub_top_link_24',),
array('check', 'enable_sub_top_menu_24'),
array('text', 'sub_top_link_title_25',),
array('text', 'sub_top_link_25',),
array('check', 'enable_sub_top_menu_25'),
'',
array('text', 'top_link_title_6',),
array('text', 'top_link_6',),
array('check', 'enable_top_menu_6'),
array('text', 'sub_top_link_title_26',),
array('text', 'sub_top_link_26',),
array('check', 'enable_sub_top_menu_26'),
array('text', 'sub_top_link_title_27',),
array('text', 'sub_top_link_27',),
array('check', 'enable_sub_top_menu_27'),
array('text', 'sub_top_link_title_28',),
array('text', 'sub_top_link_28',),
array('check', 'enable_sub_top_menu_28'),
array('text', 'sub_top_link_title_29',),
array('text', 'sub_top_link_29',),
array('check', 'enable_sub_top_menu_29'),
array('text', 'sub_top_link_title_30',),
array('text', 'sub_top_link_30',),
array('check', 'enable_sub_top_menu_30'),
'',
array('text', 'top_link_title_7',),
array('text', 'top_link_7',),
array('check', 'enable_top_menu_7'),
array('text', 'sub_top_link_title_31',),
array('text', 'sub_top_link_31',),
array('check', 'enable_sub_top_menu_31'),
array('text', 'sub_top_link_title_32',),
array('text', 'sub_top_link_32',),
array('check', 'enable_sub_top_menu_32'),
array('text', 'sub_top_link_title_33',),
array('text', 'sub_top_link_33',),
array('check', 'enable_sub_top_menu_33'),
array('text', 'sub_top_link_title_34',),
array('text', 'sub_top_link_34',),
array('check', 'enable_sub_top_menu_34'),
array('text', 'sub_top_link_title_35',),
array('text', 'sub_top_link_35',),
array('check', 'enable_sub_top_menu_35'),
'',
array('text', 'top_link_title_8',),
array('text', 'top_link_8',),
array('check', 'enable_top_menu_8'),
array('text', 'sub_top_link_title_36',),
array('text', 'sub_top_link_36',),
array('check', 'enable_sub_top_menu_36'),
array('text', 'sub_top_link_title_37',),
array('text', 'sub_top_link_37',),
array('check', 'enable_sub_top_menu_37'),
array('text', 'sub_top_link_title_38',),
array('text', 'sub_top_link_38',),
array('check', 'enable_sub_top_menu_38'),
array('text', 'sub_top_link_title_39',),
array('text', 'sub_top_link_39',),
array('check', 'enable_sub_top_menu_39'),
array('text', 'sub_top_link_title_40',),
array('text', 'sub_top_link_40',),
array('check', 'enable_sub_top_menu_40'),
'',
array('text', 'top_link_title_9',),
array('text', 'top_link_9',),
array('check', 'enable_top_menu_9'),
array('text', 'sub_top_link_title_41',),
array('text', 'sub_top_link_41',),
array('check', 'enable_sub_top_menu_41'),
array('text', 'sub_top_link_title_42',),
array('text', 'sub_top_link_42',),
array('check', 'enable_sub_top_menu_42'),
array('text', 'sub_top_link_title_43',),
array('text', 'sub_top_link_43',),
array('check', 'enable_sub_top_menu_43'),
array('text', 'sub_top_link_title_44',),
array('text', 'sub_top_link_44',),
array('check', 'enable_sub_top_menu_44'),
array('text', 'sub_top_link_title_45',),
array('text', 'sub_top_link_45',),
array('check', 'enable_sub_top_menu_45'),
);
if ($return_config)
return $config_vars;

$context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=top_menu';
$context['settings_title'] = $txt['top_menu_title'];

// Are you saving?
if (isset($_GET['save']))
{
checkSession();

saveDBSettings($config_vars);

redirectexit('action=admin;area=modsettings;sa=top_menu');

}

prepareDBSettingContext($config_vars);

}

./Sources/Admin.php
Bul:
Kod: [Seç]
// Mod Authors for a "ADD AFTER" on this line. Ensure you end your change with a comma. For example:
Değiştir:
Kod: [Seç]
'top_menu' => array($txt['top_menu_title']),
// Mod Authors for a "ADD AFTER" on this line. Ensure you end your change with a comma. For example:

./Themes/default/languages/Modifications.english.php
Bul:
Kod: [Seç]
?>
Öncesine ekle:
Kod: [Seç]
$txt['top_menu_title'] = 'Top menu';
$txt['top_link_1'] = 'Top link 1';
$txt['top_link_2'] = 'Top link 2';
$txt['top_link_3'] = 'Top link 3';
$txt['top_link_4'] = 'Top link 4';
$txt['top_link_5'] = 'Top link 5';
$txt['top_link_6'] = 'Top link 6';
$txt['top_link_7'] = 'Top link 7';
$txt['top_link_8'] = 'Top link 8';
$txt['top_link_9'] = 'Top link 9';
$txt['enable_top_menu_1'] = 'Enable top menu 1';
$txt['enable_top_menu_2'] = 'Enable top menu 2';
$txt['enable_top_menu_3'] = 'Enable top menu 3';
$txt['enable_top_menu_4'] = 'Enable top menu 4';
$txt['enable_top_menu_5'] = 'Enable top menu 5';
$txt['enable_top_menu_6'] = 'Enable top menu 6';
$txt['enable_top_menu_7'] = 'Enable top menu 7';
$txt['enable_top_menu_8'] = 'Enable top menu 8';
$txt['enable_top_menu_9'] = 'Enable top menu 9';
$txt['enable_sub_top_menu_1'] = 'Enable sub top menu 1-1';
$txt['enable_sub_top_menu_2'] = 'Enable sub top menu 1-2';
$txt['enable_sub_top_menu_3'] = 'Enable sub top menu 1-3';
$txt['enable_sub_top_menu_4'] = 'Enable sub top menu 1-4';
$txt['enable_sub_top_menu_5'] = 'Enable sub top menu 1-5';
$txt['enable_sub_top_menu_6'] = 'Enable sub top menu 2-1';
$txt['enable_sub_top_menu_7'] = 'Enable sub top menu 2-2';
$txt['enable_sub_top_menu_8'] = 'Enable sub top menu 2-3';
$txt['enable_sub_top_menu_9'] = 'Enable sub top menu 2-4';
$txt['enable_sub_top_menu_10'] = 'Enable sub top menu 2-5';
$txt['enable_sub_top_menu_11'] = 'Enable sub top menu 3-1';
$txt['enable_sub_top_menu_12'] = 'Enable sub top menu 3-2';
$txt['enable_sub_top_menu_13'] = 'Enable sub top menu 3-3';
$txt['enable_sub_top_menu_14'] = 'Enable sub top menu 3-4';
$txt['enable_sub_top_menu_15'] = 'Enable sub top menu 3-5';
$txt['enable_sub_top_menu_16'] = 'Enable sub top menu 4-1';
$txt['enable_sub_top_menu_17'] = 'Enable sub top menu 4-2';
$txt['enable_sub_top_menu_18'] = 'Enable sub top menu 4-3';
$txt['enable_sub_top_menu_19'] = 'Enable sub top menu 4-4';
$txt['enable_sub_top_menu_20'] = 'Enable sub top menu 4-5';
$txt['enable_sub_top_menu_21'] = 'Enable sub top menu 5-1';
$txt['enable_sub_top_menu_22'] = 'Enable sub top menu 5-2';
$txt['enable_sub_top_menu_23'] = 'Enable sub top menu 5-3';
$txt['enable_sub_top_menu_24'] = 'Enable sub top menu 5-4';
$txt['enable_sub_top_menu_25'] = 'Enable sub top menu 5-5';
$txt['enable_sub_top_menu_26'] = 'Enable sub top menu 6-1';
$txt['enable_sub_top_menu_27'] = 'Enable sub top menu 6-2';
$txt['enable_sub_top_menu_28'] = 'Enable sub top menu 6-3';
$txt['enable_sub_top_menu_29'] = 'Enable sub top menu 6-4';
$txt['enable_sub_top_menu_30'] = 'Enable sub top menu 6-5';
$txt['enable_sub_top_menu_31'] = 'Enable sub top menu 7-1';
$txt['enable_sub_top_menu_32'] = 'Enable sub top menu 7-2';
$txt['enable_sub_top_menu_33'] = 'Enable sub top menu 7-3';
$txt['enable_sub_top_menu_34'] = 'Enable sub top menu 7-4';
$txt['enable_sub_top_menu_35'] = 'Enable sub top menu 7-5';
$txt['enable_sub_top_menu_36'] = 'Enable sub top menu 8-1';
$txt['enable_sub_top_menu_37'] = 'Enable sub top menu 8-2';
$txt['enable_sub_top_menu_38'] = 'Enable sub top menu 8-3';
$txt['enable_sub_top_menu_39'] = 'Enable sub top menu 8-4';
$txt['enable_sub_top_menu_40'] = 'Enable sub top menu 8-5';
$txt['enable_sub_top_menu_41'] = 'Enable sub top menu 9-1';
$txt['enable_sub_top_menu_42'] = 'Enable sub top menu 9-2';
$txt['enable_sub_top_menu_43'] = 'Enable sub top menu 9-3';
$txt['enable_sub_top_menu_44'] = 'Enable sub top menu 9-4';
$txt['enable_sub_top_menu_45'] = 'Enable sub top menu 9-5';
$txt['top_link_title_1'] = 'Top link title 1';
$txt['top_link_title_2'] = 'Top link title 2';
$txt['top_link_title_3'] = 'Top link title 3';
$txt['top_link_title_4'] = 'Top link title 4';
$txt['top_link_title_5'] = 'Top link title 5';
$txt['top_link_title_6'] = 'Top link title 6';
$txt['top_link_title_7'] = 'Top link title 7';
$txt['top_link_title_8'] = 'Top link title 8';
$txt['top_link_title_9'] = 'Top link title 9';
$txt['sub_top_link_1'] = 'Sub top link 1';
$txt['sub_top_link_2'] = 'Sub top link 2';
$txt['sub_top_link_3'] = 'Sub top link 3';
$txt['sub_top_link_4'] = 'Sub top link 4';
$txt['sub_top_link_5'] = 'Sub top link 5';
$txt['sub_top_link_6'] = 'Sub top link 6';
$txt['sub_top_link_7'] = 'Sub top link 7';
$txt['sub_top_link_8'] = 'Sub top link 8';
$txt['sub_top_link_9'] = 'Sub top link 9';
$txt['sub_top_link_10'] = 'Sub top link 10';
$txt['sub_top_link_11'] = 'Sub top link 11';
$txt['sub_top_link_12'] = 'Sub top link 12';
$txt['sub_top_link_13'] = 'Sub top link 13';
$txt['sub_top_link_14'] = 'Sub top link 14';
$txt['sub_top_link_15'] = 'Sub top link 15';
$txt['sub_top_link_16'] = 'Sub top link 16';
$txt['sub_top_link_17'] = 'Sub top link 17';
$txt['sub_top_link_18'] = 'Sub top link 18';
$txt['sub_top_link_19'] = 'Sub top link 19';
$txt['sub_top_link_20'] = 'Sub top link 20';
$txt['sub_top_link_21'] = 'Sub top link 21';
$txt['sub_top_link_22'] = 'Sub top link 22';
$txt['sub_top_link_23'] = 'Sub top link 23';
$txt['sub_top_link_24'] = 'Sub top link 24';
$txt['sub_top_link_25'] = 'Sub top link 25';
$txt['sub_top_link_26'] = 'Sub top link 26';
$txt['sub_top_link_27'] = 'Sub top link 27';
$txt['sub_top_link_28'] = 'Sub top link 28';
$txt['sub_top_link_29'] = 'Sub top link 29';
$txt['sub_top_link_30'] = 'Sub top link 30';
$txt['sub_top_link_31'] = 'Sub top link 31';
$txt['sub_top_link_32'] = 'Sub top link 32';
$txt['sub_top_link_33'] = 'Sub top link 33';
$txt['sub_top_link_34'] = 'Sub top link 34';
$txt['sub_top_link_35'] = 'Sub top link 35';
$txt['sub_top_link_36'] = 'Sub top link 36';
$txt['sub_top_link_37'] = 'Sub top link 37';
$txt['sub_top_link_38'] = 'Sub top link 38';
$txt['sub_top_link_39'] = 'Sub top link 39';
$txt['sub_top_link_40'] = 'Sub top link 40';
$txt['sub_top_link_41'] = 'Sub top link 41';
$txt['sub_top_link_42'] = 'Sub top link 42';
$txt['sub_top_link_43'] = 'Sub top link 43';
$txt['sub_top_link_44'] = 'Sub top link 44';
$txt['sub_top_link_45'] = 'Sub top link 45';
$txt['sub_top_link_title_1'] = 'Sub top link title 1';
$txt['sub_top_link_title_2'] = 'Sub top link title 2';
$txt['sub_top_link_title_3'] = 'Sub top link title 3';
$txt['sub_top_link_title_4'] = 'Sub top link title 4';
$txt['sub_top_link_title_5'] = 'Sub top link title 5';
$txt['sub_top_link_title_6'] = 'Sub top link title 6';
$txt['sub_top_link_title_7'] = 'Sub top link title 7';
$txt['sub_top_link_title_8'] = 'Sub top link title 8';
$txt['sub_top_link_title_9'] = 'Sub top link title 9';
$txt['sub_top_link_title_10'] = 'Sub top link title 10';
$txt['sub_top_link_title_11'] = 'Sub top link title 11';
$txt['sub_top_link_title_12'] = 'Sub top link title 12';
$txt['sub_top_link_title_13'] = 'Sub top link title 13';
$txt['sub_top_link_title_14'] = 'Sub top link title 14';
$txt['sub_top_link_title_15'] = 'Sub top link title 15';
$txt['sub_top_link_title_16'] = 'Sub top link title 16';
$txt['sub_top_link_title_17'] = 'Sub top link title 17';
$txt['sub_top_link_title_18'] = 'Sub top link title 18';
$txt['sub_top_link_title_19'] = 'Sub top link title 19';
$txt['sub_top_link_title_20'] = 'Sub top link title 20';
$txt['sub_top_link_title_21'] = 'Sub top link title 21';
$txt['sub_top_link_title_22'] = 'Sub top link title 22';
$txt['sub_top_link_title_23'] = 'Sub top link title 23';
$txt['sub_top_link_title_24'] = 'Sub top link title 24';
$txt['sub_top_link_title_25'] = 'Sub top link title 25';
$txt['sub_top_link_title_26'] = 'Sub top link title 26';
$txt['sub_top_link_title_27'] = 'Sub top link title 27';
$txt['sub_top_link_title_28'] = 'Sub top link title 28';
$txt['sub_top_link_title_29'] = 'Sub top link title 29';
$txt['sub_top_link_title_30'] = 'Sub top link title 30';
$txt['sub_top_link_title_31'] = 'Sub top link title 31';
$txt['sub_top_link_title_32'] = 'Sub top link title 32';
$txt['sub_top_link_title_33'] = 'Sub top link title 33';
$txt['sub_top_link_title_34'] = 'Sub top link title 34';
$txt['sub_top_link_title_35'] = 'Sub top link title 35';
$txt['sub_top_link_title_36'] = 'Sub top link title 36';
$txt['sub_top_link_title_37'] = 'Sub top link title 37';
$txt['sub_top_link_title_38'] = 'Sub top link title 38';
$txt['sub_top_link_title_39'] = 'Sub top link title 39';
$txt['sub_top_link_title_40'] = 'Sub top link title 40';
$txt['sub_top_link_title_41'] = 'Sub top link title 41';
$txt['sub_top_link_title_42'] = 'Sub top link title 42';
$txt['sub_top_link_title_43'] = 'Sub top link title 43';
$txt['sub_top_link_title_44'] = 'Sub top link title 44';
$txt['sub_top_link_title_45'] = 'Sub top link title 45';

./Themes/default/css/index.css
En alta ekle:
Kod: [Seç]
#site_menu{padding: 12px 0 4px 1em;margin: 0;overflow: hidden;font-size: 1.1em;font-family: tahoma, sans-serif;float: right;}
#site_nav li a.active{background: url(../images/theme/menu_gfx.png) no-repeat 100% -31px;}
#site_nav li a.active span.firstlevel{background: url(../images/theme/menu_gfx.png) no-repeat 0 -31px;}
#site_menu ul li{position: static;}
#site_menu ul li ul{width: 12.2em;}
#site_menu ul li ul li{width: 12em;}
.header_logo{text-align: center;}

Not: Default tema kullananların mevcut main_block.png isimli görseli ektekiyle değiştirmeleri tavsiye olunur.

« Son Düzenleme: 06 Temmuz 2014, 18:48 Gönderen: spina bifida »

05 Temmuz 2014, 05:42
Yanıtla #1
  • *
    • İleti: 273
    • Karma: 1
    • Diyabeturkey
    • Profili Görüntüle

Allah razı olsun abi tam istediğim bir mod oldu. Çok teşekkürler emeğine sağlık...


05 Temmuz 2014, 05:52
Yanıtla #2
  • *
    • İleti: 2018
    • Karma: 41
    • Spina Bifida
    • Profili Görüntüle


06 Temmuz 2014, 07:13
Yanıtla #3
  • *
    • İleti: 273
    • Karma: 1
    • Diyabeturkey
    • Profili Görüntüle

Abi modu kurdum menuleride ayarlıyorum yavaş yavaş ama gözüme takıldıda. admin panelden kaydediyor menuyu ve likleri ama ana sayfada en üsteki menu linklere gidiyor diğerlerini yani alta açılanları algılamıyor sanki kayıt etmemiş gibi. sende demi öyle acaba bakarmısın. hata bendemi ona bakacağım çünkü...


06 Temmuz 2014, 08:01
Yanıtla #4
  • *
    • İleti: 2018
    • Karma: 41
    • Spina Bifida
    • Profili Görüntüle

Verdiğim rahatsızlık nedeniyle özür dilerim. Modun bir bölümü eksik kalmış. Paketi kaldırın ve silin. Sonra konu ekinden tekrar indirip kurunuz. Ya da index.templateden şunu bulup:

Kod: [Seç]
function template_html_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '>
<head>';

// The ?fin20 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css?fin20" />';

// Some browsers need an extra stylesheet due to bugs/compatibility issues.
foreach (array('ie7', 'ie6', 'webkit') as $cssfix)
if ($context['browser']['is_' . $cssfix])
echo '
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/', $cssfix, '.css" />';

// RTL languages require an additional stylesheet.
if ($context['right_to_left'])
echo '
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/rtl.css" />';

// Here comes the JavaScript bits!
echo '
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/script.js?fin20"></script>
<script type="text/javascript" src="', $settings['theme_url'], '/scripts/theme.js?fin20"></script>
<script type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "', $settings['theme_url'], '";
var smf_default_theme_url = "', $settings['default_theme_url'], '";
var smf_images_url = "', $settings['images_url'], '";
var smf_scripturl = "', $scripturl, '";
var smf_iso_case_folding = ', $context['server']['iso_case_folding'] ? 'true' : 'false', ';
var smf_charset = "', $context['character_set'], '";', $context['show_pm_popup'] ? '
var fPmPopup = function ()
{
if (confirm("' . $txt['show_personal_messages'] . '"))
window.open(smf_prepareScriptUrl(smf_scripturl)   "action=pm");
}
addLoadEvent(fPmPopup);' : '', '
var ajax_notification_text = "', $txt['ajax_in_progress'], '";
var ajax_notification_cancel_text = "', $txt['modify_cancel'], '";
// ]]></script>';

echo '
<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
<meta name="description" content="', $context['page_title_html_safe'], '" />', !empty($context['meta_keywords']) ? '
<meta name="keywords" content="' . $context['meta_keywords'] . '" />' : '', '
<title>', $context['page_title_html_safe'], '</title>';

// Please don't index these Mr Robot.
if (!empty($context['robot_no_index']))
echo '
<meta name="robots" content="noindex" />';

// Present a canonical url for search engines to prevent duplicate content in their indices.
if (!empty($context['canonical_url']))
echo '
<link rel="canonical" href="', $context['canonical_url'], '" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="', $scripturl, '?action=help" />
<link rel="search" href="', $scripturl, '?action=search" />
<link rel="contents" href="', $scripturl, '" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']))
echo '
<link rel="alternate" type="application/rss xml" title="', $context['forum_name_html_safe'], ' - ', $txt['rss'], '" href="', $scripturl, '?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="', $scripturl, '?board=', $context['current_board'], '.0" />';

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'];

echo '
</head>
<body>';
}

function template_body_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '<div class="header_logo"> <a href="', $scripturl, '"> <img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" /> </a></div>';
echo !empty($settings['forum_width']) ? '

<div id="wrapper" style="width: ' . $settings['forum_width'] . '">' : '', '
<div id="header"><div class="frame">
<div id="top_section">
<h1 class="forumtitle">
<a href="', $scripturl, '"> ', $context['forum_name'], '</a>
</h1>';

// the upshrink image, right-floated
echo '
<img id="upshrink" src="', $settings['images_url'], '/upshrink.png" alt="*" title="', $txt['upshrink_description'], '" style="display: none;" />';
echo '


       <div id="site_menu" class="align_right">
        <ul class="dropmenu" id="site_nav">';
if (!empty($modSettings['enable_top_menu_1']))
{
echo '
            <li>
                <a class="firstlevel" href="', $modSettings['top_link_1'] , '"><span class="firstlevel">', $modSettings['top_link_title_1'] , '</span></a>
                <ul>';
   if (!empty($modSettings['enable_sub_top_menu_1'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_1'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_2'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_2'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_3'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_3'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_4'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_4'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_5'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_5'] , '</span></a></li>';
echo '</ul>
            </li>';
}
if (!empty($modSettings['enable_top_menu_2']))
{
echo '
            <li>
                <a class="firstlevel" href="', $modSettings['top_link_2'] , '"><span class="firstlevel">', $modSettings['top_link_title_2'] , '</span></a>
                <ul>';
   if (!empty($modSettings['enable_sub_top_menu_6'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_6'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_7'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_7'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_8'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_8'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_9'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_9'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_10'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_10'] , '</span></a></li>';
echo '</ul>
            </li>';
}
if (!empty($modSettings['enable_top_menu_3']))
{
echo '
            <li>
                <a class="firstlevel" href="', $modSettings['top_link_3'] , '"><span class="firstlevel">', $modSettings['top_link_title_3'] , '</span></a>
                <ul>';
   if (!empty($modSettings['enable_sub_top_menu_11'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_11'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_12'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_12'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_13'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_13'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_14'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_14'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_15'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_15'] , '</span></a></li>';
echo '</ul>
            </li>';
}
if (!empty($modSettings['enable_top_menu_4']))
{
echo '
            <li>
                <a class="firstlevel" href="', $modSettings['top_link_4'] , '"><span class="firstlevel">', $modSettings['top_link_title_4'] , '</span></a>
                <ul>';
   if (!empty($modSettings['enable_sub_top_menu_16'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_16'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_17'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_17'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_18'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_18'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_19'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_19'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_20'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_20'] , '</span></a></li>';
echo '</ul>
            </li>';
}
if (!empty($modSettings['enable_top_menu_5']))
{
echo '
            <li>
                <a class="firstlevel" href="', $modSettings['top_link_5'] , '"><span class="firstlevel">', $modSettings['top_link_title_5'] , '</span></a>
                <ul>';
   if (!empty($modSettings['enable_sub_top_menu_21'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_21'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_22'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_22'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_23'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_23'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_24'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_24'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_25'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_25'] , '</span></a></li>';
echo '</ul>
            </li>';
}
if (!empty($modSettings['enable_top_menu_6']))
{
echo '
            <li>
                <a class="firstlevel" href="', $modSettings['top_link_6'] , '"><span class="firstlevel">', $modSettings['top_link_title_6'] , '</span></a>
                <ul>';
   if (!empty($modSettings['enable_sub_top_menu_26'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_26'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_27'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_27'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_28'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_28'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_29'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_29'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_30'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_30'] , '</span></a></li>';
echo '</ul>
            </li>';
}
if (!empty($modSettings['enable_top_menu_7']))
{
echo '
            <li>
                <a class="firstlevel" href="', $modSettings['top_link_7'] , '"><span class="firstlevel">', $modSettings['top_link_title_7'] , '</span></a>
                <ul>';
   if (!empty($modSettings['enable_sub_top_menu_31'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_31'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_32'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_32'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_33'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_33'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_34'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_34'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_35'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_35'] , '</span></a></li>';
echo '</ul>
            </li>';
}
if (!empty($modSettings['enable_top_menu_8']))
{
echo '
            <li>
                <a class="firstlevel" href="', $modSettings['top_link_8'] , '"><span class="firstlevel">', $modSettings['top_link_title_8'] , '</span></a>
                <ul>';
   if (!empty($modSettings['enable_sub_top_menu_36'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_36'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_37'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_37'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_38'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_38'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_39'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_39'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_40'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_40'] , '</span></a></li>';
echo '</ul>
            </li>';
}
if (!empty($modSettings['enable_top_menu_9']))
{
echo '
            <li>
                <a class="firstlevel" href="', $modSettings['top_link_9'] , '"><span class="firstlevel">', $modSettings['top_link_title_9'] , '</span></a>
                <ul>';
   if (!empty($modSettings['enable_sub_top_menu_41'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_41'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_42'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_42'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_43'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_43'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_44'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_44'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_45'])) echo ' <li><a href="', $scripturl, '" class=""><span>', $modSettings['sub_top_link_title_45'] , '</span></a></li>';
echo '</ul>
            </li>';
}
echo '

               
        </ul></div>

</div>
<div id="upper_section" class="middletext"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>

şununla değiştirin:
Kod: [Seç]
function template_body_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '<div class="header_logo"> <a href="', $scripturl, '"> <img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" /> </a></div>';
echo !empty($settings['forum_width']) ? '

<div id="wrapper" style="width: ' . $settings['forum_width'] . '">' : '', '
<div id="header"><div class="frame">
<div id="top_section">
<h1 class="forumtitle">
<a href="', $scripturl, '"> ', $context['forum_name'], '</a>
</h1>';

// the upshrink image, right-floated
echo '
<img id="upshrink" src="', $settings['images_url'], '/upshrink.png" alt="*" title="', $txt['upshrink_description'], '" style="display: none;" />';
echo '


       <div id="site_menu" class="align_right">
        <ul class="dropmenu" id="site_nav">';
if (!empty($modSettings['enable_top_menu_1']))
{
echo '
            <li>
                <a class="firstlevel" href="', $modSettings['top_link_1'] , '"><span class="firstlevel">', $modSettings['top_link_title_1'] , '</span></a>
                <ul>';
   if (!empty($modSettings['enable_sub_top_menu_1'])) echo ' <li><a href="', $modSettings['sub_top_link_1'] , '" class=""><span>', $modSettings['sub_top_link_title_1'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_2'])) echo ' <li><a href="', $modSettings['sub_top_link_2'] , '" class=""><span>', $modSettings['sub_top_link_title_2'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_3'])) echo ' <li><a href="', $modSettings['sub_top_link_3'] , '" class=""><span>', $modSettings['sub_top_link_title_3'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_4'])) echo ' <li><a href="', $modSettings['sub_top_link_4'] , '" class=""><span>', $modSettings['sub_top_link_title_4'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_5'])) echo ' <li><a href="', $modSettings['sub_top_link_5'] , '" class=""><span>', $modSettings['sub_top_link_title_5'] , '</span></a></li>';
echo '</ul>
            </li>';
}
if (!empty($modSettings['enable_top_menu_2']))
{
echo '
            <li>
                <a class="firstlevel" href="', $modSettings['top_link_2'] , '"><span class="firstlevel">', $modSettings['top_link_title_2'] , '</span></a>
                <ul>';
   if (!empty($modSettings['enable_sub_top_menu_6'])) echo ' <li><a href="', $modSettings['sub_top_link_6'] , '" class=""><span>', $modSettings['sub_top_link_title_6'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_7'])) echo ' <li><a href="', $modSettings['sub_top_link_7'] , '" class=""><span>', $modSettings['sub_top_link_title_7'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_8'])) echo ' <li><a href="', $modSettings['sub_top_link_8'] , '" class=""><span>', $modSettings['sub_top_link_title_8'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_9'])) echo ' <li><a href="', $modSettings['sub_top_link_9'] , '" class=""><span>', $modSettings['sub_top_link_title_9'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_10'])) echo ' <li><a href="', $modSettings['sub_top_link_10'] , '" class=""><span>', $modSettings['sub_top_link_title_10'] , '</span></a></li>';
echo '</ul>
            </li>';
}
if (!empty($modSettings['enable_top_menu_3']))
{
echo '
            <li>
                <a class="firstlevel" href="', $modSettings['top_link_3'] , '"><span class="firstlevel">', $modSettings['top_link_title_3'] , '</span></a>
                <ul>';
   if (!empty($modSettings['enable_sub_top_menu_11'])) echo ' <li><a href="', $modSettings['sub_top_link_11'] , '" class=""><span>', $modSettings['sub_top_link_title_11'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_12'])) echo ' <li><a href="', $modSettings['sub_top_link_12'] , '" class=""><span>', $modSettings['sub_top_link_title_12'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_13'])) echo ' <li><a href="', $modSettings['sub_top_link_13'] , '" class=""><span>', $modSettings['sub_top_link_title_13'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_14'])) echo ' <li><a href="', $modSettings['sub_top_link_14'] , '" class=""><span>', $modSettings['sub_top_link_title_14'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_15'])) echo ' <li><a href="', $modSettings['sub_top_link_15'] , '" class=""><span>', $modSettings['sub_top_link_title_15'] , '</span></a></li>';
echo '</ul>
            </li>';
}
if (!empty($modSettings['enable_top_menu_4']))
{
echo '
            <li>
                <a class="firstlevel" href="', $modSettings['top_link_4'] , '"><span class="firstlevel">', $modSettings['top_link_title_4'] , '</span></a>
                <ul>';
   if (!empty($modSettings['enable_sub_top_menu_16'])) echo ' <li><a href="', $modSettings['sub_top_link_16'] , '" class=""><span>', $modSettings['sub_top_link_title_16'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_17'])) echo ' <li><a href="', $modSettings['sub_top_link_17'] , '" class=""><span>', $modSettings['sub_top_link_title_17'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_18'])) echo ' <li><a href="', $modSettings['sub_top_link_18'] , '" class=""><span>', $modSettings['sub_top_link_title_18'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_19'])) echo ' <li><a href="', $modSettings['sub_top_link_19'] , '" class=""><span>', $modSettings['sub_top_link_title_19'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_20'])) echo ' <li><a href="', $modSettings['sub_top_link_20'] , '" class=""><span>', $modSettings['sub_top_link_title_20'] , '</span></a></li>';
echo '</ul>
            </li>';
}
if (!empty($modSettings['enable_top_menu_5']))
{
echo '
            <li>
                <a class="firstlevel" href="', $modSettings['top_link_5'] , '"><span class="firstlevel">', $modSettings['top_link_title_5'] , '</span></a>
                <ul>';
   if (!empty($modSettings['enable_sub_top_menu_21'])) echo ' <li><a href="', $modSettings['sub_top_link_21'] , '" class=""><span>', $modSettings['sub_top_link_title_21'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_22'])) echo ' <li><a href="', $modSettings['sub_top_link_22'] , '" class=""><span>', $modSettings['sub_top_link_title_22'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_23'])) echo ' <li><a href="', $modSettings['sub_top_link_23'] , '" class=""><span>', $modSettings['sub_top_link_title_23'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_24'])) echo ' <li><a href="', $modSettings['sub_top_link_24'] , '" class=""><span>', $modSettings['sub_top_link_title_24'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_25'])) echo ' <li><a href="', $modSettings['sub_top_link_25'] , '" class=""><span>', $modSettings['sub_top_link_title_25'] , '</span></a></li>';
echo '</ul>
            </li>';
}
if (!empty($modSettings['enable_top_menu_6']))
{
echo '
            <li>
                <a class="firstlevel" href="', $modSettings['top_link_6'] , '"><span class="firstlevel">', $modSettings['top_link_title_6'] , '</span></a>
                <ul>';
   if (!empty($modSettings['enable_sub_top_menu_26'])) echo ' <li><a href="', $modSettings['sub_top_link_26'] , '" class=""><span>', $modSettings['sub_top_link_title_26'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_27'])) echo ' <li><a href="', $modSettings['sub_top_link_27'] , '" class=""><span>', $modSettings['sub_top_link_title_27'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_28'])) echo ' <li><a href="', $modSettings['sub_top_link_28'] , '" class=""><span>', $modSettings['sub_top_link_title_28'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_29'])) echo ' <li><a href="', $modSettings['sub_top_link_29'] , '" class=""><span>', $modSettings['sub_top_link_title_29'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_30'])) echo ' <li><a href="', $modSettings['sub_top_link_30'] , '" class=""><span>', $modSettings['sub_top_link_title_30'] , '</span></a></li>';
echo '</ul>
            </li>';
}
if (!empty($modSettings['enable_top_menu_7']))
{
echo '
            <li>
                <a class="firstlevel" href="', $modSettings['top_link_7'] , '"><span class="firstlevel">', $modSettings['top_link_title_7'] , '</span></a>
                <ul>';
   if (!empty($modSettings['enable_sub_top_menu_31'])) echo ' <li><a href="', $modSettings['sub_top_link_31'] , '" class=""><span>', $modSettings['sub_top_link_title_31'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_32'])) echo ' <li><a href="', $modSettings['sub_top_link_32'] , '" class=""><span>', $modSettings['sub_top_link_title_32'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_33'])) echo ' <li><a href="', $modSettings['sub_top_link_33'] , '" class=""><span>', $modSettings['sub_top_link_title_33'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_34'])) echo ' <li><a href="', $modSettings['sub_top_link_34'] , '" class=""><span>', $modSettings['sub_top_link_title_34'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_35'])) echo ' <li><a href="', $modSettings['sub_top_link_35'] , '" class=""><span>', $modSettings['sub_top_link_title_35'] , '</span></a></li>';
echo '</ul>
            </li>';
}
if (!empty($modSettings['enable_top_menu_8']))
{
echo '
            <li>
                <a class="firstlevel" href="', $modSettings['top_link_8'] , '"><span class="firstlevel">', $modSettings['top_link_title_8'] , '</span></a>
                <ul>';
   if (!empty($modSettings['enable_sub_top_menu_36'])) echo ' <li><a href="', $modSettings['sub_top_link_36'] , '" class=""><span>', $modSettings['sub_top_link_title_36'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_37'])) echo ' <li><a href="', $modSettings['sub_top_link_37'] , '" class=""><span>', $modSettings['sub_top_link_title_37'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_38'])) echo ' <li><a href="', $modSettings['sub_top_link_38'] , '" class=""><span>', $modSettings['sub_top_link_title_38'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_39'])) echo ' <li><a href="', $modSettings['sub_top_link_39'] , '" class=""><span>', $modSettings['sub_top_link_title_39'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_40'])) echo ' <li><a href="', $modSettings['sub_top_link_40'] , '" class=""><span>', $modSettings['sub_top_link_title_40'] , '</span></a></li>';
echo '</ul>
            </li>';
}
if (!empty($modSettings['enable_top_menu_9']))
{
echo '
            <li>
                <a class="firstlevel" href="', $modSettings['top_link_9'] , '"><span class="firstlevel">', $modSettings['top_link_title_9'] , '</span></a>
                <ul>';
   if (!empty($modSettings['enable_sub_top_menu_41'])) echo ' <li><a href="', $modSettings['sub_top_link_41'] , '" class=""><span>', $modSettings['sub_top_link_title_41'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_42'])) echo ' <li><a href="', $modSettings['sub_top_link_42'] , '" class=""><span>', $modSettings['sub_top_link_title_42'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_43'])) echo ' <li><a href="', $modSettings['sub_top_link_43'] , '" class=""><span>', $modSettings['sub_top_link_title_43'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_44'])) echo ' <li><a href="', $modSettings['sub_top_link_44'] , '" class=""><span>', $modSettings['sub_top_link_title_44'] , '</span></a></li>';
                   if (!empty($modSettings['enable_sub_top_menu_45'])) echo ' <li><a href="', $modSettings['sub_top_link_45'] , '" class=""><span>', $modSettings['sub_top_link_title_45'] , '</span></a></li>';
echo '</ul>
            </li>';
}
echo '

               
        </ul></div>

</div>
<div id="upper_section" class="middletext"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>


06 Temmuz 2014, 08:06
Yanıtla #5
  • *
    • İleti: 273
    • Karma: 1
    • Diyabeturkey
    • Profili Görüntüle

Rahatsızlık ne demek abi. İnsanlık hali gözden kaçmış olabilir. Allah razı olsun şimdi düzeldi.


07 Temmuz 2014, 01:45
Yanıtla #6
  • *
    • İleti: 273
    • Karma: 1
    • Diyabeturkey
    • Profili Görüntüle

abi bunda logo ile forumun çerçevesini aynı yapabilirmiyiz.

yani logo üstte dar kalıyor tema ayarlarından da tutturamadım ne ölçüsünde yapmam lazım acaba. her ekranda aynı gözükmesi için


07 Temmuz 2014, 01:48
Yanıtla #7
  • *
    • İleti: 2018
    • Karma: 41
    • Spina Bifida
    • Profili Görüntüle

forum genişliğini logonun genişliği ile aynı yapın.