Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
Xeno14
New Member
New Member



Joined: Oct 30, 2004
Posts: 17

PostPosted: Mon Nov 01, 2004 1:54 pm Reply with quote

im trying to set up a clan site and cant find an enlistment module.
ive tryed codteam or watever and the site dont work.

any sites anyone can think of?
thx in advance.
 
View user's profile Send private message
ecvej
Hangin' Around



Joined: Oct 10, 2004
Posts: 45
Location: Northampton, UK

PostPosted: Tue Nov 02, 2004 9:26 am Reply with quote

Please forgive my ignorance, but what does an enlistment module actually do? aybe someone could help you code one if they knew what it was Razz
 
View user's profile Send private message
Xeno14







PostPosted: Tue Nov 02, 2004 10:57 am Reply with quote

lol, thats ok, an enlistement module is when somebody applys to join a clan, like aform, it usually has info on it like,
name
ingame name
emial
why you want to join this clan
ect
ect

i dont want it to conflict with my site registration, a seperate mosule, an emial gets sent to the admin, and he can review whether to allow the person to join or not.

thats basicaly what it is
plz make any suggestion.
 
fury
Worker
Worker



Joined: Sep 09, 2003
Posts: 165

PostPosted: Tue Nov 02, 2004 4:48 pm Reply with quote

TRy Vwar works awesome here is the link
http://www.vwar.de/
the best i have found ever!!!!!!
 
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Tue Nov 02, 2004 4:57 pm Reply with quote

CNB Your Account lets your add what ever fields to the user info page though there are still some active bugs its looking better all the time.

_________________
[b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 
View user's profile Send private message
Themis
Worker
Worker



Joined: Nov 17, 2003
Posts: 131

PostPosted: Sun Nov 07, 2004 8:59 am Reply with quote

I am also looking for game/clan based modules. Like one where you can list your main and alternate characters. And one where techs for weapons/tools/armor could be uploaded and updated as need be. I have heard that vwar is very hard to install. I am having troubles with new modules showing up as it is. Would this CNB Your account be easier to install? That would at least give me the option for my members to add their char/alt names. And where might I find it?

Thanks Smile

_________________
Shonierose
Shonie's Retreat
www.shonie.com 
View user's profile Send private message Visit poster's website AIM Address
sixonetonoffun







PostPosted: Sun Nov 07, 2004 9:32 am Reply with quote

https://colaborar.softwarelivre.gov.br/project/showfiles.php?group_id=21
Yes you get the option to add as many fields to the nuke registration as you wish. Installation is as simple as uploading the files and while logged in as admin running the installer. There are a few odd bugs in it but those that are reported should be fixed in the next release. One of the best things about it is it plays well with NSN Groups.
 
Donovan
Client



Joined: Oct 07, 2003
Posts: 735
Location: Ohio

PostPosted: Tue Nov 09, 2004 11:10 pm Reply with quote

I have an enlistment form I did when I was first learning PHP. (Still learning)

It is pretty rudimentary.

Here is the lang-english.php

Code:
<?php 


/**************************************************************************/
/* PHP-NUKE: Advanced Content Management System                           */
/* ============================================                           */
/*                                                                        */
/* This is the language module with all the system messages               */
/*                                                                        */
/**************************************************************************/


define("_SEND","Send");
define("_YOURNAME","Your Name");
define("_MESSAGE","Message");
define("_YOUREMAIL","Your Email");
define("_FEEDBACKTITLE","Enlistment Form");
define("_FBENTERNAME","ERROR: Please enter your name!");
define("_FBENTEREMAIL","ERROR: Please enter your e-mail address!");
define("Recruit E-mail","Sender's Email");
define("Recruit","Sender's Name");
define("Recruit Callsign","CoD Name");
define("What is your ICQ number?","sender_icq");
define("_FBMAILSENT","Mail has been sent!");
define("_FBTHANKSFORCONTACT","Thank you for enlisting.");
define("_FBENTERMESSAGE","ERROR: Please enter a message!");
?>


Here is the enlistment.php

Code:
<?php 


if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
    die ("You can't access this file directly...");
}

require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);

/**********************************/
/* Configuration                  */
/*                                */
/* You can change this:           */
/* $index = 0; (right side off)   */
/**********************************/
$index = 0;
$subject = "$sitename ".Recruitment."";
/**********************************/

include("header.php");

if ($cookie[1] != "") {
    $sql = "SELECT name, username, user_email FROM ".$user_prefix."_users WHERE user_id='$cookie[0]'";
    $result = $db->sql_query($sql);
    $row = $db->sql_fetchrow($result);
    if ($row[name] != "") {
   $sender_name = $row[name];
    } else {
   $sender_name = $row[username];
    }
    $sender_email = $row[user_email];
}

$block="<html> \n"
      ."<head> \n"
      ."<title>Recruitment</title> \n"
      ."<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"> \n"
      ."</head> \n"
      ."\n"
      ."<body bgcolor=\"#CCCCCC\"><table width=\"100%\" border=\"1\" cellspacing=\"1\" cellpadding=\"1\" > \n"
      ."<tr><td> \n"
      ."\n"
      ."      <center><b><font color=\"#FF0000\" face=\"Army, Army Condensed, Army Expanded, Army Hollow, Army Thin, Army Wide\"><h2>3rd Infantry Division Enlistment Form</h2></font></b></center> \n"
      ."     <font color=\"#000000\" face=\"Army, Army Condensed, Army Expanded, Army Hollow, Army Thin, Army Wide\"><br> \n"
      ."      <br><center><b>If you want to be a Marne Soldier...</b><br> \n"
      ."      <b>If you have the heart and the courage...</b><br> \n"
      ."      <b>The commitment and the dedication...</b><br> \n"
      ."      <b>To have fun, then we're the Unit for you!</b> \n"
      ."   </center></font> \n"
      ."\n"
      ."<FORM METHOD=\"post\" ACTION=\"modules.php?name=Application_Form\"> \n"
      ."      <font color=\"#FFFFFF\"> \n"
      ."      <INPUT type=\"hidden\" name=\"opi\" value=\"ds\"> \n"
      ."      </font> \n"
      ."      <TABLE BORDER=\"0\" WIDTH=\"100%\"> \n"
      ."        <TR> \n"
      ."          <TD COLSPAN=\"2\" ALIGN=\"CENTER\"> <font color=\"#FFFFFF\" class=\"content\">Please \n"
      ."            provide the following contact information:</font></TD> \n"
      ."        </TR> \n"
      ."        <TR> \n"
      ."          <TD ALIGN=\"RIGHT\" WIDTH=\"50%\"> <font color=\"#FFFFFF\"><b>Please provide \n"
      ."            your real name:</b><br> \n"
      ."            </font></TD> \n"
      ."          <TD ALIGN=\"LEFT\" WIDTH=\"50%\"> <font color=\"#FFFFFF\"> \n"
      ."            <INPUT type=\"text\" NAME=\"sender_name\" VALUE=\"\" SIZE=30> \n"
      ."            </font></TD> \n"
      ."        </TR> \n"
      ."        <TR> \n"
      ."          <TD ALIGN=\"RIGHT\"> <font color=\"#FFFFFF\"><b>Please provide your Call \n"
      ."            of Duty name:</b><br> \n"
      ."            </font></TD> \n"
      ."          <TD> <font color=\"#FFFFFF\"> \n"
      ."            <INPUT type=\"text\" NAME=\"sender_callsign\" VALUE=\"\" SIZE=30> \n"
      ."            </font></TD> \n"
      ."        </TR> \n"
      ."        <TR> \n"
      ."          <TD ALIGN=\"RIGHT\"> <font color=\"#FFFFFF\"><b>Please provide your email address:</b><br></td> \n"
      ."          <TD> <font color=\"#FFFFFF\"> \n"
      ."            <INPUT type=\"text\" NAME=\"sender_email\" VALUE=\"\" SIZE=30> \n"
      ."            </font></TD> \n"
      ."        </TR> \n"
      ."        <TR> \n"
      ."          <TD ALIGN=\"right\"> <font color=\"#FFFFFF\"><b>Please provide \n"
      ."               your ICQ number:</b> <font color=\"#FF0000\">(ICQ required) \n"
      ."           </font></TD> \n"
      ."          <TD> <font color=\"#FFFFFF\"> \n"
      ."            <INPUT type=\"text\" NAME=\"sender_icq\" VALUE=\"\" SIZE=30> \n"
      ."            </font></TD> \n"
      ."        </TR> \n"
      ."        <TR> \n"
      ."          <TD ALIGN=\"right\"> <font color=\"#FFFFFF\"><b>Primary weapon of choice</b>: \n"
      ."            </font></TD> \n"
      ."          <TD ALIGN=\"LEFT\"> <font color=\"#FFFFFF\"><B> \n"
      ."            <SELECT NAME=\"weapon\"> \n"
      ."              <OPTION VALUE=\"---\">Pick One</OPTION> \n"
      ."              <OPTION VALUE=\"M1 Garand\">M1 Garand</OPTION> \n"
      ."              <OPTION VALUE=\"M1 Carbine\">M1 Carbine</OPTION> \n"
      ."              <OPTION VALUE=\"Thompson SMG M1A1\">Thompson SMG M1A1</OPTION> \n"
      ."              <OPTION VALUE=\"Browning Automatic Rifle (BAR) M1918A2\">Browning \n"
      ."              Automatic Rifle (BAR) M1918A2</OPTION> \n"
      ."            </SELECT> \n"
      ."            </B> </font></TD> \n"
      ."        </TR> \n"
      ."      </table> \n"
      ."      <table> \n"
      ."        <TR> \n"
      ."          <TD VALIGN=\"MIDDLE\" ALIGN=\"right\"> <font color=\"#FFFFFF\"><b>Have you \n"
      ."            ever been in a realism unit before</b>: </font></TD> \n"
      ."          <TD ALIGN=\"LEFT\"> <font color=\"#FFFFFF\"> \n"
      ."            <INPUT TYPE=\"RADIO\" NAME=\"claned\" VALUE=\"Yes\" CHECKED> Yes \n"
      ."            <INPUT TYPE=\"RADIO\" NAME=\"claned\" VALUE=\"No\"> No </font></TD> \n"
      ."        </TR> \n"
      ."        <TR> \n"
      ."          <TD VALIGN=\"TOP\" ALIGN=\"right\"> <font color=\"#FFFFFF\"><b>Why do you \n"
      ."            play Call of Duty?</b> </font></TD> \n"
      ."          <TD ALIGN=\"LEFT\"> <font color=\"#FFFFFF\"> \n"
      ."            <TEXTAREA NAME=\"whyplay\" ROWS=\"5\" COLS=\"35\"></TEXTAREA> \n"
      ."            </font></TD> \n"
      ."        </TR> \n"
      ."        <TR> \n"
      ."          <TD VALIGN=\"TOP\" ALIGN=\"right\"> <font color=\"#FFFFFF\"><b>What skill, \n"
      ."            talent or other item will you bring to the unit?</b> </font></TD> \n"
      ."          <TD ALIGN=\"LEFT\"> <font color=\"#FFFFFF\"> \n"
      ."            <TEXTAREA NAME=\"Skills_Talents\" ROWS=\"5\" COLS=\"35\"></TEXTAREA> \n"
      ."            </font></TD> \n"
      ."        </TR> \n"
      ."        <TR> \n"
      ."          <TD VALIGN=\"TOP\" ALIGN=\"right\"> <font color=\"#FFFFFF\"><b>Any additional \n"
      ."            comments or things we should know?</b> </font></TD> \n"
      ."          <TD ALIGN=\"LEFT\"> <font color=\"#FFFFFF\"> \n"
      ."            <TEXTAREA NAME=\"Additional\" ROWS=\"5\" COLS=\"35\"></TEXTAREA> \n"
      ."            </font></TD> \n"
      ."        </TR> \n"
      ."        <TR> \n"
      ."          <TD VALIGN=\"MIDDLE\" ALIGN=\"right\" WIDTH=\"40%\"> <font color=\"#FFFFFF\"><b>Are \n"
      ."            you willing to wear the [3rd ID] tag after your name at all times?</b>: \n"
      ."            </font></TD> \n"
      ."          <TD ALIGN=\"left\"> <font color=\"#FFFFFF\"> \n"
      ."            <INPUT TYPE=\"RADIO\" NAME=\"wearit\" VALUE=\"Yes\" CHECKED> Yes \n"
      ."            <INPUT TYPE=\"RADIO\" NAME=\"wearit\" VALUE=\"No\"> No </font></TD> \n"
      ."        </TR> \n"
      ."        <TR> \n"
      ."          <TD COLSPAN=\"2\" ALIGN=\"CENTER\"><p><font color=\"#FFFFFF\"> Please note \n"
      ."              that applying does not mean you are in the [3rd ID]. You'll be watched \n"
      ."              closely on the forum and in game on our server for a length of time. \n"
      ."              Stay active on the server and on the forums (cant stress this enough). \n"
      ."              If you display the dedication, commitment, maturity, and will uphold \n"
      ."              the honor of the 3rd Infantry Division, then after this trial period \n"
      ."              will you be given your draft notice and recruited into the 3rd ID. \n"
      ."              Skill alone does not determine admittance, as attitude plays a big \n"
      ."              part in the decision as well.<font color=\"#FF0000\"><b> Please visit our forums and post this same \n"
      ."              information in the Recruitment forums.</b></font><font color=\"#FFFFFF\">This way your enlistment is tracked in \n"
      ."              two different places and will not get lost.  Welcome to the 3rd Infantry Division Forums \n"
      ."             <p><font color=\"#FFFFFF\">Good luck Soldier!!</font></p></TD> \n"
      ."        </TR> \n"
      ."        <TR> \n"
      ."          <TD COLSPAN=\"2\" ALIGN=\"CENTER\"> <font color=\"#FFFFFF\"> \n"
      ."            <INPUT TYPE=\"submit\" NAME=\"submit\" VALUE=\"Send\"> \n"
      ."            <INPUT TYPE=\"reset\"VALUE=\"Reset\"></font></TD> \n"
      ."        </TR> \n"
      ."      </TABLE> \n"
      ."    </FORM></center> \n"
      ."        </td></TR> \n"
      ."      </TABLE> \n"
      ."</body> \n"
      ."</html> \n";

OpenTable();
if ($opi != "ds") {
    echo "$block";
} elseif ($opi == "ds") {
    if ($sender_name == "") {
   $name_err = "<center><font class=\"option\"><b><i>"._FBENTERNAME."</i></b></font></center><br>";
   $send = "no";
    }
    if ($sender_email == "") {
   $email_err = "<center><font class=\"option\"><b><i>"._FBENTEREMAIL."</i></b></font></center><br>";
   $send = "no";
    }
    if ($send != "no") {
   $sender_name = removecrlf($sender_name);
   $sender_email = removecrlf($sender_email);
   $msg = "$sitename\n\n";
   $msg .= ""._SENDERNAME.": $sender_name\n";
   $msg .= ""._SENDER_CALLSIGN.": $sender_callsign\n";
   $msg .= ""._SENDEREMAIL.": $sender_email\n";
   $msg .= ""._SENDER_ICQ.": $sender_icq\n";
   $msg .= ""._WEAPON.": $weapon\n";
   $msg .= ""._CLANED.": $claned\n";
   $msg .= ""._WHYPLAY.": $whyplay\n";
   $msg .= ""._SKILLS_TALENT.": $Skills_Talent\n";
   $msg .= ""._ADDITIONAL.": $Additional\n";
   $msg .= ""._WEARIT.": $wearit\n";     
   $to ="recruitment@3rd-infantry-division.net";
   $mailheaders = "From: $sender_name <$sender_email>\n";
   $mailheaders .= "Reply-To: $sender_email\n\n";
   mail($to, $subject, $msg, $mailheaders);
   echo "<P><center>"._FBMAILSENT."</center></p>";
   echo "<P><center>"._FBTHANKSFORCONTACT."</center></p>";
    } elseif ($send == "no") {
   OpenTable2();
   echo "$name_err";
   echo "$email_err";
   echo "$message_err";
   CloseTable2();
   echo "<br><br>";
   echo "$block";   
    }
}

CloseTable();     
include("footer.php");

?>


You will have to make the neccessary changes for your Enlistment form.

Enjoy!
 
View user's profile Send private message Visit poster's website ICQ Number
evolution159th
New Member
New Member



Joined: Oct 27, 2005
Posts: 2

PostPosted: Thu Oct 27, 2005 2:29 pm Reply with quote

I have got the enlistment module up and running and a few of the things changed that I needed to including my email in the to: area, but for some reason the <form action=modules.php?name=Application_Form> has got me thrown off... How does this act on a file that doesnt exist or what file is this supposed to link to. Basically the mailsent and thankyou page both arent working properly.. Im not so familiar with PHP so im not sure why I might be having this problem but I would greatly appreciate some assistance on this. Thanks -selu159.com webmaster
 
View user's profile Send private message ICQ Number
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©