Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
World of Warcraft Guild Recruitment Form Details »»
World of Warcraft Guild Recruitment Form
Version: 0.3.4, by sweede sweede is offline
Developer Last Online: Jun 2014 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.7.x Rating:
Released: 12-09-2008 Last Update: 02-13-2009 Installs: 55
Uses Plugins Template Edits Auto-Templates
Re-useable Code Additional Files Translations  
No support by the author.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 01-05-2009, 01:41 PM
AureliusFL AureliusFL is offline
 
Join Date: Dec 2008
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ErikkuShafer View Post
Any update on how to fix where the user/applicant goes after the thread is submitted? Still have mine going back to the app, though the form is properly submitted. Getting a lot of applications lately and I'd like the process to go a little smoother is all!
I would love to see a fix for this too.
Reply With Quote
  #43  
Old 01-05-2009, 03:29 PM
Ragefire Ragefire is offline
 
Join Date: Apr 2008
Location: Bradford - UK
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Likewise. Great app tho!
Reply With Quote
  #44  
Old 01-07-2009, 05:10 AM
wintrmte wintrmte is offline
 
Join Date: Aug 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Agreed , although looking at the code I think I'm see where the problem is, but will look at it more tomorrow (too sleepy).
Reply With Quote
  #45  
Old 01-07-2009, 05:44 PM
AureliusFL AureliusFL is offline
 
Join Date: Dec 2008
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wintrmte View Post
Agreed , although looking at the code I think I'm see where the problem is, but will look at it more tomorrow (too sleepy).
Halp us!
Reply With Quote
  #46  
Old 01-08-2009, 02:15 AM
wintrmte wintrmte is offline
 
Join Date: Aug 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!";
Change to:
Code:
eval(standard_error($vbulletin->userinfo['username'].", you need to answer every question!"));
Starting at line 661, insert a comment as shown below:
(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 { */
Line 693, Comment out lines 693 and 694 (this was preventing the thank you message from displaying if redirect option 0 was selected):
Code:
/* eval( 'print_output("' . fetch_template('STANDARD_ERROR') . '");' );
    exit(); */
Line 695, Change
Code:
$errormessage = $vbulletin->options['guild_app_post_thankyou'];
TO:
Code:
eval(standard_error($vbulletin->options['guild_app_post_thankyou']));
Line 696, Comment out the bracket (this is the terminating bracket to line 665 that is now commented out.
Code:
/* { */
Line 706, Change
Code:
$errormessage = "$bbuserinfo[username], you need to answer every question!";
TO:
Code:
eval(standard_error($vbulletin->userinfo['username'].", you need to answer every question!"));
Reply With Quote
  #47  
Old 01-08-2009, 09:20 AM
Ragefire Ragefire is offline
 
Join Date: Apr 2008
Location: Bradford - UK
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #48  
Old 01-08-2009, 01:06 PM
wintrmte wintrmte is offline
 
Join Date: Aug 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ragefire View Post
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
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.
Reply With Quote
  #49  
Old 01-09-2009, 11:43 AM
Tolas Tolas is offline
 
Join Date: Apr 2006
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #50  
Old 01-09-2009, 01:50 PM
Finger78 Finger78 is offline
 
Join Date: Feb 2007
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wintrmte View Post
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.

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
Reply With Quote
  #51  
Old 01-09-2009, 02:42 PM
Mithan Mithan is offline
 
Join Date: Apr 2002
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

never mind.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:28 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06130 seconds
  • Memory Usage 2,324KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (9)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete