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
  #62  
Old 01-20-2009, 06:06 AM
Vackrick Vackrick is offline
 
Join Date: Apr 2008
Location: Taiwan
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

dude is there any otehr way without editting the file and can accept the thread application..
Reply With Quote
  #63  
Old 01-20-2009, 06:13 AM
slick368 slick368 is offline
 
Join Date: Mar 2008
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Upgraded this product to the latest version... didn't like how it jacked up the forum post, so i uninstalled and reverted back to the prior version. Now, regardless of which version I use (and i have re-tried them all) I get the following error:

Fatal error: Existing data passed is not an array
Called set_existing in [path]/newthread.php(74) : eval()'d code on line 225
Called eval in [path]/newthread.php on line 74
in [path]/includes/class_dm.php on line 235

Any ideas what has gone wrong?
Reply With Quote
  #64  
Old 01-25-2009, 05:32 AM
Cyxla Cyxla is offline
 
Join Date: Jul 2006
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the add-on sweede.

I like it, easy to edit and looks cool.

I only noticed 1 issue.
The App tool is not working for us when we use Firefox. (Firefox/3.0.5)
We can see the options like "Approved", "Best of" ect.. but whatever we click, we only can select the option that is on top.

When we try to same with IE7 its working like it should be.
But this just for your info, dont think we will use it anyway.
Reply With Quote
  #65  
Old 01-25-2009, 03:20 PM
Brak710 Brak710 is offline
 
Join Date: Jan 2009
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the great work on this addon... I seem to be having another issue (not addon breaking tho)

I seem to get the Apptools drop down menu twice, but only the farthest left works.

It basically the drop down links look like this...

| Apptools \/ \/ | Apptools | Thread tools \/ |
Reply With Quote
  #66  
Old 01-31-2009, 09:09 PM
LittleB@ LittleB@ is offline
 
Join Date: Oct 2007
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thnx for this one, really appreciate it =)

As you can see by taking a look at the image I included I've managed to modd the plugin lightly to change questions and layout slightly, however, something I have not been able to change is the layout of the "Questions and Answers" in the preview and ultimately not in the submitted application.

What I would like to see is an addition of a line break after each of them questions somehow but I have been unable to solve the issue.

I do however suspect this part of the code to be the "villain":

PHP Code:
        // While we're here. Lets make a variable in case we're submiting the form for real.
        
$question trim($question);
        
$question_answer = $$q_idx;
        
$question_id $idx;
        eval(
'$guild_app_answer_qa_message .= "' fetch_template('App_Question_Answer') . '";'); 
unfortunately I've got limited php skills to make sure every question/answer is followed by line breaks that are accepted when entering them into the vb-database...

Any help would be greatly appreciated =)
Reply With Quote
  #67  
Old 01-31-2009, 10:29 PM
sweede's Avatar
sweede sweede is offline
 
Join Date: Jan 2007
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm totally confused

In the preivew and the forum post, you want a line break after the answer before the next question?

That's done in the newthread_start plugin.

Look around line 126 in the plugin code
$comment_boxes .= '</td><td valign="top">';

changing it to
$comment_boxes .= '<br /></td><td valign="top">';

may do what you want

I havent figured out a way to template that bit of logic yet, so it's a little.. wonkey.
Reply With Quote
  #68  
Old 01-31-2009, 10:40 PM
LittleB@ LittleB@ is offline
 
Join Date: Oct 2007
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sweede View Post
That's done in the newthread_start plugin.

Look around line 126 in the plugin code
$comment_boxes .= '</td><td valign="top">';

changing it to
$comment_boxes .= '<br /></td><td valign="top">';
Thank you, but what this does is adding a line break only in the form itself and not at the actual preview. Where exactly do you build the questions and answers variable that is ultimately inserted into the database as "the message"?

Edit*
Actually I think I found out something, by editing line 140 to look like this:
PHP Code:
eval('$guild_app_answer_qa_message .= "' fetch_template('App_Question_Answer') . '<br />' '";'); 
I get the preview to print <br /> after each of the answers, the problem now seems to be the fact that in the process of inserting the message into the database the message is stripped of any html code... or something, what do you think? ^^
Reply With Quote
  #69  
Old 01-31-2009, 10:55 PM
sweede's Avatar
sweede sweede is offline
 
Join Date: Jan 2007
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

try adding
$guild_app_answer_aq_message .= "<br />";

after
eval('$guild_app_answer_qa_message .= "' . fetch_template('App_Question_Answer') . '";');
Reply With Quote
  #70  
Old 01-31-2009, 11:07 PM
LittleB@ LittleB@ is offline
 
Join Date: Oct 2007
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sweede View Post
try adding
$guild_app_answer_aq_message .= "<br />";

after
eval('$guild_app_answer_qa_message .= "' . fetch_template('App_Question_Answer') . '";');
nope, not even showing up as <br />

I tried adding several <br /> along with some XX to see if anything got included like this:
$guild_app_answer_aq_message .= "<br />XX<br />XX<br />XX<br />";

but alas... nothing shows up, copare with my previous post where I at least see the <br /> printed in the preview ^^

Edit*
Woot!? XD Problem solved, I ventured into the template fetched at line 140 fetch_template('App_Question_Answer'). By hitting "return" on my keyboard at the end of the template I get the preview to show what I want it to show =)

Thnx for the help ^^
Reply With Quote
  #71  
Old 02-01-2009, 04:33 PM
LittleB@ LittleB@ is offline
 
Join Date: Oct 2007
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry to bother you again but I've ran into another problem.

Using the "app mover" while browsing the topic in order to Deny or Accept it is not working for me, well, it is partially working: I can assign forums and names for the radio buttons, I see the "Tool" while browsing the application topic and I can move the application, however - I am unable to select any but the first option to move to if you get what I mean?

(a simple grafic presentation of the problem)
*App Mover*
- Accept (this one works)
- Deny (I can't select this)
- Trash (I can't select this)

To work around this I could simply move all apps to the same forum and make sure to reply/change the subject or whatever but if you have the time I'd appreciate if you could have a look at this. The thought of being able to move the app to any destination just like that is thrilling ^^

Edit*
I changed the input type to instead be a checkbox, by doing this I am now able to first click the option I want and then remove the automaticaly selected first option... It's slightly barbaric but it works, perhaps this is a clue that could help you sort this out? (or yes, might just as well be my set-up but if it's related to new changes in vB hope this helps ^^ )
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 09:44 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05239 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
  • (2)bbcode_php
  • (2)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