نمایش دوستان آنلاین در انتهای صفحه (فارسی) Friends online at the bottom of the screen
آخرین زمان حضور: Mar 2018


نگارش: 4.1.0 امتیاز:
نصب شده: 0 بار

زمان انتشار: 2011/02/17 بروزرسانی: هرگز دریافت شده: 0 بار




درود.
توضیحات :
با این هک میتوانید دوستان آنلاین در سایت را در زیر سایت مشاهده کنید .
نصب :
یک پلاگین جدید از ادمین سی پی ایجاد کنید .
نام : vBulletin
محل هوک : process_templates_complete
عنوان : Friends Online
Execution Order : 5
کد:if (!$vbulletin->userinfo['userid']) { } else { $datecut = TIMENOW - $vbulletin->options['cookietimeout']; $buddys = $vbulletin->db->query_read(" SELECT user.username, user.userid, user.lastactivity FROM " . TABLE_PREFIX . "userlist AS userlist LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = userlist.relationid) WHERE userlist.userid = {$vbulletin->userinfo['userid']} AND userlist.relationid = user.userid AND type = 'buddy' AND user.lastactivity > $datecut ORDER BY username ASC "); $output = ''; while ($buddy = $vbulletin->db->fetch_array($buddys)) { $output .= ' <a href="member.php?' . $buddy['userid'] . '"><font color=blue><b>' . $buddy['username'] . '</b></font></a>,'; } if ($output != '') { $output = '<font color=black>کاربران آنلاین:</font>' . $output; $template_hook['navtab_end'] .= ' <style type="text/css"> #bottom { width: 98.5%; position: fixed; bottom: 0px; text-align: right; background-color:beige; } </style> <div id="bottom"> '; $template_hook['navtab_end'] .= $output; $template_hook['navtab_end'] .= ' </div> '; } }
علاقه مندی ها (Bookmarks)