Jump to content
MakeWebGames

boots

Members
  • Posts

    91
  • Joined

  • Last visited

Everything posted by boots

  1. boots

    Comet Chat

    does anyone have a copy of a working integration file for this ?
  2. Just beening testing your prop mod and found a bug,when renting the uesr can sell the prop back to the agent over and over again i know this is a free mod and know support is given but i have been playing around with it for the last 2 hours to try and fix it but no joy please help
  3. this is what i use <span color={$r['cName']}>{$r['username']}</span> but i try and add to the username part chat_ajax.php it dont work i know it something simple but I'm missing it
  4. I have my colour names in my users db, cname, can you tel me how to add this to the script i have tried but still cant get it work i would also like to add viewuser from the chat box
  5. I have the same prob with this mod, could tell me how you fixed it
  6. Did any one get this to work ? been playing around with it but still loads of probs, does any one have a working copy
  7. Yeah always wanted to have this
  8. Saffron lane m8, now at thurnby
  9. Thankyou kyle :) works great i can see where i went wrong now,
  10. i tried your code and i get this error QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 Query was UPDATE users SET lastip_login='188.28.71.24',last_login=unix_timestamp() WHERE userid=
  11. authenticate.php   <?php session_start(); if(get_magic_quotes_gpc() == 0) { foreach($_POST as $k => $v) { $_POST[$k]=addslashes($v); } foreach($_GET as $k => $v) { $_GET[$k]=addslashes($v); } } include "config.php"; include "language.php"; global $_CONFIG; define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $set=array(); $settq=$db->query("SELECT * FROM settings"); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } if ($_POST['username'] == "" || $_POST['password'] == "") { die("<h3>{$set['game_name']} Error</h3> $nofill<br> <a href=login.php>> Back</a>"); } $uq=$db->query("SELECT userid FROM users WHERE login_name='{$_POST['username']}' AND `userpass`=md5('{$_POST['password']}')"); if ($db->num_rows($uq)==0) { die("<h3>{$set['game_name']} Error</h3> $invalid<br> <a href=login.php>> $lerrortry</a>"); } if ($mem['confirmed']=0) { die("Your account is not active, check your email address including junk boxes. <a href=login.php>> Back</a>"); } else { $_SESSION['loggedin']=1; $mem=$db->fetch_row($uq); $_SESSION['userid']=$mem['userid']; $IP = $_SERVER['REMOTE_ADDR']; $IP=addslashes($IP); $IP=mysql_real_escape_string($IP); $IP=strip_tags($IP); $db->query("UPDATE users SET lastip_login='$IP',last_login=unix_timestamp() WHERE userid={$mem['userid']}"); $db->query("UPDATE users SET active=1 WHERE userid={$mem['userid']}"); if($set['validate_period'] == "login" && $set['validate_on']) { $db->query("UPDATE users SET verified=0 WHERE userid={$mem['userid']}"); } header("Location: index.php"); } ?>
  12. No errors just cant login, cant understand it all looks ok, also tried if ($mem['confirmed'] == 0) but same prob, Your account is not active, check your email address
  13. Help! i have a prob with my email Validation, it sends email to user the link works fine, updates the users table form 0 to 1 but still cant login   authenticate.php $uq=$db->query("SELECT userid FROM users WHERE login_name='{$_POST['username']}' AND `userpass`=md5('{$_POST['password']}')"); if ($db->num_rows($uq)==0) { die("<h3>{$set['game_name']} Error</h3> $invalid<br> <a href=login.php>> $lerrortry</a>"); } if($ir['confirmed'] == 0) { die("Your account is not active, check your email address including junk boxes. <a href=login.php>> Back</a>"); } else   activation.php $code=$_GET['code']; $cq=mysql_query("select * from confirm where code=$code",$c); if(mysql_num_rows($cq)== 0) { die("Invalid Validation Code"); } $r=mysql_fetch_array($cq); if($_GET['act'] == 'activate') { mysql_query("UPDATE users SET confirmed='1' WHERE userid={$r[user]}",$c); mysql_query("DELETE FROM confirm WHERE code=$code",$c); print "Account Validated!<br /> <a href='login.php'>Login</a>"; } else if($_GET[act] == 'cancel')   signup.php if($_POST['ref']) { $q=$db->query("SELECT * FROM users WHERE userid={$_POST['ref']}"); $r=$db->fetch_row($q); } $db->query("INSERT INTO users (username, display_pic, login_name, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, confirmed) VALUES( '{$username}', 'http://{$_SERVER['HTTP_HOST']}/images/avatar.gif', '{$username}', md5('{$_POST['password']}'), 1, $sm, 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', -1, '$ip', 0)",$c);
  14. Did you get this working AnonymousUser ? i have the same problem
  15. I would like to add an level restristion to forums to help cut down the spam how can i make it so you must be level 3 to post in the forums ?
  16. the item id is correct it works fine when uesed from the inventory but when i place a link in jail.php i get Invalid item ID the id is 109 <a href='itemuse.php?ID=109'>lock pick</a> I dont understand it i think i will have to learn a lot more,so for now the item can be used from the inventory i give up
  17. iam trying to learn how to code but find it hard, [<a href='itemuse.php?ID=109'>lock pick</a>] i know this is the itemid, but it tells me Invalid item ID ! the item id changes for each player ??? i will keep ploding along untill i work it out
  18. I have been trying to make a link in the jail so players can just click the link and use an item in the inventory to release them out of jail.the item works well but they have to go to the ivntory to use it this is what i have [<a href='itemuse.php?ID=109]}'>use</a>] the name of the item is lock pick, the itemid is 109 iam no coder so maybe this is a easy one for you guys but ive been playing around with it for hours
  19. I know this is an old post but does any one know where i can get this as the link is now dead
  20. Does any one have a working copy of 50/50, if not a free mod, willing to pay for a good working 1
  21. would this be hard to make it work on crystals ?
  22. Yes it does update automatically but i cant remember how to rewite the line INSERT INTO inventory (inv_itemid, inv_userid, inv_qty) VALUES (123, :myid:, 1) instead of insert into inventory i think it should be item_add
  23. The way the line is at the moment it sends the item to the inventory but as single items so i have a list of the same item but i want them to be added to one group i have used item_add before but cant seem to get it to work this time :( the line I want to change is INSERT INTO inventory (inv_itemid, inv_userid, inv_qty) VALUES (123, :myid:, 1)
  24. Im trying to cahnge this line using item_add INSERT INTO inventory (inv_itemid, inv_userid, inv_qty) VALUES (123, :myid:, 1) this is what i have i have. Tried so many ways but still cant get it to work can somone please put me right item_add($userid, $r['itemid 123 ], $r['imQTY 1']);
  25. Fatal error: Call to undefined function unesc() in /home/content/46/8879046/html/global_func.php on line 68 looks like i have loads missing from my global func.php
×
×
  • Create New...