Jump to content
MakeWebGames

sniko

Members
  • Posts

    2,210
  • Joined

  • Last visited

  • Days Won

    47

Everything posted by sniko

  1. If i have time, hit me up if you need free help. -sniko
  2. And is the Devil back? Hey Blue :) Cool addition, good use of the ternary's :) - i use them like that too :) -sniko
  3. Im with Dave/Oxyden because you try to learn a different language (not php ect but french, english ect) then you have to learn all the shorthand typing and slang. -sniko "Im with Dave/Oxyden because you try to learn a different language (not php ect but french, english ect) then you have to learn all the shorthand typing and slang." "i iz wiv dave/oxyden cos u try n learn a diff language(not php but french and shizz) thn u hve 2 learn all da shorthand typin n slang" which is easier to understand?
  4. After BETA testing will you put it through extreme testing, then erroneous testing? or are you just doing BETA? -sniko
  5. Sookie from True Blood (even though she isn't a vampire, she is related to one)
  6. Hmm, i registered wasn't too impressed with the layout, nor the font-family (Although there are only around 6 you can have, others depend on them being installed on your computer, but Verdana would be nice and look more professional) nonetheless you have implamented a few ideas into the game, maybe think of some really unqiue ones, unlike the Zynga or Storm8 ones, although you have implamented them well, unique ideas will attract more audience to your site. Maybe add a graphical and more in-depth login screen and registration system, with an integrated image concept layout which fits well with your genre of game and kind of spells the storyline/era out to the user. The alternative banner system kind of slowed down the performance of the gaming within the game, as i had to wait for it to load and it was kind of off putting (Although the banners are good). The 'mini-banners' used throughout the game (Corelene font) suggests it is a mafia themed game, but some of the banner suggest it is a army themed game. conclusion - Get a graphical template - Set up a story line - Add more unique features Thanks for Reading -sniko
  7. i cant see the preview. -sniko
  8. Iv'e made a complete gang system. I cannot remember the exact features i implemented into it, but most from your list are in there. -sniko
  9. Im creating a game engine (£0.00) and ill be releasing modifications for it once its complete. -sniko
  10. Overview In this tutorial you will learn how to easily display and store errors throughout your code (this will become clear later on), this is a vert fast process and very good when using if's and else's. We store the errors in an array and then display the ones which are needed. Level: Fairly Easy   1) Create the array $errors = array();   2) Add error to array $errors[] = "bla";   3) Display the error if(isset($errors) AND count($errors) > 0) { echo "<h3 class='error'>". count($errors) ." errors occured!</h3>"; foreach($errors as $msg) { echo $start.')'. $msg .' '; } }   Usage You could use it anywhere necessary, for example on a register page. (see below)   $errors = array(); //loginname if(strlen($loginname) < 5) { $errors[] = "Please make sure your login name is more than 5 characters in length!"; } if(strlen($loginname) > 15) { $errors[] = "Please make sure your login name is less than 15 characters in length!"; }   If you have any questions about this method, please reply in this topic. Many thanks for reading -sniko
  11. Overview A login system is a way to filter unwanted activity in area's you dont want that activity to be, for such, a comment system. When making a login system, it is vital that you make it secure from any type attacks or bypassing, otherwise, there really is no point having one. What do you need to learn Sessions Mysql Functions mres unset Switch (Possibly) connect to the database What you need [li]Knowledge of using a database (to hold users information)[/li] [li]Database management system, For example phpmyadmin[/li]   Psuedo code In plain English, what do you need to do? connect to the database start sessions show a form, where the user types in their credentails secure input data from the user check user inputs against database show any errors at all start login session show success text Ways of going about creating a login system There are many ways of creating the login system. Using the switch function or the predefined variable $_GET/isset you can create the whole login and register system in one file. You can also add jQuery/Ajax effects to make it more user friends and customise it with css. Skeleton Code <?php $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); mysql_select_db('foo', $link); session_start(); if(isset($_POST['submit'])) //pressed the submit button { //do more } else { //show form } ?>   Creating the form I assume you know the pre-defined variable $_POST and how to use it. <form action='' method='post'> Login Name: <input type='text' name='login' length='5' maxlength='15' /> Passcode: <input type='password' name='passcode' length='5' maxlength='25' /> <input type='submit' name='submit' value='Login!'> </form>   Skeleton Code [update w/ Form] <?php $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); mysql_select_db('foo', $link); session_start(); if(isset($_POST['submit'])) //pressed the submit button { //do more } else { echo "<form action='' method='post'> Login Name: <input type='text' name='login' length='5' maxlength='15' /> Passcode: <input type='password' name='passcode' length='5' maxlength='25' /> <input type='submit' name='submit' value='Login!'> </form>"; } ?>   Assigning the inputs to variables and securing them <?php $login_name = htmlspecialchars(mysql_real_escape_string($_POST['login'])); $passcode = md5($_POST['passcode']); //Its best to use an alternative encryption method rather than md5 as it can be decrypted ?>   Checking to see if their inputted data exists on the database (assuming you have already created one) <?php $exists = mysql_query("SELECT `key` FROM `tablename` WHERE `fieldname`='$login_name' AND `fieldname`='$passcode'"); if(mysql_num_rows($exists) == 0) { echo "You do not exist!"; } ?>   Skeleton Code Updated (w/ Form, $_POST and checking) <?php $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); mysql_select_db('foo', $link); session_start(); if(isset($_POST['submit'])) //pressed the submit button { $login_name = htmlspecialchars(mysql_real_escape_string($_POST['login'])); $passcode = md5($_POST['passcode']); //Its best to use an alternative encryption method rather than md5 as it can be decrypted $exists = mysql_query("SELECT `key` FROM `tablename` WHERE `fieldname`='$login_name' AND `fieldname`='$passcode'"); if(mysql_num_rows($exists) == 0) { echo "You do not exist!"; } else { //They exist } } else { echo "<form action='' method='post'> Login Name: <input type='text' name='login' length='5' maxlength='15' /> Passcode: <input type='password' name='passcode' length='5' maxlength='25' /> <input type='submit' name='submit' value='Login!'> </form>"; } ?>   Assigning a session <?php $u = mysql_fetch_array(mysql_query("SELECT `key` FROM `tablename` WHERE `fieldname`='$login_name' AND `fieldname`='$passcode'")); $_SESSION['user'] = $u['key']; ?>   Skeleton Code - Finished <?php $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); mysql_select_db('foo', $link); session_start(); if(isset($_POST['submit'])) //pressed the submit button { $login_name = htmlspecialchars(mysql_real_escape_string($_POST['login'])); $passcode = md5($_POST['passcode']); //Its best to use an alternative encryption method rather than md5 as it can be decrypted $exists = mysql_query("SELECT `key` FROM `tablename` WHERE `fieldname`='$login_name' AND `fieldname`='$passcode'"); if(mysql_num_rows($exists) == 0) { echo "You do not exist!"; } else { $u = mysql_fetch_array(mysql_query("SELECT `key` FROM `tablename` WHERE `fieldname`='$login_name' AND `fieldname`='$passcode'")); $_SESSION['user'] = $u['key']; echo "You have loggedin!"; } } else { echo "<form action='' method='post'> Login Name: <input type='text' name='login' length='5' maxlength='15' /> Passcode: <input type='password' name='passcode' length='5' maxlength='25' /> <input type='submit' name='submit' value='Login!'> </form>"; } ?>   Now that they have loggedin, you can then do the following with all other pages that require them to be loggedin <?php session_start(); if(!isset($_SESSION['user'])) { echo "You need to login"; exit; } ?>   Thanks for reading, if you have any other questions, Please reply or PM -sniko
  12. I can send you some of my scripts, you can request what you want them doing and ill comment throughout the code so you can learn, just add my on Skype (harry.sniko) -sniko
  13. sniko

    Razer Giveaway

    Read their terms.. Already checked this site out in their terms I believe is says they are allowed to re-sell you're details on ;) Surely that goes against the Data Protection Act
  14. sniko

    Youtube

    Thanks DJK + Thanks to everyone else who subscribed (If any of you did) :)
  15. sniko

    Youtube

    Hello all, I would like for you to subscribe to my friends youtube; Z3NMa. He records himself playing the xbox360 and releases videos for your entertainment, and he really wants to have around 500 subscribers before the new Call Of Duty game, Black Ops. It would mean a bunch to me if you subscribed to him, and if he gets a total of 500 subscribers before the 9th of September i will take modification requests from the community of MakeWebGames, merge them together (if they make a good modification, otherwise i will pick the best, maybe run a poll to see which idea the community wants to see) and i will create it and release it for free, and all you have to do is subscribe to my friends channel and that is only a click away for you to enjoy a nice modification of your desire. His youtube channel: http://www.youtube.com/user/Z3NMa Please create an account if you don't have so already and subscribe to him, you WILL get something in return, a FREE modification that the community most desires! Thank you for reading, sniko
  16. well to me a game is something which is enjoyable to an audience, no matter the goal, there will always be an audience. So bascially, your game engine with the click function/aim i think will attract an audience becuase people have different interests. BUT to keep people addicted to your game you need to add more features maybe a leaderboard and add eastereggs.
  17. W3Theory || Peter is your guy
  18. my entry Uploaded with ImageShack.us
  19. . Some hosts (or browsers, forgot which) dont allow the short opening of tags . Why echo every line (22 - 24) ? Other than that, good.
  20. sniko

    please help me

    Ive been set a homestudy task for computing in A Level, and i really don't have a clue about it. If anyone can give me their basic understanding about Cellular Automation i will be very greatful. Thank you -sniko/spiedex.
  21. Its pretty good
  22. If you want this feature, then like Dayo said, if there are alot of members it will get annoying, but you could "spice" it up a little by; = make it over a certain link on a certain page = Select a range of targets (maximum range: 10) = donator feature only = disable modification (paddytm's idea)
  23. thats real good, well done!
  24. Magictallguy is on "leave" as he has left home and gotten "a life" :) He is busy in real life.
×
×
  • Create New...