Posted on: 02/22/05 08:47pm
By: lgriffin
Posted on: 02/23/05 02:24am
By: Dirk
Posted on: 02/23/05 04:46am
By: jlawrence
Posted on: 02/23/05 08:24pm
By: lgriffin
Posted on: 02/23/05 10:24pm
By: destr0yr
if ($A['lastlogin'] > 0) { $curtime2 = COM_getUserDateTimeFormat($A["lastlogin"]); $A['lastlogin'] = $curtime2[0]; $user_templates->set_var('user_lastlogin', $A['lastlogin']); } else if ($A['lastlogin'] == 0 ) { $user_templates->set_var('user_lastlogin', 'The user has never logged in'); }
Posted on: 02/25/05 08:25am
By: lgriffin
$color = "#C0C0C0"; // this set the background color of the switched row. //get and prep array of user info $membersprep = DB_query( "SELECT * FROM gl_users, gl_userinfo where gl_users.uid = gl_userinfo.uid ORDER BY username" ); //$members = DB_fetchArray($membersprep); //figure out haw many users we really have here $limit = DB_count('gl_userinfo') - 2; $count = 1; // tell folks how popular we really are $putout .= "There are currently " . $limit . " members of the site!n"; //Load up the first of the display $putout .= "<table>"; //create our header row $putout .= "<TR bgcolor="#FFFFFF">n"; $putout .= "<TD><B><H3>Name</H3></B></TD>n"; $putout .= "<TD><B><H3>Join Date</H3></B></TD>n"; $putout .= "<TD><B><H3>Last Login Date</H3></B></TD>n"; $putout .= "</TR>n"; //start spewing out information and switching the bkgrnd color $switch = false; while($count <= $limit){ $membersout = DB_fetcharray($membersprep); switch ( $switch ) { case true: $switch = false; // alternating color $putout .= "<TR bgcolor="" . $color . "">n"; break; default: $switch = true; // default, no back color $putout .= "<TR bgcolor"FFFFFF">n"; } // switch $putout .= "<TD><a href="http://www.lomguild.com/admin/user.php?mode=edit&uid="; $putout .= $membersout['uid'] . "">" . $membersout['username'] . "</a></TD>n"; $putout .= "<TD>" . $membersout['regdate'] . "</TD>n"; $putout .= "<TD>" . $membersout['lastlogin'] . "</TD>n"; $putout .= "</TR>n"; $count++; } // while //close out the table $putout .= "</TABLE>"; return $putout;;
Posted on: 02/27/05 06:07pm
By: lgriffin
$color = "#C0C0C0"; // this set the background color of the switched row. //get and prep array of user info $membersprep = DB_query( "SELECT * FROM gl_users, gl_userinfo where gl_users.uid = gl_userinfo.uid ORDER BY username" ); //$members = DB_fetchArray($membersprep); //figure out haw many users we really have here $limit = DB_count('gl_userinfo') - 2; $count = 1; // tell folks how popular we really are $putout .= "There are currently " . $limit . " members of the site!\n"; //Load up the first of the display $putout .= "<table>"; //create our header row $putout .= "<TR bgcolor=\"#FFFFFF\">\n"; $putout .= "<TD><B><H3>Name</H3></B></TD>\n"; $putout .= "<TD><B><H3>Join Date</H3></B></TD>\n"; $putout .= "<TD><B><H3>Last Login Date</H3></B></TD>\n"; $putout .= "</TR>\n"; //start spewing out information and switching the bkgrnd color $switch = false; while($count <= $limit){ $membersout = DB_fetcharray($membersprep); switch ( $switch ) { case true: $switch = false; // alternating color $putout .= "<TR bgcolor=\"" . $color . "\">\n"; break; default: $switch = true; // default, no back color $putout .= "<TR bgcolor\"FFFFFF\">\n"; } // switch $putout .= "<TD><a href=\"http://www.lomguild.com/admin/user.php?mode=edit&uid="; $putout .= $membersout['uid'] . "\">" . $membersout['username'] . "</a></TD>\n"; $putout .= "<TD>" . $membersout['regdate'] . "</TD>\n"; $curtime2 = COM_getUserDateTimeFormat($membersout['lastlogin']); $membersout['lastlogin'] = $curtime2[0]; $putout .= "<TD>" . $membersout['lastlogin'] . "</TD>\n"; $putout .= "</TR>\n"; $count++; } // while //close out the table $putout .= "</TABLE>"; return $putout;;
Posted on: 05/27/05 04:06pm
By: ronack
Posted on: 05/27/05 04:15pm
By: ronack
Posted on: 05/27/05 05:47pm
By: ronack
$color = "#C0C0C0"; // this set the background color of the switched row. //get and prep array of user info $membersprep = DB_query( "SELECT * FROM gl_users, gl_userinfo where gl_users.uid = gl_userinfo.uid ORDER BY username" ); //$members = DB_fetchArray($membersprep); //figure out haw many users we really have here $limit = DB_count('gl_userinfo') - 2; $count = 1; // tell folks how popular we really are $putout .= "There are currently " . $limit . " members of the site!"; //Load up the first of the display $putout .= "<table>"; //create our header row $putout .= "<TR bgcolor='#FFFFFF'>"; $putout .= "<TD><B><H3>Name</H3></B></TD>"; $putout .= "<TD><B><H3>Join Date</H3></B></TD>"; $putout .= "<TD><B><H3>Last Login Date</H3></B></TD>"; $putout .= "</TR>"; //start spewing out information and switching the bkgrnd color $switch = false; while($count <= $limit){ $membersout = DB_fetcharray($membersprep); switch ( $switch ) { case true: $switch = false; // alternating color $putout .= "<TR bgcolor=' " . $color . "'>"; break; default: $switch = true; // default, no back color $putout .= "<TR bgcolor='FFFFFF'>"; } // switch $putout .= "<TD><a href='http://www.miplanet.com/admin/user.php?mode=edit&uid="; $putout .= $membersout['uid'] . " '>" . $membersout['username'] . "</a></TD>"; $putout .= "<TD>" . $membersout['regdate'] . "</TD>"; $curtime2 = COM_getUserDateTimeFormat($membersout['lastlogin']); if ( ($membersout['lastlogin']) == '0') { $membersout["lastlogin"] = 'Never'; } else { $membersout['lastlogin'] = $curtime2[0]; } $putout .= "<TD>" . $membersout['lastlogin'] . "</TD>"; $putout .= "</TR>"; $count++; } // while //close out the table $putout .= "</TABLE>"; return $putout;
Posted on: 05/27/05 06:13pm
By: ronack
Posted on: 05/27/05 06:25pm
By: ronack
Posted on: 05/27/05 06:50pm
By: ronack
//figure out haw many users we really have here $limit = DB_count('gl_userinfo') - 2;
//figure out haw many users we really have here $limit = DB_count('gl_userinfo');