seb4774 Posted October 19, 2006 Posted October 19, 2006 I created this new staffapp script because after alot of people applying for staff they all mailed me asking when will they get mail if they in or not. So this function will give you a chance to automatically decline or choose them for the postion they chose. It simple but will save you some hassle :). create file staffapps.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. add this to admin.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and add this table in mysql You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. make sure to change the user_level if they incorrect. currently its 3=Admin 5=Secretary 6=Assistant if your running on dabs codes it should be correct. alos visit my game deadlywarsonline.com. not open yet but it will be soon. :). im also looking for some staff if interested once opened. Quote
sevendet Posted October 19, 2006 Posted October 19, 2006 staff applications where should i insert that in the admin.php? Quote
seb4774 Posted October 19, 2006 Author Posted October 19, 2006 staff applications put the case 'appview': app_view(); break; case 'appaccept': app_accept(); break; case 'appdeny': app_deny(); break; anywhere in the case section. its in the higher part of the script. add the link anywhere where the links are. and the rest goes on the bottom. Quote
sevendet Posted October 19, 2006 Posted October 19, 2006 staff applications thanks worked awesome Quote
3XTR3M3 Posted February 7, 2007 Posted February 7, 2007 Re: staff applications Fatal error: Unknown function: app_view() in /home/liammic/public_html/admin.php on line 98 Quote
Jake Posted February 7, 2007 Posted February 7, 2007 Re: staff applications Yeah...it doesn't work for lite. Quote
3XTR3M3 Posted February 15, 2007 Posted February 15, 2007 Re: staff applications Parse error: parse error, unexpected '&', expecting '(' in /home/www/land-of-criminals.freehostia.com/staffapp.php on line 4 Quote
lem0n Posted February 16, 2007 Posted February 16, 2007 Re: staff applications it was clearly stated above by jake that it doesnt work for lite Quote
SubGhetto Posted February 21, 2007 Posted February 21, 2007 Re: staff applications anyone know where i can buy a staff apps mod for v2? and how much Quote
UCC Posted February 21, 2007 Posted February 21, 2007 Re: staff applications It's sooo tempting to try and sell you this but I'll resist the urge. Here's alternate instructions for 2.0. Dont consider them fool proof, I may have missed something. But mine is working.... Also, I ditched the ASCII codes. And I did this out of the kindness of my heart, I dont want any applicants. LOL create file staffapps.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. add this to staff.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and add this table in mysql You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Modify smenu.php to look like this... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. make sure to change the user_level if they incorrect. currently its 3=Admin 5=Secretary 6=Assistant if your running on dabs codes it should be correct. Quote
EliteCoder Posted February 22, 2007 Posted February 22, 2007 Re: staff applications here is a more updated version of staff apps that seb did all thanks to spellbyte <?php session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); if($_POST['app']) { mysql_query("INSERT INTO staffapps VALUES('',$userid,'{$_POST['pos']}','{$_POST['app']}')", $c) or die("Your staff application could not be processed. Make sure you have filled out the form completely"); print "Staff application processed. You will receive a mail in less than 3 days with our decision. Good luck"; } else print "<h3>Staff Application</h3> <form action='staffapps.php' method='post'> Position: <select name='pos'><option value='3'>Admin</option><option value='5'>Secretary</option><option value='6'>Assistant</option></select></br> Why do you deserve the position?: <textarea rows='7' cols='40' name='app'>{$_GET['app']}</textarea> <input type='submit' value='Submit Application' /></form>"; $h->endpage; ?> i think it only works for V1.1 Quote
ignite Posted March 3, 2007 Posted March 3, 2007 Re: staff applications Im using v1.1 but it the text are box it comes up with {Array['app']}. It still works but i was just wondering how to get read of that. Quote
spellbyte ® Posted March 3, 2007 Posted March 3, 2007 Re: staff applications there seemed to be some incorrect bits in there so here it is cleaned up again You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
ignite Posted March 3, 2007 Posted March 3, 2007 Re: staff applications It now sese Array'app' in the text area. Quote
Vorlen Posted March 3, 2007 Posted March 3, 2007 Re: staff applications It now sese Array'app' in the text area. What version of PHP does your server have? I only ask because that sort of thing COULD be the problem, doubt it, but it's possible :P Quote
ignite Posted March 3, 2007 Posted March 3, 2007 Re: staff applications PHP version 4.4.5 is what it sese. Quote
Decepti0n Posted March 3, 2007 Posted March 3, 2007 Re: staff applications <textarea rows='7' cols='40' name='app'>$_GET'app'</textarea> to <textarea rows='7' cols='40' name='app'>$_GET['app']</textarea> Quote
ignite Posted March 3, 2007 Posted March 3, 2007 Re: staff applications <textarea rows='7' cols='40' name='app'>$_GET'app'</textarea> to <textarea rows='7' cols='40' name='app'>$_GET['app']</textarea> Thanks i found i had to add { } round $_GET['app'] bit to. But it works fine now so thanks again. Quote
twist_killer Posted March 4, 2007 Posted March 4, 2007 Re: staff applications can some1 create a lite version of it please Quote
Decepti0n Posted March 4, 2007 Posted March 4, 2007 Re: staff applications $db->query is the instance of the database class...and classes are the basis for oop, which is waaaaaay more efficent Quote
Satans_Pimp Posted June 19, 2007 Posted June 19, 2007 Re: staff applications You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
solar Posted June 21, 2007 Posted June 21, 2007 Re: staff applications You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. [/quote] Where do I add this code to ? Thanks agin for any help givin :? [/quote] find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. then add that before it and make sure u change admin.php to staff.php Quote
epinard Posted June 24, 2007 Posted June 24, 2007 Re: [mccode] staff applications When i go to the staff panel and go to staff apps it just says: Unknown column 'appID' in 'order clause'........Anyone know how to fix? Quote
iseeyou94056 Posted July 13, 2007 Posted July 13, 2007 Re: [mccode] staff applications the user levels are wrong and i am a dumba** and dont know how 2 change them Quote
HITMAN 17 Posted September 6, 2007 Posted September 6, 2007 Re: [mccode] staff applications hmm not bad ppl Quote
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.