Jump to content
MakeWebGames

Danny.W

Members
  • Posts

    19
  • Joined

  • Last visited

Personal Information

  • Location
    United Kingdom
  • Interests
    Football, Racing, Tennis, Grand Prix, Music, Gaming
  • Occupation
    Tier 1 Technician

Danny.W's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Congratulations Paul and Equinox, I'm sure you will give your utmost effort into moderating the forum.
  2. My firsth thoughts of Firefox 4 was "Hmmm this is unlike a Firefox browser"... But after a couple of hours using it so on getting use to it, It actually isn't a bad web browser at all, Yes it has 1/2 things that could be improved, But everything can be improved nothing is perfect.. I Would say Mozilla have done a great job with this browser, and i hope they can keep the good work up for future releases...
  3. I Must say i would have never even looked at IE 9 if a_bertrand never spoke about it on the great wsiRC chat ;)... But what can i say he said it was a great improvement from the other older version, And what was my outcome off the IE 9 Browser, Well it is a huge step forward for Microsoft in their browser department, Now i am just looking for them to continue to advance in this area. You never know in a few years i could start using IE for all my browsing!
  4. There we go....   <?php include "globals.php"; $_GET['u'] = abs((int) $_GET['u']); if (!$_GET['u']) { echo "Invalid use of file"; } else { $q = $db->query("SELECT u.*,us.*,c.*,h.*,g.*,f.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN cities c ON u.location=c.cityid LEFT JOIN houses h ON u.maxwill=h.hWILL LEFT JOIN gangs g ON g.gangID=u.gang LEFT JOIN fedjail f ON f.fed_userid=u.userid WHERE u.userid={$_GET['u']}"); if ($db->num_rows($q) == 0) { echo "Sorry, we could not find a user with that ID, check your source."; } else { $r = $db->fetch_row($q); if ($r['user_level'] == 1) { $userl = "Member"; } else if ($r['user_level'] == 2) { $userl = "Admin"; } else if ($r['user_level'] == 3) { $userl = "Secretary"; } else if ($r['user_level'] == 0) { $userl = "NPC"; } else { $userl = "Assistant"; } $lon = ($r['laston'] > 0) ? date('F j, Y g:i:s a', $r['laston']) : "Never"; $sup = date('F j, Y g:i:s a', $r['signedup']); $ts = $r['strength'] + $r['agility'] + $r['guard'] + $r['labour'] + $r['IQ']; $d = ""; 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 = "--"; } if ($r['donatordays']) { $r['username'] = "<font color=Blue>[b]{$r['username']}[/b]</font>"; $d = "[img=Donator.png]"; } if ($r['laston'] >= time() - 15 * 60) { $on = "<font color=green>[b]Online[/b]</font>"; } else { $on = "<font color=red>[b]Offline[/b]</font>"; } echo "<h3>Profile for {$r['username']}</h3><table width=100% cellspacing=1 class='table'><tr style='background:gray'></tr><tr>Name: {$r['username']} [{$r['userid']}] $d User Level: $userl Duties: {$r['duties']} Online: $on Level: {$r['level']} Game Rank: $rank Health: {$r['hp']}/{$r['maxhp']} Property: {$r['hNAME']} Days Old: {$r['daysold']} Location: {$r['cityname']} Referals: "; $rr = $db->query("SELECT * FROM referals WHERE refREFER={$r['userid']}"); print $db->num_rows($rr); echo " Friends: {$r['friend_count']} Enemies: {$r['enemy_count']} <td>"; $sh = ($ir['user_level'] > 1) ? "Staff Info" : ""; echo "</td></tr>Faction: "; if ($r['gang']) { echo "[url='factions.php?action=view&ID={$r[']{$r['gangNAME']}[/url]"; } else { echo "N/A"; } if ($r['fedjail']) { echo " [b]<font color=red>In federal jail for {$r['fed_days']} day(s). {$r['fed_reason']}</font>"; } if ($r['hospital']) { echo " [b]<font color=red>In hospital for {$r['hospital']} minutes. {$r['hospreason']}</font>[/b]"; } if ($r['jail']) { echo " [b]<font color=red>In jail for {$r['jail']} minutes. {$r['jail_reason']}</font>[/b]"; } echo "</td><td>[[url='mailbox.php?action=compose&ID={$r[']Send Mail[/url]] [[url='sendcash.php?ID={$r[']Send Cash[/url]] "; if ($set['sendcrys_on']) { echo "[[url='sendcrys.php?ID={$r[']Send Points[/url]] "; } echo "[[url='attack.php?ID={$r[']Attack[/url]] [[url='contactlist.php?action=add&ID={$r[']Add Contact[/url]] [[url='display.php?ID={$r[']Display Case[/url]]"; if ($ir['user_level'] == 2 || $ir['user_level'] == 3 || $ir['user_level'] == 5) { echo " [[url='jailuser.php?userid={$r[']Jail[/url]] [[url='mailban.php?userid={$r[']MailBan[/url]]"; } if ($ir['donatordays'] > 0) { echo " [[url='friendslist.php?action=add&ID={$r[']Add Friends[/url]] [[url='blacklist.php?action=add&ID={$r[']Add Enemies[/url]] "; } echo "</td><td>"; if ($ir['user_level'] == 2 || $ir['user_level'] == 3 || $ir['user_level'] == 5) { $r['lastiph'] = @gethostbyaddr($r['lastip']); $r['lastiph'] = checkblank($r['lastiph']); $r['lastip_loginh'] = @gethostbyaddr($r['lastip_login']); $r['lastip_loginh'] = checkblank($r['lastip_loginh']); $r['lastip_signuph'] = @gethostbyaddr($r['lastip_signup']); $r['lastip_signuph'] = checkblank($r['lastip_signuph']); echo "<h3>Internet Info</h3><table width='100%' border='0' cellspacing='1' class='table'><tr><td></td><td class='h'>IP</td><td class='h'>Hostname</td></tr><tr><td class='h'>Last Hit</td><td>$r[lastip]</td><td>$r[lastiph]</td></tr><tr><td class='h'>Last Login</td><td>$r[lastip_login]</td><td>$r[lastip_loginh]</td></tr><tr><td class='h'>Signup</td><td>$r[lastip_signup]</td><td>$r[lastip_signuph]</td></tr></table>"; echo "<form action='staffnotes.php' method='post'>Staff Notes: <textarea rows=7 cols=40 name='staffnotes'>{$r['staffnotes']}</textarea> <input type='hidden' name='ID' value='{$_GET['u']}' /><input type='submit' value='Change' /></form>"; } else { echo ""; } echo "</tr></table>"; } } function checkblank($in) { if (!$in) { return "N/A"; } return $in; } $h->endpage(); ?>
  5. Well done look's like a good modification, Keep up the good work! Note: Feel free to space your code as much as you like it's your modification! If they don't like it, then they can create their own... :)
  6. I Love the concept of this modification, Gives the players of your game even more to edit the game to their preferences.. Great code, Great modification, Well done!...
  7. Your welcome, Hah.. Yes of course you are, It's your thread ;)
  8. Looking great Paul, I'm sure this will bring you great success and rewards!.. Well done *Can't wait for release* ;)
  9. Looking good, Hope it goes well for you :)..
  10. Well done Maniak, Nice modification... Simular to the support system i use on my upcoming game!, Well done.
  11. Nice work illusions, Looks like a great bargain at only $20! If only i was using MCC I Would have definently purchased. Well done.
  12. I Agree, I'm a new member here i will admit, And it's not giving me a very good example by always going down with an error. To be fair if it wasn't for a very few people who i have met here, I Doubt i would still be here, Because it really does just get annoying.
  13. It happen's to me quite a bit too, It is a bit frustrating sometimes especially if your PM'ing or Replying on a thread hah... I Hope they will fix it.
  14. Hi LegendFTW, Well done on making this mod im sure there are many people who like it... Anyways i decided to clean it a little for you. rateexchange.php: <?php include(DIRNAME(__FILE__) . '/globals.php'); if($ir['jail'] || $ir['hospital']) { echo 'This page is not accessible whilst in the '.(($ir['jail']) ? 'Jail':'Hospital').'. > [url="index.php"]Go Back[/url] '; exit($h->endpage()); } if (!$_GET['spend']) { if ($ir['ratings'] > 11) { $ea = "[url='rateexchange.php?spend=refill']Buy[/url]"; } else { $ea = "N/A"; } if ($ir['ratings'] > 19) { $ba = "[url='rateexchange.php?spend=brave']Buy[/url]"; } else { $ba = "N/A"; } if ($ir['ratings'] > 49) { $ha = "[url='rateexchange.php?spend=health']Buy[/url]"; } else { $ha = "N/A"; } if ($ir['ratings'] > 999) { $dpa = "[url='rateexchange.php?spend=dp']Buy[/url]"; } else { $dpa = "N/A"; } echo " The Rate Exchange. What Do You Want To Spend Your {$ir['ratings']} Rates On? <table width=90% border=1 cellspacing=1 class='table'> <tr> <th>Reward</th> <th>Rates Needed</th> <th>Buy</th> </tr> <tr><td>Energy Refill</td><td>12</td><td>$ea</td></tr> <tr><td>Brave Refill</td><td>20</td><td>$ba</td></tr> <tr><td>Health Refill</td><td>50</td><td>$ha</td></tr> <tr><td>DP (Pack One)</td><td>1000</td><td>$dpa</td></tr> <tr><td>IQ</td><td>1 Rate for 1 IQ</td><td>[url='rateexchange.php?spend=IQ']Buy[/url]</td></tr> <tr><td>Money</td><td>1 Rate per \$200</td><td>[url='rateexchange.php?spend=money']Buy[/url]</td></tr> </table>"; } else { if ($_GET['spend'] == 'refill') { if ($ir['ratings'] < 12) { echo "You don't have enough rates!"; } else if ($ir['energy'] == $ir['maxenergy']) { echo "You already have full energy."; } else { $db->query("UPDATE users SET energy=maxenergy,ratings=ratings-12 WHERE userid=$userid", $c) or die("Energy refill area is down, please retry in 5 minutes."); echo "Your energy is now full and you have paid 12 rates."; } } else if ($_GET['spend'] == 'IQ') { $amm = $ir['ratings'] * 1; echo "Type in the amount of rates you want to swap for IQ. You can get [b]$amm[/b] IQ with all your [b]{$ir['ratings']}[/b] rates One rate = 1 IQ. <form action='rateexchange.php?spend=IQ2' method='post'> <input type='text' name='ratings' value='{$ir['ratings']}' /> <input type='submit' value='Swap' /></form>"; } else if ($_GET['spend'] == 'IQ2') { $_POST['ratings'] = (int) $_POST['ratings']; if ($_POST['ratings'] <= 0 || $_POST['ratings'] > $ir['ratings']) { echo "Error, you either do not have enough rates or did not fill out the form. [url='rateexchange.php?spend=IQ']Back[/url]"; } else { $iqgain = $_POST['ratings'] * 1; $db->query("UPDATE users SET ratings=ratings-{$_POST['ratings']} WHERE userid=$userid", $c); $db->query("UPDATE userstats SET IQ=IQ+$iqgain WHERE userid=$userid", $c); echo "You have gained $iqgain IQ and have just spent {$_POST['ratings']} rates."; } } else if ($_GET['spend'] == 'money') { $acm = $ir['ratings'] * 200; echo "Type in the amount of rates you want to trade for cash. You can get \$$acm Cash for {$ir['ratings']} Rates. One rate = \$200. <form action='rateexchange.php?spend=money2' method='post'> <input type='text' name='ratings' value='{$ir['ratings']}' /> <input type='submit' value='Swap' /></form>"; } else if ($_GET['spend'] == 'money2') { $_POST['ratings'] = (int) $_POST['ratings']; if ($_POST['ratings'] <= 0 || $_POST['ratings'] > $ir['ratings']) { echo "Error, you either do not have enough rates or did not fill out the form. [url='rateexchange.php?spend=money']Back[/url]"; } else { $iqgain = $_POST['ratings'] * 200; $db->query("UPDATE users SET ratings=ratings-{$_POST['ratings']},money=money+$iqgain WHERE userid=$userid", $c); echo "You have recieved \$$iqgain and have spent {$_POST['ratings']}."; } } else if ($_GET['spend'] == 'brave') { if ($ir['ratings'] < 20) { echo "You don't have enough rates!"; } else if ($ir['brave'] == $ir['maxbrave']) { echo "You already have full brave."; } else { $nowcrys = $ir['ratings'] - 20; $db->query("UPDATE users SET brave=maxbrave,ratings=ratings-20 WHERE userid=$userid", $c); echo "You now have full brave and have spent 20 rates. You now have $nowcrys Rates."; } } else if ($_GET['spend'] == 'health') { if ($ir['ratings'] < 50) { echo "You don't have enough rates!"; } else if ($ir['health'] == $ir['maxhealth']) { echo "You already have full health."; } else { $nowcs = $ir['ratings'] - 50; $db->query("UPDATE users SET health=maxhealth,ratings=ratings-50 WHERE userid=$userid", $c); echo "You now have full health and have spent 50 rates. You now have $nowcs rates."; } } else if ($_GET['spend'] == 'dp') { if ($ir['ratings'] < 1000) { echo "You don't have enough rates!"; } else { $noww = $ir['ratings'] - 1000; if ($noww = 0) { $noww = "no"; } $db->query("UPDATE users SET donatordays=donatordays+30,ratings=ratings-1000 WHERE userid=$userid", $c); echo "You have a DP (Pack One) and have spent 1000 rates.You wont recieve any benefits with this donator-pack."; } } } $h->endpage(); ?>   Enjoy! Note: Good mod, Well done!
  15. Hi Everyone, As some of you may know my expertise is in CSS/HTML Area and have made many layouts in the past... However i have been thinking about making 4/5 CSS/HTML Layouts for the MCCodes engine, When i say CSS/HTML It means no Graphical layouts, Pure CSS/HTML You may get 1/2 images. (small).. Also with me doing this i may need some assistance from a user on MWG for adding the CSS/HTML Layout into a header.php version... I can do login,register,authenticate... Anyways i would love to get your reaction and views on this! Thanks, TNS!
×
×
  • Create New...