Jump to content
MakeWebGames

[mccode] staff applications


seb4774

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 3 months later...

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.

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 2 weeks later...

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.

Link to comment
Share on other sites

  • 3 months later...

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

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...