|
|||||||
| ||
![]() |
|
|
Seçenekler | Arama | Stil |
![]() Vbulletin siteyi bugün ziyaret edenler eklentisi | ||||||||||
|
(#1)
|
||||||||||
|
Mesaj Sayısı: n/a
Açtığı Konu: 5365
Level: -INF [ ]Paylaşım: NAN / -INF |
forum/index.php 'yi açıp alttaki kodu bulun;
// ### LOGGED IN USERS ################################################# Bunun hemen üst kısmına şunları ekleyin; PHP Kodu: // ############### Paul M - Who has visited today v1.40 ################# require_once('./includes/functions_misc.php'); $now = TIMENOW - intval($vboptions['hourdif']); $cutoff = vbmktime(0, 0, 0, date('m', $now), date('d', $now), date('Y', $now)); //$cutoff = $now - 86400 ; // ## Uncomment this line if you want a rolling 24 hours display ## // $todaysusers = $DB_site->query("SELECT userid, lastactivity, options, username, opentag, closetag FROM " . TABLE_PREFIX . "user as user LEFT JOIN " . TABLE_PREFIX . "usergroup as usergroup ON(user.usergroupid = usergroup.usergroupid) WHERE lastactivity > " .$cutoff. " ORDER BY username" ); $totaltoday = 0; while ($today = $DB_site->fetch_array($todaysusers)) { $today[visible] = 1 ; $totaltoday += 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['lastactivity']); $whotoday .= "<a href='member.php?u=$today[userid]' title='$wrdate' >"; if ($today[visible] == 2) { $whotoday .= $today['opentag'].$today[username].$today['closetag']."</a>*, "; } else { $whotoday .= $today['opentag'].$today[username].$today['closetag']."</a>, "; } } } if ($whotoday) { $whotoday = substr($whotoday, 0, strlen($whotoday)-2); } // ############# End of Who has visited today ############### kaydedip upload edin. FORUMHOME templatesini açıp alttaki kodları bulun; PHP Kodu:<if condition="$show['loggedinusers']"> <!-- logged-in users --> <tbody> <tr> <td class="thead" colspan="2"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a> <a href="online.php?$session[sessionurl]">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>) </td> </tr> </tbody> <tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]"> <tr> <td class="alt2"><a href="online.php?$session[sessionurl]"><img src="$stylevar[imgdir_statusicon]/forum_link.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td> <td class="alt1" width="100%"> <div class="smallfont"> <div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div> <div>$activeusers</div> </div> </td> </tr> </tbody> <!-- end logged-in users --> </if> Bunun tümünü şu kodlarla değiştirin; <if condition="$show['loggedinusers']"> <!-- logged-in users --> <tbody> <tr> <td class="thead" colspan="2"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a> <a href="online.php?$session[sessionurl]">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>) </td> </tr> </tbody> <tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]"> <tr> <td class="alt2"><a href="online.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td> <td class="alt1" width="100%"> <div class="smallfont"> <div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div> <div>$activeusers</div> </div> </td> </tr> </tbody> <!-- end logged-in users --> <!-- Todays active users --> <tbody> <tr> <td class="thead" colspan="2"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_todayusers')"><img id="collapseimg_forumhome_todayusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_todayusers].gif" alt="" border="0" /></a> Total users that have visited today: $totaltoday </td> </tr> </tbody> <tbody id="collapseobj_forumhome_todayusers" style="$vbcollapse[collapseobj_forumhome_todayusers]"> <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">$whotoday</div></td> </tr> </tbody> <!-- Todays active users --> </if> |
|||||||||
|
||||||||||
|
|
![]() |
| Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir) | |
| Seçenekler | Arama |
| Stil | |
|
|