radio_active Posted July 5, 2008 Share Posted July 5, 2008 This is how to install Staff Applications to MCcodes V2! Please note i did not code this from scratch, it was taken from "seb" who coded a V1 version in another thread... I thought i would fix it up and make it V2 with a few little extras... So here you are! Add into staff.php the cases You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and the functions You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Make a File called staffapps.php and add this into it: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. smenu.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 the SQL You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Make a file called stafftoc.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Ive added some rules accept you are free to make your own..(hence the code without rules in it.) And you have a half decent Staff application installed.... raDiO_acTivE www.downtown-to.com Quote Link to comment Share on other sites More sharing options...
Jameoo Posted July 5, 2008 Share Posted July 5, 2008 Re: V2 Staff Applications! just like i thaught m8 u get sent the message but it dusnt update (0) to (1) Quote Link to comment Share on other sites More sharing options...
Tonka Posted July 5, 2008 Share Posted July 5, 2008 Re: V2 Staff Applications! what's not updating? be more specific Quote Link to comment Share on other sites More sharing options...
radio_active Posted July 5, 2008 Author Share Posted July 5, 2008 Re: V2 Staff Applications! Sorry dude, thats in your own code, works fine for me :-) Quote Link to comment Share on other sites More sharing options...
iR00T Posted July 5, 2008 Share Posted July 5, 2008 Re: V2 Staff Applications! That's the error i have and me and a mate is helping me out with it. Staff Applications 2=Admin 3=Secretary 5=Assistant If you find any other member positions please report it to a game owner right away! QUERY ERROR: Query was SELECT * FROM staffapps ORDER BY appID DESC Quote Link to comment Share on other sites More sharing options...
radio_active Posted July 6, 2008 Author Share Posted July 6, 2008 Re: V2 Staff Applications! I edited the posts with the code i have on my site...If you are getting errors, please tell me the error... If you are not recieving mails, it is most likly because in your database your mail count is on -5 or something, so sending yourself a few mails and it will be back to normal... Otherwise post errors as this code works fine for V2 for me! Quote Link to comment Share on other sites More sharing options...
timpitts Posted July 6, 2008 Share Posted July 6, 2008 Re: V2 Staff Applications! Fatal error: Call to undefined function app_view() in /home/dale/public_html/staff.php on line 8 this is line 8 of staff.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. can any 1 tell me wat is rong plz Quote Link to comment Share on other sites More sharing options...
iR00T Posted July 6, 2008 Share Posted July 6, 2008 Re: V2 Staff Applications! Fatal error: Call to undefined function app_view() in /home/dale/public_html/staff.php on line 8 this is line 8 of staff.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. can any 1 tell me wat is rong plz try puttin all the things togather and yeah but i added exactly same no probs well one but i fixed it real simple coding really anit that hard but my error tok me abnit and now its still messed so no staff apps simple just mail the id 1 for it why have apps xD Quote Link to comment Share on other sites More sharing options...
radio_active Posted July 7, 2008 Author Share Posted July 7, 2008 Re: V2 Staff Applications! Im not quite sure where all your errors are coming from??? when adding the cases and the functions be sure to put the functions where you put them in the cases.. eg case0:ran case 1: app ccase2: app2 case3: app3 If you place the cases in an order like that so you have the 3 cases after case ran(made up case), you have to put the functions after the function ran(made up function) funtion ran() function app1() Function app2() funcction app3() and that way you should not get an error... Quote Link to comment Share on other sites More sharing options...
timpitts Posted July 9, 2008 Share Posted July 9, 2008 Re: V2 Staff Applications! ive got it working i took some code off the other staff app in the forum and took ur sql and then it works fine thanks Quote Link to comment Share on other sites More sharing options...
Sethenor Posted August 9, 2008 Share Posted August 9, 2008 Re: V2 Staff Applications! works a treat cheers man Quote Link to comment Share on other sites More sharing options...
zbirc3 Posted August 9, 2008 Share Posted August 9, 2008 Re: V2 Staff Applications! can someone plz make it so i can view the submitted aps? Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted August 10, 2008 Share Posted August 10, 2008 Re: V2 Staff Applications! Slightly better version staff.php additions: 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...
Jameoo Posted August 10, 2008 Share Posted August 10, 2008 Re: V2 Staff Applications! all works but this $db->query("INSERT INTO mail VALUES('', '0', 'System', '{$_GET['user']}', unix_timestamp(),'Your Staff Application' ,'Congratulations, your application has been reviwed and you are now a staff member. Please view our rules so you do not loose this job.')",$c); still gets sent out BUT Mail (0) Dosnt Update To Mail (1) Just Stays As Mail (0) Quote Link to comment Share on other sites More sharing options...
zbirc3 Posted August 10, 2008 Share Posted August 10, 2008 Re: V2 Staff Applications! EDIT: FIXED i was being dumb in smenu.php i had staff.php?STAFFAPPS THING HERE instead of staff_special.php?STAFFAPPS THING HERE (I just used staff_special as an example) Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted August 10, 2008 Share Posted August 10, 2008 Re: V2 Staff Applications! not bad check mine out on killah-city.net its like yours just a little more advanced Quote Link to comment Share on other sites More sharing options...
Joel Posted August 11, 2008 Share Posted August 11, 2008 Re: V2 Staff Applications! Nice work! :-) Quote Link to comment Share on other sites More sharing options...
radio_active Posted August 12, 2008 Author Share Posted August 12, 2008 Re: V2 Staff Applications! not bad check mine out on killah-city.net its like yours just a little more advanced I browsed but link was striked and re directed, didnt know the name of the file so couldnt manually go there! Quote Link to comment Share on other sites More sharing options...
Kamakaze Posted August 15, 2008 Share Posted August 15, 2008 Re: V2 Staff Applications! It's kinda good but it goes to admin.php and it says V2 not V1 so i will have to fix that i tested the app i applied for admin i got set a sec or assist so it's screwed up! Quote Link to comment Share on other sites More sharing options...
radio_active Posted August 16, 2008 Author Share Posted August 16, 2008 Re: V2 Staff Applications! It's kinda good but it goes to admin.php and it says V2 not V1 so i will have to fix that i tested the app i applied for admin i got set a sec or assist so it's screwed up! Simple, re-direct the two links in the main file to what you have it set as, and as for the Admin secretary and asssisstant, you have to edit the code to suit your game! So i have 2=admin, 3=sec and 5=assisstant, you will have to change yours! Quote Link to comment Share on other sites More sharing options...
Danny696 Posted May 1, 2009 Share Posted May 1, 2009 Re: [mccode v2] Staff Applications! sorry to bring up an old topic but if u wanna get the mail to go from Mail (0) to Mail (1) add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. on the line after where it sends out the mail 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.