Jump to content
MakeWebGames

hamster01

Members
  • Posts

    1,108
  • Joined

  • Last visited

    Never

Everything posted by hamster01

  1. Frequently Asked Questions Everyone now and again, you will get a person asking how to do this or that. No problem, but why don't we make a thread so that there isn't millions of threads for each question. Here is a list of how to do commonly asked things to a MCCodes game. What is a style sheet(aka CSS)? Read about it here. http://en.wikipedia.org/wiki/Style_shee ... lopment%29 How do I change the background color of my game? Add the following to your style sheet. body { background: #000; }   How do I change the color of the text? Add the following to your style sheet. body { color: #000; }   How do I change the color of the links? Add the following to your style sheet. a:link { color: #000; }   How do I let the color of a link change when the cursor moves over it. Add the following to your style sheet. a:hover { color: #000; }   How do I change the appearance of buttons and text boxes? Add the following to your style sheet. input { background: #FFF; color: #000; border: solid; border-width: 1px; border-color: #000; }   How do I change the background color or text color of tables? Add the following to your style sheet. table { background: #FFF; color: #000; }   How do I put a border around my game? Add the following to your style sheet. body { border: solid; border-width: 1px; border-color: #000; }   How do I put a border around images on my game? Add the following to your style sheet. img { border: solid; border-width: 1px; border-color: #000; }   Thats all I can think of right now. If you would like to know anything else, please make a post and I will add it.
  2. Re: throw an object at the top poster *Ferdi troughs Absolute Zero with a crazy man flesh eating retarded red and black hamster*
  3. Re: How Can I Make It So When Someone Presses F5 It Goes To news.php................   Never say you can't do something. Have you ever seen pursuit of happiness, you will find out what I mean.
  4. hamster01

    UFO?

    Re: UFO? Aliens really? Why would human kind have to wait two thousand years for it to come? What you saw, A cow flying and trying to make fun of you. :)
  5. Re: Guess the next poster TearsAndSorrow
  6. Re: how do you set up mysql.php Well, Did you try to contact your host and ask them for help?
  7. Re: why Do you know what the domain suffixes mean?
  8. Re: why   Because it is much cheaper.
  9. Re: Random Banner On Login.php Try this: </style> </head> <body onload="getme();"> EOF; $auto = rand(1,2); if ($auto == 1) echo "[img=banners/1.jpg]"; else echo "[img=banners/2.jpg]"; $ip = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; if(file_exists('ipbans/'.$ip)) {die("[b]<font color=red size=+1>Your IP has been banned, there is no way around this. If you feel this is unfair please contact the Admin! </font>[/b]</body></html>"); }   Edit: I think it may have been the heredoc function.
  10. Re: why Ferdi spoon feeds the kitten(btw. I'm allergic to cats and dogs).   <?php session_start(); print "<html> <head> <title>Deaths-City</title> <style> body { font-family:Verdana;font-size:9pt;color: black; background-color:#333333; 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-size:9pt; } img { border:none; } </style> </head> <body>[img=mybanner.gif] "; $ip = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; if (file_exists('ipbans/' . $ip)) { die("[b]<font color=red size=+1>Your IP has been banned, there is no way around this.</font>[/b]</body></html>"); } require "mysql.php"; global $c; if ($_POST['username']) { $sm = 100; if ($_POST['promo'] == "Your Promo Code Here") { $sm += 100; } $username = $_POST['username']; $username = str_replace(array("<", ">"), array("<", ">"), $username); $q = mysql_query("SELECT * FROM users WHERE username='{$username}'", $c); if (mysql_num_rows($q)) { print "Username already in use. Choose another."; } elseif ($_POST['password'] != $_POST['cpassword']) { print "The passwords did not match, go back and try again."; } else { $_POST['ref'] = abs((int)$_POST['ref']); $ip = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $q = mysql_query("SELECT * FROM users WHERE lastip='$ip' AND userid={$_POST['ref']}", $c); if (mysql_num_rows($q)) { die("No creating referral multies. Bad dog."); } if ($_POST['ref']) { $q = mysql_query("SELECT * FROM users WHERE userid={$_POST['ref']}", $c); $r = mysql_fetch_array($q); } mysql_query("INSERT INTO users (username, login_name, userpass, level, money, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, class, gender, signedup, email, lastip) VALUES( '$username', '$username', md5('{$_POST['password']}'), 1, '$sm', 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['class']}', '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', '$ip')", $c); $i = mysql_insert_id($c); mysql_query("INSERT INTO userstats VALUES($i, 10, 10, 10, 10, 10)", $c); if ($_POST['ref']) { require "global_func.php"; mysql_query("UPDATE users SET crystals=crystals+2 WHERE userid={$_POST['ref']}", $c); event_add($_POST['ref'], "For refering $username to the game, you have earnt 2 valuable crystals!", $c); mysql_query("INSERT INTO referals VALUES('', {$_POST['ref']}, $i, unix_timestamp(),'{$r['lastip']}','$ip')", $c); } print "You have signed up, enjoy the game. > [url='login.php']Login[/url]"; } } else { print "<h3>Deaths-City Registration</h3>"; print "<form action=register.php method=post>Username: <input type=text name=username> Password: <input type=password name=password> Confirm Password: <input type=password name=cpassword> Gender: <select type='dropdown' name='gender'><option value='male'>Male</option><option value='female'>Female</option></select> Email: <input type=text name=email> Class: <select name='class' type='dropdown'><option>Criminal</option><option>Mobster</option><option>Assasin</option><option>N/A</option></select> Promo Code: <input type=text name=promo> <input type=hidden name=ref value='"; if ($_GET['REF']) { print $_GET['REF']; } print "'> <input type=submit value=Submit></form> > [url='login.php']Go Back[/url]"; } print "</body></html>"; ?>
  11. Re: Random Banner On Login.php Use this: <?php $RandomRumber = rand(1,2); echo '[img=banner' . $RandomNumber . '.jpg]'; ?>   Edit: Could help if I mentioned an extension.
  12. Re: why There is a problem with your mysql insert query. Please let me know what the column name for the 'class' is. If it is 'class' use the following query; INSERT INTO users (username, login_name, userpass, level, money, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, class, gender, signedup, email, lastip) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['class']}', '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', '$ip')
  13. Re: Game owners sending out referal link. Well, when I advertised, I used a GD generated banner, that as UCC says, 'tracks' the amount of people coming in.   I know, some aren't even there at times.
  14. Re: THIS OR THAT? Isn't it the exact same thing? They. Black or White Sheep?
  15. Re: Anti-sql injection function Yes I know. What definition do you want? To put it plain and simple to understand, it escapes quotes that may cause conflict with application. Example one, without magic quotes runtime. Example two, with magic quotes runtime.
  16. Re: Supernatural?   I would imagine that witchcraft existed since almost the dawn of mankind. Also... few to no historians debate Jesus was born. It's more or less agreed upon by secular and religious historians alike. The difference is when Jesus' status as the Son of God comes into play (not arguing you here, just stating something) It depends which kind of Witchcraft you are talking about. The roman chiristians did not have any problem that there was infact another religion in rome, but then all of a sudden when Witchcraft became popular.. ..The romans banned it and told the others that they should not become followers and that they were worshipers of the Christian's evil god satan. And then, after that, the witches began torturing the Christians. But any witch not getting their power from a God, is getting it from the Christian's evil god satan, I think people knows why.
  17. Re: Supernatural? Well, in my studies of Witchcraft, some existed somewhere 200 years Before the christian god jesus was born. If you believe in Magick(spelled with a 'k' to avoid the other term which is stating to do the impossible), this theory is most likely true.
  18. Re: Supernatural? I do think something is out there, somewhere. I'm in my teens and trying to discover myself, just like most teens are. I'm studding Wicca, a form of witchcraft that is also called the "Old Religion" that was discovered by the British. If someone were to ask me what a ghost is, I would give them a mix of terms. A ghost is a space of energy. A ghost is an ancient spirit trying to communicate with us. A ghost is a creature of a god. Mostly I believe in the second term I gave.
  19. Re: Religions Well, I'm not looking to make this a debate about religions. I respect every single persons religion and who/what they pray to for faith. What about this, If someone starts turning the thread into something like that, you can delete this thread. I just want to know, because I have been wondering about peoples subcultures and things for a while now. Please?
  20. hamster01

    Religions

    Well, for some reason, I don't know why, no one ever asked about religion here. Some people may find it personal, and I understand why. But for the others that is open and/or proud about it, please post your thoughts about it. I ask this because it is sometimes nice to know what kind of person is next to you.
  21. Re: [FREE]Music system I made myself a music player. Voting, requesting music, etc. But I have to agree with Decepti0n, I hate flash sounds that plays automatically. The concept is poor, and overall, it doesn't seem to me like you can control the song choice? I'll post my music system aswell, as it goes for what I said.
  22. Re: Fed Jail Execute this script. <?php include("mysql.php"); mysql_query("UPDATE users SET fedjail=0 WHERE userid=1",$c); ?> Please let me know if it works.
  23. Re: THIS OR THAT? British humour. Hippy or Emo
  24. Re: Need Help Quick [Viewuser.php]   Are you getting any syntax errors? And also, try this: <?php if($r['user_level']== 2) $userlevel = '[b]<font color="orange">ADMIN[</font>$rank<font color=orange>]</font>[/b]'; else if ($r['user_level'] == 3) $userlevel = '[b]<font color="yellow">MOD[' . $rank . ']</font>[/b]'; else if ($r['user_level'] == 4) $userlevel = '[b]<font color="green">HDOP[' . $rank . ']</font>[/b]'; else if ($r['user_level'] == 5) $userlevel = '[b]<font color="#3399FF">Forum Mod[' . $rank . ']</font>[/b]'; else $userlevel = '[b]' . $rank . '</font>[/b]'; ?>
  25. Re: Sql Comand Try this, ALTER TABLE `column` `column` BIGINT(20)
×
×
  • Create New...