الرئيسية | الشروط والقوانين | سياسة الخصوصية | اتصل بنا | الأرشيف | RSS |
![]() |
![]() |
يمنع منعا باتا طرح موضوع إعلاني دون مخاطبة الأدارة |
|
تطويــــر المنتديــ VB3 ـات هاكات :: تمبلتات :: اكواد |
|
أدوات الموضوع |
#1
|
||||
|
||||
هاك عدد الأعضاء الذين قاموا بوضع مشاركات اليوم
السلام عليكم ورحمــة الله وبركــاته .. كود:
// ### LOGGED IN USERS ################################################# كود:
// ############# Paul Marsden - Who has posted today v1.40 ############### $now = TIMENOW ; require_once('./includes/functions_misc.php'); $cutoff = vbmktime(0, 0, 0, vbdate('m', $now. false, false), vbdate('d', $now. false, false), vbdate('Y', $now. false, false)); //$cutoff = $now - 86400 ; // Uncomment this line if you want a rolling last 24 hours. $todaysposters = $DB_site->query("SELECT userid, lastpost, options, username, opentag, closetag FROM " . TABLE_PREFIX . "user as user LEFT JOIN " . TABLE_PREFIX . "usergroup as usergroup ON(user.usergroupid = usergroup.usergroupid) WHERE lastpost > " .$cutoff. " ORDER BY username" ); unset ($posttoday); $posterstoday = 0; while ($today = $DB_site->fetch_array($todaysposters)) { $today[visible] = 1 ; $posterstoday += 1; if ($today[options] & $_USEROPTIONS[invisible]) { $today[visible] = 0 ; if (($permissions['genericpermissions'] & CANSEEHIDDEN) OR $today['userid'] == $bbuserinfo['userid']) { $today[visible] = 2 ; } } if ($today[visible]) { $wrdate = vbdate($vboptions['timeformat'], $today['lastpost']); $posttoday .= "<a href='search.php?do=finduser&u=$today[userid]' title='$wrdate' >"; if ($today[visible] == 2) { $posttoday .= $today['opentag'].$today[username].$today['closetag']."</a>*, "; } else { $posttoday .= $today['opentag'].$today[username].$today['closetag']."</a>, "; } } } if ($posttoday) { $posttoday = substr($posttoday, 0, strlen($posttoday)-2); } // ############# End of Who has posted today ############### الخطوة الثانية : اذهب الى لوحة تحكم المنتدى ومن ثم اذهب الى تمبلت :FORUMHOME ابحث عن الكود التالي : كود:
<!-- end logged-in users --> كود:
<!-- Todays posters --> <tbody> <tr> <td class="thead" colspan="2"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_todayposters')"><img id="collapseimg_forumhome_todayposters" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_todayposters].gif" alt="" border="0" /></a> عدد الأعضاء الذين قاموا بوضع مشاركات اليوم: $posterstoday </td> </tr> </tbody> <tbody id="collapseobj_forumhome_todayposters" style="$vbcollapse[collapseobj_forumhome_todayposters]"> <tr> <td class="alt2"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="Users online today" border="0" /></td> <td class="alt1" width="100%"><div class="smallfont">$posttoday</div></td> </tr> </tbody> <!-- End Todays posters --> نقوم بزرع الامر التالي في قاعدة البيانات ( SQL ) كود:
ALTER TABLE user ADD INDEX (lastpost) ; ![]() واذا خرجت اليك جملة ( ليس لديك صلاحيات .. الخ ) توجه الى config.php الموجود بمجلد includes وابحث عن : كود:
$canrunqueries = '1'; وصلى اللـــه على سيدنــا محمــد عليـه الصلاة والســلام .. وانتهى العمل والتطبيـــق تعريب : اخوكم في الله - أبو الريـــــم لاتنسونا من دعوة صالحة في ظهر الغيب مرفق لكم الهاك مع الشرح .
|
|
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
|
![]() |
||||
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
[Product] الذين قامو بوضع مشاركات بالمربعات والالوان (مجموعة المربعات) | NetDemon | تطويــــر المنتديــ VB3 ـات | 0 | 19-02-2006 08:06 AM |
هاك الاعضاء الذين تواجدوا اليوم في المنتدى | VIP | تطويــــر المنتديــ VB3 ـات | 1 | 25-10-2005 03:29 PM |
طريقة عدد الأعضاء النشطين الذين شاركوا بمواضيع خلال 24 ساعة | VIP | تطويــــر المنتديــ VB3 ـات | 1 | 05-09-2005 03:28 AM |
plugin الاعضاء الذين تواجدوا اليوم | kwety | تطويــــر المنتديــ VB3 ـات | 3 | 22-06-2005 08:35 PM |
هل تعلم كم عدد الملائكة الذين يحيطون بالانسان في اليوم ؟ | ~*~عاطفية~*~ | المنـتدى الاسـلامي | 9 | 04-06-2005 07:25 PM |
الساعة الآن 02:37 PM
|