Jump to content

Recommended Posts

Hi, on a phpprobid install it shows users online, the code is below. However I need to change this so it doesnt show online members, but all online ips... member or no members.. i want to show all visitors totals

CODE

[quote]
    if ($setts['h_counter']==1) {
      $nbUsers=getSqlNumber("SELECT id FROM probid_users WHERE active=1");
      $nbLiveAuctions=getSqlNumber("SELECT id FROM probid_auctions WHERE active=1 AND closed=0 AND deleted!=1");
    $nbLiveWantAds=getSqlNumber("SELECT id FROM probid_wanted_ads WHERE active=1 AND closed=0 AND deleted!=1");
    header5("$lang[Site_status]");
      echo "
      <table width='100%' border='0' cellpadding='2' cellspacing='1' class='contentfont'>
          <tr class='c3'>
              <td width='20%' align='center'><b>".$nbUsers."</b></td>
              <td width='80%'>&nbsp;<font style='font-size: 10px;'>$lang[registered_users]</font></td>
          </tr>
          <tr class='c2'>
              <td width='20%' align='center'><b>".$nbLiveAuctions."</b></td>
              <td width='80%'>&nbsp;<font style='font-size: 10px;'>$lang[live_auctions]</font></td>
          </tr>";
    if ($setts['enable_wantedads']=="Y") { 
        echo "<tr class='c3'>
              <td width='20%' align='center'><b>".$nbLiveWantAds."</b></td>
              <td width='80%'>&nbsp;<font style='font-size: 10px;'>$lang[live_wantads]</font></td>
          </tr>";
    }
        echo "<tr class=\"c2\">
              <td width=\"20%\" align=\"center\"><b>"; include("online.php");
        echo "</b></td>
              <td width=\"80%\">&nbsp;<font style=\"font-size: 10px;\">$lang[online_users]</font></td>
          </tr>";[/quote]
Link to comment
https://forums.phpfreaks.com/topic/18890-show-online-hack/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.