Bölüm içinde kalsın ama anasayfadan tamamen kalksın doğrumu anladım ?
Bu özellik size üyenin attığı tüm iletileri gösterme olanağı sağlayacaktır. Not sadece size izin verilen bölümlerdeki iletilerini görebilirsiniz.
İletileri Göster Menü// Show the page index... "Pages: [1]".
// Show the topic information - icon, subject, etc.
// Show the page index... "Pages: [1]".
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="middletext" valign="bottom" style="padding-bottom: 4px;">', $txt[139], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' <a href="#lastPost"><b>' . $txt['topbottom5'] . '</b></a>' : '', '</td>
<td align="right" style="padding-right: 1ex;">
<div class="nav" style="margin-bottom: 2px;"> ', $context['previous_next'], '<>
<table cellpadding="0" cellspacing="0">
<tr>
<td>
<a href="', $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'],'"><img src="', $settings['images_url'], '/buttons/cevapyaz.gif" alt="Cevap Yaz" title="Cevap Yaz" border="0"></a>
<a href="', $scripturl . '?action=post;board=' . $context['current_board'] . '.0'.'" ><img src="', $settings['images_url'], '/buttons/yenikonu.gif" alt="Yeni Konu" title="Yeni Konu" border="0"></a>
<a href="', $scripturl . '?action=notify;sa=' . ($context['is_marked_notify'] ? 'off' : 'on') . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'],'" onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_topic'] : $txt['notification_enable_topic']) . '\');"><img src="', $settings['images_url'], '/buttons/haberver.gif" alt="Haberdar Et" title="Haberdar Et" border="0"></a>
<a href="', $scripturl . '?action=markasread;sa=topic;t=' . $context['mark_unread_time'] . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'],'"><img src="', $settings['images_url'], '/buttons/okunmadi.gif" alt="Okunmadi Say" title="Okunmadi Say" border="0"></a>
<a href="', $scripturl . '?action=sendtopic;topic=' . $context['current_topic'] . '.0','"><img src="', $settings['images_url'], '/buttons/gonder.gif" alt="Bu Konuyu Gönder" title="Bu Konuyu Gönder" border="0"></a>
<a href="', $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0','"><img src="', $settings['images_url'], '/buttons/yazdir.gif" alt="Yazdir" title="Yazdir" border="0"></a>
</td>
</tr>
</table>
</td>
</tr>
</table>';
// As before, build the custom button right.
if ($context['can_add_poll'])
$normal_buttons['custom'] = array('text' => 'add_poll', 'image' => 'add_poll.gif', 'lang' => true, 'url' => $scripturl . '?action=editpoll;add;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);
elseif ($context['user']['is_logged'] && $settings['show_mark_read'])
$normal_buttons['custom'] = array('text' => 'mark_unread', 'image' => 'markunread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=topic;t=' . $context['mark_unread_time'] . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="middletext">', $txt[139], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' <a href="#top"><b>' . $txt['topbottom4'] . '</b></a>' : '', '</td>
<td align="right" style="padding-right: 1ex;">
<table cellpadding="0" cellspacing="0">
<tr>
', template_button_strip($normal_buttons, 'top', true), '
</tr>
</table>
</td>
</tr>
</table>';
// As before, build the custom button right.
if ($context['user']['is_logged'] && $settings['show_mark_read'])
$normal_buttons['custom'] = array('text' => 'mark_unread', 'image' => 'markunread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=topic;t=' . $context['mark_unread_time'] . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);
elseif ($context['can_add_poll'])
$normal_buttons['custom'] = array('text' => 'add_poll', 'image' => 'add_poll.gif', 'lang' => true, 'url' => $scripturl . '?action=editpoll;add;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="middletext">', $txt[139], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' <a href="#top"><b>' . $txt['topbottom4'] . '</b></a>' : '', '</td>
<td align="right" style="padding-right: 1ex;">
<table cellpadding="0" cellspacing="0">
<tr>
<td>
<a href="', $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'],'"><img src="', $settings['images_url'], '/buttons/cevapyaz.gif" alt="Cevap Yaz" title="Cevap Yaz" border="0"></a>
<a href="', $scripturl . '?action=post;board=' . $context['current_board'] . '.0'.'" ><img src="', $settings['images_url'], '/buttons/yenikonu.gif" alt="Yeni Konu" title="Yeni Konu" border="0"></a>
<a href="', $scripturl . '?action=notify;sa=' . ($context['is_marked_notify'] ? 'off' : 'on') . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'],'" onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_topic'] : $txt['notification_enable_topic']) . '\');"><img src="', $settings['images_url'], '/buttons/haberver.gif" alt="Haberdar Et" title="Haberdar Et" border="0"></a>
<a href="', $scripturl . '?action=markasread;sa=topic;t=' . $context['mark_unread_time'] . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'],'"><img src="', $settings['images_url'], '/buttons/okunmadi.gif" alt="Okunmadi Say" title="Okunmadi Say" border="0"></a>
<a href="', $scripturl . '?action=sendtopic;topic=' . $context['current_topic'] . '.0','"><img src="', $settings['images_url'], '/buttons/gonder.gif" alt="Bu Konuyu Gönder" title="Bu Konuyu Gönder" border="0"></a>
<a href="', $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0','"><img src="', $settings['images_url'], '/buttons/yazdir.gif" alt="Yazdir" title="Yazdir" border="0"></a>
</td>
</tr>
</table>
</td>
</tr>
</table>';
echo '
<td valign="top" align="', !$context['right_to_left'] ? 'right' : 'left', '" class="nav"> ', $context['previous_next'], '</td>
</tr>
</table>';
$mod_buttons = array(
'move' => array('test' => 'can_move', 'text' => 132, 'image' => 'admin_move.gif', 'lang' => true, 'url' => $scripturl . '?action=movetopic;topic=' . $context['current_topic'] . '.0'),
'delete' => array('test' => 'can_delete', 'text' => 63, 'image' => 'admin_rem.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt[162] . '\');"', 'url' => $scripturl . '?action=removetopic2;topic=' . $context['current_topic'] . '.0;sesc=' . $context['session_id']),
'lock' => array('test' => 'can_lock', 'text' => empty($context['is_locked']) ? 'smf279' : 'smf280', 'image' => 'admin_lock.gif', 'lang' => true, 'url' => $scripturl . '?action=lock;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']),
'sticky' => array('test' => 'can_sticky', 'text' => empty($context['is_sticky']) ? 'smf277' : 'smf278', 'image' => 'admin_sticky.gif', 'lang' => true, 'url' => $scripturl . '?action=sticky;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']),
'merge' => array('test' => 'can_merge', 'text' => 'smf252', 'image' => 'merge.gif', 'lang' => true, 'url' => $scripturl . '?action=mergetopics;board=' . $context['current_board'] . '.0;from=' . $context['current_topic']),
'remove_poll' => array('test' => 'can_remove_poll', 'text' => 'poll_remove', 'image' => 'admin_remove_poll.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt['poll_remove_warn'] . '\');"', 'url' => $scripturl . '?action=removepoll;topic=' . $context['current_topic'] . '.' . $context['start']),
'calendar' => array('test' => 'calendar_post', 'text' => 'calendar37', 'image' => 'linktocal.gif', 'lang' => true, 'url' => $scripturl . '?action=post;calendar;msg=' . $context['topic_first_message'] . ';topic=' . $context['current_topic'] . '.0;sesc=' . $context['session_id']),
);
echo '
<td valign="top" align="', !$context['right_to_left'] ? 'right' : 'left', '" class="nav"> ', $context['previous_next'], '</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 1ex;">
<tr>
<td>';
if ($context['can_move'])
{
echo '
<a href="', $scripturl . '?action=movetopic;topic=' . $context['current_topic'] . '"><img src="', $settings['images_url'], '/buttons/konuyutasi.gif"></a>';}
if ($context['can_delete'])
{
echo'
<a href="' , $scripturl . '?action=removetopic2;topic=' . $context['current_topic'] . '.0;sesc=' . $context['session_id'], '" onclick="return confirm(\'' . $txt[162] . '\');"><img src="', $settings['images_url'], '/buttons/konuyusil.gif"></a>';}
if ($context['can_lock'])
{
echo'
<a href="' , $scripturl . '?action=lock;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'], '"><img src="', $settings['images_url'], '/buttons/', !$context['is_locked'] ? 'kilitle.gif' : 'kilidiac.gif', '"></a>';}
if ($context['can_sticky'])
{
echo'
<a href="' , $scripturl . '?action=sticky;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'], '"><img src="', $settings['images_url'], '/buttons/', !$context['is_sticky'] ? 'sabitle.gif' : 'sabitikaldir.gif', '"></a>';}
if ($context['can_merge'])
{
echo'
<a href="', $scripturl . '?action=mergetopics;board=' . $context['current_board'] . '.0;from=' . $context['current_topic'] . '"><img src="', $settings['images_url'], '/buttons/birlestir.gif"></a>';}
if ($context['can_remove_poll'])
{
echo'
<a href="', $scripturl . '?action=removepoll;topic=' . $context['current_topic'] . '.' . $context['start'] . '" onclick="return confirm(\'' . $txt['poll_remove_warn'] . '\');"><img src="', $settings['images_url'], '/buttons/anketisil.gif"></a>';}
if ($context['calendar_post'])
{
echo'
<a href="', $scripturl . '?action=post;calendar;msg=' . $context['topic_first_message'] . ';topic=' . $context['current_topic'] . '.0;sesc=' . $context['session_id'] . '"><img src="', $settings['images_url'], '/buttons/takvimeekle.gif"></a>';}
echo'
</td>
</tr>
</table>';
// They can only mark read if they are logged in and it's enabled!
if (!$context['user']['is_logged'] || !$settings['show_mark_read'])
unset($normal_buttons['markread']);
if (!$context['no_topic_listing'])
{
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="middletext">', $txt[139], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' <a href="#bot"><b>' . $txt['topbottom5'] . '</b></a>' : '', '</td>
<td align="right" style="padding-right: 1ex;">
<table cellpadding="0" cellspacing="0">
<tr>
', template_button_strip($normal_buttons, 'bottom'), '
</tr>
</table>
</td>
</tr>
</table>';
// They can only mark read if they are logged in and it's enabled!
if (!$context['user']['is_logged'] || !$settings['show_mark_read'])
unset($normal_buttons['markread']);
if (!$context['no_topic_listing'])
{
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="middletext">', $txt[139], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' <a href="#bot"><b>' . $txt['topbottom5'] . '</b></a>' : '', '</td>
<td align="right" style="padding-right: 1ex;">
<table cellpadding="0" cellspacing="0">
<tr>
<td>
<a href="', $scripturl . '?action=post;board=' . $context['current_board'] . '.0'.'"><img src="', $settings['images_url'], '/buttons/yenikonu.gif" alt="Yeni Konu" title="Yeni Konu" border="0"></a>
<a href="', $scripturl . '?action=post;board=' . $context['current_board'] . '.0;poll'.'"><img src="', $settings['images_url'], '/buttons/yenianket.gif" alt="Yeni Anket" title="Yeni Anket" border="0"></a>
<a href="', $scripturl . '?action=notifyboard;sa=' . ($context['is_marked_notify'] ? 'off' : 'on') . ';board=' . $context['current_board'] . '.' . $context['start'] . ';sesc=' . $context['session_id'],'" onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_board'] : $txt['notification_enable_board']) . '\');"><img src="', $settings['images_url'], '/buttons/haberver.gif" alt="Haberdar Et" title="Haberdar Et" border="0"></a>
<a href="', $scripturl . '?action=markasread;sa=board;board=' . $context['current_board'] . '.0;sesc=' . $context['session_id'],'"><img src="', $settings['images_url'], '/buttons/okundu.gif" alt="Okundu Say" title="Okundu Say" border="0"></a>
</td></tr>
</table>
</td>
</tr>
</table>';
'reply' => array('test' => 'can_reply', 'text' => 146, 'image' => 'reply.gif', 'lang' => true, 'url' => $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies']),
</head>
<!-- dd menu -->
<script type="text/javascript">
<!--
var timeout = 500;
var closetimer = 0;
var ddmenuitem = 0;
// open hidden layer
function mopen(id)
{
// cancel close timer
mcancelclosetime();
// close old layer
if(ddmenuitem) ddmenuitem.style.visibility = \'hidden\';
// get new layer and show it
ddmenuitem = document.getElementById(id);
ddmenuitem.style.visibility = \'visible\';
}
// close showed layer
function mclose()
{
if(ddmenuitem) ddmenuitem.style.visibility = \'hidden\';
}
// go close timer
function mclosetime()
{
closetimer = window.setTimeout(mclose, timeout);
}
// cancel close timer
function mcancelclosetime()
{
if(closetimer)
{
window.clearTimeout(closetimer);
closetimer = null;
}
}
// close layer when click-out
document.onclick = mclose;
// -->
</script>
function template_menu()
// Generate a strip of buttons.
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;
echo '
<ul id="sddm">';
echo '<li><a href="', $scripturl, '">Anasayfa</a>
</li>';
echo '<li><a href="', $scripturl, '?action=search">Ara</a>
</li>';
echo '<li><a href="', $scripturl, '?action=help">Yardım</a>
</li>';
if ($context['allow_admin'])
echo '<li><a href="', $scripturl, '?action=admin" onmouseover="mopen('m2')" onmouseout="mclosetime()">Admin</a>
<div id="m2" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
<a href="', $scripturl, '?action=admin">Admin</a>
<a href="', $scripturl, '?action=mlist">Üyeler</a>
</div>
</li>';
echo '<li><a href="#" onmouseover="mopen('m3')" onmouseout="mclosetime()">Etiketler</a>
<div id="m3" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
<a href="#">link1</a>
<a href="#">link2</a>
</div>
</li>';
if ($context['user']['is_logged'])
echo '<li><a href="', $scripturl, '?action=profile" onmouseover="mopen('m4')" onmouseout="mclosetime()">Profilim</a>
<div id="m4" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
<a href="', $scripturl, '?action=pm">Özel Mesajlarım</a>
<a href="', $scripturl, '?action=unread">Okumadığım Mesajlar</a>
<a href="', $scripturl, '?action=unreadrelies">Bana Yazılanlar</a>
</div>
</li>';
if ($context['user']['is_logged'])
echo '<li><a href="#" onmouseover="mopen('m5')" onmouseout="mclosetime()">Extralar</a>
<div id="m5" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
<a href="#" target="_blank">link</a>
<a href="#">link2</a>
<a href="#">link3</a>
</div>
</li>';
if ($context['user']['is_guest'])
echo '<li><a href="', $scripturl, '?action=login">Giriş</a>
</li>';
if ($context['user']['is_guest'])
echo '<li><a href="', $scripturl, '?action=register">Üye Ol</a>
</li>';
if ($context['user']['is_logged'])
echo '<li><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">Çıkış</a>
</li>';
echo '
</ul>
<div style="clear:both"></div>
<div style="clear:both"></div>';
}
#sddm
{
margin: 0;
padding: 0;
z-index: 30
}
#sddm li
{
margin: 0;
padding: 0;
list-style: none;
float: left;
font: bold 11px arial
}
#sddm li a
{
display: block;
margin: 0 1px 0 0;
padding: 4px 10px;
width: 60px;
background: #5970B2;
color: #FFF;
text-align: center;
text-decoration: none
}
#sddm li a:hover
{
background: #49A3FF
}
#sddm div
{
position: absolute;
visibility: hidden;
margin: 0;
padding: 0;
background: #EAEBD8;
border: 1px solid #5970B2
}
#sddm div a
{
position: relative;
display: block;
margin: 0;
padding: 5px 10px;
width: auto;
white-space: nowrap;
text-align: left;
text-decoration: none;
background: #EAEBD8;
color: #2875DE;
font: 11px arial
}
#sddm div a:hover
{ background: #49A3FF;
color: #FFF
}
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
</div>';
echo'
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<td height="30" width="100%" class=titlebg>';
echo'
<form action="', $scripturl, '" method="get" style="padding:0; margin: 0;">
<select name="jumpto" id="jumpto" onchange="if (this.selectedIndex > 0 && this.options[this.selectedIndex].value) window.location.href = smf_scripturl + this.options[this.selectedIndex].value.substr(smf_scripturl.indexOf('?') == -1 || this.options[this.selectedIndex].value.substr(0, 1) != '?' ? 0 : 1);">
<optgroup style="background-color: #b0c4de;" label="Select Language"></optgroup>
';
echo '
<option value="?language=turkish">--Dili Seç</option>
<option value="?language=turkish">--Turkçe (TR)</option>
<option value="?language=english">--English (US)</option>
</form>
';
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '
<td align="right" class="titlebg"><a href="', $scripturl, '?action=admin">' , $txt[2] , '</a></td>';
echo'
<td align="right" class="titlebg"><a href="/forum/archive.php">Arsiv</a></td>
</td>
</table>';
echo '
</div>';
echo'
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<td height="30" width="100%" class=titlebg>';
echo'
<form action="', $scripturl, '" method="get" style="padding:0; margin: 0;">
<select name="jumpto" id="jumpto" onchange="if (this.selectedIndex > 0 && this.options[this.selectedIndex].value) window.location.href = smf_scripturl + this.options[this.selectedIndex].value.substr(smf_scripturl.indexOf('?') == -1 || this.options[this.selectedIndex].value.substr(0, 1) != '?' ? 0 : 1);">
<optgroup style="background-color: #b0c4de;" label="Select Language"></optgroup>
';
echo '
<option value="?language=turkish">--Dili Seç</option>
<option value="?language=turkish">--Turkçe (TR)</option>
<option value="?language=english">--English (US)</option>
</form>
';
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '
<td align="right" class="titlebg"><a href="', $scripturl, '?action=admin">' , $txt[2] , '</a></td>';
echo'
</td>
</table>';
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;
// Work out where we currently are.
$current_action = 'home';
if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
$current_action = 'admin';
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
$current_action = $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action = 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';
// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first = 'last';
$last = 'first';
}
else
{
$first = 'first';
$last = 'last';
}
// Show the start of the tab section.
echo '
<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
<tr>
<td class="maintab_' , $first , '"> </td>';
// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </td>' : '';
// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </td>' : '';
// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </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 . '"> </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 . '"> </td>' : '';
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </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 . '"> </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 . '"> </td>' : '';
// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </td>' : '';
// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </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 . '"> </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 . '"> </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 . '"> </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 . '"> </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 . '"> </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 . '"> </td>' : '';
// The end of tab section.
echo '
<td class="maintab_' , $last , '"> </td>
</tr>
</table>';
}
// Show the menu up top. Something like [home] [help] [pm] [logout] [login] ...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;
echo '
<div id="kwick">
<ul class="kwicks">';
// Show the [home] button.
echo '<li><a href="', $scripturl, '" class="kwick opt1">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 0px 0;" border="0" /><span>' : $txt[103]), '</span></a></li>';
// Show the [help] button.
echo '<li><a href="', $scripturl, '?action=help" class="kwick opt2" >', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" style="margin: 0px 0;" border="0" /><span>' : $txt[119]), '</span></a></li>';
// How about the [search] button?
if ($context['allow_search'])
echo '<li><a href="', $scripturl, '?action=search" class="kwick opt3">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/search.gif" alt="' . $txt[182] . '" style="margin: 0px 0;" border="0" /><span>' : $txt[182]), '</span></a></li>';
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin']){
echo '<li><a href="', $scripturl, '?action=admin" class="kwick opt4">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin.gif" alt="' . $txt[2] . '" style="margin: 0px 0;" border="0" /><span>' : $txt[2]), '</span></a></li>';
}
// Edit Profile [profile] :x
if ($context['allow_edit_profile'])
echo '<li><a href="', $scripturl, '?action=profile" class="kwick opt5">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.gif" alt="' . $txt[79] . '" style="margin: 0px 0;" border="0" /><span>' : $txt[467]), '</span></a></li>';
// The Private Message [PM]!
if ($context['allow_pm'])
echo '<li><a href="', $scripturl, '?action=pm" class="kwick opt6">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/pm.gif" alt="' . $txt[144] . '" style="margin: 0px 0;" border="0" /><span>' : $txt['smf199']), '</span></a></li>';
// The [calendar]!
if ($context['allow_calendar'])
echo '<li><a href="', $scripturl, '?action=calendar" class="kwick opt7">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" style="margin: 0px 0;" border="0" /><span>' : $txt['calendar24']), '</span></a></li>';
// The [member] list button
if ($context['allow_memberlist'])
echo '<li><a href="', $scripturl, '?action=mlist" class="kwick opt8">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/memberlist.gif" alt="' . $txt[331] .'" style="margin: 0px 0;" border="0" /><span>' : $txt[331]), '</span></a></li>';
// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo '<li><a href="', $scripturl, '?action=login" class="kwick opt9">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/login.gif" alt="' . $txt[34] . '" style="margin: 0px 0;" border="0" /><span>' : $txt[34]), '</span></a></li>';
// If the user is a guest, show [register] button.
if ($context['user']['is_guest'])
echo '<li><a href="', $scripturl, '?action=register" class="kwick opt10">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/register.gif" alt="' . $txt[97] . '" style="margin: 0px 0;" border="0" /><span>' : $txt[97]), '</span></a></li>';
// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '<li><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '" class="kwick opt11">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/logout.gif" alt="' . $txt[108] . '" style="margin: 0px 0;" border="0" /><span>' : $txt[108]), '</span></a></li>';
echo '</ul></div>';
}
</head>
<script language="JavaScript" type="text/javascript" src="', $settings['theme_url'], '/mootools.js"></script>
<script language="JavaScript" type="text/javascript" src="', $settings['theme_url'], '/imageMenu.js"></script>
<script language="JavaScript" type="text/javascript" src="', $settings['theme_url'], '/kwick.js"></script>
/*MooTools Menu */
#kwick {
width: 100%;
}
#kwick .kwicks {
background-color:transparent;
display: block;
height: 80px;
margin: 0px;
margin-top: 8px;
padding: 0
}
#kwick li {
float: left;
margin: 0;
padding: 0;
list-style: none;
}
#kwick .kwick {
display: block;
cursor: pointer;
overflow: hidden;
height: 80px;
width: 102px;
background: #fff;
}
#kwick .kwick span {
display: none;
}
#kwick .opt1 {
background-color:transparent;
outline: none
}
#kwick .opt2 {
background-color:transparent;
outline: none
}
#kwick .opt3 {
background-color:transparent;
outline: none
}
#kwick .opt4 {
background-color:transparent;
outline: none
}
#kwick .opt5 {
background-color:transparent;
outline: none
}
#kwick .opt6 {
background-color:transparent;
outline: none;
}
#kwick .opt7 {
background-color:transparent;
outline: none
}
#kwick .opt8 {
background-color:transparent;
outline: none
}
#kwick .opt9 {
background-color:transparent;
outline: none
}
#kwick .opt10 {
background-color:transparent;
outline: none
}
#kwick .opt11 {
background-color:transparent;
outline: none
border-right: 0px none;
}
}
// Generate a strip of buttons.
echo '<iframe src="portalmenu.htm" frameborder="0" width="100%" scrolling="no" height="200"></iframe>';
/* Each category in categories is made up of:
echo '<iframe src="portalmenu.htm" frameborder="0" width="100%" scrolling="no" height="200"></iframe>';
</head>
<body>';
echo'<div id="site_menu" class="align_right">
<ul class="dropmenu" id="site_nav">
<br></br>
<li>
<a class="firstlevel" href="http://www.spinabifidaturkey.com/smf/index.php?page=page1357"><span class="firstlevel">Sınav</span></a>
<ul>
<li>
<a href="http://www.spinabifidaturkey.com/smf/index.php?page=page1357" class=""><span>Sınav 1</span></a>
</li>
<li>
<a href="http://www.spinabifidaturkey.com/smf/index.php?page=page72" class=""><span>Sınav 2</span></a>
</li>
<li>
<a href="http://www.spinabifidaturkey.com/smf/index.php?page=page1974" class=""><span>Sınav 3</span></a>
</li>
<li>
<a href="http://www.spinabifidaturkey.com/smf/index.php?page=page2100" class=""><span>Sınav 4</span></a>
</li>
</ul>
</li>
<li>
<a class="firstlevel" href="http://www.spinabifidaturkey.com/smf/index.php?page=page1357"><span class="firstlevel">Puzzle</span></a>
<ul>
<li>
<a href="http://www.spinabifidaturkey.com/smf/index.php?page=page4059" class=""><span>Derin</span></a>
</li>
<li>
<a href="http://www.spinabifidaturkey.com/smf/index.php?page=page641" class=""><span>Gökay</span></a>
</li>
<li>
<a href="http://www.spinabifidaturkey.com/smf/index.php?page=page1790" class=""><span>Gülbahar</span></a>
</li>
<li>
<a href="http://www.spinabifidaturkey.com/smf/index.php?page=page4527" class=""><span>Hamza</span></a>
</li>
<li>
<a href="http://www.spinabifidaturkey.com/smf/index.php?page=page4456" class=""><span>Hatice</span></a>
</li>
<li>
<a href="http://www.spinabifidaturkey.com/smf/index.php?page=page3890" class=""><span>Kaan</span></a>
</li>
<li>
<a href="http://www.spinabifidaturkey.com/smf/index.php?page=page2646" class=""><span>Serden</span></a>
</li>
</ul>
</li>
<li>
<a class="firstlevel" href="http://www.spinabifidaturkey.com/smf/index.php?board=7.0"><span class="firstlevel">Üroloji</span></a>
<ul>
<li>
<a href="http://www.spinabifidaturkey.com/smf/index.php?board=235.0" class=""><span>Dr. Arman ÖZDEMİR Bölümü</span></a>
</li>
<li>
<a href="http://www.spinabifidaturkey.com/smf/index.php?board=71.0" class=""><span>Doç. Dr. Tarkan SOYGUR Bölümü</span></a>
</li>
<li>
<a href="http://www.spinabifidaturkey.com/smf/index.php?board=122.0" class=""><span>+18</span></a>
</li>
<li>
<a href="http://www.spinabifidaturkey.com/smf/index.php?board=230.0" class=""><span>Sfinkter By-pass</span></a>
</li>
<li>
<a href="http://www.spinabifidaturkey.com/smf/index.php?page=page4456" class=""><span>Hatice</span></a>
</li>
</ul>
</li>
</li>
<li>
<a class="firstlevel" href="http://www.spinabifidaturkey.com/smf/index.php?action=downloads"><span class="firstlevel">Download</span></a>
<ul>
<li>
<a href="http://www.spinabifidaturkey.com/smf/index.php?action=downloads;cat=1" class=""><span>Spina Bifida Dökümanları</span></a>
</li>
<li>
<a href="http://www.spinabifidaturkey.com/smf/index.php?action=downloads;cat=2" class=""><span>Programlar</span></a>
</li>
<li>
<a href="http://www.spinabifidaturkey.com/smf/index.php?action=downloads;cat=3" class=""><span>Çocuklar için</span></a>
</li>
</ul>
</li>
<li>
<a class="firstlevel" href="http://www.spinabifidaturkey.com/smf/index.php?board=286.0"><span class="firstlevel">ftrasiye</span></a>
</li>
<li>
<a class="firstlevel" href="http://www.spinabifidaturkey.com/smf/index.php?topic=4759.msg21899#msg21899"><span class="firstlevel">Vip</span></a>
</li>
<li>
<a class="firstlevel" href="http://www.spinabifidaturkey.com/smf/index.php?page=page219"><span class="firstlevel">Sohbet</span></a>
</li>
</div>';
/* Styles for the standard dropdown menus.
------------------------------------------------------- */
#main_menu
{
padding: 0 0 0 0.5em;
float: left;
margin: 0;
width: 98%;
}
.dropmenu, .dropmenu ul
{
list-style: none;
line-height: 1em;
padding: 0;
margin: 0;
}
.dropmenu
{
padding: 0 0.5em;
}
.dropmenu a
{
display: block;
color: #000;
text-decoration: none;
}
.dropmenu a span
{
display: block;
padding: 0 0 0 5px;
font-size: 0.9em;
}
/* the backgrounds first level only*/
.dropmenu li a.firstlevel
{
margin-right: 8px;
}
.dropmenu li a.firstlevel span.firstlevel
{
display: block;
position: relative;
left: -5px;
padding-left: 5px;
height: 22px;
line-height: 20px;
}
.dropmenu li
{
float: left;
padding: 0;
margin: 0;
position: relative;
}
.dropmenu li ul
{
z-index: 90;
display: none;
position: absolute;
width: 19.2em;
font-weight: normal;
border-bottom: 1px solid #999;
background: url(images/theme/menu_gfx.png) 0 -100px no-repeat;
padding: 7px 0 0 0;
}
.dropmenu li li
{
width: 19em;
margin: 0;
border-left: 1px solid #999;
border-right: 1px solid #999;
}
.dropmenu li li a span
{
display: block;
padding: 8px;
}
.dropmenu li ul ul
{
margin: -1.8em 0 0 13em;
}
/* the active button */
.dropmenu li a.active
{
background: url(images/theme/menu_gfx.png) no-repeat 100% 0;
color: #fff;
font-weight: bold;
}
.dropmenu li a.active span.firstlevel
{
background: url(images/theme/menu_gfx.png) no-repeat 0 0;
}
/* the hover effects */
.dropmenu li a.firstlevel:hover, .dropmenu li:hover a.firstlevel
{
background: url(images/theme/menu_gfx.png) no-repeat 100% -30px;
color: #fff;
cursor: pointer;
text-decoration: none;
}
.dropmenu li a.firstlevel:hover span.firstlevel, .dropmenu li:hover a.firstlevel span.firstlevel
{
background: url(images/theme/menu_gfx.png) no-repeat 0 -30px;
}
/* the hover effects on level2 and 3*/
.dropmenu li li a:hover, .dropmenu li li:hover>a
{
background: #d4dbe4;
color: #000;
text-decoration: none;
}
.dropmenu li:hover ul ul, .dropmenu li:hover ul ul ul
{
top: -999em;
}
.dropmenu li li:hover ul
{
top: auto;
}
.dropmenu li:hover ul
{
display: block;
}
.dropmenu li li.additional_items
{
background-color: #fff;
}
/* The dropdown menu toggle image */
#menu_toggle
{
float: right;
margin-right: 10px;
padding-top: 3px;
}
#menu_toggle span
{
position: relative;
right: 5000px;
}
/* Styles for the standard button lists.
------------------------------------------------------- */
.buttonlist ul
{
z-index: 100;
padding: 5px;
margin: 0 0.2em 0 0;
}
.buttonlist ul li
{
margin: 0;
padding: 0;
list-style: none;
float: left;
}
.buttonlist ul li a
{
display: block;
font-size: 0.8em;
color: #444;
background: url(images/theme/menu_gfx.png) no-repeat 0 -60px;
padding: 0;
margin-left: 12px;
text-transform: uppercase;
cursor: pointer;
}
.buttonlist ul li a:hover
{
background: url(images/theme/menu_gfx.png) no-repeat 0 0;
color: #fff;
text-decoration: none;
}
.buttonlist ul li a span
{
background: url(images/theme/menu_gfx.png) no-repeat 100% -60px;
display: block;
height: 24px;
line-height: 20px;
padding: 0 8px 0 0;
position: relative;
right: -8px;
}
.buttonlist ul li a:hover span
{
background: url(images/theme/menu_gfx.png) no-repeat 100% 0;
}
/* the active one */
.buttonlist ul li a.active
{
background: url(images/theme/menu_gfx.png) no-repeat 0 -30px;
color: #fff;
font-weight: bold;
}
.buttonlist ul li a.active span
{
background: url(images/theme/menu_gfx.png) no-repeat 100% -30px;
}
.buttonlist ul li a.active
{
font-weight: bold;
}
.buttonlist ul li a.active:hover
{
color: #ddf;
}
.align_top ul li a, .align_bottom ul li a
{
margin: 0 12px 0 0;
}
/* the navigation list */
ul#navigation
{
margin: 0;
font-size: 0.9em;
padding: 1em 0.4em;
}
ul#navigation li
{
float: none;
font-size: 0.95em;
display: inline;
}
#adm_submenus
{
padding-left: 2em;
}
#adm_submenus, #adm_submenus ul
{
height: 3em;
overflow: auto;
}
if (time() - $row['posterTime'] > $modSettings['edit_wait_time'] || $ID_MEMBER != $row['ID_MEMBER'])
{
$msgOptions['modify_time'] = time();
$msgOptions['modify_name'] = addslashes($user_info['name']);
}
if (!$user_info['is_admin'] && (time() - $row['posterTime'] > $modSettings['edit_wait_time'] || $ID_MEMBER != $row['ID_MEMBER']))
{
$msgOptions['modify_time'] = time();
$msgOptions['modify_name'] = addslashes($user_info['name']);
}
if (time() - $row['posterTime'] > $modSettings['edit_wait_time'] || $ID_MEMBER != $row['ID_MEMBER'])
{
$msgOptions['modify_time'] = time();
$msgOptions['modify_name'] = addslashes($user_info['name']);
}
if (!$user_info['is_admin'] && (time() - $row['posterTime'] > $modSettings['edit_wait_time'] || $ID_MEMBER != $row['ID_MEMBER']))
{
$msgOptions['modify_time'] = time();
$msgOptions['modify_name'] = addslashes($user_info['name']);
}