peterisgb Posted October 5, 2010 Share Posted October 5, 2010 (edited) this is only a little mod, but as i aint that good its ok i suppose, but some1 might like it and use it, this allows the gang owner to set level requirements for users wishing to join the gang see on the view gang page before they join to save them putting it in descriptions ? ok open creategang.php and 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. the save and close, then open yourgang.php and find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and below add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and the link of course below "Change Gang Requirements. " then look for You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. below that add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. then save that file, then open gangs.php and look for You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. below that add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. then save that file then import this into your phpmyadmin You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Edited April 2, 2022 by peterisgb Fixed Broken Code and Cleaned it up. Quote Link to comment Share on other sites More sharing options...
Rasheed saeed Posted October 5, 2010 Share Posted October 5, 2010 Nice little update here. No offence not alot of the code has been changed or improved, but nice update. Also a ` needs to be removed on the SQL. Quote Link to comment Share on other sites More sharing options...
peterisgb Posted October 5, 2010 Author Share Posted October 5, 2010 Nice little update here. No offence not alot of the code has been changed or improved, but nice update. Also a ` needs to be removed on the SQL. the ' has been removed, and yh ino its a basic mod but there some people that aint that good, and/or havent though of it but as i am learning i though i woud put some of the work i am doing as i go along Quote Link to comment Share on other sites More sharing options...
Rasheed saeed Posted October 5, 2010 Share Posted October 5, 2010 Yeah I know what your saying mate. Not being offences like, lol. Every does start some were. :) Also if you need help just add my msn buddy. ;) I'm free most of the time. :) Quote Link to comment Share on other sites More sharing options...
peterisgb Posted October 8, 2010 Author Share Posted October 8, 2010 ok, well i hope that this heps to peope that need it anyway Quote Link to comment Share on other sites More sharing options...
Djkanna Posted October 8, 2010 Share Posted October 8, 2010 Not a bad try, well done. :) Keep at it. Quote Link to comment Share on other sites More sharing options...
peterisgb Posted October 8, 2010 Author Share Posted October 8, 2010 thanks, i'll get there, learn by trial and error Quote Link to comment Share on other sites More sharing options...
DJShad10 Posted December 10, 2010 Share Posted December 10, 2010 ALTER TABLE `gangs` ADD `gangREQ` text NOT NULL,ok please do not get mad at me about this im still learning but i THINK this may be correct... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. it wouldnt let me use ALTER TABLE `gangs` ADD `gangREQ` text NOT NULL, so what i did was go in create it manually... it was my first time doing it but yeah thats the only difference i seen i dont know if that was the reason or not Cool mod bro keep it up Thanks Shad Quote Link to comment Share on other sites More sharing options...
tozza1000 Posted December 23, 2010 Share Posted December 23, 2010 the sql query is wrong. use this one [mysql]ALTER TABLE gangs ADD gangREQ text NOT NULL;[/mysql];) Quote Link to comment Share on other sites More sharing options...
Zan Posted December 23, 2010 Share Posted December 23, 2010 I added everything wat peter made..and Sql i used tozza's...and when i go to gang staff room and click edit gang requirements...It shown nothing..please fix this.. Quote Link to comment Share on other sites More sharing options...
boionfire81 Posted July 18, 2016 Share Posted July 18, 2016 (edited) My version. *Tweaked* most of the stuff is the same, but replace the yourgang.php function with this. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then find function gang_applysubmit remove the $gangdata from globals. As the global version doesn't apply here anyways. -.- Second find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. in that function and replace just that part with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You also need to place a You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. at the last line of that function. My stats are called strength, agility, defense, and reflex. If you use different names such as labour and guard, etc you will need to modify the code to match your labels. Fully tested and working. Not secured though. No clue what should be done to secure things lol. But there's the code for ya :P Edited July 18, 2016 by boionfire81 Quote Link to comment Share on other sites More sharing options...
boionfire81 Posted July 18, 2016 Share Posted July 18, 2016 oh yeah don't forget to add the req_strength, reg_defense, req_agility, req_reflex, req_age to your gangs table. Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted August 23, 2016 Share Posted August 23, 2016 (edited) Suggestion, add gang requirements to their own table (easier to expand in the long run) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. NOTE: This code has not been tested Please add any bugs here and I'll repair Edit yourgang.php Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Replace with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add to second switch() statement (the $_GET['act2'] switch): You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add a link in the gang staff management panel: yourgang.php?action=staff&act2=reqs Find (end of file): You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add above: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Edit gangs.php Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add below: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Replace with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Replace with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find (in gang_view()): You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Replace with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find (in gang_view()): You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Replace with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Replace with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Edit staff_items.php Find (in new_item_form()): You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add below: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find (in new_item_submit()): You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add below: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find (in new_item_submit()): You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Replace with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find (in edit_item_form()): You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add below: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find (in edit_item_sub()): You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add below: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find (in edit_item_sub()): You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Replace with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Edited April 9, 2019 by Magictallguy Updated code 1 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.