| الرئيسية | الشروط والقوانين | سياسة الخصوصية | اتصل بنا | الأرشيف | RSS |
|
![]() |
|
يمنع منعا باتا طرح موضوع إعلاني دون مخاطبة الأدارة |
|
#1
|
||||
|
||||
|
هاك الإحصائيات المنتدي كود:
'forumhome_subforumseparator_post', كود:
'forumhome_subforumseparator_post',
'forumhome_stats_poster',
'forumhome_stats_member',
'forumhome_stats_thread',
كود:
// ### ALL DONE! SPIT OUT THE HTML AND LET'S GET OUTA HERE... ### كود:
// ### TOP STATS ###########################################
$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 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') . '";');
}
1- هذه الاحصائيات لاخر ( 5 ) سواء اكثر الاعضاء نشاطا او الاعضاء الجدد او اخر المشاركات الجديدة اذا اردت زيادة العدد ابحث في الكود الاخير الذي قمت باضافته وتقريبا ستجده في اول سطر : كود:
$displayrecords = "5"; // how many records should we show? 2-اذا اردت اخفاء بعض المجالس من الظهور في الاحصائيات فاذهب الى الكود التالي : كود:
$excludedforums = "13"; // forums to be excluded from latest threads. Format "0,5,7" الى ارقام المجالس التي لاتود خروجها في الاحصائيات . 3-اذا اردت زيادة عدد عنوان الموضوع في الاحصائيات فابحث عن الكود التالي : كود:
$threadchars = "30"; // number of characters in thread title before '...' is added 2-الان توجه إلى لوحة تحكم المنتدى وأضف تمبلت جديد بإسم forumhome_stats_member أضف بداخله هذا الكود: كود:
<tr> <td class="smallfont" width="100%"><b><a href="member.php?u=$getstats_member[userid]">$getstats_member[username]</a></b></td> <td class="smallfont" align="right"><b>$getstats_member[posts]</b></td> </tr> 3- إفتح تمبلت جديد بإسم forumhome_stats_poster أضف بداخله هذا الكود: كود:
<tr> <td width="100%"><b><a href="member.php?u=$getstats_poster[userid]">$getstats_poster[username]</a></b></td> <td class="smallfont" align="right"><b>$getstats_poster[posts]</b></td> </tr> 4- إفتح تمبلت جديد بإسم forumhome_stats_thread أضف بداخله هذا الكود : كود:
<tr> <td class="smallfont"><strong>[<i><if condition="$getstats_thread[newpost]">جديد<else />قديم</if></i>] <a href="showthread.php?$session[sessionurl]goto=newpost&t=$getstats_thread[threadid]" title="<phrase 1="$getstats_thread[title]">$vbphrase[go_first_unread_in_thread_x]</phrase>">$getstats_thread[titletrimmed]</a></strong></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"><strong><a href="member.php?$session[sessionurl]u=$getstats_thread[userid]">$getstats_thread[lastposter]</a></strong></td> <td class="smallfont" align="right"><strong>$getstats_thread[views]</strong></td> <td class="smallfont" align="right"><strong>$getstats_thread[replycount]</strong></td> </if> </tr> 5- إفتح تمبلت FORUMHOME قبل وضع هذا الكود الجديد حدد إختيارك للمكان المناسب الذي تريد فيه ظهور الإحصائيات ؟! إذا أردت ظهور الإحصائيات في الأعلى أي قبل المجالس ضع الكود بعد: كود:
$navbar كود:
<!-- end what's going on box --> كود:
<!-- top statistics box -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="3">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_statistics')"><img id="collapseimg_forumhome_statistics" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_statistics].gif" alt="" border="0" /></a>
إحصائيات $vboptions[bbtitle]</td>
</tr>
</thead>
<tbody id="collapseobj_forumhome_statistics" style="$vbcollapse[collapseobj_forumhome_statistics]">
<tr>
<td class="thead" width="23%" align="$stylevar[left]" nowrap>أكثر
الأعضاء مشاركةً</td>
<td class="thead" width="22%" align="$stylevar[left]" nowrap>الأعضاء
الجدد</td>
<td class="thead" width="55%" nowrap>المشاركات الجديدة
</td>
</tr>
<tr>
<td class="alt2" width="23%" valign="top">
<table>
<tr>
<td class="smallfont" width="100%">الأعضاء</td>
<td class="smallfont" align="right" nowrap>المشاركات</td>
</tr>
$stats_posters
</table>
</td>
<td class="alt1" width="22%" valign="top">
<table>
<tr>
<td class="smallfont" width="100%" nowrap>الأعضاء</td>
<td class="smallfont" align="right" nowrap>المشاركات</td>
</tr>
$stats_members
</table>
</td>
<td class="alt2" width="55%" valign="top">
<table>
<tr>
<td class="smallfont" width="70%" nowrap>الموضوع :</td>
<td class="smallfont" width="30%" nowrap>المشاركة الأخيرة :</td>
<td class="smallfont" align="right" nowrap>المشاهدات :</td>
<td class="smallfont" align="right" nowrap>المشاركات :</td>
</tr>
$stats_threads
</table>
</td>
</tr>
</tbody>
</table>
<br />
<br />
<!-- end top statistics box -->
--------------- انتهى -----------------
|
|
|
رقم المشاركة : 2 | |
|
|
عساك على القوه ياكبير |
|
|
|
| الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
|
المواضيع المتشابهه
|
||||
| الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
| كره قدم المنتدى | بنت_الامارات | منـتدى الألـعاب والألغاز | 5 | 01-10-2006 01:14 AM |
| دعواتكم يا أهل المنتدى ......... | الفيلسوفه | منـتدى كرة القدم | 4 | 17-05-2006 10:09 PM |
| اهداء لكل المنتدى | trth | منتدى الترحيب بالأعضاء | 11 | 03-05-2006 09:30 PM |
| اول ماتدشون المنتدى ! | الصديق | منتدى استراحـة الاعـضاء | 6 | 24-04-2006 12:08 AM |
| كيف أقرأ المنتدى | soudi_1 | منتدى استراحـة الاعـضاء | 6 | 18-04-2006 02:53 PM |
|
الساعة الآن 08:01 PM
|