Sevgiler...
##############################################################
## MOD Title: display total replies and views in viewtopic
## MOD Author: emrag < emrah987@hotmail.com > (Emrah Türkmen) www.canver.net
## MOD Description: Bu eklenti wiewtopic.php de toplam cevabı ve gösterimi gösterir
##
## MOD Version: 1.0.1
##
## Installation Level: Basit
## Installation Time : ~3 dakita
## Düzenlenecek dosyalar:
## viewtopic.php
## templates/subsilver/viewtopic_body.tpl
##
## İncluded Files: n/a
##############################################################
##
## Author Note:
##
##############################################################
##
## MOD GEÇMİŞİ : ??.??.2004 - 1.0.0
## - İlk sürüm
##
## 25.11.2004 - 1.0.1
## - fazladan kodlar temizlenmiştir
##
##############################################################
##
## Bu değişiklikleri yapmadan önce değişiklik yapacağınız dosyaların yedeklerini alınız.
##
##############################################################
#
#-----[ AÇ ]------------------------------------------
#
viewtopic.php
#
#----[ BUL ]------------------------------------------
#
$sql = "SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_views, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments" . $count_sql . "
FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f" . $join_sql_table . "
WHERE $join_sql
AND f.forum_id = t.forum_id
$order_sql";
#
#----[ SATIRDA BUL ]------------------------------------------
#
, t.topic_replies
#
#-----[ SONRA, EKLE ]------------------------------------------
#
, t.topic_views
#
#----[ BUL ]------------------------------------------
#
//
// Send vars to template
//
$template->assign_vars(array(
'FORUM_ID' => $forum_id,
'FORUM_NAME' => $forum_name,
'TOPIC_ID' => $topic_id,
'TOPIC_TITLE' => $topic_title,
#
#-----[ SONRA, EKLE ]------------------------------------------
#
'TOPIC_REPLIES' => $forum_topic_data['topic_replies'],
'TOPIC_VIEWS' => $forum_topic_data['topic_views'] + 1,
#
#----[ BUL ]------------------------------------------
#
'L_AUTHOR' => $lang['Author'],
'L_MESSAGE' => $lang['Message'],
'L_POSTED' => $lang['Posted'],
#
#-----[ ÖNCESİNE, EKLE ]------------------------------------------
#
'L_REPLIES' => $lang['Replies'],
'L_VIEWS' => $lang['Views'],
#
#-----[ AÇ ]------------------------------------------
#
templates/subsilver/viewtopic_body.tpl
#
#----[ BUL ]------------------------------------------
#
<a class="maintitle" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a>
#
#----[ SONRA, EKLE ]------------------------------------------
#
<span class="nav"> - {L_REPLIES}: {TOPIC_REPLIES} | {L_VIEWS}: {TOPIC_VIEWS}</span>
#
#----[ NOT ]------------------------------------------
#
Tercihinize göre "
<br /><span class="nav">
<font color="#DD6900">{L_VIEWS}: {TOPIC_VIEWS} | {L_REPLIES}: {TOPIC_REPLIES}</font>
</span>
#
#-----[ BÜTÜN DOSYALARI KAYDET/KAPAT ]------------------------------------------
#
# EoM
Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 0 misafir