-
Posts
693 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Events
Everything posted by radio_active
-
Re: [Free] TownView Yeah i got this problem too...I deleted the ; on line 10 i think and then it came ip with un expected T_IF statement or something...Not sure what problem is aye...?
-
[mccode v2] Changer User Password!
radio_active replied to radio_active's topic in Free Modifications
Re: Changer User Password! V2 Thanks :lol: -
Re: Money Cap yess... as stated in this topic http://criminalexistence.com/ceforums/index.php?topic=18372.0 This board is for requests, not support
-
Re: Money Cap haha yeah i felt nice...lol
-
Re: Money Cap This shouldnt be in this catergory, it should be in the DBS support or help topics... Plus, if you use the search button you will find a few topics telling you how to change this... But you have to go to phpmyadmin, then go to users, then u click on money and change the dropdown menu where it says int11 to BIGINT then type in like 25 or something in the box next to it.. You have to do this on Money, House Cost etc, everything that u want to not be on the 2.147 bil cap u have to change to BIGINT...
-
This is my first mod to be posted on CE so i hope you like it :-) So this mod is a change user password modification... It does not allow you to see the users Password but only to change to whatever you want or what they want... If the user has lost password and you dont have the lost password mod, you can reset the password to whatever you want.. so here goes... Open Staff_users.php Find function forcelogout() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 2) { die("403"); } $_POST['userid'] = abs((int) $_POST['userid']); if($_POST['userid']) { $db->query("UPDATE users SET force_logout=1 WHERE userid={$_POST['userid']}"); print "User ID {$_POST['userid']} successfully forced to logout."; stafflog_add("Forced User ID {$_POST['userid']} to logout"); } else { print "<h3>Force User Logout</h3><hr /> The user will be automatically logged out next time he/she makes a hit to the site.<form action='staff_users.php?action=forcelogout' method='post'> User: ".user_dropdown($c, 'userid')." <input type='submit' value='Force User to Logout' /></form>"; } } Below Add 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]"; } 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>"; } } Find case 'reportsview': reports_view(); break; Below add case 'changeuserpass': change_user_pass(); break; And your done... Please post your thoughts and let me know if you use it :lol: Thanks Edit: Updated code, forgot to add notice that mod has work (eg. User Password changed)
-
Re: Help Changing Theme For MCcodes v2.0 A good idea in making your own game is to have its own Unique theme... If you want to change ur background and writing color you will have to edit header.php look for <BODY> <style type="text/css"> body { background-image: <img scr='xxx.gif'>; background-repeat:repeat; background-color:#000; background-attachment:fixed; background-position:center; margin-top: 0px; margin-bottom: 0px; font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:11px;color: red; scrollbar-base-color: #005B70; scrollbar-arrow-color: #F3960B; scrollbar-DarkShadow-Color: #000000; } a:visited,a:active,a:hover,a:link { color: white;text-decoration: none; } table,tr,td { font-family:helvetica, arial, geneva, sans-serif;font-size: 11px; text-align:center; } img { border:none; } textarea { font-family:helvetica, arial, geneva, sans-serif;font-size:11px;color: yellow; } To change main writing color edit this line font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:11px;color: red; and change red to your preferred color! To edit your Background find where it says background-color:#000; and change the color code to the color you want, ( to find color codes you can search through google if you are not sure....) then to edit the color of the writing that comes through in Text boxes such personal Notes, find textarea { font-family:helvetica, arial, geneva, sans-serif;font-size:11px;color: yellow; } and change the "yellow" to preferred color Hope this helps :-)
-
Re: How to patch this SQL! Hahaa Thanks for the help, i fixed it :-)
-
Re: How to patch this SQL! oops, sorry....soo how do i find out how to fix it then?
-
Hey, their is this SQL that i have found which allows users to gain as much money and crystals as they like and im not sure how to patch it up.... The SQL is: [REMOVED] Nyna The 99999999999 indicates the crystals and the -99999999999 indicates the money.... So you would end up with 999999999999 money and 999999999999 crystals.... Please help me! THanks
-
Re: Advanced RentASpy[V2] okay i fixed that problem... { $money= ($ir['level'])*1000 $energy=($ir['level'])*5 ) has to be { $money= ($ir['level'])*1000; $energy=($ir['level'])*5; then if($ir['donatordays']) { die("You have to be a donator to do this!"); } has to be if($ir['donatordays']= 0) { die("You have to be a donator to do this!"); } and then a few more edits have to be adjusted to get energy to work aswell.... Thanks z-e-r-o
-
Re: Advanced RentASpy[V2] Well i tested it out n the first problem i got was an unexpected '(' on the: { $money= ($ir['level'])*1000 $energy=($ir['level'])*5 ) So i removed the () brakets off them... Then it says that their is "Parse error: syntax error, unexpected T_VARIABLE" on line 17 which is $energy=($ir['level'])*5 that... I tried to fix but im not sure what to do, lol... Thanks for helping :-)
-
Re: Advanced RentASpy[V2] i think thats because you have to be a donator to do it :? as if u notice on the first few lines of code where it says if($ir['donatordays'] = 0) { die("You have to be a donator to do this!");
-
Re: Advanced RentASpy[V2] Few things: 1. I noticed your rentaspy.php is V2 and has mysql_query rather then $db->query, does that matter beacuse i thought it did? 2. Just an idea but i think what would be cool is if the person u want to spy on is like level 5, it costs you $5000 and 5 energy... If the person is level 111, it costs 111000 and 111 energy if you want to spy on them...Im not an advanced coder so im not completly sure how i would do that but if anyone wants to do that, please feel free, lol... buts cool mod ;) Over n Out
-
Re: [mccode] Mining mod You cannot replace them withot dropping them first as to the fact that it will tell you the SQL already exsists, plus, dropping them is easy as pie, whats so bad?
-
Re: [mccode] staff applications One thing you gotta remember mate is to make it include "globals.php" rather then require "globals" Require is used for V1 MC Codes
-
Re: Seanybob's Official Mod Corner Why do you write the one, the only seanybob :wink:
-
Re: [mccode] Advanced Warning System I am getting same problem with that line...im trying to fix it also
-
Re: [TGM] Gang Battle Zone [TGM] Thats a pretty awseom mod Cronus but75$ is waaaaay to expensive for me anywayz
-
Re: [mccode] Date Mod I heard that around 70% or Text RPG games are all Illegal unlicensed codes that Dabs and Coldblooded made, thats what i heard, not sure if its true, and i also heard something about them working on V3 which sounds awseom!
-
Re: [v1][FREE] Gang Welcome Message I want to make a game welcome message, do i do the same thing sort of but in loggedin.php or register.php?
-
[mccode] Kicking Gang Members At War
radio_active replied to -Genocide-'s topic in Free Modifications
Re: [mccode] Kicking Gang Members At War This probably sounds stupid to you guys but what file is do i edit for that? i have a few as im running of MC V2 and another guy said his worked on V2 so i am going to try it out! -
Re: [Free] [v1] Calculator Mod When i used iseeyou94056's version translation, it works but i get this error: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/downt12/public_html/calculator.php:2) in /home/downt12/public_html/globals.php on line 6 Which is kind of annoying, when i use 03laceys 2nd version, it doesnt work, comes up with some error on line 11 but someone pointed out that- that was V1 again soooo, then i tried 03laceys first translation, and it works perfectly, nice work man :-D