Jump to content
MakeWebGames

IEatYourCookies

Members
  • Posts

    22
  • Joined

  • Last visited

IEatYourCookies's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I have re-uploaded the basic mccodes v2, I will attempt the header now.
  2. Okay, so I'm having an issue with the Estate.php file. When a user purchases a property and go home it shows the property but if you refresh the page it shows "Homeless" Please can you tell me why this is & What files I need to edit. Thanks in Advance
  3. Hello, would anyone who has the following login that CJ - Twitch made, post below... seeing as other download links are no longer working. http://makewebgames.io/showthread.php/36204 Thanks in Advance.
  4. Majority of it is the same as the original mccodes v2, but this one is special... This one is special b'coz it has images ;)
  5. Well here ya go guys. -If you haven't got the "VIP" installed on your game you will either have to install it, or remove it from the code it's easily done. Enjoy :) Usersonline.php: <?php include_once "globals.php"; $_GET['st'] = ( isset($_GET['st'])&&is_numeric($_GET['st']) )?abs(intval($_GET['st'])):''; $st = ($_GET['st']) ? $_GET['st'] : 0; $allowed_by = array('userid', 'username', 'level', 'money'); $by=(in_array($_GET['by'], $allowed_by)) ? $_GET['by'] : 'userid'; $allowed_ord = array('asc', 'desc', 'ASC', 'DESC'); $ord=(in_array($_GET['ord'], $allowed_ord)) ? $_GET['ord'] : 'ASC'; echo "<h3>Userlist</h3>"; $cnt=mysql_query("SELECT userid FROM users",$c); $membs=mysql_num_rows($cnt); $pages=(int) ($membs/100)+1; if($membs % 100 == 0) { $pages--; } echo "Pages: "; for($i=1;$i <= $pages;$i++) { $stl=($i-1)*100; echo "<select name=start><option selected='selected' value=0 style='font-weight:bold;color:green;'><a href='userlist.php?st=$stl&by=$by&ord=$ord'>$i</a></option></select> "; } echo "<br /> Order By: <a href='userlist.php?st=$st&by=userid&ord=$ord'>User ID</a> | <a href='userlist.php?st=$st&by=username&ord=$ord'>Username</a> | <a href='userlist.php?st=$st&by=level&ord=$ord'>Level</a> | <a href='userlist.php?st=$st&by=money&ord=$ord'>Money</a><br /> <a href='userlist.php?st=$st&by=$by&ord=asc'>Ascending</a> | <a href='userlist.php?st=$st&by=$by&ord=desc'>Descending</a><br /><br />"; $q = $db->query("SELECT u.`donatordays`, `vipdays`, `username`,`userid`,`money`,`level`,`gender`,g.`gangPREF`,`laston` FROM `users` u LEFT JOIN `gangs` g ON u.`gang` = g.`gangID` ORDER BY $by $ord LIMIT $st,100"); $no1=$st+1; $no2=$st+100; echo " Showing users $no1 to $no2 by order of $by $ord. <table width='75%' cellspacing='1' cellpadding='1' class='table'> <tr style='background:gray'> <th>ID</th> <th>Name</th> <th>Money</th> <th>Level</th> <th>Gender</th> <th>Online</th> </tr> "; while ( $r = $db->fetch_row($q) ) { $r['username'] = ($r['donatordays'])?'<span style="color:purple; font-weight:bold;">'.$r['username'].'</span> <img src="donator.gif" alt="Donator: '.$r['donatordays'].' Days Left" title="Donator: '.$r['donatordays'].' Days Left" />':$r['username']; $vip = ( $r['vipdays'] > 0 )?' <img src="images/vip.gif" alt="V.I.P: '.$r['vipdays'].' Days Left" title="V.I.P: '.$r['vipdays'].' Days Left" />':''; echo ' <tr> <td>'.$r['userid'].'</td> <td><a href="viewuser.php?u='.$r['userid'].'">'.$r['gangPREF'].' '.$r['username'].' '.$vip.'</a></td> <td>'.money_formatter($r['money']).'</td> <td>'.$r['level'].'</td> <td>'.$r['gender'].'</td> <td> '; echo (($r['laston'] >= $_SERVER['REQUEST_TIME']-15*60)?' <img src="images/online.png" alt="Online" title="Online">':'<img src="images/offline.png" alt="Offline" title="Offline">'); echo ' </td> </tr> '; } echo '</table>'; $h->endpage(); ?> Following up AnonymousUser's Quote... If you cant be bothered to integrate the rating system, I have done it for you... Usersonline.php w/Rating <?php include_once "globals.php"; $_GET['st'] = ( isset($_GET['st'])&&is_numeric($_GET['st']) )?abs(intval($_GET['st'])):''; $st = ($_GET['st']) ? $_GET['st'] : 0; $allowed_by = array('userid', 'username', 'level', 'money'); $by=(in_array($_GET['by'], $allowed_by)) ? $_GET['by'] : 'userid'; $allowed_ord = array('asc', 'desc', 'ASC', 'DESC'); $ord=(in_array($_GET['ord'], $allowed_ord)) ? $_GET['ord'] : 'ASC'; echo "<h3>Userlist</h3>"; $cnt=mysql_query("SELECT userid FROM users",$c); $membs=mysql_num_rows($cnt); $pages=(int) ($membs/100)+1; if($membs % 100 == 0) { $pages--; } echo "Pages: "; for($i=1;$i <= $pages;$i++) { $stl=($i-1)*100; echo "<select name=start><option selected='selected' value=0 style='font-weight:bold;color:green;'><a href='userlist.php?st=$stl&by=$by&ord=$ord'>$i</a></option></select> "; } echo "<br /> Order By: <a href='userlist.php?st=$st&by=userid&ord=$ord'>User ID</a> | <a href='userlist.php?st=$st&by=username&ord=$ord'>Username</a> | <a href='userlist.php?st=$st&by=level&ord=$ord'>Level</a> | <a href='userlist.php?st=$st&by=money&ord=$ord'>Money</a><br /> <a href='userlist.php?st=$st&by=$by&ord=asc'>Ascending</a> | <a href='userlist.php?st=$st&by=$by&ord=desc'>Descending</a><br /><br />"; $q = $db->query("SELECT u.`donatordays`, `vipdays`, `rating`, `username`,`userid`,`money`,`level`,`gender`,g.`gangPREF`,`laston` FROM `users` u LEFT JOIN `gangs` g ON u.`gang` = g.`gangID` ORDER BY $by $ord LIMIT $st,100"); $no1=$st+1; $no2=$st+100; echo " Showing users $no1 to $no2 by order of $by $ord. <table width='75%' cellspacing='1' cellpadding='1' class='table'> <tr style='background:gray'> <th>ID</th> <th>Name</th> <th>Money</th> <th>Level</th> <th>Gender</th> <th>Online/Rate</th> </tr> "; while ( $r = $db->fetch_row($q) ) { $r['username'] = ($r['donatordays'])?'<span style="color:purple; font-weight:bold;">'.$r['username'].'</span> <img src="donator.gif" alt="Donator: '.$r['donatordays'].' Days Left" title="Donator: '.$r['donatordays'].' Days Left" />':$r['username']; $vip = ( $r['vipdays'] > 0 )?' <img src="images/vip.gif" alt="V.I.P: '.$r['vipdays'].' Days Left" title="V.I.P: '.$r['vipdays'].' Days Left" />':''; echo ' <tr> <td>'.$r['userid'].'</td> <td><a href="viewuser.php?u='.$r['userid'].'">'.$r['gangPREF'].' '.$r['username'].' '.$vip.'</a></td> <td>'.money_formatter($r['money']).'</td> <td>'.$r['level'].'</td> <td>'.$r['gender'].'</td> <td> '; echo (($r['laston'] >= $_SERVER['REQUEST_TIME']-15*60)?' <img src="images/online.png" alt="Online" title="Online">':'<img src="images/offline.png" alt="Offline" title="Offline">'); print" Rate: <a href=rating.php?change=up&ID={$r['userid']}><font color='green'>+</font></a> {$r['rating']} <a href=rating.php?change=down&ID={$r['userid']}><font color='red'>-</font></a><br /></td>"; echo ' </td> </tr> '; } echo '</table>'; $h->endpage(); ?> Make sure you Add these images to your "images" folder:
  6. Don't Worry, I can Install =] Aslong as it let's users sign up without errors', I'm willing to pay =]
  7. Aslong as it works. =] Yeah sure, Ill pay =] - - - Updated - - - Pm me? Need your paypal address :P
  8. Still Can't manage to sort it. Anyone £5 to do it? :P Best Regards -Al
  9. Well it's something lmao. Idk what to do, I'll go jump off a bridge. Toodles :(
  10. Oh God, you words of wisdom, give me severe pains. Lmao. Idk what to do lmao. Ill pay you £2 ;)
  11. Omg :3 - Those are complicated words. (i have a Limited brain capacity) Aha, could you not just edit my current one & repost? :o Best Regards
  12. Warning: preg_match() expects parameter 2 to be string, array given in /home/*****/public_html/register.php on line 33 Call Stack There's genuinely no hope for me.
  13. I've attempted yet again, so many different combinations, I've even tried erasing the domain_array, no luck. May I have the fishy now please? :) Best Regards. -Alex.
×
×
  • Create New...