Jump to content
MakeWebGames

peterisgb

Members
  • Posts

    759
  • Joined

  • Last visited

  • Days Won

    46

Everything posted by peterisgb

  1. I have decided to release my voting mod for free. Updates will continue to roll out for this mod if and when needed.
  2. peterisgb

    RC car

    I'm looking at these 2 currently. https://www.rcgeeks.co.uk/collections/cars/products/hpi-e10-drift-fail-crew-nissan-skyline-r34-gt-r And https://www.modelsport.co.uk/ftx-zorro-1-10-nitro-trophy-truck-4wd-rtr-orange/rc-car-products/442264 I'm leaning towards the 2nd one atm.
  3. peterisgb

    RC car

    Well I've decided for my birthday at the end of the month I want to get into the RC world. What I am hoping is peoples opinions on what you have had, what you like, what would you have? I'm torn between Electric and Nitro.
  4. $0. 😞 It's what I get I suppose for not using he main used engine and using mccodes.
  5. I have this dongle thing that allows me to plug my mouse and keyboard into my phone. I can hook anything with USB upto my phone. The ps3 controller has been the most oddest thing to hook up to the phone lol. 😄
  6. I didn't think of looking at the play store. I tried to use cpanel file manager on the Web browser (opera for me) and trying to edit files is impossible.
  7. I tried working on my site when my pc broke earlier this year, It was REALLY hard to do anything on a mobile.
  8. It's a shame because if I remember correctly they had made most of the game and I remember seeing a demo. Shame. Also this topic happens to be the 127,000 topic created 🙂
  9. Is there anyone still working on this, like is there anyone left on the team or has this been abandoned now?
  10. Heh, I still got the fles and data for infamous-wars.net, i would bring it back but its to much hassle updating everything.
  11. Oh, Nope sorry, Its all inhouse to my mods only. Welcome to take the idea and build your own. I may in the future once my system is set up fully to allow users to use it, but that wont be till new year at the Earliest.
  12. Yup. Update checker is available across all my mods.
  13. The avatar system is ready. Due to the time and work done both by me and my I've released it on the paid market place. With my update checker to check version.
  14. Me and magictallguy have been working on the mccodes avataaar for most of today. V1.0.1 will hopefully be on the market place later tonight once the final touches are done.
  15. I have this so far. Working on the Download part atm which is getting me for the moment. I might have it just update the display_pic in users settings or both.
  16. It use tables too, i know i shouldn't and should use divs.
  17. I'm on my phone so can't do much but head to that line and take out the trade_ part and have it just as function add()
  18. I use round star bars myself :D. There is an image that's my header pic on my profile currently
  19. All Done, I've also updated the buttons and the edit reward with a dropdown to make it easier and included my version checker in the staff panel too.
  20. Should check out gravatar.com It is used alot on a few different sites so i though why not 😄
  21. This isn't a big mod if a mod at all. This mod/snippit allows you to replace your in game profile_pic with your Gravatar image. It will display a gravatar image if user doesn't have a profile pic. Place this Snippit into where you wish to display. Change $r to $ir where necessary. if ('Male' == $r['gender']) { $gender = 'images/male.png'; } else { $gender = 'images/female.png'; } $email = $r['email']; $default = $gender; $size = 40; $grav_url = "https://www.gravatar.com/avatar/" . md5( strtolower( trim( $email ) ) ) . "?d=" . urlencode( $default ) . "&s=" . $size; if ($r['display_pic']) { echo '<img src="'.$r['display_pic'].'" width="40" height="40" class="avatar">'; } else { echo '<img src="'.$grav_url.'" class="avatar">'; } Upload images to images/ directory. The comments gave me the idea to make avataaars mod. Which is on the market place. Thanks.
  22. This Mod was Created by Illusions and HAUNTED DAWG in 2009. I have since updated it and made it look nicer and made sure it works with the latest version of mccodes. Place this into your phomyadmin INSERT INTO `settings` (`conf_id`, `conf_name`, `conf_value`) VALUES ('18', 'editpage', 'explore.php'); Add these links to smenu.php <a href='fileeditor.php?action=startfile'>Create PHP Page</a> <a href='fileeditor.php?action=edit'>Edit PHP Page</a> Create php file and name it fileeditor.php and dump this into it. <style type="text/css" media="screen"> .button { background-color: #4CAF50; border-radius: 10px; border: none; color: white; padding: 8px 25px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; margin: 2px 1px; cursor: pointer; } input[type='text'] { width: 221px; color : #423232; height:25px; border:1; padding:4px 8px; margin-bottom:0px; border-radius: 10px; } textarea[name='filetext'] { width: 500px; color : #423232; height: 250px; border:1; padding:4px 8px; margin-bottom:0px; border-radius: 10px; } body { background-color: #cdcdcd; } </style> <?php // CREATED FOR MCCODES V2 BY ILLUSIONS AND HAUNTED DAWG 2009 // // AS I USUALLY DONT CARE ABOUT NOTICES STAYING INTACT I WOULD LIKE THIS ONE TO STAY IS ITS A JOINT EFFORT THANKS ALL // // Updated by PeterisGB 2020 // require "sglobals.php"; switch($_GET['action']) { case "startfile": startfile(); break; case "startprocess": startprocess(); break; case 'edit': editpage(); break; default: echo 'Error: This script requires an action.'; break; } function startfile() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] != 2) { echo 'ACCESS DENIED'; $h->endpage(); exit; } echo '<br /><br /><h2>Create File</h2> Always make a backup of any copy before using this system.<br /> <hr /> The file name and Data you create on here will also be Created on your FTP.<br /> You can use any file Format for EXAMPLE test.php, test.html, test.css.<br /> You can overwrite a file simply by giving it the same file name.[i] <hr/ > <form action="fileeditor.php?action=startprocess" method="_POST"> Create File Name: <input type="text" name="name" placeholder="example: explore.php"> <hr>Copy and Paste Data Below or Create New Data<hr> <textarea name="filetext" placeholder="Place PHP script HERE"></textarea><br /> <input type="submit" value="Create New File" class="button"></form> <hr> '; } { $h->endpage(); exit; } // We use isset so we dont get the undefined index blah blah errors // We check if they have hit the submit button function startprocess() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] != 2) { die('ACCESS DENIED'); $h->endpage(); exit; } $name = $_POST['name']; if( isset($_POST['name']) ) { //We open the name as w since w stands as wright. <a href="http://www.php.net/fopen" target="_blank">http://www.php.net/fopen</a> is a good tutorial chmod($name, 0755); $fo = fopen($filetext."$name", "w"); fwrite($fo, $pick); //Since we stripped the </textarea> to <+textarea+> we need to convert back to </textarea> //Since this is editing a name, we can not really put in any security only that ID 1 can edit it // GET FILE VIEW FOR FTP TRANSFER $conv = stripslashes(($_POST['filetext'])); if(fwrite($fo, $conv)) { echo '<h2>If you see an error message above regards CHMOD just ignore it.<br /> It just means that the file never exsisted in the first place once its on your FTP the error message will not be displayed.</h2> <font color="green"> <h1>File Name</h1></font> <font color="red"><h1>'.$name.'</font></h1> <font color="green"><h1> Created and Saved to FTP</h1></font> <font color="green"><h1> File is now Available for Use in Game</h1></font>'; } else { echo '<font color="red"><h1>File '.$name.' Could not be Written Please Try Again</h1></font>'; } fclose($fo); } else { //Bellow we fetch name contents using name_get_contents. <a href='www.php.net/name_get_contents'>http://www.php.net/name_get_contents</a> is a good tutorial $tup = file_get_contents($name); //Since if the name has </textarea> in it, it will screw up this code. Convert it out to <+textarea+> $tup = stripslashes(($_POST['filetext'])); //Bellow you should understand what it does. echo '<form action="'.$_SERVER['PHP_SELF'].'?action=startfile" method="post"> <iframe width=100% height=500 frameborder=0 scrolling="yes" src="'.$name.'"></iframe> <input type="submit" value="Create Another File"> </form>'; } } function editpage() { global $db,$ir,$c,$h,$userid,$set; if($ir['user_level'] != 2) { die("403"); $h->endpage(); exit; } if($_POST['submit']) { unset($_POST['submit']); foreach($_POST as $k => $v) { $db->query("UPDATE `settings` SET conf_value='$v' WHERE conf_name='$k'"); } echo '<br /><br /><br /><br />Page Loaded.<br /><br /> <a href="filedata.php"><h2>Continue</h2></a>'; stafflog_add("Editing Page {$_POST['editpage']}"); } else { $page = $set['editpage']; echo " <h3>Edit Page</h3><hr /> <form action='filedata.php?action=edit' method='POST'> <input type='hidden' name='submit' value='1'> Edit Page Url: <input type='text' name='editpage' value='$page'><br /> E.g = explore.php<br /> <input type='submit' value='Edit' class='button'></form>"; } } ?> and create a php file called filedata.php and dump this. <style type="text/css" media="screen"> .button { background-color: #4CAF50; border-radius: 10px; border: none; color: white; padding: 8px 25px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; margin: 2px 1px; cursor: pointer; } input[type='text'] { width: 221px; color : #423232; height:25px; border:1; padding:4px 8px; margin-bottom:0px; border-radius: 10px; } textarea[name='filetext'] { width: 500px; color : #423232; height: 250px; border:1; padding:4px 8px; margin-bottom:0px; border-radius: 10px; } body { background-color: #cdcdcd; } </style> <?php // CREATED FOR MCCODES V2 BY ILLUSIONS AND HAUNTED DAWG 2009 // // AS I USUALLY DONT CARE ABOUT NOTICES STAYING INTACT I WOULD LIKE THIS ONE TO STAY IS ITS A JOINT EFFORT THANKS ALL // // Updated by PeterisGB 2020 // require "sglobals.php"; global $db,$ir,$r,$set; if($ir['user_level'] != 2) { die('ACCESS DENIED'); $h->endpage(); exit; } $file = ''.$set['editpage'].''; //changing this name will also change the REAL VIEW MODE to the correct file // THE CONTENTS OF $file CAN BE OF ANY METHOD EXAMPLE HTML, CSS, PHP, ASX /////////////////////////////////////////////////////////////////////////////////////////////////////// // REMEMBER YOU CAN ALSO AMEND THIS FILE TO ALTER THE NAME OF THE $FILE NAME YOUR EDITING /// ////////////////////////////////////////////////////////////////////////////////////////////////////// //We use isset so we dont get the undefined index blah blah errors //We check if they have hit the submit button if( isset($_POST['file']) ) { //We open the file as w since w stands as write. <a href='www.php.net/fopen'>http://www.php.net/fopen</a> is a good tutorial chmod($file, 0755); $fo = fopen($file, 'w'); //Since we stripped the <+textarea+> to <+textarea+> we need to convert back to <+textarea+> //Since this is editing a file, we can not really put in any security only that ID 1 can edit it // I USED STRIPSLASHES INSTEAD OF PREG_REPLACE COS IT ****ED THINGS UP $conv = stripslashes($_POST['file']); if(fwrite($fo, $conv)) { echo '<font color="green"><h1>File Ammended And Saved</h1></font> <h1>New file view Below Check for errors if any</h1> <table width="100%" border="10" cellpadding="4" cellspacing="0"><td> <textarea name="file" cols="150" rows="15">'.$conv.'<+textarea+></td></table> <body bgcolor="#000000"> <a href="fileeditor.php?action=startfile" class="button">[>>> Create New File <<<]</a> <a href="filedata.php" class"button">[>>> RETURN TO EDIT '.$file.' <<<]</a> <hr><h1>REAL VIEW OF AMMENDED FILE BELOW</h1> <iframe width=100% height=500 frameborder=0 scrolling="yes" src="'.$file.'"></iframe> </body> </html>'; } else { echo '<font color="red">Could not save file.</font>'; } fclose($fo); } else { //Below we fetch file contents using name_get_contents. <a href='www.php.net/name_get_contents'>http://www.php.net/name_get_contents</a> is a good tutorial //FOOTNOTE i changed name_get to file_get as the textarea wasnt working right and kept adding back slashes to the script. //so i suppose php.net dont know everything he he he he $tup = file_get_contents($file); //Since if the file has <+textarea+> in it, it will screw up this code. Convert it out to <+textarea+> $tup = preg_replace('~<+textarea+>~is','<textarea>',$tup); //Bellow you should understand what it does. echo '<form action="'.$_SERVER['PHP_SELF'].'" method="post"> <h1>Editing File '.$file.'</h1> <table width="100%" border="10" cellpadding="4" cellspacing="0"><td> <textarea name="file" cols="150" rows="15">'.$tup.'</textarea></td></table> <input type="submit" value="Save And Ammend File" class="button"><br /> <a href="filededitor.php?action=startfile" class="button">[>>> GOTO FILE CREATOR <<<]</a><br /> <a href="filedata.php" class="button">[>>> REFRESH CURRENT PAGE DATA <<<]</a><br /> <hr><h1>UNEDITED FILE BELOW REAL VIEW</h1> <iframe width=100% height=500 frameborder=0 scrolling="yes" src="'.$file.'"></iframe> <input type="submit" value="Save And Ammend File" class="button"> </form>'; } $h->endpage(); ?> Screenshots below.
  23. I remember using this at the time, was pretty good. Shame
  24. Nice Design. I kept mine simple and different. This is My header.
  25. One of the main reasons i did it the way i did was as once it hits 28 it need to go back down to 1 and i wasn't sure how to do that. I tried to give this a go but as the X has moved i don't know how i would change the switch case :S
×
×
  • Create New...