Jump to content


This topic is now archived and is closed to further replies.


show online hack

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


    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");
      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 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>
    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>
        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>

Share this post

Link to post
Share on other sites


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.