View Single Post
  #2  
Old 08-14-2006, 01:42 PM
onlineking onlineking is offline
OSP Starters
 
Join Date: Aug 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
onlineking is on a distinguished road
Default

Try this code:

<?php

// ... init classes and whatnot...

if($user->logged != true)
{
$display->tpl('login_you_idiot');
}

// ... once the idiot logs in..

$db->query("UPDATE `status` SET `logged` = '1' WHERE `id = '{$user->id}'");

// where did $user->id come from? once the user logged in set the new values

// ...

?>

What you are asking for requires a full working member system thin -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  Webmaster Forums - View Single Post - how can i create a "users logged in now" script
View Single Post
  #2  
Old 08-14-2006, 01:42 PM
onlineking onlineking is offline
OSP Starters
 
Join Date: Aug 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
onlineking is on a distinguished road
Default

Try this code:

<?php

// ... init classes and whatnot...

if($user->logged != true)
{
$display->tpl('login_you_idiot');
}

// ... once the idiot logs in..

$db->query("UPDATE `status` SET `logged` = '1' WHERE `id = '{$user->id}'");

// where did $user->id come from? once the user logged in set the new values

// ...

?>

What you are asking for requires a full working member system thin -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote