Jump to content
MakeWebGames

Strats

Members
  • Posts

    649
  • Joined

  • Last visited

    Never

Everything posted by Strats

  1. Re: Dreaming Out Loud I don't think your meant to request them here tho
  2. Re: Mail Bomb Pro Version Oh, I thought it was some kind of spam thing lol
  3. I brought a new game layout but some of my old game links don't seem to fit into the new game. I want to have my gang link and my shop link Here is the code as i thought it should work :   print "$bull [url='announcements.php']News [size="1"](0)[/size][/url] $bull [url='{$link1}']{$name1}</font>[/url] $bull [url='http://wrestlingwars.pro-forums.com']Forums[/url] $bull [url='http://iPocalypse.net/tflash.swf?joinonconnect=wrestlingwars&restricted=0&headercolor=0099FF&bgcolor=000000']Chat[/url] $bull [url='search.php']Search[/url] "; } if(!$ir['jail'] && $ir['gang']) { print " $bull [url='yourgang.php']Faction[/url] "; } $checkforshop=$db->query("select * from usershops where userid=".$ir['userid']."); if(mysql_num_rows($checkforshop)) { print "$bull [url='myshop.php']Your Shop[/url] "; } if($ir['user_level'] > 1) { print "<hr> [url='staff.php']Staff Panel[/url] \n";   Here's the code without my addition   $bull [url='wegym.php']Weather Gym[/url] $bull [url='board.php']Board Game[/url] $bull [url='newspaper.php']Newspaper[/url] $bull [url='search.php']Search[/url] "; } if($ir['user_level'] > 1) { print "<hr> [url='staff.php']Staff Panel[/url] \n";   Any help would be very appreciated
  4. Re: Mail Bomb Pro Version Am I getting this right, This is a mod that allows users to donate to get a mail bomb. You can use it on a member and they get spam? Can you explain this mod please
  5. Strats

    Name bug

    Re: Name bug Voice4Vision's code worked great. I had already put it in before you posted that.
  6. Re: Streets Error Yea I could see on the user database jail lol I was unsure thanks
  7. Re: change colours without editing the pages [V2] :lol:
  8. I have a small error on my streets, jail time. When someone should go to jail they do not. I get this : QUERY ERROR: Unknown column 'jailtime' in 'field list' Query was UPDATE `users` SET `jailtime` = `jail_time` + '', `jailreason` = 'Pulled up by a Policeman' WHERE `userid` = '1' I know this means there is no jailtime in my database. But I am confused at to where it should be. I never deleted anything that I know of.
  9. Strats

    Name bug

    Re: Name bug I have changed mine about a bit. Can someone tell me where it should be on mine. I have tested All these ideas out and they don't work for me. Here's my pref :   <?php include "globals.php"; switch($_GET['action']) { case 'sexchange2': do_sex_change(); break; case 'sexchange': conf_sex_change(); break; case 'passchange2': do_pass_change(); break; case 'passchange': pass_change(); break; case 'namechange2': do_name_change(); break; case 'namechange': name_change(); break; case 'picchange2': do_pic_change(); break; case 'picchange': pic_change(); break; case 'forumchange2': do_forum_change(); break; case 'forumchange': forum_change(); break; default: prefs_home(); break; } function prefs_home() { global $db,$ir,$c,$userid,$h; print "<h3>Preferences</h3> [url='preferences.php?action=sexchange']Sex Change[/url] [url='preferences.php?action=passchange']Password Change[/url] [url='preferences.php?action=namechange']Name Change[/url] [url='preferences.php?action=picchange']Display Pic Change[/url] [url='preferences.php?action=forumchange']Forum Info Change[/url] "; } function conf_sex_change() { global $ir,$c,$userid,$h; if($ir['gender'] == "Male") { $g="Female"; } else { $g="Male"; } print "Are you sure you want to become a $g? [url='preferences.php?action=sexchange2']Yes[/url] | [url='preferences.php']No[/url]"; } function do_sex_change() { global $db,$ir,$c,$userid,$h; if($ir['gender'] == "Male") { $g="Female"; } else { $g="Male"; } $db->query("UPDATE users SET gender='$g' WHERE userid=$userid"); print "Success, you are now $g! [url='preferences.php']Back[/url]"; } function pass_change() { global $ir,$c,$userid,$h; print "<h3>Password Change</h3><form action='preferences.php?action=passchange2' method='post'>Current Password: <input type='password' name='oldpw' /> New Password: <input type='password' name='newpw' /> Confirm: <input type='password' name='newpw2' /> <input type='submit' value='Change PW' /></form>"; } function do_pass_change() { global $db,$ir,$c,$userid,$h; if(md5($_POST['oldpw']) != $ir['userpass']) { print "The current password you entered was wrong. [url='preferences.php?action=passchange']> Back[/url]"; } else if($_POST['newpw'] !== $_POST['newpw2']) { print "The new passwords you entered did not match! [url='preferences.php?action=passchange']> Back[/url]"; } else { $db->query("UPDATE users SET userpass=md5('{$_POST['newpw']}') WHERE userid=$userid"); print "Password changed!"; } } function name_change() { global $ir,$c,$userid,$h; print "<h3>Name Change</h3> Please note that you still use the same name to login, this procedure simply changes the name that is displayed. <form action='preferences.php?action=namechange2' method='post'> New Name: <input type='text' name='newname' /> <input type='submit' value='Change Name' /></form>"; } function do_name_change() { global $db,$ir,$c,$userid,$h; if($_POST['newname'] == "") { print "You did not enter a new name. [url='preferences.php?action=namechange']> Back[/url]"; } else { $_POST['newname']=str_replace(array("<", ">", "\\\'"), array("<", ">", "'"), $_POST['newname']); $db->query("UPDATE users SET username='{$_POST['newname']}' WHERE userid=$userid"); print "Username changed!"; } } function pic_change() { global $ir,$c,$userid,$h; print "<h3>Pic Change</h3> Please note that this must be externally hosted, [url='http://imageshack.us']ImageShack[/url] is our recommendation. Any images that are not 150x150 will be automatically resized <form action='preferences.php?action=picchange2' method='post'> New Pic: <input type='text' name='newpic' value='{$ir['display_pic']}' /> <input type='submit' value='Change Name' /></form>"; } function do_pic_change() { global $db,$ir,$c,$userid,$h; if($_POST['newpic'] == "") { print "You did not enter a new pic. [url='preferences.php?action=picchange']> Back[/url]"; } else { $_POST['newpic']=str_replace('\\\'',''', $_POST['newpic']); $db->query("UPDATE users SET display_pic='{$_POST['newpic']}' WHERE userid=$userid"); print "Pic changed!"; } } function forum_change() { global $ir,$c,$userid,$h; print "<h3>Forum Info Change</h3> Please note that the avatar must be externally hosted, [url='http://imageshack.us']ImageShack[/url] is our recommendation. Any avatars that are not 100x100 will be automatically resized <form action='preferences.php?action=forumchange2' method='post'> <table style='border-style:solid;border-width:1px;border-color:#303030;' cellpadding='5'> <tr> <td bgcolor='#606060'>Avatar:</td> <td bgcolor='#404040'><input type='text' name='forums_avatar' value='{$ir['forums_avatar']}' /></td> </tr> <tr> <td bgcolor='#606060'>Signature (you may use BBcode):</td> <td bgcolor='#404040'><textarea rows=10 cols=50 name='forums_signature'>{$ir['forums_signature']}</textarea></td> </tr> <tr colspan='2' bgcolor='#404040'> <td colspan='2'> <input type='submit' value='Change Info' /></td> </tr> </table></form>"; } function do_forum_change() { global $db,$ir,$c,$userid,$h; $url=$_POST['forums_avatar']; if(substr($url, -1)!="g" && substr($url, -1)!="G" && substr($url, -1)!="F" && substr($url, -1)!="f") { print"You need to supply a real image. [url='preferences.php?action=forumchange']> Back[/url]"; include"int2.php"; die(""); } if (preg_match("/.jpg/", $url) || preg_match("/.php/", $url)) { } else if(preg_match("/.jpeg/", $url) || preg_match("/.php/", $url)) { } else if(preg_match("/.gif/", $url) || preg_match("/.php/", $url)) { } else if(preg_match("/.JPG/", $url) || preg_match("/.php/", $url)) { } else if(preg_match("/.JPEG/", $url) || preg_match("/.php/", $url)) { } else if(preg_match("/.GIF/", $url) || preg_match("/.php/", $url)) { } else if(preg_match("/.PNG/", $url) || preg_match("/.php/", $url)) { } else if(preg_match("/.png/", $url) || preg_match("/.php/", $url)) { } else { print"You need to supply a real image. [url='preferences.php?action=forumchange']> Back[/url]"; include"int2.php"; die(""); } $_POST['forums_avatar']=mysql_real_escape_string($_POST['forums_avatar']); $_POST['forums_signature']=mysql_real_escape_string($_POST['forums_signature']); mysql_query("UPDATE users SET forums_avatar='{$_POST['forums_avatar']}', forums_signature='{$_POST['forums_signature']}' WHERE userid=$userid"); print "Forum Info changed!"; } $h->endpage(); ?>
  10. Re: [Mccodes v2] i am new to php and am looking for some helpf for a header You also have to protect your header As right now it seems bad
  11. Re: [Mccodes v2] i am new to php and am looking for some helpf for a header Can you post the file you have a problem with
  12. Re: Illegalife and his GFX Damn I should of got they layout lmao
  13. Re: Little Error What file has an error? Thats not helped much.
  14. Re: I am new to php and looking for help with making a header for mccodes v2 Seems everyone has that layout at the moment. You should post this thread here : http://criminalexistence.com/ceforums/h ... .php?f=0.0   This section is for posting mods only.
  15. Re: Edit Item type - Delete Item type I opened my site to a small handfull of people when I was at the end on finishing it, I wanted peoples idea on how I could make it better and have people watching for bugs
  16. Re: delete gang after respect hit 0   There is no `gangID` column in users. Also, this wont delete gang wars. I use this:   $gangs=mysql_query("SELECT * FROM gangs WHERE gangRESPECT<=0", $c); $gang=mysql_fetch_array($gangs); $delete=$gang['gangID']; mysql_query("DELETE FROM gangwars WHERE warDECLARER=$delete OR warDECLARED=$delete",$c); mysql_query("DELETE FROM gangs WHERE gangRESPECT<=0",$c); mysql_query("UPDATE users SET gang='0' WHERE gang=$delete", $c);   Tested and works fine, Mines in daily cron though, This way it wont have to check the DB as much. This one will also clear gang wars. When you say clear gang wars do you mean the clear gangs that wared the "0 respect" gang I hope you understand that
  17. Re: Edit Item type - Delete Item type     This is what I needed thanks, I had added this before but for some reason I had changed the items page and forgot to put it back
  18. Re: Edit Item type - Delete Item type Thanks I will check it out in the morning or post the full file
  19. Re: Workshop ($10) Best mod I have brought so far.
  20. Re: [mccode v2] Steal (Money / Crystals) [$10.00] You said you sold your copies :P
  21. Ages ago I added Edit item type to my game and it worked fine, Now I go to do it it says requires action. Also does the same thing when I click Delete item type. So I'm guessing I deleted the action bit. Can someone tell me it? Or put it in for me please. It was right after add item type   function newitemtype() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 2) { die("403"); } if($_POST['name']) { $db->query("INSERT INTO itemtypes VALUES(NULL, '{$_POST['name']}')"); print "Item Type {$_POST['name']} added."; stafflog_add("Added item type {$_POST['name']}"); } else { print "<h3>Add Item Type</h3><hr /> <form action='staff_items.php?action=newitemtype' method='post'> Name: <input type='text' name='name' /> <input type='submit' value='Add Item Type' /></form>"; } } function mass_give_item() { global $db,$ir,$c; print "<h3>Giving Item To All Users</h3> <form action='staff_items.php?action=massitemgivesub' method='post'> Item: ".item_dropdown($c,'item')." Quantity: <input type='text' name='qty' value='1' /> <input type='submit' value='Mass Send' /></form>"; } function mass_give_item_sub() { global $db,$ir,$c; $q=mysql_query("SELECT * FROM users WHERE fedjail=0",$c); while($r=mysql_fetch_array($q)) { $db->query("INSERT INTO inventory VALUES('',{$_POST['item']},{$r['userid']},{$_POST['qty']})",$c) or die(mysql_error()); event_add($r['userid'],"The popliation has just bin given an item {$_POST['item']}, Click [url='inventory.php']Here[/url] to check.",$c); print "Item Sent To {$r['username']}</br>"; } print " Mass item sending complete!</br> Theres no need to send a mass mail because they just got an event."; } $h->endpage(); ?>
  22. Re: Illegalife and his GFX I'll be getting mine today :D
  23. Re: Businesses Mod [Mccode V2] Shush. What does this mod actually do?
  24. Re: [mccode] Free Starter Pack     Do it then :lol:
  25. Re: Workshop ($10) Payment sent!
×
×
  • Create New...