Guild Recruitment Forms

SlompOchomp

New Member
World of Warcraft Guild Recruitment Form

Version: 0.3.4, by sweede (Coder)

--------------------------------------------------------------------------------
Released: 10 Dec 2008 Last Update: 14 Feb 2009 Installs: 40
Supported Uses Plugins Template Edits Auto-Template Additional Files Re-usable Code Translations


This is a quick release of my Guild Application form

This uses the Online Gaming Recruitment addition as its base ( Online Gaming Recruitment Application System - vBulletin.org Forum ) with a lot of modification to be warcraft specific and have part of it dynamicly created.

Also included is a small tool i wrote to automaticly approve/deny applications via thread prefixes and move threads to a "Graveyard".

From the Readme.
----------------------------------------
All of the options in the control panel may be self explainitory (see images).

Editing the Application form template:
Adding new text field questions are automatic and done in the control panel.
Adding any other field is done through the template editor

Example:
<input type="text" size="30" value="$current_server" name="app[current_server]" />

Any application question must be in the format name="app[XXXXX]" , the value attribute
is the php variable for the preview.

Example of Dropdown (checkbox or radio fields follow similar concepts):
<select name="app[character_class]">
<option value="Druid" <if condition="$character_class == 'Druid'">selected="selected"</if> >Druid</option>
</select>

Every form MUST have the following code at the begining of the form
<form name="vbform" action="newthread.php" method="post" onSubmit="return vB_Editor['$editorid'].prepare_submit(0, $vboptions[postminchars])">
<input type="hidden" value="$formname" name="do" />
<input type="hidden" value="submit" name="action" />
<input type="hidden" name="posthash" value="$posthash" />
<input type="hidden" name="poststarttime" value="$poststarttime" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="s" value="$session[sessionhash]" />

and the following at the end of the form.
<input type="submit" value="Submit" name="submit" style="font-family: Verdana; font-size: 10pt" class="button" />
<input type="submit" value="Preview" name="submit" style="font-family: Verdana; font-size: 10pt" class="button" />
<input type="reset" value="Reset" name="reset" style="font-family: Verdana; font-size: 10pt" class="button" />

For the Comment Boxes, you place the variable, $comment_boxes , in the position you want them to appear in the template.

If you want unregistered users to post, you will need
<if condition="!$show['member']"> $human_verify </if>
somewhere in your application form.


Editing the Application Post Template:
Editing this is very straight forward. You put the php variable of the form field name, in the proper template location.
For example, if you have <input name="app[MyQuestion]"> , then you would put $MyQuestion in your template.

The default template requires a new BBCode entry (See images bbCode_Class.png and bbCode_Style.png)

For the Textarea Questions, you will need the following variable, $guild_app_answer_qa_message somewhere in your form.


Thread Prefixes
This makes use of Extensive Prefixes. See the PrefixExample and ThreadPrefixes images.

Application Tools:
This makes it very simple to change prefixes or move applications to other forums. Some of the important items are now a vbulletin option.
 

SlompOchomp

New Member
MMO Recruitment (EQ, EQ2, LotR, Vanguard, WoW, Matrix Online, SWG, FFO)
Version: 1.4, by turnipofdoom (Coder/Designer)

________________________________________
Released: 23 Jun 2007 Last Update: 13 Oct 2008
Supported DB Changes Uses Plugins Template Edits Additional Files


vBadvanced MMO Recruitment Modules Supporting :
Age of Conan, Everquest, Everquest2, Lord of the Rings Online, Vanguard and World of Warcraft, Star Wars Galaxy, Matrix Online, Final Fantasy Online


You should remove the current product and import the new file (not overwrite) for best results.

Some installs require the update template to have $PHP_SELF, some it breaks on. If you get a double URL when updating then remove $PHP_SELF/ from adv_portal_(game)_recruit_updater

Added Age Of Conan Support.

Removed the requirement for numbers in the update fields for some games (LOTR and AOC). I will remove the rest shortly, its a lot of template edits and im out of time for this weekend. (you can put html in the boxes now font colors etc)

Also added beta multigame support.

For this to work you choose the game you want per VBA page as the module so instead of init_recruit.php it would be eq_recruit.php, lotr_recruit.php.

You then need to go to the admin CP and switch to each game you want to use and populate the initial data for it.

The update form works much the same. Put it on a page as per directions below, use the admincp option to switch between games you want to update.

I will be working on multi support more. This is just a beta.

If you changed any of your templates you will need to revert them after the product import!

This is a VBAdvanced add on for the portal home page.. It will display a list of classes you are recruiting for your selected game, it also provides (a now templated) form to update the status, permissions for the form are controlled via group id's (primary group id) in the admin panel.

The zip file has a complete set of instructions for installing and removing the mod.

PLEASE CLICK INSTALL FOR SUPPORT (unless you like cannot install it and need that kind of support)..

Installing the product:

Download recruit.zip from the link provided below.Copy the contents of the upload folder to your forum root, take care not to overwrite directories, but to copy files into them.
Import mmoRecruit.xml from the Product Manager Interface.
Open the settings menu, select your game and submit the form. Once the game is selected choose the last option to import the initial database.

Create the Display vBa CMPS Module:

Add a new module from your vBa CMPS menu, select PHP file as the module type.
Set Module Title to Recruitment or Recruiting or whatever you would like the heading to say.
Select init_recruit.php as the file to include.
Leave Initialize BB Code Parser, Initialize Forum Permissions, Initialize Moderator Cache, Initialize Ignored Users and Clean File Output to no
Chose Use Module Wrapper Template: Yes (this is important, you will break the page with out it)!!
You can set a link for the heading of the module, to point to your recruiting post by filling in Module Link.
Make sure all usergroups are selected and save the form.
You can now add this as a module to any vBa CMPS page.
You will now see the display box on the page you place it on, with each class set to 1. If you do not, go back and check the instructions.

Create the Update vBa CMPS Module:

Add a new module from your vBa CMPS menu, select PHP file as the module type.
Set Module Title to mmoUpdateRecruit.
Select update_recruitment.php as the file to include.
Leave Initialize BB Code Parser, Initialize Forum Permissions, Initialize Moderator Cache, Initialize Ignored Users and Clean File Output to no
Chose Use Module Wrapper Template: Yes (this is important, you will break the page with out it)!!
Set Collapse by default to your preference..
You can now add this as a module to any vBa CMPS page.


Optional (Add AJAX Support to the updater form):

Inside the header OR headerinclude template (where ever your <head> </head> tags exist)

Put: <script type="text/javascript" src="http://www.mydomain.com/forum/clientscript/mmoRecruit.js"></script>

The AJAX has been tested on Firefox and IE7, if the requestor code fails the form will just submit normally.



Troubleshooting:

If the product import fails you can still do it by hand.
The templates are in forum_templates directory, the name of the file is the template name that needs to be used.

Creating the SQL Tables by hand.
Code:
Code:
CREATE TABLE game_rec_settings(
	game VARCHAR( 120 ) NOT NULL,
	enabled INT(2) NOT NULL,
	groups VARCHAR( 12 ) NOT NULL			
)ENGINE = MYISAM;
You may need to add the table prefix.
Code:
Code:
INSERT INTO game_rec_settings(game,enabled,groups)VALUES('','1','6,7,5');
Again you may need to include the table prefix

UPDATED:
**Beta MultiGame Support
**Added Age Of Conan Support
**Updated XML typos. pft..
**Added Matrix online, FFO and SWG
**In some cases the game would not be set when updating the table, this should not happen anymore.
**Now supports Lord of the Rings Online.
**Update form can now be set to collapse by default and it will actually stay that way!
**Added (optional)AJAX POST support to the update form.
**Fixed bad XML in product file.
**All modules now use vBa CMPS Shell Module Templates
**Added Everquest Live
 
Top