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 |
#42
|
|||
|
|||
I would love to see a fix for this too.
|
#43
|
|||
|
|||
Likewise. Great app tho!
|
#44
|
|||
|
|||
Agreed , although looking at the code I think I'm see where the problem is, but will look at it more tomorrow (too sleepy).
|
#45
|
|||
|
|||
Halp us!
|
#46
|
|||
|
|||
OK, I found a few things that were not working here.. I'll go through them in order as they appear in the product.xml file. You will need to uninstall the product and the reinstall the edited product.xml file once you are done. I tested what I could, but did not test the forum poll or anything like that. The thank you message and redirect to post are working.
I hope this is ok, but I attached the product-new.xml that I modified to get this working on vBulletin 3.7.4 PL1. (Note, if you use my XML, I changed the output color for the Q&A part in the product-xml to be black. If you want to change this color, look for color=black and change it to be whatever color..) Line 493: Original Version: Code:
$bbuserinfo[username], you need to answer every question!"; Code:
eval(standard_error($vbulletin->userinfo['username'].", you need to answer every question!")); (This is what is causing the redirect to not work, there is an array created called $errors by VB, but it is blank. Code:
/* if(is_array($errors)) { $errormessage = $errors[0]; $_REQUEST['action'] = 'form'; } else { */ Code:
/* eval( 'print_output("' . fetch_template('STANDARD_ERROR') . '");' ); exit(); */ Code:
$errormessage = $vbulletin->options['guild_app_post_thankyou']; Code:
eval(standard_error($vbulletin->options['guild_app_post_thankyou'])); Code:
/* { */ Code:
$errormessage = "$bbuserinfo[username], you need to answer every question!"; Code:
eval(standard_error($vbulletin->userinfo['username'].", you need to answer every question!")); |
#47
|
|||
|
|||
Tried editing my modified .XML, and got errors when accessing the form (no doubt my lack of editing skills), so downloaded your XML, and edited that to include my options.
Works like a charm! Thanks a million Wintrmte |
#48
|
|||
|
|||
No problem -- I forgot to mention in my original post that I changed the output colors in the post for the Q&A to be Black instead of neon-green. If you want to change it, look in the product-xml for color=black and change it to what you need it to be.
|
#49
|
|||
|
|||
Sweede, great work as always.
I do have a suggestion: Is it possible to have the character name also provide a link to their Guild Exes page? http://www.warcraftrealms.com/guildexes/ In recruiting people we sometimes like to take a peek at their guild history to see where they have been, and it would be nice to have another link on their application that would provide easy access to something like that. Wintrmte, you rock! Thanks for the Fix! I know Sweede gets busy at times and can't always update/fix right away. |
#50
|
|||
|
|||
Quote:
I have checked, checked and rechecked the xml and there is NO color=black in the document, could you please tell me how to change the color back to the original? I have tried looking through both the old and the new and my coding skills are 0 so I cant find what to change back. Please if you provide a find/replace include the whole line in it (the find/replace info in your previous post is a little messed up and why it gives errors when used exactly) Thanks again for the fix |
#51
|
|||
|
|||
never mind.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|