Konu İçi ve Mesaj Listesi Butonları (2.0.6) Yeni

tekyürek21.12.2013 - 17:54
Kodlama sıfır default temaya göre olup diğer temalarda kodlama farklılık arz edebilir.

İşlem Basamakları:
Modifikasyon Index.template.php, Display.template.php ve MessageIndex.template.php dosyalarında olmak üzere 3 dosyada değişiklik gerektiriyor.
Dosyalarınızda değişiklik yapmadan önce yedeklerini alınız.

Index.template.php
Bul:
Kod: [Seç]
</head>
Üstüne ekle:

Kod: [Seç]
<link rel="stylesheet" href="', $settings['images_url'], '/konu_files/cbcscbkonu.css" type="text/css" />
<link rel="stylesheet" href="', $settings['images_url'], '/konu2_files/cbcscbkonu2.css" type="text/css" />
<link rel="stylesheet" href="', $settings['images_url'], '/mesajindex_files/cbcscbmesajindex.css" type="text/css" />
<link rel="stylesheet" href="', $settings['images_url'], '/mesajindex2_files/cbcscbmesajindex2.css" type="text/css" />


Display.template.php
Bul:

Kod: [Seç]
// Show the page index... "Pages: [1]".
echo '
<div class="pagesection">
<div class="nextlinks">', $context['previous_next'], '</div>', template_button_strip($normal_buttons, 'right'), '
<div class="pagelinks floatleft">', $txt['pages'], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' &nbsp;&nbsp;<a href="#lastPost"><strong>' . $txt['go_down'] . '</strong></a>' : '', '</div>
</div>';

// Show the topic information - icon, subject, etc.

Değiştir:
Kod: [Seç]
// Show the page index... "Pages: [1]".
echo '
<div class="pagesection">
<div class="nextlinks">', $context['previous_next'], '</div><div class="pagelinks floatleft">', $txt['pages'], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' &nbsp;&nbsp;<a href="#lastPost"><strong>' . $txt['go_down'] . '</strong></a>' : '', '</div>
</div>
<div align="right"> <ul id="cbkonuebul_table" class="cbkonuebul_menulist" style="width: 781px; height: 29px;">
  <li class="spaced_li"><a href="', $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'],'"><img id="cbi_cbkonu_1" src="', $settings['images_url'], '/konu_files/ebbtcbkonu1_0.gif" name="ebbcbkonu_1" width="76" height="29" style="vertical-align: bottom;" border="0" alt="Yanıtla" title="" /></a></li>
  <li class="spaced_li"><a href="', $scripturl . '?action=post;board=' . $context['current_board'] . '.0'.'" ><img id="cbi_cbkonu_2" src="', $settings['images_url'], '/konu_files/ebbtcbkonu2_0.gif" name="ebbcbkonu_2" width="96" height="29" style="vertical-align: bottom;" border="0" alt="Yeni Konu" title="" /></a></li>
  <li class="spaced_li"><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 id="cbi_cbkonu_3" src="', $settings['images_url'], '/konu_files/ebbtcbkonu3_0.gif" name="ebbcbkonu_3" width="98" height="29" style="vertical-align: bottom;" border="0" alt="Haber Ver" title="" /></a></li>
  <li class="spaced_li"><a href="', $scripturl . '?action=markasread;sa=topic;t=' . $context['mark_unread_time'] . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'],'"><img id="cbi_cbkonu_4" src="', $settings['images_url'], '/konu_files/ebbtcbkonu4_0.gif" name="ebbcbkonu_4" width="121" height="29" style="vertical-align: bottom;" border="0" alt="Okunmadı Say" title="" /></a></li>
  <li class="spaced_li"><a href="', $scripturl . '?action=sendtopic;topic=' . $context['current_topic'] . '.0','"><img id="cbi_cbkonu_5" src="', $settings['images_url'], '/konu_files/ebbtcbkonu5_0.gif" name="ebbcbkonu_5" width="82" height="29" style="vertical-align: bottom;" border="0" alt="Gönder" title="" /></a></li>
  <li class="spaced_li"><a href="', $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0','"><img id="cbi_cbkonu_6" src="', $settings['images_url'], '/konu_files/ebbtcbkonu6_0.gif" name="ebbcbkonu_6" width="74" height="29" style="vertical-align: bottom;" border="0" alt="Yazdır" title="" /></a></li>
  <li class="spaced_li"><a href="', $scripturl . '?action=bookmarks;sa=add;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'],'"><img id="cbi_cbkonu_7" src="', $settings['images_url'], '/konu_files/ebbtcbkonu7_0.gif" name="ebbcbkonu_7" width="136" height="29" style="vertical-align: bottom;" border="0" alt="Favorilerime ekle" title="" /></a></li>
  <li><a href="', $scripturl . '?action=post;board=' . $context['current_board'] . '.0;poll'.'"><img id="cbi_cbkonu_8" src="', $settings['images_url'], '/konu_files/ebbtcbkonu8_0.gif" name="ebbcbkonu_8" width="98" height="29" style="vertical-align: bottom;" border="0" alt="Yeni Anket" title="" /></a></li>
</ul></div><br />
<script type="text/javascript" src="', $settings['images_url'], '/konu_files/cbjscbkonu.js"></script>';

// Show the topic information - icon, subject, etc.

Bul:

Kod: [Seç]
// Show the page index... "Pages: [1]".
echo '
<div class="pagesection">
', template_button_strip($normal_buttons, 'right'), '
<div class="pagelinks floatleft">', $txt['pages'], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' &nbsp;&nbsp;<a href="#top"><strong>' . $txt['go_up'] . '</strong></a>' : '', '</div>
<div class="nextlinks_bottom">', $context['previous_next'], '</div>
</div>';

// Show the lower breadcrumbs.

Değiştir:

Kod: [Seç]
// Show the page index... "Pages: [1]".
echo '
<div class="pagesection">
<div class="pagelinks floatleft">', $txt['pages'], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' &nbsp;&nbsp;<a href="#top"><strong>' . $txt['go_up'] . '</strong></a>' : '', '</div>
<div class="nextlinks_bottom">', $context['previous_next'], '</div>
<br /><div align="right"> <ul id="cbkonu2ebul_table" class="cbkonu2ebul_menulist" style="width: 781px; height: 29px;">
  <li class="spaced_li"><a href="', $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'],'"><img id="cbi_cbkonu2_1" src="', $settings['images_url'], '/konu2_files/ebbtcbkonu21_0.gif" name="ebbcbkonu2_1" width="76" height="29" style="vertical-align: bottom;" border="0" alt="Yanıtla" title="" /></a></li>
  <li class="spaced_li"><a href="', $scripturl . '?action=post;board=' . $context['current_board'] . '.0'.'" ><img id="cbi_cbkonu2_2" src="', $settings['images_url'], '/konu2_files/ebbtcbkonu22_0.gif" name="ebbcbkonu2_2" width="96" height="29" style="vertical-align: bottom;" border="0" alt="Yeni Konu" title="" /></a></li>
  <li class="spaced_li"><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 id="cbi_cbkonu2_3" src="', $settings['images_url'], '/konu2_files/ebbtcbkonu23_0.gif" name="ebbcbkonu2_3" width="98" height="29" style="vertical-align: bottom;" border="0" alt="Haber Ver" title="" /></a></li>
  <li class="spaced_li"><a href="', $scripturl . '?action=markasread;sa=topic;t=' . $context['mark_unread_time'] . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'],'"><img id="cbi_cbkonu2_4" src="', $settings['images_url'], '/konu2_files/ebbtcbkonu24_0.gif" name="ebbcbkonu2_4" width="121" height="29" style="vertical-align: bottom;" border="0" alt="Okunmadı Say" title="" /></a></li>
  <li class="spaced_li"><a href="', $scripturl . '?action=sendtopic;topic=' . $context['current_topic'] . '.0','"><img id="cbi_cbkonu2_5" src="', $settings['images_url'], '/konu2_files/ebbtcbkonu25_0.gif" name="ebbcbkonu2_5" width="82" height="29" style="vertical-align: bottom;" border="0" alt="Gönder" title="" /></a></li>
  <li class="spaced_li"><a href="', $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0','"><img id="cbi_cbkonu2_6" src="', $settings['images_url'], '/konu2_files/ebbtcbkonu26_0.gif" name="ebbcbkonu2_6" width="74" height="29" style="vertical-align: bottom;" border="0" alt="Yazdır" title="" /></a></li>
  <li class="spaced_li"><a href="', $scripturl . '?action=bookmarks;sa=add;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'],'"><img id="cbi_cbkonu2_7" src="', $settings['images_url'], '/konu2_files/ebbtcbkonu27_0.gif" name="ebbcbkonu2_7" width="136" height="29" style="vertical-align: bottom;" border="0" alt="Favorilerime ekle" title="" /></a></li>
  <li><a href="', $scripturl . '?action=post;board=' . $context['current_board'] . '.0;poll'.'"><img id="cbi_cbkonu2_8" src="', $settings['images_url'], '/konu2_files/ebbtcbkonu28_0.gif" name="ebbcbkonu2_8" width="98" height="29" style="vertical-align: bottom;" border="0" alt="Yeni Anket" title="" /></a></li>
</ul></div>
<script type="text/javascript" src="', $settings['images_url'], '/konu2_files/cbjscbkonu2.js"></script>
</div>';

// Show the lower breadcrumbs.

Bul:
Kod: [Seç]
// Show the lower breadcrumbs.
theme_linktree();

$mod_buttons = array(
'move' => array('test' => 'can_move', 'text' => 'move_topic', 'image' => 'admin_move.gif', 'lang' => true, 'url' => $scripturl . '?action=movetopic;topic=' . $context['current_topic'] . '.0'),
'delete' => array('test' => 'can_delete', 'text' => 'remove_topic', 'image' => 'admin_rem.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt['are_sure_remove_topic'] . '\');"', 'url' => $scripturl . '?action=removetopic2;topic=' . $context['current_topic'] . '.0;' . $context['session_var'] . '=' . $context['session_id']),
'lock' => array('test' => 'can_lock', 'text' => empty($context['is_locked']) ? 'set_lock' : 'set_unlock', 'image' => 'admin_lock.gif', 'lang' => true, 'url' => $scripturl . '?action=lock;topic=' . $context['current_topic'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id']),
'sticky' => array('test' => 'can_sticky', 'text' => empty($context['is_sticky']) ? 'set_sticky' : 'set_nonsticky', 'image' => 'admin_sticky.gif', 'lang' => true, 'url' => $scripturl . '?action=sticky;topic=' . $context['current_topic'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id']),
'merge' => array('test' => 'can_merge', 'text' => 'merge', 'image' => 'merge.gif', 'lang' => true, 'url' => $scripturl . '?action=mergetopics;board=' . $context['current_board'] . '.0;from=' . $context['current_topic']),
'calendar' => array('test' => 'calendar_post', 'text' => 'calendar_link', 'image' => 'linktocal.gif', 'lang' => true, 'url' => $scripturl . '?action=post;calendar;msg=' . $context['topic_first_message'] . ';topic=' . $context['current_topic'] . '.0'),
);
Değiştir:
Kod: [Seç]
echo '

</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['are_sure_remove_topic'] . '\');"><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['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>';

MessageIndex.template.php
Bul:


Kod: [Seç]
// Create the button set...
$normal_buttons = array(
'new_topic' => array('test' => 'can_post_new', 'text' => 'new_topic', 'image' => 'new_topic.gif', 'lang' => true, 'url' => $scripturl . '?action=post;board=' . $context['current_board'] . '.0', 'active' => true),
'post_poll' => array('test' => 'can_post_poll', 'text' => 'new_poll', 'image' => 'new_poll.gif', 'lang' => true, 'url' => $scripturl . '?action=post;board=' . $context['current_board'] . '.0;poll'),
'notify' => array('test' => 'can_mark_notify', 'text' => $context['is_marked_notify'] ? 'unnotify' : 'notify', 'image' => ($context['is_marked_notify'] ? 'un' : ''). 'notify.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_board'] : $txt['notification_enable_board']) . '\');"', 'url' => $scripturl . '?action=notifyboard;sa=' . ($context['is_marked_notify'] ? 'off' : 'on') . ';board=' . $context['current_board'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id']),
'markread' => array('text' => 'mark_read_short', 'image' => 'markread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=board;board=' . $context['current_board'] . '.0;' . $context['session_var'] . '=' . $context['session_id']),
);

Değiştir:

Kod: [Seç]
echo '
<div class="pagesection">
<div class="pagelinks floatleft">', $txt['pages'], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . '&nbsp;&nbsp;<a href="#bot"><strong>' . $txt['go_down'] . '</strong></a>' : '', '</div>
', template_button_strip($normal_buttons, 'right'), '

<div align="right"><ul id="cbmesajindexebul_table" class="cbmesajindexebul_menulist" style="width: 406px; height: 26px;">
  <li class="spaced_li"><a href="', $scripturl . '?action=post;board=' . $context['current_board'] . '.0'.'"><img id="cbi_cbmesajindex_1" src="', $settings['images_url'], '/mesajindex_files/ebbtcbmesajindex1_0.gif" name="ebbcbmesajindex_1" width="94" height="26" style="vertical-align: bottom;" border="0" alt="Yeni Konu" title="" /></a></li>
  <li class="spaced_li"><a href="', $scripturl . '?action=post;board=' . $context['current_board'] . '.0;poll'.'"><img id="cbi_cbmesajindex_2" src="', $settings['images_url'], '/mesajindex_files/ebbtcbmesajindex2_0.gif" name="ebbcbmesajindex_2" width="99" height="26" style="vertical-align: bottom;" border="0" alt="Yeni Anket" title="" /></a></li>
  <li class="spaced_li"><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 id="cbi_cbmesajindex_3" src="', $settings['images_url'], '/mesajindex_files/ebbtcbmesajindex3_0.gif" name="ebbcbmesajindex_3" width="103" height="26" style="vertical-align: bottom;" border="0" alt="Haberdar Et" title="" /></a></li>
  <li><a href="', $scripturl . '?action=markasread;sa=board;board=' . $context['current_board'] . '.0;sesc=' . $context['session_id'],'"><img id="cbi_cbmesajindex_4" src="', $settings['images_url'], '/mesajindex_files/ebbtcbmesajindex4_0.gif" name="ebbcbmesajindex_4" width="110" height="26" style="vertical-align: bottom;" border="0" alt="Okunmuş say" title="" /></a></li>
</ul></div>
<script type="text/javascript" src="', $settings['images_url'], '/mesajindex_files/cbjscbmesajindex.js"></script> </div>';

Bul:
Kod: [Seç]
echo '
<div class="pagesection">
', template_button_strip($normal_buttons, 'right'), '
<div class="pagelinks">', $txt['pages'], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . '&nbsp;&nbsp;<a href="#top"><strong>' . $txt['go_up'] . '</strong></a>' : '', '</div>
</div>';

Değiştir:
Kod: [Seç]
echo '
<div class="pagesection">
<div class="pagelinks floatleft">', $txt['pages'], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . '&nbsp;&nbsp;<a href="#top"><strong>' . $txt['go_up'] . '</strong></a>' : '', '</div>
', template_button_strip($normal_buttons, 'right'), '

<div align="right"><ul id="cbmesajindex2ebul_table" class="cbmesajindex2ebul_menulist" style="width: 406px; height: 26px;">
  <li class="spaced_li"><a href="', $scripturl . '?action=post;board=' . $context['current_board'] . '.0'.'"><img id="cbi_cbmesajindex2_1" src="', $settings['images_url'], '/mesajindex2_files/ebbtcbmesajindex21_0.gif" name="ebbcbmesajindex2_1" width="94" height="26" style="vertical-align: bottom;" border="0" alt="Yeni Konu" title="" /></a></li>
  <li class="spaced_li"><a href="', $scripturl . '?action=post;board=' . $context['current_board'] . '.0;poll'.'"><img id="cbi_cbmesajindex2_2" src="', $settings['images_url'], '/mesajindex2_files/ebbtcbmesajindex22_0.gif" name="ebbcbmesajindex2_2" width="99" height="26" style="vertical-align: bottom;" border="0" alt="Yeni Anket" title="" /></a></li>
  <li class="spaced_li"><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 id="cbi_cbmesajindex2_3" src="', $settings['images_url'], '/mesajindex2_files/ebbtcbmesajindex23_0.gif" name="ebbcbmesajindex2_3" width="103" height="26" style="vertical-align: bottom;" border="0" alt="Haberdar Et" title="" /></a></li>
  <li><a href="', $scripturl . '?action=markasread;sa=board;board=' . $context['current_board'] . '.0;sesc=' . $context['session_id'],'"><img id="cbi_cbmesajindex2_4" src="', $settings['images_url'], '/mesajindex2_files/ebbtcbmesajindex24_0.gif" name="ebbcbmesajindex2_4" width="110" height="26" style="vertical-align: bottom;" border="0" alt="Okunmuş say" title="" /></a></li>
</ul></div>
<script type="text/javascript" src="', $settings['images_url'], '/mesajindex2_files/cbjscbmesajindex2.js"></script> </div>';


Ekteki sıkıştırılmış dosyadan çıkan klasörleri temanız / images / içine atınız.



Linkback: https://www.buyuknet.com/konu-ici-ve-mesaj-listesi-butonlari-206-yeni-t42417.0.html

Etiket:
süper herkese tavsiye ediyorum 

Bu bilgi size yardimci oldu mu?

EvetHayır
Konu İçi ve Mesaj Listesi Butonları (2.0.6) Yeni
Konu İçi ve Mesaj Listesi Butonları (2.0.6) Yeni
(Ortalama: 5 üzerinden 2.5 - 2 Oy)
2