arkadaşlar Statistics - Top 5 eklentisini nerden bulabilirim lüTfen yardım edin !!! ????
arkadaşlar Statistics - Top 5 eklentisini nerden bulabilirim lüTfen yardım edin !!! ????
usta google aratsana binlerce bulursun :ka01:maviejder Nickli Üyeden Alıntı
Arkadaşlar maviejder arkadaşımıza Çok İyi Yardımcı Olmuşsunuz Teşekürler..
Bende Bundan Faydalanmak İstedim Ama Birşey Bulamadın..
maviejder Arkadaş Al Ben Sana Yardımcı Olayım .
Benden Sana Tavsiye İşe Başlamadan Önce index.php bilgisayarına kaydet
yaptıgın işlemlerde hata olursa onu geri yüklersin
VB TOP 5 İstatistikleri
1. Adım: "index.php" yi açın.
Şu kodu bulun:
[PHP]'forumhome_subforumseparator_post'[/PHP]
Şununla değişin:
[PHP]'forumhome_subforumseparator_post',
'forumhome_stats_poster',
'forumhome_stats_member',
'forumhome_stats_thread',[/PHP]Şu kodu bulun:
[PHP]// ### ALL DONE! SPIT OUT THE HTML AND LET'S GET OUTA HERE... ###[/PHP]
Üstüne şu kodları ekleyin:
[PHP]// ### TOP 5 STATS BY Berk Forum www.berkelektrik.com ###########################################
$displayrecords = "5"; // how many records should we show?
$excludedforums = "13"; // forums to be excluded from latest threads. Format "0,5,7"
$threadchars = "30"; // number of characters in thread title before '...' is added
$getstats_posters = $DB_site->query("SELECT userid, username, posts FROM " . TABLE_PREFIX . "user ORDER BY posts DESC LIMIT 0, $displayrecords");
while ($getstats_poster = $DB_site->fetch_array($getstats_posters))
{
eval('$stats_posters .= "' . fetch_template('forumhome_stats_poster') . '";');
}
$getstats_members = $DB_site->query("SELECT userid, username, posts, joindate FROM " . TABLE_PREFIX . "user ORDER BY joindate DESC LIMIT 0, $displayrecords");
while ($getstats_member = $DB_site->fetch_array($getstats_members))
{
eval('$stats_members .= "' . fetch_template('forumhome_stats_member') . '";');
}
// filter out deletion notices if can't be seen
$forumperms = fetch_permissions($forumid);
if (!($permissions['forumpermissions'] & CANSEEDELNOTICE))
{
$delquery = ", NOT ISNULL(deletionlog.primaryid) AS isdeleted, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason";
$delthreadlimit = "AND deletionlog.primaryid IS NULL";
$deljoin = "LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')";
}
else
{
$delquery = ", NOT ISNULL(deletionlog.primaryid) AS isdeleted, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason";
$delthreadlimit = "";
$deljoin = "LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')";
}
$getstats_threads = $DB_site->query("
SELECT thread.threadid, thread.title, thread.lastpost, thread.forumid, thread.replycount, thread.lastposter, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, thread.visible, user.username, user.userid
$delquery
FROM " . TABLE_PREFIX . "thread AS thread
LEFT JOIN " . TABLE_PREFIX . "user AS user ON (user.username = thread.lastposter)
$deljoin
WHERE thread.forumid NOT IN ($excludedforums)
$delthreadlimit
ORDER BY thread.lastpost DESC LIMIT 0, $displayrecords");
while ($getstats_thread = $DB_site->fetch_array($getstats_threads))
{
$getstats_thread[title] = unhtmlspecialchars($getstats_thread[title]);
if (strlen($getstats_thread[title]) > $threadchars)
{
$getstats_thread[titletrimmed] = substr($getstats_thread[title], 0, strrpos(substr($getstats_thread[title], 0, $threadchars), ' ')) . '...';
}
else
{
$getstats_thread[titletrimmed] = $getstats_thread[title];
}
if ($getstats_thread[lastpost] > $bbuserinfo[lastvisit])
{
$getstats_thread[newpost] = true;
}
if ($getstats_thread[isdeleted])
{
$getstats_thread[isdeleted] = true;
}
eval('$stats_threads .= "' . fetch_template('forumhome_stats_thread') . '";');
}[/PHP]
"index.php" ile işimiz bitti. Kaydedip upload edin.
--------------------------------------------------------
2. Adım: Yeni templatesler oluşturacağız:
--------------------------------------------------------
Başlık:
[PHP]forumhome_stats_member[/PHP]
Template:
[PHP] <tr>
<td class="smallfont" width="100%"><a href="member.php?u=$getstats_member[userid]">$getstats_member[username]</a></td>
<td class="smallfont" align="right">$getstats_member[posts]</td>
</tr>[/PHP]----------------------------------------------------------------------------------
Başlık:
[PHP]forumhome_stats_poster[/PHP]
Template:
[PHP]<tr>
<td width="100%"><a href="member.php?u=$getstats_poster[userid]">$getstats_poster[username]</a></td>
<td class="smallfont" align="right">$getstats_poster[posts]</td>
</tr>[/PHP]----------------------------------------------------------------------------------
Başlık:
[PHP]forumhome_stats_thread[/PHP]
Template:
[PHP]<tr>
<td class="smallfont">[<if condition="$getstats_thread[newpost]">New<else />Old</if>] $vbphrase[go_first_unread_in_thread_x]</phrase>">$getstats_thread[titletrimmed]</td>
<if condition="$getstats_thread[isdeleted]">
<td class="smallfont"colspan=3" align="left"><phrase 1="member.php?$session[sessionurl]u=$getstats_thread[del_userid]" 2="$getstats_thread[del_username]">$vbphrase[thread_deleted_by_x]</phrase></td>
<else />
<td class="smallfont"><a href="member.php?$session[sessionurl]u=$getstats_thread[userid]">$getstats_thread[lastposter]</a></td>
<td class="smallfont" align="right">$getstats_thread[views]</td>
<td class="smallfont" align="right">$getstats_thread[replycount]</td>
</if>
</tr>[/PHP]
Bu templatesleri teker teker yazıp kaydettikten sonra 3. Adıma geçiyoruz:
"FORUMHOME" template i açın.
Şu kodu bulun:
[PHP][/PHP]
Hemen üstüne şu kodları ekleyin:
[PHP]
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="3">
<img id="collapseimg_forumhome_statistics" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_statistics].gif" alt="" border="0" />
Statistics - Top $displayrecords</td>
</tr>
</thead>
<tbody id="collapseobj_forumhome_statistics" style="$vbcollapse[collapseobj_forumhome_statistics]">
<tr>
<td class="thead" width="23%" align="$stylevar[left]" nowrap>Top Posters</td>
<td class="thead" width="22%" align="$stylevar[left]" nowrap>Newest Members</td>
<td class="thead" width="55%" nowrap>Newest Replies
</td>
</tr>
<tr>
<td class="alt2" width="23%" valign="top">
<table>
<tr>
<td class="smallfont" width="100%">Member:</td>
<td class="smallfont" align="right" nowrap>Posts:</td>
</tr>
$stats_posters
</table>
</td>
<td class="alt1" width="22%" valign="top">
<table>
<tr>
<td class="smallfont" width="100%" nowrap>Member:</td>
<td class="smallfont" align="right" nowrap>Posts:</td>
</tr>
$stats_members
</table>
</td>
<td class="alt2" width="55%" valign="top">
<table>
<tr>
<td class="smallfont" width="70%" nowrap>Thread:</td>
<td class="smallfont" width="30%" nowrap>Last Poster:</td>
<td class="smallfont" align="right" nowrap>Views:</td>
<td class="smallfont" align="right" nowrap>Replies:</td>
</tr>
$stats_threads
</table>
</td>
</tr>
</tbody>
</table>
[/PHP]
Bitiş Kolay Gelsin __________________
Şu anda 1 üyemiz bu konuya göz atıyor. (0 kayıtlı üye ve 1 misafir.)
Bu Konuyu Paylaşın !