Jump to content
MakeWebGames

Nicholas

Members
  • Posts

    467
  • Joined

  • Last visited

Everything posted by Nicholas

  1. No it's a made up one, so no one be able to reply to it anyways. I used this system before to send weekly newsletters to everyone on the database and it worked fine. Which is why I'm confused why it isn't working :s I tried sending normal PHP version as wel with no html tags and it didn't work.
  2. I tried that it says the mail was sent, but I still haven't received the message in hotmail. I've made sure "[email protected]" was in my safe sender aswell, still no message? Why isn't it working? any other ideas?
  3. do you mean like this?   if(mail()) { $code = rand(1000000000,9000000000); mysql_query("INSERT INTO email_confirm VALUES ('{$them['UserID']}', '{$_POST['email']}', '$code', '0')"); $to = "".$_POST['email'].""; $subject = "Criminals Nightmare Email Activator"; $from = "[email protected]"; $headers = "From: $from\r\n"; $headers .= "Content-type: text/html\r\n"; $message = '<html> <body bgcolor="#999999" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <center><table width="625" cellpadding="0" cellspacing="0" border="0"> <tr> <td colspan="5" align="left" bgcolor="#999999" style="font-size: 10px;"> Learn more about the latest specials for Criminals Nightmare.</td> <td colspan="3" align="right" bgcolor="#999999" style="font-size: 10px;"></td> </tr> <tr> <td colspan="8"> <img src="http://criminals-nightmare.com/mesi/topimage.jpg" width="635" height="137" alt="Criminals Nightmare" style="display: block;"></td> </tr> <tr> <td bgcolor="#999999" color="#232323" style="margin: 3px;"> <center><a target="_blank" href="http://www.criminals-nightmare.com/login.php" style="color: #373737; font-weight: bold;"><h3>LOGIN HERE</h3></a></center> <center>__________________________________________ ________________________________________________</center> Your code to activate your account is.. <h3><b>'.$code.'</b></h3> Enter this code inside the game on Account Setup. <center>__________________________________________ ________________________________________________</center> </td> </tr> </table></center> </body> </html>'; mail($to, $subject, $message, $headers); echo "Email has been sent to (".mysql_real_escape_string($_POST['email']).") with a code.<form action='prefs.php?act=AccountSetup' method='post'> <input type='submit' value='Enter Code' /> </form>"; } else { echo "Message wasn't sent"; exit($end->page()); }
  4. if the Junk folder is the spam folder then yes i already checked that aswell.
  5. Hello everyone, Right basically, I'm setting up a new system for my game Criminals Nightmare to prevent signup advertisers.. But I'm having some problems, it won't send the email to the Email Address inserted? Can someone please help me find the cause?   if($them['email'] != '') { echo '<h3>Continuing Account Setup: what is your email address?</h3> <form action="prefs.php?act=AccountSetup&continue=1" method="post"> <input type="text" name="email" size="25"> <input type="submit" value="Confirm" /> </form>'; } if(@abs(intval($_GET['continue'])) == 1) { $check = mysql_query("SELECT email FROM players WHERE email='".mysql_real_escape_string($_POST['email'])."'"); if(mysql_num_rows($check)){ echo "<font color=red size=-1><center>E-Mail already in use.<br>Choose another one.</font><br /> <form action='prefs.php?act=AccountSetup' method='post'> <input type='submit' value='Continue' /> </form></center>"; exit($end->page()); } $code = rand(1000000000,9000000000); mysql_query("INSERT INTO email_confirm VALUES ('{$them['UserID']}', '{$_POST['email']}', '$code', '0')"); $to = "".$_POST['email'].""; $subject = "Criminals Nightmare Email Activator"; $from = "[email protected]"; $headers = "From: $from\r\n"; $headers .= "Content-type: text/html\r\n"; $message = '<html> <body bgcolor="#999999" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <center><table width="625" cellpadding="0" cellspacing="0" border="0"> <tr> <td colspan="5" align="left" bgcolor="#999999" style="font-size: 10px;"> Learn more about the latest specials for Criminals Nightmare.</td> <td colspan="3" align="right" bgcolor="#999999" style="font-size: 10px;"></td> </tr> <tr> <td colspan="8"> <img src="http://criminals-nightmare.com/mesi/topimage.jpg" width="635" height="137" alt="Criminals Nightmare" style="display: block;"></td> </tr> <tr> <td bgcolor="#999999" color="#232323" style="margin: 3px;"> <center><a target="_blank" href="http://www.criminals-nightmare.com/login.php" style="color: #373737; font-weight: bold;"><h3>LOGIN HERE</h3></a></center> <center>__________________________________________________________________________________________</center><br /> Your code to activate your account is.. <h3><b>'.$code.'</b></h3><br /><br /> Enter this code inside the game on Account Setup.<br /> <center>__________________________________________________________________________________________</center> </td> </tr> </table></center> </body> </html>'; mail($to, $subject, $message, $headers); echo "Email has been sent to (".mysql_real_escape_string($_POST['email']).") with a code.<br /><form action='prefs.php?act=AccountSetup' method='post'> <input type='submit' value='Enter Code' /> </form>"; }   If you can help me, that be great :) Thanks for reading, Nicholas.
  6. i dont have skype, only msn mate?
  7. hmm.. $150 a month is a bit out my price range at moment due to i don't have any donators and my only item for purchase is £3.50 a month? maybe i could work something out with you or something if that is your offer of advertisement?
  8. - i might do that actually.. putting register page on the login page. - also i want some sort of security on my registering page as i have like 6 hacks which one of them can hack the register system to easily register over 1,000 players in seconds if it doesnt have some sort of captcha installed. - i still don't quite get what you mean by 'playing around the my front page' im sorry, i dont understand what you mean by different versions.
  9. thanks, i had a read through it quickly but when i get time i'll read it properly and slowly. it seems like a pretty good explanation of ways to advertise your website.
  10. -i'm thinking about changing the register page tbh. making it quicker to register like you just said and dnenb said. -I don't know how to create an app for my game, i have tried and even purchased the 'android app' thing with google i think it was? -Adwords, i never had any luck with that? it just ended up wasting £50 and no one registered? :/ -Facebook signup, do you mean like a page for my game? if so i've already done that?
  11. i'll look into that finding the register link thanks. I thought it was easy to find it tbh? i'll also think about that idea with doing random number/letter password generated via Mail. I don't quite get what you mean by 'play around with the layout on the front page (login)' ------------------------------------ EDIT: I've changed and installed the new register page + setup (inside game). works fine and i think its better tbh.. thanks for the idea. ------------------------------------
  12. Hello, I'm looking for someone who is good with marketing and finding players who will join and stay on a game for long period of time. -- obviously the game has to look good and be good, which mine should be with all the regular updates i do and layout design I have :p I'm not sure about prices right now as I don't know how much people charge for their services, but if you know any good places or even being an advertiser yourself. Please could you post on here how much you offer for advertising services or how much they offer to set up advertising + URL link to them; I would be very grateful. http://www.criminals-nightmare.com/login.php If you need more information about what I'm after or going on about please post or email me on here. Thanks, Nicholas.
  13. Criminals Nightmare, New text-based game online, loads interesting things to achieve and level up. Fun, Addicting FREE game, updated regularly and easy to play. Play as a Criminal who escaped from prison. Train in a Gym, Commit crimes to gain Cash, Kill other Criminals, Create a Gang to rule the Game World. Compete in the Hall of Fame for best ranking. Plus so much more.. So what you waiting for? Sign Up, Log In, Recruit/Refer some friends Across The World and Become a Criminal! http://www.criminals-nightmare.com/login.php
  14. Game Name: Criminals Nightmare Game URL: http://www.criminals-nightmare.com Banner Size: 300x250 Banner URL: http://img441.imageshack.us/img441/3664/cnrb.png Email: [email protected]
  15. this one works :) thanks. still get the odd Invalid Item ID message but it works fine :) thanks for the help guys (Y)
  16. right im not sure if i did it how you said but i did this... $sql = "SELECT * FROM inventory WHERE UserID='{$user['UserID']}' AND InvItemID = 23"; echo $sql; and on the game file it showed this... $sql = "SELECT * FROM inventory WHERE UserID='1' AND InvItemID = 23"; i copied that, and ran it on PHPmyAdmin SQL and it didnt give me a error. it shows this... _______________________________ | UserID | InvID | InvItemID | InvQty | |___1__|_4148_|___23____|__344__|
  17. $sql = "SELECT `i.ItemName` as `item_name`, `inv.InvID` as `item_id` FROM `items` i LEFT JOIN `inventory` inv ON `i.ItemID` = `inv.InvItemID` WHERE `inv.UserID` = '{$user['UserID']}' AND `inv.InvItemID` = 23 LIMIT 1"; if (($result = mysql_query($sql)) == true) { echo '<a href="ItemUse.php?ID='.$result['item_id'].'">Use Item: '.htmlspecialchars($result['item_name']).'</a>'; } doesnt work? doesnt show the ID of the item just does this: ItemUse.php?ID= no number at the end; and it doesnt show the Item Name neither.   $sql = "SELECT * FROM inventory WHERE UserID='{$user['UserID']}' AND InvItemID = 23"; if (($result = mysql_query($sql)) == true) { echo '<a href="ItemUse.php?ID='.$result['InvID'].'">Use Item: Jail Card</a>'; }   that doesnt work neither, doesnt show the ID= ........... bit :s
  18. 1) i did that with one my other posts but that one has 2 queries on it. (POST: #4) 2) InvID is the id row for the inventory. just UserID is inserted first, doesnt affect anything. 3) im not sure, i just try to use some seems of securing method to numbers being selected or inserted into the database, so it doesnt mess up and not become a Whole Number. But yes it is a INT numeric anyways :)
  19. i used another query to try and select the $_GET['ID'] for the query under it which you can see and it kinda worked.. just sometimes not selecting the correct Inventory ID sometimes and cant figure out why... also yes your correct, its not mccodes v2 :) its my own engine/coding style. i just didnt know where else to post for help lol. its still kinda the same in a way from SELECTING and etc thought..
  20. right i got this far... if($user['JailTime'] != 0) { echo "Your in jail for another ".abs(intval($user['JailTime']))." minutes. "; $grab = mysql_query("SELECT UserID, InvID, InvItemID FROM inventory WHERE InvItemID=23 AND UserID=".abs(intval($user['UserID'])).""); $code = mysql_fetch_array($grab); $jail = mysql_query("SELECT i.ItemID, inv.UserID, inv.InvID, inv.InvItemID, inv.InvQty FROM inventory inv LEFT JOIN items i ON inv.InvItemID=i.ItemID WHERE inv.InvID=".abs(intval($code['InvID']))." AND inv.inv_userid=".abs(intval($user['UserID'])).""); $jailcard = mysql_fetch_array($jail); if($jailcard['InvQty'] > 0) { echo "(<a href='ItemUse.php?ID=".abs(intval($jailcard['InvID']))."'>Use Jail Card</a>)"; } } it shows the link, sometimes works but sometimes doesnt select the correct InvID so it gives an Invalid ID error... Any ideas on how to fix this? :)
  21. the problem im having i think is the link isnt showing up and it wont select the $_GET['ID'] which is the InvID value? so maybe the SELECT query in wrong? also what do you mean "this doesnt seem to be standard"? :s
  22. add this SQL to database alter table items add itmbuycprice int(11) not null default 0; alter table itembuylogs add ibTOTALPRICEC int(11) not null default 0;   open this file up... staff_items.php... and find this in ( function new_item_form() ) section... Item Price: <input type='text' name='itmbuyprice' /><br /> replace it with... Item Price: (money) <input type='text' name='itmbuyprice' /><br /> Item Price: (crystals) <input type='text' name='itmbuycprice' /><br />   on same file find... if(!isset($_POST['itmname']) || !isset($_POST['itmdesc']) || !isset($_POST['itmtype']) || !isset($_POST['itmbuyprice']) || !isset($_POST['itmsellprice'])) replace with... if(!isset($_POST['itmname']) || !isset($_POST['itmdesc']) || !isset($_POST['itmtype']) || !isset($_POST['itmbuyprice']) || !isset($_POST['itmsellprice']) || !isset($_POST['itmbuycprice']))   on same file about 10 lines down... find... $m=$db->query("INSERT INTO items VALUES('',{$_POST['itmtype']},'$itmname','$itmdesc',{$_POST['itmbuyprice']},{$_POST['itmsellprice']},$itmbuy, '{$_POST['effect1on']}', '$efx1', '{$_POST['effect2on']}', '$efx2', '{$_POST['effect3on']}', '$efx3', $weapon, $armor)"); replace it with... $m=$db->query("INSERT INTO items VALUES('',{$_POST['itmtype']},'$itmname','$itmdesc',{$_POST['itmbuyprice']},{$_POST['itmsellprice']},$itmbuy, '{$_POST['effect1on']}', '$efx1', '{$_POST['effect2on']}', '$efx2', '{$_POST['effect3on']}', '$efx3', $weapon, $armor, {$_POST['itmbuycprice']})");   then open up the file... shops.php... and find... print "Browsing items at <b>{$shopdata['shopNAME']}...</b><br /> <table cellspacing=1 class='table'><tr style='background: gray;'><th>Item</th><th>Description</th><th>Price</th><th>Sell Price</th><th>Buy</th></tr>"; replace it with... print "Browsing items at <b>{$shopdata['shopNAME']}...</b><br /> <table cellspacing=1 class='table'><tr style='background: gray;'><th>Item</th><th>Description</th><th>Price (money)</th><th>Price (crystals)</th><th>Sell Price</th><th>Buy</th></tr>";   on same file find... print "\n<tr><td>{$r['itmname']}</td><td>{$r['itmdesc']}</td><td>\${$r['itmbuyprice']}</td><td>\${$r['itmsellprice']}</td><td><form action='itembuy.php?ID={$r['itmid']}' method='post'>Qty: <input type='text' name='qty' value='1' /><input type='submit' value='Buy' /></form></td></tr>"; replace with... print "\n<tr><td>{$r['itmname']}</td><td>{$r['itmdesc']}</td><td>\${$r['itmbuyprice']}</td><td>{$r['itmbuycprice']}</td><td>\${$r['itmsellprice']}</td><td><form action='itembuy.php?ID={$r['itmid']}' method='post'>Qty: <input type='text' name='qty' value='1' /><input type='submit' value='Buy' /></form></td></tr>";   then open up... itembuy.php... and find... if($ir['money'] < $itemd['itmbuyprice']*$_POST['qty']) { print "You don't have enough money to buy this item!"; $h->endpage(); exit; } under it put this... if($ir['crystals'] < $itemd['itmbuycprice']*$_POST['qty']) { print "You don't have enough crystals to buy this item!"; $h->endpage(); exit; }   on same file find... $price=($itemd['itmbuyprice']*$_POST['qty']); item_add($userid, $_GET['ID'], $_POST['qty']); $db->query("UPDATE users SET money=money-$price WHERE userid=$userid"); $db->query("INSERT INTO itembuylogs VALUES ('', $userid, {$_GET['ID']}, $price, {$_POST['qty']}, unix_timestamp(), '{$ir['username']} bought {$_POST['qty']} {$itemd['itmname']}(s) for {$price}')"); print "You bought {$_POST['qty']} {$itemd['itmname']}(s) for \$$price"; replace it with... $price=($itemd['itmbuyprice']*$_POST['qty']); $pricec=($itemd['itmbuycprice']*$_POST['qty']); item_add($userid, $_GET['ID'], $_POST['qty']); $db->query("UPDATE users SET money=money-$price, crystals=crystals-$pricec WHERE userid=$userid"); $db->query("INSERT INTO itembuylogs VALUES ('', $userid, {$_GET['ID']}, $price, {$_POST['qty']}, unix_timestamp(), '{$ir['username']} bought {$_POST['qty']} {$itemd['itmname']}(s) for ${$price} and {$pricec} crystals', $pricec)"); print "You bought {$_POST['qty']} {$itemd['itmname']}(s) for \$$price and $pricec crystals.";
  23. Hello Everyone, I'm having troubles selecting 1 specific item so the user can use it but the link won't show if they don't have the item in their inventory :) Item: Jail Card Item ID: 23 item database table _________________________________________________________________________________________ | ItemID | ItemName | ItemDesc | ItemBuyPrice | ItemSellPrice | Item Effects | Weapon Power | Armour Power | |__23___|_Jail Card_|__ N/A___|____1000___|_____0_____|_No Jail Time_|______0______|______0______| inventory database table _______________________________ | UserID | InvID | InvItemID | InvQty | |___1__|_1523_|___23____|__56___| Right thats the information about the tables and item i want to select. So basically what im doing is when your in Jail youll get a message saying Your in jail for another .... minutes. (Use Jail Card) this is what the code bit is like:   if($user['JailTime'] != 0) { echo "Your in jail for another ".abs(intval($user['JailTime']))." minutes. "; $jail = mysql_query("SELECT i.ItemID, inv.UserID, inv.InvID, inv.InvItemID, inv.InvQty FROM inventory inv LEFT JOIN items i ON inv.InvItemID=23 WHERE inv.InvID=".abs(intval($_GET['ID']))." AND inv.UserID=".abs(intval($user['UserID'])).""); $jailcard = mysql_fetch_array($jail); if($jailcard['InvQty'] > 0) { echo "(<a href='ItemUse.php?ID=".abs(intval($_GET['ID']))."'>Use Jail Card</a>)"; } }   does anyone have any ideas how i can make it so it actually selects that specific item if they own it and so it selects the "InvID" bit for the "ItemUse File"? if this is even understandable on what i mean? :) if you can help me that be great :D
  24. not tested or anything but ive updated the code a bit...   <?php include "globals.php"; if ($ir['jail']) { echo "You cant enter this area when you are in jail"; exit($h->endpage()); } if ($ir['hospital']) { echo "You cant enter this area when you are in hospital"; exit($h->endpage()); if ($ir['will'] => $ir['maxwill']) { echo "You've maxed out your will. Please use some and come back."; exit($h->endpage()); } $_GET['action'] = isset($_GET['action']) && is_string($_GET['action']) ? strtolower(trim($_GET['action'])) : false; switch($_GET['action']) { case "Paul": SleepPaul(); break; case "Sophie": SleepSophie(); break; case "Tom": SleepTom(); break; case "Sarah": SleepSarah(); break; case "GetInFree"; Getfree(); break; default: index(); break; } function index() { global $ir,$h; echo "<h3>The Brothel</h3><hr /> <a href='brothel.php?action=GetInFree'>Try to get in for free</a><hr /> <a href='brothel.php?action=Paul'>Sleep with paul</a><br /> <a href='brothel.php?action=Sophie'>Sleep with sophie</a><br /> <a href='brothel.php?action=Tom'>Sleep with tom</a><br /> <a href='brothel.php?action=Sarah'>Sleep with sarah</a>"; } function SleepPaul(){ global $ir,$h; if ($ir['money'] < 1000) { echo"Not enough money"; } echo"You slept with paul"; mysql_query("UPDATE users SET money=money-1000, will=will+5 WHERE userid=".abs(intval($ir['userid'])).""); if($ir['will'] > $ir['maxwill']) { mysql_query("UPDATE users SET will=maxwill WHERE userid=".abs(intval($ir['userid'])).""); } exit($h->endpage()); } function SleepSophie(){ global $ir,$h; if ($ir['money'] < 1200) { echo"Not enough money"; } echo"You slept with sophie"; mysql_query("UPDATE users SET money=money-1200, will=will+8 WHERE userid=".abs(intval($ir['userid'])).""); if($ir['will'] > $ir['maxwill']) { mysql_query("UPDATE users SET will=maxwill WHERE userid=".abs(intval($ir['userid'])).""); } exit($h->endpage()); } function SleepTom(){ global $ir,$h; if ($ir['money'] < 1500) { echo"Not enough money"; } echo"You slept with tom"; mysql_query("UPDATE users SET money=money-1500, will=will+9 WHERE userid=".abs(intval($ir['userid'])).""); if($ir['will'] > $ir['maxwill']) { mysql_query("UPDATE users SET will=maxwill WHERE userid=".abs(intval($ir['userid'])).""); } exit($h->endpage()); } function SleepSarah() { global $ir,$h; if ($ir['money'] < 2000) { echo"Not enough money"; } echo"You slept with sarah"; mysql_query("UPDATE users SET money=money-2000, will=will+10 WHERE userid=".abs(intval($ir['userid'])).""); if($ir['will'] > $ir['maxwill']) { mysql_query("UPDATE users SET will=maxwill WHERE userid=".abs(intval($ir['userid'])).""); } exit($h->endpage()); } function Getfree() { global $ir,$h; $chance = rand(1,2); if ($chance == 1) { $jail = rand(5, 20); echo"You got caught sneeking into the brothel!"; mysql_query("UPDATE users SET jail=jail+$jail, jail_reason='caught trying to sneek into the Brothal.' WHERE userid=".abs(intval($ir['userid'])).""); } if ($chance == 2 ) { if($ir['gender'] == 'male') { $gender = "woman"; } else { $gender = "men"; } echo "You got in! and slept with some $gender"; mysql_query("UPDATE users SET will=will+15 WHERE userid=".abs(intval($ir['userid'])).""); if($ir['will'] > $ir['maxwill']) { mysql_query("UPDATE users SET will=maxwill WHERE userid=".abs(intval($ir['userid'])).""); } exit($h->endpage()); } } $h->endpage ?>
  25. i dont even remember posting this haha. might do remake of HireASpy mod.
×
×
  • Create New...