Jump to content
MakeWebGames

CodingKid

Members
  • Posts

    69
  • Joined

  • Last visited

Everything posted by CodingKid

  1. Hi G7470, Thank you for pointing this out, I have now updated, take a look and let me know if that is any better?
  2. I am available for hire to do work on the NWE engine. I have sent you a PM.
  3. The text has been changed and the markup issues have been fixed.
  4. Hi Sniko, thanks for checking it out and getting back to me! The markup errors I will fix ASAP and I will also change the text so that it makes sense!
  5. Hi guys, This weekend I took some time out to build myself an online portfolio and I am just looking for some feedback on what you think to my portfolio design. You can check it out at http://www.aaron-newton.co.uk Regards, CodingKid
  6. The $_GET is the problem, add this:   $name = mysql_real_escape_string($_GET['name']);   And then change $_GET['name'] to $name everywhere it is used in the file.
  7. I personally love using bootstrap, it's great to use, easy and has a fantastic base to build with.
  8. Thanks guys, noticed an issue with the responsiveness of the top section so I will fix this when I get some time!
  9. If their is interest I will also create a register and in-game to go with this.
  10. So once again another free item for you all, just a simple bootstrap login I created this morning. Login HTML Code: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content="CodingKid"> <link rel="icon" href="../../favicon.ico"> <title>Free Bootstrap Login</title> <!-- Credits --> <!-- Image Credit --> <!-- https://www.flickr.com/photos/ragnagne/2473176843/in/photolist-fxaD6m-4LxFj4-8ginSy-fwViYX-8HPiov-fxaCMd-8TE6a-fwVjXr-oWUfCD-dwfjaE-3EdLYm-9w9HqZ-dkH9DV-8zHPyH-769aHi-qHMnr-2Ho25t-5SzASB-9z3V5b-5SDXe9-fmRzgE-2iXuiB-58Xpo-7U3ZY-hMQvp-fwVjiK-7ivUMs-es6EVW-dmyfCP-5EKYcN-8TE8y-66URV8-4uL9Sb-eaE97-b1Br7-6U9GB1-5ERs8L-8pLdHz-bQB2He-2Ho3uM-nYxGuM-nYfvja-nYfwVg-o1k8Et-rnoDj-dNrxfQ-9hoEeP-4DWCjY-dA6ygq-dRAzXS/ --> <!-- Bootstrap core CSS --> <link href="css/bootstrap.min.css" rel="stylesheet"> <!-- Custom CSS files --> <link href="css/login.css" rel="stylesheet"> <!--- Fonts --> <link href='http://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet' type='text/css'> <!-- Just for debugging purposes. Don't actually copy these 2 lines! --> <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]--> <script src="js/ie-emulation-modes-warning.js"></script> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <!--- Nav bar start ---> <div class="navbar navbar-inverse navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#">Game Name</a> </div> <div class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li class="active"><a href="#">Login</a></li> <li><a href="#">Storyline</a></li> <li><a href="#">Screenshots</a></li> <li><a href="#">Register</a></li> <li><a href="#">Contact Us</a></li> </ul> </div> </div> </div> </div> <!--- End Nav bar ---> <!--- Gap ---> <div STYLE="height:45px;"> </div> <!--- <!--- Top Section ---> <div class="topsection"> <div class="mafia"> </div> <div class="title"> <h1>Game Name</h1> <h3>Game Slogan Here...</h3> <br /> <button type="button" class="btn btn-danger">Register Today</button> </div> </div> <!--- End Top Section ---> <!--- Login Section ---> <div class="jumbatron"> <div class="row"> <!-- Col 2 --> <div class="col-md-2"></div> <!-- Col 4 --> <div class="col-md-4"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus massa neque, maximus non nunc vel, commodo vehicula nunc. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Vestibulum sed ipsum at neque gravida scelerisque. Ut orci sapien, ultrices a augue eu, fringilla rhoncus lectus. Pellentesque eu nibh a augue cursus condimentum id ac metus. Nam elementum purus justo, pellentesque laoreet elit tincidunt vitae. Donec semper risus ut dolor mattis tempus. </div> <!-- Col 4 --> <div class="col-md-4"> <form method="#" action="#"> <div class="form-group"> <label for="Username">Username</label> <input type="text" class="form-control" id="Username" placeholder="Enter username..."> </div> <div class="form-group"> <label for="Password">Password</label> <input type="text" class="form-control" id="Password" placeholder="Enter password..."> </div> <button type="button" class="btn btn-primary">Sign In</button> </form> </div> <!-- Col 2 --> <div class="col-md-2"></div> </div> </div> <!--- End Login Section ---> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../dist/js/bootstrap.min.js"></script> <!-- IE10 viewport hack for Surface/desktop Windows 8 bug --> <script src="../../assets/js/ie10-viewport-bug-workaround.js"></script> </body> </html>   Login CSS Code: [CSS] body { color: #FFFFFF; background-color: #000000; } .topsection { background-color: #000000; width:100%; height: 425px; } .mafia { background-image: url(http://alacritymma.com/images/backgroundtwo.jpg); padding-top: 80px; width: 50%; float: left; height: 425px; } .title { float: right; padding-top: 20px; padding-right: 300px; } .title h1 { font-family: 'Montserrat', sans-serif; color: #FE2E2E; font-size: 48px; } .title h3 { margin-top: -15px; color: #BDBDBD; } [/CSS] Image: [ATTACH]1690[/ATTACH] Screenshot: [ATTACH]1691[/ATTACH] Please note you must have bootstrap installed on your server for this to work! You can download bootstrap at getbootstrap.com enjoy!
  11. I still have more to add :)
  12. Hi guys, So I've been thinking about doing a missions system for both the GRPG and McCodes V2. The whole thing would be quite extensive so it would be up for sale and probably for a price ranging between £20-£40 depending on how much I actually add into it. I am just posting here just to find out if people would actually be interested in buying it before I create it. The systems features would include: Admin Side: Create missions: You will be able to set a mission name, level required to do the mission, up to four items required to do the mission, up to four effects on completing the mission (I.E: Gain money and exp), one effect of failing the mission, if the mission is single-player or multi-player, if it's multi-player you'll be able to choose how many users it needs to complete it (Between 2-4) and then stuff like success text, fail text etc. Edit Mission: Just the ability to edit a mission that is already created. Delete Mission: The ability to delete a mission that has already been created.   Player Side: Start a mission: This is if a mission is multi-player, it allows someone to start a mission for others to join them on completeing, once all the required members have joined the mission it will then run and the outcome will be sent in an event to all the players who participated. Do a mission: This is if a mission is single-player, it allows someone to do the mission and get their outcome of how the mission went. Mission Outcomes: After the mission is completed the mission outcome will happen and effects will take place on the user(s) involved. Mission Statistics: This will be a place where players can view statistics on how well other players did on certain missions and how many times they've failed, completed and attempted missions.   As I think of more ideas I will post them here and if you have any ideas you'd like to input then feel free to post them!! Thank you.
  13. CodingKid

    Free Work

    As stated in the first post....  
  14.   Yes the way you have approached the class is much better than the way I did and I also understand what your saying about the class lacking the reason of being a class. I did think that maybe using a class was a little overkill for what the system was actually doing but if it were to be expanded or used elsewhere then having the class just makes it that little easier.
  15. Thank you --Too Short.
  16. CodingKid

    Free Work

    Hitlist for GRPG: http://makewebgames.io/showthread.php/45128-GRPG-Hitlist?p=306680#post306680
  17. Hi guys, This is a pretty basic hitlist that I have coded just to show my coding a little, took me around 2 hours to complete in total and I have tested the majority a little and it all seems to work from what I gather but I have not fully tested so their might be a little issue in there or two. Features: The ability to list a user for someone to do a hit on. The ability to give a prize to whoever does your hit. The ability to attack someone and complete the hit and get the prize. Installation Step One: Insert these SQL's into phpmyadmin: CREATE TABLE IF NOT EXISTS `hitlist` ( `id` INT(11) primary key auto_increment, `target` INT(11) default '0', `placed` INT(11) default '0', `reason` text, `prize` INT(11) default '0' ); Step Two: create a file called hitlist.php and paste the code in below: <?php include_once (__DIR__.'/header.php'); if($_POST['place'] != "") { $target = (array_key_exists('id', $_POST) && ctype_digit($_POST['id'])) ? $_POST['id'] : false; $reason = mysql_real_escape_string($_POST['reason']); $prize = (array_key_exists('prize', $_POST) && ctype_digit($_POST['prize'])) ? $_POST['prize'] : false; if(empty($target) || empty($reason) || empty($prize)) { echo Message("You must enter something into all fields."); } elseif($user_class->id == $target) { echo Message("You can not place a hit on yourself."); } elseif($user_class->money < $prize) { echo Message("You do not have the funds to place this hit"); } else { mysql_query("INSERT INTO `hitlist` (`id`, `target`, `reason`, `prize`, `placed`) VALUES ('', '$target', '$reason', '$prize', '".$user_class->id."')"); mysql_query("UPDATE `grpgusers` SET `money` = `money` - '$prize' WHERE `id` = ".$user_class->id.""); echo Message("You placed a hit on this user!"); } } if($_GET['action'] == "addlisting") { ?> <tr> <td class='contenthead' align='center' colspan='5'>Place A Hit</td> </tr> <tr> <td class='contentcontent' align='center' colspan='5'> <form method='POST'> Target User ID: <input type='text' name='id' placeholder='Target User ID' /><br /> Reason: <input type='text' name='reason' placeholder='Reason' /><br /> Prize: <input type='text' name='prize' placeholder='Prize' /><br /> <input type='submit' name='place' value='Place Hit' /> </form> </td> </tr> <?php } ?> <tr> <td class='contenthead' align='center' colspan='5'>Hitlist Listings</td> </tr> <tr> <td class='contentcontent' align='center' colspan='5'><a href="hitlist.php?action=addlisting">Add Listing</a></td> </tr> <tr> <td class='contentcontent' align='center' width='20%'>Target</td> <td class='contentcontent' align='center' width='20%'>Place By</td> <td class='contentcontent' align='center' width='20%'>Reason</td> <td class='contentcontent' align='center' width='20%'>Prize</td> <td class='contentcontent' align='center' width='20%'>Complete</td> </tr> <?php $find_hits = mysql_query("SELECT `id` FROM `hitlist`"); if(mysql_num_rows($find_hits) == 0) { ?> <tr> <td class='contentcontent' align='center' colspan='5'>There are no hitlistings at this moment in time.</td> </tr> </table> <?php } while($fetch_hits = mysql_fetch_array($find_hits)) { $Hitlist = new Hitlist($fetch_hits['id']); $Placed = new User($Hitlist->placed); $Target = new User($Hitlist->target); ?> <tr> <td class='contentcontent' align='center'><?php echo $Target->formattedname; ?></td> <td class='contentcontent' align='center'><?php echo $Placed->formattedname; ?></td> <td class='contentcontent' align='center'><?php echo $Hitlist->reason; ?></td> <td class='contentcontent' align='center'><?php echo $Hitlist->prize; ?></td> <td class='contentcontent' align='center'><a href="attack.php?attack=<?php echo $Target->id; ?>">Do Hit</td> </tr> <?php } ?> </table> <?php include_once (__DIR__.'/footer.php'); ?> Step Three Open up classes.php and just above class User_Stats { paste: class Hitlist { public function Hitlist($id) { $result = mysql_query("SELECT * FROM `hitlist` WHERE `id` = '$id'"); $worked = mysql_fetch_array($result); $this->id = $worked['id']; $this->target = $worked['target']; $this->reason = $worked['reason']; $this->placed = $worked['placed']; $this->prize = $worked['prize']; } } Then open up your attack.php file and paste into the attack won section: //--------------------HITLIST---------------------------------- $hitlist = mysql_query("SELECT * FROM `hitlist`"); while($fetch_hitlist = mysql_fetch_array($hitlist)) { $Hitlist = new Hitlist($fetch_hitlist['id']); if($attack_person->id == $Hitlist->id) { if($user_class->id != $Hitlist->placed) { echo Message("You completed the hit on ".$attack_person->formattedname." and won $".$Hitlist->prize."!"); mysql_query("DELETE FROM `hitlist` WHERE `id` = ".$Hitlist->id."") or (die(mysql_error())); mysql_query("UPDATE `grpgusers` SET `money` = `money` + ".$fetch_hitlist['prize']." WHERE `id` = ".$user_class->id.""); Send_Event($attack_person->id, ''.$user_class->username.' Completed a bounty on you.'); Send_Event($Hitlist->placed, ''.$user_class->username.' Completed your bounty on '.$attack_person->formattedname.'.'); } } } //--------------------HITLIST END------------------------------ And that should be everything! If you find any errors or issues then please let me know and I will ammend them as soon as possible.
  18. CodingKid

    Free Work

    Okay, I will do this today, do you know where I can get my hands on a GRPG engine?
  19. CodingKid

    Free Work

    Hi guys, So I am new here and I thought to let you guys see some of my coding skills I will do some free work. Post here or PM me what you need and I'll get working on it when I get some spare time, of course the free work does not mean I'll build you a huge new feature or a complete game from scratch but if it catches my attention and sound interesting then I'll get it done for you!
×
×
  • Create New...