Jump to content
MakeWebGames

MarFur93

Members
  • Posts

    43
  • Joined

  • Last visited

    Never

Everything posted by MarFur93

  1. Re: [MCCODES V2] 100% Working Copy Enhanced Schooling Looks good to me, waiting for crons.
  2. Re: Help Needed [Probably Nothing]   You shouldn't advertise pirate copies of MCcodes.
  3. Re: Bars Stopped Working Thank you so much for reminding me about checking config.php, it turns out that all of the codes were different. :? I have no idea how this could have possibly happened, though thanks for all of your help. :-D
  4. People should stop using illegal copies of the script... This may be so, though the truth is that MCcodes needs greater protection than just copyright. I hope that in version 3 there is some programming that will notify MCcodes of illegal copies of the script. This is just my humble opinion.
  5. Re: Bars Stopped Working For some reason my will is the only one not working now! Still figuring it out!
  6. Re: Bars Stopped Working I received the emails from my cron manager, and there was no mention of errors! :? I still don't understand why my bars aren't working?
  7. Re: Bars Stopped Working I am trying it right now, I will tell you if it works.
  8. For some reason my bars have stopped working, does anyone know how this could have happened? I have checked my crons, and I am pretty sure that they are working. Is there perhaps a way that I can test the cron jobs? MC-Codes v2.0
  9. Re: Free 2 - Icons Heya Nyna, I would like to once again thank you for this mod! :-D Though here is a quick suggestion/idea. You could make an extension to preferences so that people can toggle where they want their icons to be shown. It would be a little like TC, though it wouldn't be hard to code. Thanks again Nyna, we all love you and your mods!
  10. Re: Free 2 - Icons Love it, would be better if there was a donators icon though.
  11. Re: Free 2 - Icons Thanks, I might try and figure it out tomorrow.
  12. Re: Free 2 - Icons   I tried this before, though I still have the same problem.
  13. Re: Free 2 - Icons I have followed Nyna's instructions though instead of displaying the icons it just says (Array); where the icons should be displayed. I would really appreciate it if anyone would be able to look at my code below and tell me what I have done wrong. <?php class headers { function startheaders() { global $ir, $set; echo <<<EOF <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>{$set['game_name']}</title> <style type="text/css"> <!-- body { background-color: #CCCCCC; margin-top: 0px; margin-bottom: 0px; font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:12px;color: black; scrollbar-base-color: #005B70; scrollbar-arrow-color: #F3960B; scrollbar-DarkShadow-Color: #000000; } a:visited,a:active,a:hover,a:link { color: black;text-decoration: none; } table,tr,td { font-family:helvetica, arial, geneva, sans-serif;font-size: 12px; } img { border:none; } textarea { font-family:helvetica, arial, geneva, sans-serif;font-size:12px;color: black; } .table2 { } .center { width:932px; background-color:#FFFFFFS; vertical-align:top; text-align:center; } .table { background-color:#000000; } .table3 { background-color:#000000; } .table td { background-color:#DEDEDE; height:22px; } .table3 td { background-color:#CCCCCC; } td .alt { background-color:#EEEEEE; height:22px; } td .h { background-image:url(tablehgrad.png); background-repeat:repeat-x; font-weight: bold; background-color: #D6D6D6; } .table th { background-image:url(tablehgrad.png); background-repeat:repeat-x; font-weight: bold; background-color: #D6D6D6; } #icons { text-align:center; } #icons img { padding:0 2px; } --> </style></head> <body> <center> <table width="1000" border="0" cellpadding="0" cellspacing="0" class="table2"> <tr> <td class="lgrad"></td> <td class="center"> EOF; } function userdata($ir,$lv,$fm,$cm,$dosessh=1) { global $db,$c,$userid, $set; $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $db->query("UPDATE users SET laston=unix_timestamp(),lastip='$IP' WHERE userid=$userid"); if(!$ir['email']) { global $domain; die ("<body>Your account may be broken. Please mail help@{$domain} stating your username and player ID."); } if($dosessh && ($_SESSION['attacking'] || $ir['attacking'])) { print "You lost all your EXP for running from the fight."; $db->query("UPDATE users SET exp=0,attacking=0 WHERE userid=$userid"); $_SESSION['attacking']=0; } $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); $wiperc=(int) ($ir['will']/$ir['maxwill']*100); $experc=(int) ( $ir['exp']/$ir['exp_needed']*100); $brperc=(int) ($ir['brave']/$ir['maxbrave']*100); $hpperc=(int) ($ir['hp']/$ir['maxhp']*100); $enopp=100-$enperc; $wiopp=100-$wiperc; $exopp=100-$experc; $bropp=100-$brperc; $hpopp=100-$hpperc; $d=""; $u=$ir['username']; if($ir['donatordays']) { $u = "<font color=red>{$ir['username']}</font>";$d="[img=donator.gif]"; } $gn=""; global $staffpage; $bgcolor = 'CCCCCC'; print <<<OUT <table height="50" width="1000" background="Banner.jpg"><tr></tr></table> <table width="90%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="20%" bgcolor="#$bgcolor" valign="top"> <div align="left"> $this->display_icons($ir); Name: <font color=#000066>$gn{$u}</font> Money: <font color=#000066>{$fm}</font> Level: <font color=#000066>{$ir['level']}</font> Points: <font color=#000066>{$ir['crystals']}</font> Energy: <font color=#000066>{$enperc}/100</font> <img src=Green-Bar.png width=$enperc height=6><img src=Red-Bar.png width=$enopp height=6> Nerve: <font color=#000066>{$ir['brave']}/{$ir['maxbrave']}</font> <img src=Blue-Bar.png width=$brperc height=6><img src=Red-Bar.png width=$bropp height=6> Motivation: <font color=#000066>{$wiperc}%</font> <img src=Black-Bar.png width=$wiperc height=6><img src=Red-Bar.png width=$wiopp height=6> [[url='preferences.php']Settings[/url]] [[url='logout.php']Logout[/url]] OUT; if($ir['fedjail']) { $q=$db->query("SELECT * FROM fedjail WHERE fed_userid=$userid"); $r=$db->fetch_row($q); die("[b]<font color=red size=+1>You have been put in the {$set['game_name']} Federal Jail for {$r['fed_days']} day(s). Reason: {$r['fed_reason']}</font>[/b]</body></html>"); } if(file_exists('ipbans/'.$IP)) { die("[b]<font color=red size=+1>Your IP has been banned from {$set['game_name']}, there is no way around this.</font>[/b]</body></html>"); } } function menuarea() { include "mainmenu.php"; global $ir,$c; $bgcolor = 'CCCCCC'; print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"> </td><td width="80%" bgcolor="#'.$bgcolor.'" valign="top"> <center>'; if($ir['hospital']) { print "[b]NB:[/b] You are currently in hospital for {$ir['hospital']} minutes. "; } if($ir['jail']) { print "[b]NB:[/b] You are currently in jail for {$ir['jail']} minutes. "; } print "[url='donator.php'][b]Donate to {$set['game_name']} now for game benefits![/b][/url] "; } function smenuarea() { include "smenu.php"; global $ir,$c; $bgcolor = 'CCCCCC'; print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"> </td><td width="80%" bgcolor="#'.$bgcolor.'" valign="top"><center>'; } function endpage() { function display_icons( $u, $i = array() ) { if ($n = $u['new_announcements']) { $t = sprintf("%u New Announcement%s", $n, $n == 1 ? "" : "s"); $i[] = sprintf("[img=icons/announcements.png]", $t, $t); } if ($y = $u['new_mail']) { $t = sprintf("%u New Mail%s", $y, $y == 1 ? "" : "s"); $i[] = sprintf("[img=icons/mail.png]", $t, $t); } if ($n = $u['new_events']) { $t = sprintf("%u New Event%s", $n, $n == 1 ? "" : "s"); $i[] = sprintf("[img=icons/events.png]", $t, $t); } if ($a = max($u['bankmoney'], 0) + max($u['cybermoney'], 0)) { $fa = "$" . number_format($a) . " Banked"; $i[] = sprintf("[img=icons/bank.png]", $fa, $fa); } if ($z = $u['jobrank']) { $rs = mysql_query(sprintf("SELECT CONCAT(\"Working as \", `jrNAME`, \" in \", `jDESC`) FROM `jobranks` LEFT JOIN `jobs` ON `jrJOB` = `jID` WHERE (`jrID` = %u)", $z)); $row = mysql_fetch_array($rs); mysql_free_result($rs); $i[] = sprintf("[img=icons/working.png]", $row[0], $row[0]); } if (($p = $u['course']) && $u['cdays']) { $rs = mysql_query(sprintf("SELECT CONCAT(\"Studying \", `crName`) FROM `courses` WHERE (`crID` = %u)", $p)); $row = mysql_fetch_row($rs); mysql_free_result($rs); $i[] = sprintf("[img=icons/studying.png]", $row[0], $row[0]); } if (count($i)) echo "<div id='icons'>" . implode("", $i) . "</div><hr />"; } global $db; print <<<OUT </center> </td> </tr> </table></td> <td class="rgrad"></td> </tr> <tr> <td colspan="3"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td class="dgradl"> </td> <td class="dgrad"> </td> <td class="dgradr"> </td> </tr> </table> </td> </tr> </table> </body> </html> OUT; } } ?>
  14. Re: Forgotten Admin Password Thankyou for your help, though I managed to fix it the long way. I did not lose my password, I happened to be making a new 'Password Changer', and when I loged out it would simply not let me log back in.
  15. Forgotten admin password on MCcodes v2.0, is there any easier way to recover it than having to use a backup?
  16. Re: Help Editing Side Panel in MCcodes v2.0 Thank you very much for that! :-D
  17. I know that mainmenu.php is where you edit the links on the left hand side. Though where do you edit the user information and bars on the left hand side?
  18. Re: Help Changing Theme For MCcodes v2.0 Thanks very much, I will look into it!
  19. I really do not like the theme for MCcodes v2.0, and I would like to make it look a bit more like v1.1, where there is just a simple background colour. I would really appreciate it if someone would be able to show me how to do this.
  20. Hello everyone, I recently decided to turn my windows computer into a server, though I am having a few problems setting up scheduled tasks (crons). I have found out how to make scheduled tasks run using Windows, though I do not know how to set up tasks that run every hour, minute and five minutes. I only know how to make them run daily, weekly, monthly etc. It does not offer any hourly tasks etc. I would really appreciate it if anyone knew how to get past this or use a cron utility for windows.
  21. Re: Advance Search {V2}   I may be able to edit this code a bit later for you, though I am doing major updates to my website right now.
  22. Re: New items page [V2] Oh.. I also forgot to mention, there are no links to the item market in your version, I know that most people do not use these links anymore, though maybe you should post it up, to save some people some time.
  23. Re: New items page [V2]   This is my main reason for claiming that the script is a bit buggy. The person who posted this script should perhaps make a few edits to this mod, to save people having to go through it themselves, though the face lift is a big improvement, so keep up the good work!
  24. Re: New items page [V2] 4/10, a bit buggy!
  25. Re: Advance Search {V2} 4/10, you could improve the layout by using tables. :-)
×
×
  • Create New...