Jump to content
MakeWebGames

radio_active

Members
  • Posts

    693
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by radio_active

  1. Re: Changer User Password! V2   Just replace the whole function with...   function change_user_pass() { global $db,$ir,$c; if ($_POST['USER']) { if(!$_POST['pw']) { print"You forgot to enter a new password! [url='staff_users.php?action=changeuserpass']> Back[/url]"; } else { $password=$_POST['pw']; $db->query("UPDATE users SET userpass=md5('$password') WHERE userid='{$_POST['USER']}' ",$c) or die($db->error()); } print "User Password Changed! [url='staff_users.php?action=changeuserpass']> Back[/url]"; stafflog_add("Changed User ID {$_POST['USER']}'s password!"); } else { print "<h3>Changing User's Password</h3> <form action='staff_users.php?action=changeuserpass' method='post'> Select User: <select name='USER' type='dropdown'>"; $q=$db->query("SELECT userid,username FROM users",$c); while($r=$db->fetch_row($q)) { print "\n<option value='{$r['userid']}'>{$r['username']} [{$r['userid']}]</option>"; } print" </select> </br> New Password: <input type='text' name='pw' value='1' /> <input type='submit' value='Change Password' /></form>"; } }   That hasnt everything that has been asked for in it...
  2. Re: [MOD] Member Suggestions Poster okay... All you have done is changed the: bug_id bug_posted etc... to sug_id sug_posted in the code and SQL...The changed a bit of txt to say suggestion??? I guess i cant complain as i coudnt be bothered to do this myself and you did note that it was not originally made by you..fair enough, sorry... But isnt this what forums are for??? lol
  3. Re: [mccode] staff applications   Because your running V2, means that you put that where ever you want it to show up in your Staff admin panel... An earlier post shows where to put that...But if you have it in the index part, Open Staff.php and put it with the functions but you also have to add the cases... Ill start another topic tommorow with the Full V2 edited slightly re-coded but off the main base code seb posted;...
  4. Re: Simple Job Specials [V2] Haha yeah, im feeling lazy and dont feel like reading the code... So could you tell me what the add on is? or some screenshots? lol :-)
  5. Re: Staff Function - Edit User - V2 - Enhanced Version nice.. I see you also have my Change user pass mod in their :-D You might want to update to the edited version... :-)
  6. Re: Custom Login.php   Do they grow money? :-o
  7. Re: Changer User Password! V2 That would interupt on privacy of the user which is prohibted on my game...   Someone else may feel kind to make itt however...
  8. Re: NEW USERS IMAGE GALLERY FREE!!!!! Nice work man :-)   dude is it really neccessary to post 3 times in a few posts? Where 2 compliament the mod?
  9. Re: House Upgrade Mod!   Yeah, dont give him shit for posting...I know exactly what you mean, basically everything posted these days comes out as stolen code even if it isnt... Any ways, for those of you who dont actually know, this mod was requested in the "Modification Requests" and chaoswar4u has done a favor by creating this mod via editing origiaal...Nothing wrong with that is their? And like he said, he didnt claim it as he created it from scratch... Nice work man ;) :-)
  10. Re: Changer User Password! V2   Correction. if($ir['userid'] > 2) { die("Invalid Command."); }   yeah i noticed that i screwed that bit up as soon as i posted, i was going to edit but had to go to school and when got back, Ace had fixed it himself so yeah...
  11. Re: Changer User Password! V2 Cool, hope you like it :-D
  12. Re: Changer User Password! V2 if(!$ir['userid'] > 2) { die("This feature isnt allowd for you!"); }   Try something like that Ace
  13. Re: Changer User Password! V2   haha, no worries man..lol yeah its all about learning, im still learning...
  14. Re: Changer User Password! V2   Sorry, open smenu.php find > [url='staff_users.php?action=edituser']Edit User[/url]   and add below that > [url='staff_users.php?action=changeuserpass']Change User Pass[/url]   Then you will have a link to this function....I forgot to post that.. My bad! Thanks for the feedback....
  15. Re: 3 in 1 Bank System [$20] Yeah, this looks like an awesome mod...Well done :-D Just to let you know when i glanced over, your "welcome to the national bank etc" you have a typo in "intrest" should be "Interest" lol :lol:
  16. Re: Swim Mod For V2 [Free]   From what i know, if the mod doesnt have this error and you edited something and got it, it means that you need to more } further up the code where u may of edited it...eg, their may be 20 { and only 19} meaning its unexpected to end beacuse another brrack close needs to be inserted!
  17. Re: Bars Stopped Working If you want to see if your crons are working, go to "cron jobs" and then to "advanced unix style" and enter an email such as "[email protected]" or watever suits you... Then go to the email and you will be receiveing approximatly 80+ cron jobs a hour...But once a few crons have been processed such as, hospital, jail, energy will etc You will receieve email such as "hospital cron" Go into the email and if it says you have an error as in the cron isnt working (fairly obvious to work out), it will have where the error is and u can fix it from their, however if the crons are working, then i am not sure what the problem is... Hope this helps you
  18. Re: Delete User DP thankyou its all sweet :-)
  19. Re: Delete User DP   Well, im not a very good coder atm and i dont know how to code that and havnt tried it.... And yes it is a whole lot of fiddling if you want to change it but thats pretty simple...Dont use it!! and anyway, a larger majority of ppl use those DP packs and this mod is for them! I find it usefull, so i posted it to see if anyone else wanted to use it and thats all :-)
  20. Re: Delete User DP   If you look at the code $db->query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid SET u.money=u.money-5000,u.crystals=u.crystals-50, us.IQ=us.IQ-50,u.donatordays=u.donatordays-30 WHERE u.userid={$_POST['user']}"); $d=-29;   You will notice this "$d=-29;" which is the symbol for deleting donator days... and the rest aswell...   Well, thanks for the good feedback from some of you and no thanks for deminishing my confidence on posting free mods for those of you who dissapproved of my 2nd mod i have made....   LIke i said, im just a begginer and when i get better i might start doing better things but until then, i am still learning so please dont dis me for learning!!!
  21. Hey, i just created this Delete user DP mod... Its really not much i just edited the Give USer DP and made a Delete User DP... This mod could probably use a bit more "work" but it gets the job done atm... Its usefull if you have had hackers or staff crediting themselves without paying etc.... So here it is... Open staff_special.php Find case 'givedpform': give_dp_form(); break; case 'givedpsub': give_dp_submit(); break; Add below case 'takedpform': take_dp_form(); break; case 'takedpsub': take_dp_submit(); break; Find function give_dp_submit() { global $db,$ir,$c,$h,$userid; if($_POST['type']==1) { $db->query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid SET u.money=u.money+5000,u.crystals=u.crystals+50, us.IQ=us.IQ+50,u.donatordays=u.donatordays+30 WHERE u.userid={$_POST['user']}"); $d=30; } else if($_POST['type']==2) { $db->query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid SET u.crystals=u.crystals+100,u.donatordays=u.donatordays+30 WHERE u.userid={$_POST['user']}"); $d=30; } else if($_POST['type']==3) { $db->query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid SET us.IQ=us.IQ+120,u.donatordays=u.donatordays+30 WHERE u.userid={$_POST['user']}"); $d=30; } else if($_POST['type']==4) { $db->query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid SET u.money=u.money+15000,u.crystals=u.crystals+75, us.IQ=us.IQ+80,u.donatordays=u.donatordays+55 WHERE u.userid={$_POST['user']}"); $d=55; } else if($_POST['type']==5) { $db->query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid SET u.money=u.money+35000,u.crystals=u.crystals+160, us.IQ=us.IQ+180,u.donatordays=u.donatordays+115 WHERE u.userid={$_POST['user']}"); $d=115; } event_add($_POST['user'],"You were given one $d -day donator pack (Pack {$_POST['type']}) from the administration.",$c); print "User given a DP."; stafflog_add("Gave ID {$_POST['user']} a $d -day donator pack (Pack {$_POST['type']})"); } add below function take_dp_form() { global $db,$ir,$c,$h,$userid; print "<h3>Deleting User DP</h3> The users DP will be deleted. <form action='staff_special.php?action=takedpsub' method='post'> User: ".user_dropdown($c,'user')." <input type='radio' name='type' value='6' /> Delete Pack 1 (Standard) <input type='radio' name='type' value='7' /> Delete Pack 2(Crystals) <input type='radio' name='type' value='8' /> Delete Pack 3(IQ) <input type='radio' name='type' value='9' /> Delete Pack 4(5.00) <input type='radio' name='type' value='10' /> Delete Pack 5(10.00) <input type='submit' value=Take User DP' /></form>"; } function take_dp_submit() { global $db,$ir,$c,$h,$userid; if($_POST['type']==6) { $db->query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid SET u.money=u.money-5000,u.crystals=u.crystals-50, us.IQ=us.IQ-50,u.donatordays=u.donatordays-30 WHERE u.userid={$_POST['user']}"); $d=-29; } else if($_POST['type']==7) { $db->query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid SET u.crystals=u.crystals-100,u.donatordays=u.donatordays-30 WHERE u.userid={$_POST['user']}"); $d=-29; } else if($_POST['type']==8) { $db->query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid SET us.IQ=us.IQ-120,u.donatordays=u.donatordays-30 WHERE u.userid={$_POST['user']}"); $d=-29; } else if($_POST['type']==9) { $db->query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid SET u.money=u.money-15000,u.crystals=u.crystals-75, us.IQ=us.IQ-80,u.donatordays=u.donatordays-55 WHERE u.userid={$_POST['user']}"); $d=-54; } else if($_POST['type']==10) { $db->query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid SET u.money=u.money-35000,u.crystals=u.crystals-160, us.IQ=us.IQ-180,u.donatordays=u.donatordays-115 WHERE u.userid={$_POST['user']}"); $d=-114; } Now Open smenu.php Find [url='staff_special.php?action=givedpform']Give User Donator Pack[/url] ; "REPLACE" with [url='staff_special.php?action=givedpform']Give User Donator Pack[/url] [url='staff_special.php?action=takedpform']Delete User DP[/url] "; And your done :lol: Please dont send messages saying "this is easy" blah blah...I am a begginer coder and have now posted 2 mods for frree onto CE and im getting better at coding... So unless you have something nice to say, dont say anything...If you find errors, post them or if you can expand on the mod, please do... Works fine for me however.... thanks :-D
  22. Re: [V2] Daily Donator Reward [V2] Cool, nice one...A bit like the lucky dip mod i think? Shouldnt the require "globals.php"; be include "globals.php"; ??? :lol:
  23. Re: [MCcode V1.1] New Search/Locate The V2 global_func function is actually this:   function gang_dropdown($connection,$ddname="gang",$selected=-1) { global $db; $ret="<select name='$ddname' type='dropdown'>"; $q=$db->query("SELECT * FROM gangs ORDER BY gangNAME ASC",$connection); if($selected == -1) { $first=0; } else { $first=1; } while($r=$db->fetch_row($q)) { $ret.="\n<option value='{$r['gangID']}'"; if ($selected == $r['gangID'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.=">{$r['gangNAME']}</option>"; } $ret.="\n</select>"; return $ret; }   :-)
  24. Re: Av Bank [FREE] haha, nice mod :lol:   Im sorry to here it dude!
  25. Re: [Free] TownView   Hey dude, i mean no offence here but like, your getting pretty aggressive over small problem... You should like just chill or something...Smoke a fucking joint if ya have to...lol I mean yeah, you posted a mod for $5 and yeah you say its only $5, its not much...Yeah well it may not be much but either is this mod...I think ppl just pointing out that just like i dunno, give small mods out for free because even though money aint much, either is the code... I member reading you write something like "haha, mine has less lines then yours ISO" or something along those lines...i mean, ISOs mod has like 67 lines and thats with gaps to make the code look even and slightly easier to understand....And thats not much, then yours is like less then that and i mean, cmon...Is $5 really worth a few lines of easy code? Yeah you can go on and re write ISOs mods and post em but like, is it really nessecesary? Like could you honestly be bothered the write them all and psot them all...What do you actually achieve? so you, just like look on the bright side of things, if their isnt a bright side of things, find a bright side, if you can find a bright side, smoke a joint...haha(not that i smoke joints n all) But thats off the subect... So yeah, i dont mean any offense n shit, im just tryin to cool shiz down around here! Not have it all heated up in aggresive coder battles coz i mean like really, no one achives anything accept maybe the satisfaction of getting something like "im a better coder then you" blah blah... so yer peace all
×
×
  • Create New...