MY USER INFO BLOCK WONT DISPLAY THE ONLINE USERS

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   MY USER INFO BLOCK WONT DISPLAY THE ONLINE USERS
Link
CZ Newbie
Link has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Apr 09, 2005
0.00 posts per day
Posts: 6
Points: 138
   
My user info info block doesnt display the online users like this sites does im using the universal on the english version icon_cry.gif



Back to top Reply with quote
#2   
Staffie
CZ Revered Member
 Codezwiz Site Donator
uk.gif
Occupation: Investigation Officer
Age: 39
Gender: Male
Website:
Status: Offline
Joined: May 27, 2003
0.19 posts per day
Posts: 1454
Points: 401,085
   
Which version are you using?




_________________
Back to top Reply with quote
#3   
Link
CZ Newbie
Link has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Apr 09, 2005
0.00 posts per day
Posts: 6
Points: 138
   


Originally posted by Staffie @ Mon Apr 18, 2005 3:22 am:

Which version are you using?

v5



Back to top Reply with quote
#4   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
You didnt make the mainfile.php edits. Open the mainfile.php and change the function online() to this:


function online() {
    global $user, $cookie, $prefix, $db, $name;
    cookiedecode($user);
    $ip = $_SERVER['REMOTE_ADDR'];
    $url = $_SERVER['REQUEST_URI'];
    $uname = $cookie[1];
    if (!isset($uname)) {
        $uname = "$ip";
        $guest = 1;
    }
    $past = time()-1800;
    $db->sql_query("DELETE FROM ".$prefix."_session WHERE time < '$past'");
    $result = $db->sql_query("SELECT time FROM ".$prefix."_session WHERE uname='$uname'");
    $ctime = time();
    $custom_title = addslashes($name);
    $url = ereg_replace("&amp;", "&", $url);
    if ($uname!="") {
    $uname = substr("$uname", 0,25);
    if ($row = $db->sql_fetchrow($result)) {
   $db->sql_query("UPDATE ".$prefix."_session SET uname='$uname', time='$ctime', host_addr='$ip', guest='$guest', module='$custom_title', url='$url' WHERE uname='$uname'");
    } else {
   $db->sql_query("INSERT INTO ".$prefix."_session (uname, time, host_addr, guest, module, url) VALUES ('$uname', '$ctime', '$ip', '$guest', '$custom_title', '$url')");
    }
  }
}




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#5   re: MY USER INFO BLOCK WONT DISPLAY THE ONLINE USERS
Link
CZ Newbie
Link has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Apr 09, 2005
0.00 posts per day
Posts: 6
Points: 138
   
thanks man very much it finally works icon_smile.gif



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum