عرض مشاركة واحدة
قديم 29-07-2005, 10:58 PM   رقم المشاركة : 102
VIP

AdminiStrator

 
الصورة الرمزية VIP






VIP متصل الآن

VIP كاتب مميزVIP كاتب مميزVIP كاتب مميزVIP كاتب مميز


افتراضي

هاك عدد مواضيع اليوم + ردود اليوم + زوار المواضيع

طريقة التركيب :

أبحث في vb/index.php
عن :

كود:
// get total members and newest member from template

اعلى منه اضف الكود التالي :

كود:
// Edit By MGHOOL
$vbs_today = time()-(86400);
$gettodaystats = $DB_site->query_first("SELECT count(postid) AS posts, COUNT(DISTINCT(threadid)) AS threads FROM post WHERE dateline>='$vbs_today'"); 
$poststoday = number_format($gettodaystats['posts']); 
$threadstoday = number_format($gettodaystats['threads']);
$getviewstoday = $DB_site->query_first("SELECT SUM(views) AS threadviews FROM thread WHERE dateline>='$vb_today'");
$viewstoday = number_format($getviewstoday['threadviews']);


################################################

ثم احفظ العمل

وأبحث في التمبليت forumhome عن :

كود:
<!-- main -->
وضع بعده بسطر هذا الكود :

كود:
<!-- Edit By MGHOOL -->
<br>
<center>
<table class="tborder" cellpadding="$stylevar[cellpadding]" 
cellspacing="$stylevar[cellspacing]" border="0" width="90%">
<tr>
<td class="alt1" align="center" valign="top">
<FONT face="MS Sans Serif,verdana,arial,helvetica" size=1>
( عدد المواضيع هذا اليوم $threadstoday ) 
.. .. 
( عدد الردود هذا اليوم $poststoday )
 .. .. 
( شاهد المواضيع $viewstoday )
</FONT>
</td>
</tr>
</table>
</center>
<br />
<!-- Edit By MGHOOL -->

################################################






التوقيع