Mod application

Started by the_evil_one, January 24, 2007, 11:01:45 AM

Previous topic - Next topic

the_evil_one

Hello everyone :D

i was wandering if ne1 could or has made an moderator application mod, where the user clicks a link and it would take them to an application form and they can put abit about them and why they would like to be mod. Something like that anyway :D I would love this :)

Well let me know

Thanks in advance,

Sarah

Visualcode

The_evil_one, why not just have them send you a PM? Or, you could add a forum where they could do such a thing. Or, is there something specific you would want from a mod that these can not offer?

TheWrath!

if you have a thread/forum for this everyone can see it.  in vbulliten i know you can set it up that you and the admins can see the topic you created.

if you have an application you can have it go to everyone who is an admin, you can have it set up to send a pm or even an email.  personally an email is best.  i think i have some code here evil that could work...there is only one glitch you will have have it set up that it would have the theme from the forum. it would be a seperate page. i have used it and it works usually lol.  i can post the code later on.

thanks

bp

TheWrath!

#3
create a file like contact.html. Put the following code in there.

Quote
<p class="menu-header">Contact Form</p><form action="feedback.php" method="post">
<table width="596" border="0" cellpadding="8" cellspacing="8" summary="feedback form">
<tr><td>Name:</td><td><input type="text" name="name" size="25" /></td></tr>
<tr><td>Email address:</td><td><input type="text" name="email" size="25" /></td></tr>
<tr><td>Subject</td><td><input type="text" name="subject" size="25" /></td></tr>

<tr>
<td colspan="2">
Comments<br />
<textarea rows="15" cols="100" name="comments"></textarea>
</td>
</tr>
<tr>
<td align="center" colspan="2">
<input type="submit" value="Send Feedback" /><br />
<a href="http://www.thesitewizard.com/"></a></td>
</tr>
</table>
</form>

Then create a file called feedback.php with the following code
Quote
<?
/*
    CHFEEDBACK.PHP Feedback Form PHP Script Ver 2.07
    Generated by thesitewizard.com's Feedback Form Wizard.
    Copyright 2000-2006 by Christopher Heng. All rights reserved.
    thesitewizard and thefreecountry are trademarks of Christopher Heng.

    $Id: phpscript.txt,v 1.8 2006/02/28 13:07:11 developer Exp $

    Get the latest version, free, from:
        http://www.thesitewizard.com/wizards/feedbackform.shtml

   You can read the Frequently Asked Questions (FAQ) at:
      http://www.thesitewizard.com/wizards/faq.shtml
   
   I can be contacted at:
      http://www.thesitewizard.com/feedback.php
   Note that I do not normally respond to questions that have
   already been answered in the FAQ, so *please* read the FAQ.

    LICENCE TERMS
   
    1. You may use this script on your website, with or
    without modifications, free of charge.
   
    2. You may NOT distribute or republish this script,
    whether modified or not. The script can only be
    distributed by the author, Christopher Heng.
   
    3. THE SCRIPT AND ITS DOCUMENTATION ARE PROVIDED
    "AS IS", WITHOUT WARRANTY OF ANY KIND, NOT EVEN THE
    IMPLIED WARRANTY OF MECHANTABILITY OR FITNESS FOR A
    PARTICULAR PURPOSE. YOU AGREE TO BEAR ALL RISKS AND
    LIABILITIES ARISING FROM THE USE OF THE SCRIPT,
    ITS DOCUMENTATION AND THE INFORMATION PROVIDED BY THE
    SCRIPTS AND THE DOCUMENTATION.

    If you cannot agree to any of the above conditions, you
    may not use the script.
   
    Although it is NOT required, I would be most grateful
    if you could also link to thesitewizard.com at:

       http://www.thesitewizard.com/

*/

// ------------- CONFIGURABLE SECTION ------------------------

// $mailto - set to the email address you want the form
// sent to, eg
//$mailto      = "[email protected]" ;

$mailto = "email goes here" ;

// $subject - set to the Subject line of the email, eg
//$subject   = "Feedback Form" ;

$subject = "yoursubjecthere" ;

// the pages to be displayed, eg
//$formurl      = "http://www.example.com/feedback.html" ;
//$errorurl      = "http://www.example.com/error.html" ;
//$thankyouurl   = "http://www.example.com/thankyou.html" ;

$formurl = "./contact.html" ;
$errorurl = "./errors.html" ;
$thankyouurl = "./thankyou.html" ;

$uself = 1;

// -------------------- END OF CONFIGURABLE SECTION ---------------

$headersep = (!isset( $uself ) || ($uself == 0)) ? "\r\n" : "\n" ;
$name = $_POST['name'] ;
$email = $_POST['email'] ;
$subject = $_POST['subject'];
$comments = $_POST['comments'] ;
$http_referrer = getenv( "HTTP_REFERER" );

if (!isset($_POST['email'])) {
   header( "Location: $formurl" );
   exit ;
}
if (empty($name) || empty($email) || empty($comments)) {
   header( "Location: $errorurl" );
   exit ;
}

if (empty($name) || empty($email) || empty ($subject) || empty($comments)) {
   header( "Location: $errorurl" );
   exit ;
}



if ( ereg( "[\r\n]", $name ) || ereg( "[\r\n]", $email ) ) {
   header( "Location: $errorurl" );
   exit ;
}



if (get_magic_quotes_gpc()) {
   $comments = stripslashes( $comments );
}

$messageproper =

   "This message was sent from:\n" .
   "$http_referrer\n" .
   "------------------------------------------------------------\n" .
   "Name of sender: $name\n" .
   "Email of sender: $email\n" .
   "Subject: $subject\n".
   "------------------------- COMMENTS -------------------------\n\n" .
   $comments .
   "\n\n------------------------------------------------------------\n" ;

mail($mailto, $subject, $messageproper,
   "From: \"$name\" <$email>" . $headersep . "Reply-To: \"$name\" <$email>" . $headersep . "X-Mailer: chfeedback.php 2.07" );
header( "Location: $thankyouurl" );
exit ;

?>
[/quote

you will also want to create two more html files called errrs.html and thankyou.html, what to put in them is self explanatory.

the_evil_one

Thanks :D i will give it a go :)

*hugs*

sarah


Visualcode

BoroPride, those are some good points, I hadn't thought about multiple admins. My forum has just one.. lol

TheWrath!


Advertisement: