Uridium Posted November 6, 2008 Share Posted November 6, 2008 Small mod Which enables Staff to Freeze a Users bank account if they have an Queries it can be reopened again whn satisfied.. SQL You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now open up Staff_users.php find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Underneeath add. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Next Find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Underneath Add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then Find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Overwrite with.. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then Find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Underneath Add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then Find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Undernath Add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now open Up bank.php And just under include"globals.php"; add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. When you Edit a User to Freeze a Bank account 0=Active and 1=Frozen..... Small NOTE the addon to the bank.php can also be added to any market scripts or crystal banks that you have in your game it will do the same Task as putting it into the bank script. Quote Link to comment Share on other sites More sharing options...
toufail Posted November 6, 2008 Share Posted November 6, 2008 Re: [MOD] V2 Freeze a Users Bank Account nice :-D update illusions +1 from me Quote Link to comment Share on other sites More sharing options...
Guest Sniko` Posted November 6, 2008 Share Posted November 6, 2008 Re: [MOD] V2 Freeze & Reactivate a Users Bank Account KK, just wondering, why would you want to freeze their bank account? Quote Link to comment Share on other sites More sharing options...
josh-j-c Posted November 7, 2008 Share Posted November 7, 2008 Re: [MOD] V2 Freeze & Reactivate a Users Bank Account You could find they were making way too much intrest... ??? Theres one important example lool Great mod illusions, thanks Jc Quote Link to comment Share on other sites More sharing options...
War_Hero Posted November 7, 2008 Share Posted November 7, 2008 Re: [MOD] V2 Freeze & Reactivate a Users Bank Account Great mod mate. :) As for why you'd freeze their bank account: possibly as a punishment? Say, if the user is constantly breaking the rules or something, they would have their bank account frozen so they can't access it. Then, once they learn, it would be unfrozen. Just an idea off the top of my head. :-P Quote Link to comment Share on other sites More sharing options...
Uridium Posted November 7, 2008 Author Share Posted November 7, 2008 Re: [MOD] V2 Freeze & Reactivate a Users Bank Account The whole Idea of the Freeze Bank Accounts is so you dont have a massive list of fed jails. If a user has no money they cause no real threat + it acts like a judification system where by staff can invenstigate a members account without the member getting richer in the process. The only thing i have forgot and will do a piece for is members Inventory so they cant send items or cash to a person whos account is frozen.. Also for the user thats frosen their inventory will have Send to market. sell removed until an issue has been resolved. they will however stil be able to use and equip items... I noticed on the staff panel there wasnt an option for this and now there is it may prove useful. Quote Link to comment Share on other sites More sharing options...
Uridium Posted November 7, 2008 Author Share Posted November 7, 2008 Re: [MOD] V2 Freeze & Reactivate a Users Bank Account Small update to stop other members from sending money or crystals to a frozen account open up sendcash.php and sendcrys.php and add this after the print"globals.php"; You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. This will disallow Transfers from Active members to thos that have frozen Accounts... Open up itemsell.php and imadd.php and add this before print"globals.php"; You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Will disallow those that are Frozen not to be able to add or sell Items..... Quote Link to comment Share on other sites More sharing options...
Uridium Posted November 7, 2008 Author Share Posted November 7, 2008 Re: [MOD] V2 Freeze & Reactivate a Users Bank Account Keep Track Of Frozen Users Accounts. open up global_func.php Just after <?php or <? Add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now open up staff_users.php Find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add above it You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. now find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And add above it.. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Finally open smenu.php and add this to the users section You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You can now keep track of all Users Whos accounts have been frozen Quote Link to comment Share on other sites More sharing options...
Canjucks Posted November 7, 2008 Share Posted November 7, 2008 Re: [MOD] V2 Freeze & Reactivate a Users Bank Account nice mod +1 will have to get around to adding this and testing it out! Quote Link to comment Share on other sites More sharing options...
Uridium Posted November 8, 2008 Author Share Posted November 8, 2008 Re: [MOD] V2 Freeze & Reactivate a Users Bank Account Has anyone Attempted to install this script yet ??? Would be nice to have some feed back from this one. so i could start a simililar process on others :) Quote Link to comment Share on other sites More sharing options...
Saint Posted November 8, 2008 Share Posted November 8, 2008 Re: [MOD] V2 Freeze & Reactivate a Users Bank Account I will install this script now ill get back to you in around 10 mins.... Quote Link to comment Share on other sites More sharing options...
Saint Posted November 8, 2008 Share Posted November 8, 2008 Re: [MOD] V2 Freeze & Reactivate a Users Bank Account I have just installed this script and it doesnt work, when you type 1 in the user edit form and click submit or "edit user" it doesnt stay as 1 it resets back to 0. any ideas as to why? Quote Link to comment Share on other sites More sharing options...
Uridium Posted November 8, 2008 Author Share Posted November 8, 2008 Re: [MOD] V2 Freeze & Reactivate a Users Bank Account I have just installed this script and it doesnt work, when you type 1 in the user edit form and click submit or "edit user" it doesnt stay as 1 it resets back to 0. any ideas as to why? Check your phpmyadmin 8 out of 10 its probably my table fields as i add them manually make sure that your USERS table under FROZEN is default 0 ALTER TABLE users ADD frozen INT(11) NOT NULL DEFAULT 0; It maybe my Alter table thats wrong Quote Link to comment Share on other sites More sharing options...
Saint Posted November 8, 2008 Share Posted November 8, 2008 Re: [MOD] V2 Freeze & Reactivate a Users Bank Account My default is set to 0 and also the sql is as it should be but still it doesnt work :/ has anybody else installed this to see if it works? Quote Link to comment Share on other sites More sharing options...
Uridium Posted November 8, 2008 Author Share Posted November 8, 2008 Re: [MOD] V2 Freeze & Reactivate a Users Bank Account From the first post i missed a $frozen so heres the corrected piece Thanks to SAINT for pointing this out :) $db->query("INSERT INTO users (username, login_name, userpass, level, money, crystals, donatordays, frozen, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney) VALUES( '{$_POST['username']}', '{$_POST['login_name']}', md5('{$_POST['userpass']}'), $level, $money, $crystals, $frozen, $donator, $ulevel, $energy, $energy, 100, 100, $brave, $brave, $hp, $hp, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', -1)"); Quote Link to comment Share on other sites More sharing options...
Karlos Posted November 9, 2008 Share Posted November 9, 2008 Re: [MOD] V2 Freeze & Reactivate a Users Bank Account Nice One Man :-P Quote Link to comment Share on other sites More sharing options...
p_T_s Posted November 18, 2008 Share Posted November 18, 2008 Re: [mccode v2] Freeze & Reactivate a Users Bank Account You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I have the same problem as saint had and even with this, You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Still won't work? heres my bank.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. the sql i ran You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
p_T_s Posted November 18, 2008 Share Posted November 18, 2008 Re: [mccode v2] Freeze & Reactivate a Users Bank Account Ok, it doesn't save in the edit user but when i do it manually in the database it works? Quote Link to comment Share on other sites More sharing options...
Uridium Posted March 27, 2009 Author Share Posted March 27, 2009 Re: [mccode v2] Freeze & Reactivate a Users Bank Account Just to fix the Error of the SQl not updating Open up staff_users.php FIND. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And Replace with.... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Your Frozen Accounts shoul now be updated... ALSO in the imadd.php and itmsell.php Overwrite what i had before which was You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. with this one You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.