The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
World of Warcraft Guild Recruitment Form Details »» | |||||||||||||||||||||||||
This is a quick release of my Guild Application form
This uses the Online Gaming Recruitment addition as its base ( https://vborg.vbsupport.ru/showthread.php?t=182165 ) 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. Show Your Support
|
Comments |
#102
|
||||
|
||||
Ok, you posted a reply in my other mod but you may have wanted an answer to this one.
I would suggest reading your error again, it tells you exactly what and where the problem is. Parse error: syntax error, unexpected '/', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/spgarner/public_html/newthread.php(76) : eval()'d code(154) : eval()'d code on line 1 Just in case you missed it |
#103
|
|||
|
|||
I ended up making changes about a month ago to most of the templates since I was unable to find the error I must've made when trying to customize it. The 2 columns of questions just ended up looking sloppy if 2 questions lined up were different lengths. I converted it to 1 column for the questions and it looks much, much cleaner.
This could be used to satify those that want one (1) column for the questions and a more integrated feel to the rest of the vBulletin pages. Here is the code if you would like to use it: App_Question_Answer HTML Code:
[b][color=red]$question_id.[/color] [COLOR="#336699"]$question [/COLOR] [/b] A: $question_answer App_Form HTML Code:
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head>$headinclude <title>$vboptions[bbtitle] - $formtitle</title> $app_form_css </head> <body> $header $navbar <if condition="$errormessage"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%"> <tr> <td class="tcat"> Error Message </td> </tr> <tr> <td class="alt1"> <div style="font-size:24px; color:red; font-weight: bolder;">$errormessage</div> </td> </tr> </table> <br /> <br /> </if> <if condition="$preview"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%"> <tr> <td class="tcat"> Preview </td> </tr> <tr> <td class="alt1"> $preview </td> </tr> </table> <br /> </if> <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]" /> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%"> <tr> <td colspan="2"> $app_form_desc_head </td> </tr> <tr> <td valign="top" width="50%"> $app_form_character_info </td> <td valign="top" width="50%"> $app_form_personal_info </td> </tr> <tr> <td colspan="2"> <!-- Do not remove this variable --> $comment_boxes <br /> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr class="tcat"> <td valign="top" colspan="3"><p align="center"> <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" /> </p> </td> </tr> </table> </td> </tr> </table> </form> $footer </body> </html> App_Form_PersonalInfo HTML Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%"> <tr> <td class="tcat" colspan="2"><b>Personal Information</b></td> </tr> <tr> <td width="100%" align="left" class="alt1 wowsl"><b>Your Real Name:</b></td> <td align="right" class="alt1 wowsc"><input type="text" size="30" value="$personal_name" name="app[personal_name]" /></td> </tr> <tr> <td width="100%" align="left" class="alt1 wowsl"><b>Your Age:</b></td> <td align="right" class="alt1 wowsc"><input type="text" size="5" value="$personal_age" name="app[personal_age]" /></td> </tr> <tr> <td width="100%" align="left" class="alt1 wowsl"><b>Male or Female?</b></td> <td align="right" class="alt1 wowsc"><select name="app[personal_sex]"> <option value="Guy" <if condition="$personal_sex == 'Guy'">selected="selected"</if> >Guy</option> <option value="Girl" <if condition="$personal_sex == 'Girl'">selected="selected"</if> >Girl</option> </select> </td> </tr> <tr> <td width="100%" align="left" class="alt1 wowsl"><b>Your Local Timezone:</b></td> <td align="right" class="alt1 wowsc"><select name="app[personal_tz]"> <option value="PST" <if condition="$personal_tz == 'PST'">selected="selected"</if> >PST</option> <option value="MT" <if condition="$personal_tz == 'MT'">selected="selected"</if> >MT</option> <option value="CST" <if condition="$personal_tz == 'CST'">selected="selected"</if> >CST</option> <option value="EST" <if condition="$personal_tz == 'EST'">selected="selected"</if> >EST</option> <option value="GMT" <if condition="$personal_tz == 'GMT'">selected="selected"</if> >GMT</option> <option value="Other" <if condition="$personal_tz == 'Other'">selected="selected"</if> >Other</option> </select> </td> </tr> <tr> <td width="100%" align="left" class="alt1 wowsl"><b>What times do you play the most or are most active in the game?</b></td> <td align="right" class="alt1 wowsc"><textarea cols="30" rows="2" name="app[personal_playtime]">$personal_playtime</textarea></td> </tr> <tr> <td width="100%" align="left" class="alt1 wowsl"><b>What do you enjoy doing in-game the most?</b></td> <td align="right" class="alt1 wowsc"><select name="app[personal_game_fav]"> <option value="Instancing" <if condition="$personal_game_fav == 'Instancing'">selected="selected"</if> >Instancing</option> <option value="Raiding" <if condition="$personal_game_fav == 'Raiding'">selected="selected"</if> >Raiding</option> <option value="Farming" <if condition="$personal_game_fav == 'Farming'">selected="selected"</if> >Farming</option> <option value="Roleplaying" <if condition="$personal_game_fav == 'Roleplaying'">selected="selected"</if> >Roleplaying</option> <option value="Cyberz" <if condition="$personal_game_fav == 'Cyberz'">selected="selected"</if> >Cyberz</option> </select> </td> </tr> <tr> <td width="100%" align="left" class="alt1 wowsl"><b>Have you ever been a Raid Leader, Class Leader or Officer with another guild?</b></td> <td align="right" class="alt1 wowsc"><textarea cols="30" rows="2" name="app[personal_prev_leader]">$personal_prev_leader</textarea></td> </tr> <tr> <td width="100%" align="left" class="alt1 wowsl"><b>Do you have <a href="http://www.ventrilo.com/" target="_blank">Ventrilo</a> and a <u>working</u> microphone?</b></td> <td align="right" class="alt1 wowsc"><select name="app[personal_vent]"> <option value="Yes" <if condition="$personal_vent == 'Yes'">selected="selected"</if> >Yes to both!</option> <option value="No" <if condition="$personal_vent == 'No'">selected="selected"</if> >No and I shouldn't apply.</option> </select> </td> </tr> </table> App_Answer HTML Code:
[B]Name:[/B] $personal_name / $personal_sex (Age: $personal_age) [B]Timezone:[/B] $personal_tz [B]Realm:[/B] $current_server [B]Name:[/B] [url=http://www.wowarmory.com/character-sheet.xml?r=$current_server&cn=$character_name]$character_name [/url] [B]Race & Class:[/B] $character_race $character_class [B]Spec:[/B] $character_talents_1/$character_talents_2/$character_talents_3 [B]Professions:[/B] $character_profession_1 + $character_profession_2 [URL]http://www.wow-heroes.com/index.php?zone=us&server=$current_server&name=$character_name [/URL] [URL]http://be.imba.hu/?zone=US&realm=$current_server&character=$character_name [/URL] [URL]http://www.armory-light.com/us/$current_server/$character_name/ [/URL] [URL]http://www.wow-achievements.com/Person.aspx?region=US&realm=$current_server&name=$character_name [/URL] [URL]http://elitistarmory.com/US/$current_server/$character_name [/URL] [B][SIZE="3"][COLOR="#ff0000"]I.[/COLOR] Generic Questions[/SIZE][/B] [B][COLOR="#336699"]What times do you play the most or are most active in the game?[/COLOR][/B] $personal_playtime [B][COLOR="#336699"]What do you enjoy doing in-game the most?[/COLOR][/B] $personal_game_fav [B][COLOR="#336699"]Have you ever been a Raid Leader, Class Leader or Officer with another guild?[/COLOR][/B] $personal_prev_leader [B][COLOR="#336699"]Do you have [url="http://www.ventrilo.com/"]Ventrilo[/url] and a working microphone?[/COLOR][/B] $personal_vent [B][SIZE="3"][COLOR="#ff0000"]II.[/COLOR] Specific Questions[/SIZE][/B] $guild_app_answer_qa_message App_Form_DescBox HTML Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%"> <tr> <td class="tcat" colspan="3"> $vboptions[bbtitle] - $formtitle </td> </tr> <tr> <td class="alt1" colspan="3"> <span class="smallfont"><b>$formpurpose</b></span> </td> </tr> </table> App_Question_box HTML Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%"> <tr> <td class="tcat"><font size="3" color="#ff0000">$idx.</font> $question</td> </tr> <tr> <td class="alt1" align="center" class="alt2 wowsc"> <textarea rows="5" cols="120" name="app[question_$idx]">${$q_idx}</textarea> </td> </tr> </table> App_Form_CharacterInfo HTML Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%"> <tr> <td class="tcat" colspan="2"><b>Character Information</b></td> </tr> <tr> <td width="100%" align="left" class="alt1 wowsl"><b>Character Name:</b></td> <td align="right" class="alt1"><input type="text" size="30" value="$character_name" name="app[character_name]" /></td> </tr> <if condition="!$show['member']"> $human_verify </if> <tr> <td width="100%" align="left" class="alt1 wowsl"><b>Current Realm:</b></td> <td align="right" class="alt1"> <input type="text" size="30" value="$current_server" name="app[current_server]" /> </td> </tr> <tr> <td width="100%" align="left" class="alt1 wowsl"><b>Character Race:</b></td> <td align="right" class="alt1"> <select name="app[character_race]"> <option value="Blood Elf" <if condition="$character_race == 'Blood Elf'">selected="selected"</if> >Blood Elf</option> <option value="Orc" <if condition="$character_race == 'Orc'">selected="selected"</if> >Orc</option> <option value="Tauren" <if condition="$character_race == 'Tauren'">selected="selected"</if> >Tauren</option> <option value="Troll" <if condition="$character_race == 'Troll'">selected="selected"</if> >Troll</option> <option value="Undead" <if condition="$character_race == 'Undead'">selected="selected"</if> >Undead</option> </select> </td> </tr> <tr> <td width="100%" align="left" class="alt1 wowsl"><b>Character Class:</b></td> <td align="right" class="alt1"> <select name="app[character_class]"> <option value="Death Knight" <if condition="$character_class == 'Death Knight'">selected="selected"</if> >Death Knight</option> <option value="Druid" <if condition="$character_class == 'Druid'">selected="selected"</if> >Druid</option> <option value="Hunter" <if condition="$character_class == 'Hunter'">selected="selected"</if> >Hunter</option> <option value="Paladin" <if condition="$character_class == 'Paladin'">selected="selected"</if> >Paladin</option> <option value="Priest" <if condition="$character_class == 'Priest'">selected="selected"</if> >Priest</option> <option value="Mage" <if condition="$character_class == 'Mage'">selected="selected"</if> >Mage</option> <option value="Rogue" <if condition="$character_class == 'Rogue'">selected="selected"</if> >Rogue</option> <option value="Shaman" <if condition="$character_class == 'Shaman'">selected="selected"</if> >Shaman</option> <option value="Warlock" <if condition="$character_class == 'Warlock'">selected="selected"</if> >Warlock</option> <option value="Warrior" <if condition="$character_class == 'Warrior'">selected="selected"</if> >Warrior</option> </select> </td> </tr> <tr> <td class="alt1 wowsl"><b>Class Talent Points:</b></td> <td align="right" class="alt1"> <input type="text" size="2" value="$character_talents_1" name="app[character_talents_1]" /> / <input type="text" size="2" value="$character_talents_2" name="app[character_talents_2]" /> / <input type="text" size="2" value="$character_talents_3" name="app[character_talents_3]" /> </td> </tr> <!-- <tr> <td width="100%" align="left" class="alt1 wows1">Picture of your Raid UI [<a href="#" onClick="window.open('vbimghost.php?do=popupload&ed=app_raid_ui','vbimghost2','scrollbars=yes,resizable=yes,width=562,height=97'); return false" title="Upload">Upload</a>]</td> <td align="right" class="alt1 wowsc"><input type="text" size="30" name="app[character_raid_ui]" id="app_raid_ui"></td> </tr> --> <tr> <td class="alt1 wowsl"><b>Current Professions:</b></td> <td width="300" align="right" class="alt1 wowsl">Profession 1: <select name="app[character_profession_1]"> <option value="Alchemy" <if condition="$character_profession_1 == 'Alchemy'">selected="selected"</if> >Alchemy</option> <option value="Blacksmithing" <if condition="$character_profession_1 == 'Blacksmithing'">selected="selected"</if> >Blacksmithing</option> <option value="Enchanting" <if condition="$character_profession_1 == 'Enchanting'">selected="selected"</if> >Enchanting</option> <option value="Engineering" <if condition="$character_profession_1 == 'Engineering'">selected="selected"</if> >Engineering</option> <option value="Herbalism" <if condition="$character_profession_1 == 'Herbalism'">selected="selected"</if> >Herbalism</option> <option value="Inscription" <if condition="$character_profession_1 == 'Inscription'">selected="selected"</if> >Inscription</option> <option value="Jewelcrafting" <if condition="$character_profession_1 == 'Jewelcrafting'">selected="selected"</if> >Jewelcrafting</option> <option value="Leatherworking" <if condition="$character_profession_1 == 'Leatherworking'">selected="selected"</if> >Leatherworking</option> <option value="Mining" <if condition="$character_profession_1 == 'Mining'">selected="selected"</if> >Mining</option> <option value="Tailoring" <if condition="$character_profession_1 == 'Tailoring'">selected="selected"</if> >Tailoring</option> <option value="Skinning" <if condition="$character_profession_1 == 'Skinning'">selected="selected"</if> >Skinning</option> </select> <br> Profession 2: <select name="app[character_profession_2]"> <option value="Alchemy" <if condition="$character_profession_2 == 'Alchemy'">selected="selected"</if> >Alchemy</option> <option value="Blacksmithing" <if condition="$character_profession_2 == 'Blacksmithing'">selected="selected"</if> >Blacksmithing</option> <option value="Enchanting" <if condition="$character_profession_2 == 'Enchanting'">selected="selected"</if> >Enchanting</option> <option value="Engineering" <if condition="$character_profession_2 == 'Engineering'">selected="selected"</if> >Engineering</option> <option value="Herbalism" <if condition="$character_profession_2 == 'Herbalism'">selected="selected"</if> >Herbalism</option> <option value="Inscription" <if condition="$character_profession_2 == 'Inscription'">selected="selected"</if> >Inscription</option> <option value="Jewelcrafting" <if condition="$character_profession_2 == 'Jewelcrafting'">selected="selected"</if> >Jewelcrafting</option> <option value="Leatherworking" <if condition="$character_profession_2 == 'Leatherworking'">selected="selected"</if> >Leatherworking</option> <option value="Mining" <if condition="$character_profession_2 == 'Mining'">selected="selected"</if> >Mining</option> <option value="Tailoring" <if condition="$character_profession_2 == 'Tailoring'">selected="selected"</if> >Tailoring</option> <option value="Skinning" <if condition="$character_profession_2 == 'Skinning'">selected="selected"</if> >Skinning</option> </select> </td> </tr> </table> Thank you again, Sweede for this Mod. I'm glad it still works for 3.8! |
#104
|
|||
|
|||
I've looked over every post in this thread and haven't seen this come up yet but I'm getting a fatal error on submittal.
Fatal error: Call to undefined function build_forum_counters() in /home/cyril/public_html/forums/misc.php(100) : eval()'d code on line 749 I'm using vBulletin 3.8.5, and am unsure why this is happening. I'd appreciate any help in fixing this. Edit: I'm also in the process of updating the form for Cataclysm. If I can get this working and get it updated I'll post it here. |
#105
|
||||
|
||||
Quote:
Nor is any plugin over 749 lines in length. I also do not call build_forum_counters() in any plugin in this mod I would suggest going to your admincp Products & Plugins -> Plugin Manager Sort by Hook Location and find what products are using misc_start. That may help you find what mod is causing your problem. |
#106
|
|||
|
|||
Thank you for your quick response sweede. The offending plugin was from the Online Gaming Recruitment addition that you referenced at the beginning of this thread. I thought both needed to be installed. Now that it is uninstalled I don't know how to access the form for testing. With the other product it was located at misc.php?do=app_form. How do I access it under your product?
|
#107
|
||||
|
||||
newthread.php?do=app_form
i think.. |
#108
|
|||
|
|||
Thank you again for your quick reply. After looking at your plugin I determined it is actually newthread.php?do=apply. Now I can begin to try to set all of this up. Is some of this documented somewhere to make it easier? Again, thank you for all of your help.
|
#109
|
|||
|
|||
The form was working properly at one point, but now for regular registered users, they are recieveing an "HTTP 500 Internal Server Error" when submitting the form. When they click "Preview" it works fine, but the error happens when clicking "Submit."
Please let me know if there is any way to resolve this. Thank you. |
#110
|
||||
|
||||
Quote:
|
#111
|
|||
|
|||
From "error_log" in my domain's public_html directory:
Quote:
Again, this ONLY happens for the "Registered Users" usergroup. All other usergroups are able to submit the form without error. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|