Jump to content
MakeWebGames

[mccode v2] ADVANCED USERSONLINE MOD


Recommended Posts

Posted

Re: FREE ADVANCED USERSONLINE MOD

 

For v1 cause som ones gona ask

oh yh the only reason why i havent put it in a code boxit keeps messin up

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); print " "; $cn=0; $q=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-15*60 ORDER BY laston DESC"); while($r=$db->fetch_row($q)) { $la=time()-$r['laston']; $unit="secs"; if($la >= 60) { $la=(int) ($la/60); $unit="mins"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } if($r['laston'] > 0) { $la=time()-$r['laston']; $unit="seconds"; if($la >= 60) { $la=(int) ($la/60); $unit="minutes"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } $str="$la $unit ago"; } else { $str="--"; } if($r['last_login'] > 0) { $ll=time()-$r['last_login']; $unit2="seconds"; if($ll >= 60) { $ll=(int) ($ll/60); $unit2="minutes"; } if($ll >= 60) { $ll=(int) ($ll/60); $unit2="hours"; if($ll >= 24) { $ll=(int) ($ll/24); $unit2="days"; } } $str2="$ll $unit2 ago"; } else { $str2="--"; } $cn++; print

 

it dont work

  • Replies 60
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Re: FREE ADVANCED USERSONLINE MOD

 

This works for V2 but the location only shows the # of location :?Yes I realize Lostone posted the code but could not get it to work right.Thanks for the help :-D

 

$query = mysql_query("SELECT * FROM `cities` WHERE `cityid` = '".$ir["location"]."'");

$result = mysql_fetch_array($query);

$location = $result["cityname"];

  • 2 weeks later...
Posted

Re: FREE ADVANCED USERSONLINE MOD

ok, i've taken what everyone has posted up here and put it together along with locations and gangs. I also linked gangs to the gang homepage.

 

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

This works well on my site and the users love it.

Posted

Re: FREE ADVANCED USERSONLINE MOD

 

ok, i've taken what everyone has posted up here and put it together along with locations and gangs. I also linked gangs to the gang homepage.

 

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

This works well on my site and the users love it.

+1

  • 2 weeks later...
  • 4 months later...
Guest Anonymous
Posted

Re: FREE ADVANCED USERSONLINE MOD

Add this to usersonline.....

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

Re: FREE ADVANCED USERSONLINE MOD

 

<font color=putthefriggingcolorhere>

LOL should be

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

you forgot then: '

ye i forgot mate know wneed to have a go

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.   Paste as plain text instead

  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...