ilk önce burdaki butonları değiştirelim
display.template.php 'de bulun
bu kısıma kadar silin
ve bu kodları ekleyin
ve şimdi
burdakileri değiştirelim
display.template.php 'de bulun
değiştirin
ve şimdi
burdaki butonları değişelim
display.template.php 'de bulun
değiştirin
ve şimdi
burdaki butonları değiştirelim
MessageIndex.template.php 'de bulun
bulun
değiştirin
resim yollarını değiştirebilirsiniz
display.template.php 'de bulun
Kod Seç
// Show the page index... "Pages: [1]".
bu kısıma kadar silin
Kod Seç
// Show the topic information - icon, subject, etc.
ve bu kodları ekleyin
Kod Seç
// 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>';
ve şimdi
burdakileri değiştirelim
display.template.php 'de bulun
Kod Seç
// 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>';
değiştirin
Kod Seç
// 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>';
ve şimdi
burdaki butonları değişelim
display.template.php 'de bulun
Kod Seç
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']),
);
değiştirin
Kod Seç
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>';
ve şimdi
burdaki butonları değiştirelim
MessageIndex.template.php 'de bulun
bulun
Kod Seç
// 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>';
değiştirin
Kod Seç
// 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>';
resim yollarını değiştirebilirsiniz