vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Add-On Releases - World of Warcraft Guild Recruitment Form (https://vborg.vbsupport.ru/showthread.php?t=198516)

sweede 12-09-2008 10:00 PM

World of Warcraft Guild Recruitment Form
 
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.

sweede 12-10-2008 11:07 AM

Fixed the two template issues that users around page 5 have been having.

dannykilla 12-10-2008 11:14 AM

Looks nice man, any chance of you doing a version for Warhammer Online: AoR ???

sweede 12-10-2008 11:23 AM

it would be trivial to modify the form for other games. read the readme.txt file for how the changes are made.

Wayne Luke 12-11-2008 01:10 AM

Neither of your demo sites allowing viewing the form by guests. Can you post screenshots of this in action please?

sweede 12-11-2008 01:59 AM

Quote:

Originally Posted by Wayne Luke (Post 1682830)
Neither of your demo sites allowing viewing the form by guests. Can you post screenshots of this in action please?



oo good call.

Wrecked 12-11-2008 08:02 AM

Hi Sweede,

Great form, exactly what I was looking for since the other one I was using appears to have been abandoned.

To get people to the form itself is the URL just <yourforumURL>/newthread.php?do=apply

As when I go to that I get an error as follows

Code:

Fatal error: Call to undefined function fetch_require_hvcheck() in /home/thefinal/public_html/forums/newthread.php(74) : eval()'d code on line 465
Any ideas?

FWIW I do have another form installed to my forum but I customised it's name so the URL to access it is /newthread.php?do=Application

Cheers
Wreck

sweede 12-11-2008 10:35 AM

hmm... i thought i fixed that

Change that line,
PHP Code:

if (fetch_require_hvcheck('post')) 

to
PHP Code:

 if( $vbulletin->options['hvcheck_post'] ) 


Wrecked 12-11-2008 01:06 PM

Sorted!

Thanks mate, awesome mod :D

That line fixed all :D

BennehSmK 12-11-2008 01:37 PM

Sweede, dunno whats happening, ive got an error message similar to Wrecked:

Fatal error: Call to undefined function fetch_require_hvcheck() in /home/smkodo/domains/spearmint-kodo.eu/public_html/newthread.php(74) : eval()'d code on line 465

Looking through the newthread.php I cannot locate

if (fetch_require_hvcheck('post'))

anywhere, any ideas?


All times are GMT. The time now is 09:59 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.01147 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete