Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Online Gaming Recruitment Application System Details »»
Online Gaming Recruitment Application System
Version: 1.00, by Gooner Gooner is offline
Developer Last Online: Jul 2009 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.x Rating:
Released: 06-10-2008 Last Update: 06-17-2008 Installs: 29
Uses Plugins
Re-useable Code Translations  
No support by the author.

This is a modification originally developed for 3.6.x for websites wishing to use an application, although originally designed for world of warcraft it can be used for any game.

This Mod only officially works with 3.6... but since this is open code. anyone can take the code and make it work for 3.7 and re-publish it... with credits ofcourse.

I have had this modification for a long time and only today decided to release it to the public hoping somebody might want to carry on its developement because i just dont have time, so feel free to modify the code and re-release it under a different name but please give credit.

Install
  • Unzip "product-vgat" from the "OTD Application System" folder.
  • Navigate to "Plugins & Products" in your vbulletin control pannel and then "Manage Plugins"
  • Upload the "product-vgat" plugin

Your product is now installed and ready for configuration.

Main Configuration (refresh website after plugin installation first)
  • from your vbulletin admin panel go into your Vbulletin options and scroll down to "Guild Application Form Options"
  • configure "form url" and "forum location" to your own preference

Field checking has not really been fully tested or developed so you may encounter bugs while using "Non Empty Fields", "Numeric Fields", "Boolean Fields", The rest is fully tested and operational!!!!

How To Configuring Your Application Questions
The thing that makes my application system good is that its VERY easy to add and delete questions by yourself with minimal programming knowlege, mostly just copy and paste and change the question
  • go into "Style & Templates" and then into "Style Manager" and "Edit" the template you will be using.
  • scroll down to "vgat_form" and double click
This is were you add, edit and delete all your questions which will be required when a visitor fills out their application, I will try my best to explain how to add the following questions: Radio Button, CheckBox, Single Line Text Box, Multiline Text Box, Drop-Down Menu

Radio Button Question Example
Code:
<table class="tborder" cellpadding="6" cellspacing="0" border="0" width="100%" align="center">
		<tr>
			
			
				<td class="alt1 wowsl" valign="center" width=50%>
				I Am a Human
				</td>
				<td class="alt1 wowsc" valign="center" width=50%>
				<center>
					<input type="radio" name="q_Human" value="No"  /> No 
					<input type="radio" name="q_Human" value="Yes"  /> Yes 
				</center>

				</td>
			
		</tr>
</table>
Question = "I Am a Human"
Question Name = q_Human You need to write down the "Question Name" for EVERY question you make because you will need it later when we design your output tmplate which gets posted on your forum
Input Type = radio Indicates that this question is a Radio Button

Check-Box Question Example
Code:
<table class="tborder" cellpadding="6" cellspacing="0" border="0" width="100%" align="center">
		<tr>
			
			
				<td class="alt1 wowsl" valign="center" width=50%>
				What is your favurite colours:
				</td>
				<td class="alt1 wowsc" valign="center" width=50%>
				<center>
					<input type="checkbox" name="q_colour_red" value="red"  /> red 
					<input type="checkbox" name="q_colour_green" value="green"  /> green
					<input type="checkbox" name="q_colour_blue" value="blue"  /> blue
					<input type="checkbox" name="q_volour_pink" value="pink"  /> pink
				</center>

				</td>
			
		</tr>
</table>
Drop-Down Menu Question Example
"q_ConnectionType" is your name in this instance, which you will need later
Code:
<table class="tborder" cellpadding="6" cellspacing="0" border="0" width="100%" align="center">
	
			<tr>
				<td class="alt1 wowsl" valign="center" width=50%>	
				What type of Internet Connection do you use:
				</td>
				<td class="alt1 wowsc" valign="center" width=50%>
				<center>
				<select name="q_ConnectionType">
				<option value="--" ></option>
				<option value="Dialup" >Dialup</option>
				<option value="ISDN" >ISDN</option>
				<option value="DSL" >DSL</option>
				<option value="Cable" >Cable</option>
				<option value="Faster than Cable" >Faster than Cable</option>
				</select>

				</center>
				</td>
			</tr>
</table>
Single Line Text Box Question Example
Code:
		<table class="tborder" cellpadding="6" cellspacing="0" border="0" width="100%" align="center">
				<td class="alt1 wowsl" valign="center" width=50%>	
				What is your Character name?
				</td>

				<td class="alt1 wowsc" valign="center" width=50%>
				<center>
				<input type="text" size="25" value="" name="q_CharacterName" />
				</center>
				</td>
			</tr>
		</table>
Multi-Line Text Box Question Example
Code:
		<table class="tborder" cellpadding="6" cellspacing="0" border="0" width="100%" align="center">
			<tr>
				<td class="alt2 wowpl" valign="center">	
				Please describe what you like about the game and your character.
				</td>
			</tr>
			<tr>

				<td class="alt1 wowsc" valign="center">
				<center>
				<textarea rows="5" cols="70" name="q_LikeAboutTheGame"></textarea>
				</center>
				</td>
			</tr>
		</table>

Now i will explain how to configure your output file which will be posted on the forums.
  • Go back in to your "Guild Application Form Options" panel
  • Scroll down to the "Thread Body" panel

Example Code
Code:
[ size=5][ color=#87F717][ b]Character Information[/b][/color][/size]


[b ][u ][ color=#B1FB17]Armory Link[/color][/u][/b] - {{q_ArmoryLink}}
[b ][u ][ color=#B1FB17]Recent WWS Report[/color][/u][/b] - {{q_WWS}}


[b ][ color=#CCFB5D]Character name:[/color][/b] {{q_CharacterName}}
[b ][ color=#CCFB5D]Character Class:[/color][/b] {{q_CharacterClass}}
[b ][ color=#CCFB5D]Character Level:[/color][/b] {{q_CharacterLevel}}
As you can see the Names of the questions i told you to write down are done like "{{q_CharacterName}}" between {{}}.

You can also have thread titles look like the following:
Code:
Application from {{q_CharacterName}} Class: {{q_CharacterClass}}

::Making the application system work with 3.7.x::
  • Access Admin Panel and navigate to your Style Manager and edit the style you use.
  • Scroll down to "vgat_form" and Access
Find Line:
Code:
<input type="hidden" value="1" name="agree" />
Below it Add:
Code:
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
SAVE....

Scroll down the list again and find "vgat_rules" and Access.

Find Line
Code:
<input type="hidden" name="s" value="$session[sessionhash]" />
Below it Add:
Code:
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
SAVE....

Done

This Mod only officially works with 3.6... but since this is open code. anyone can take the code and make it work for 3.7 and re-publish it... with credits ofcourse.

Thats about it and im sure you can figure the rest out for yourselves.. i will try and help with any questions you may have.

Enjoy!!

Show Your Support

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

Comments
  #32  
Old 06-12-2008, 12:12 PM
Gooner Gooner is offline
 
Join Date: May 2007
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Freddie View Post
I'm not as good as you in writing Vbulletin hacks but also not so stupid to click a wrong button instead of the correct one
Joking aside, yes, I'm clicking the "Submit" button but nothing happens but a reload with all fields resetted.
I was taking a look into your XML file and I see there is only a management for the !OnError, so maybe I'm getting some error but is not shown.

I'll try to do some attempts with changes I have in mind, but if you have some suggestion to solve this case I would appreciate it a lot

Thanks again.
i think it must be some configuration not correct on your forum or admin panel because the mod itself should submit without a problem on 3.6.x
Reply With Quote
  #33  
Old 06-12-2008, 03:18 PM
Freddie Freddie is offline
 
Join Date: Jul 2005
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way to get errors shown?
Reply With Quote
  #34  
Old 06-12-2008, 09:28 PM
sparkster666 sparkster666 is offline
 
Join Date: May 2008
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I really need this for my Version 3.7.1 site. perhaps some donations would help. I also get this error

Code:
Your submission could not be processed because a security token was missing or mismatched.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.
Reply With Quote
  #35  
Old 06-13-2008, 08:03 AM
Gooner Gooner is offline
 
Join Date: May 2007
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This application system works with 3.6.x at the moment but...... i will get a new license and get 3.7.1 soon and troubleshoot this problem and hopefully have a 3.7.1 version ready... unless another coder gets there before me.... because this is re-usable code.
Reply With Quote
  #36  
Old 06-13-2008, 05:42 PM
sweede's Avatar
sweede sweede is offline
 
Join Date: Jan 2007
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice.

you really should change
PHP Code:
                foreach($HTTP_POST_VARS as $name => $value)
                {
                    
// Replace {{field_name}} with appropriate value.
                    
$code str_replace("{{" $name "}}"$value$code);
                    
$subject str_replace("{{" $name "}}"$value$subject); 
                    
                    
// Make sure, on error, keep fields filled out.
                    
eval("\$v_$name = \"$value\";");
                } 
though so that it doesnt use the $HTTP_POST_VARS superglobal. (and everywhere else you use the super globals.. and you should use $_REQUEST too btw)

https://vborg.vbsupport.ru/showthread.php?t=98047
Reply With Quote
  #37  
Old 06-13-2008, 05:56 PM
Gooner Gooner is offline
 
Join Date: May 2007
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks... but like i said in my OP, i have no time anymore for coding unfortunatly due to MCSE studies.... but please feel free to modify the code and put your own stamp on it and re-publish it... your very welcome to do so.


Quote:
Originally Posted by sweede View Post
Very nice.

you really should change
PHP Code:
                foreach($HTTP_POST_VARS as $name => $value)
                {
                    
// Replace {{field_name}} with appropriate value.
                    
$code str_replace("{{" $name "}}"$value$code);
                    
$subject str_replace("{{" $name "}}"$value$subject); 
                    
                    
// Make sure, on error, keep fields filled out.
                    
eval("\$v_$name = \"$value\";");
                } 
though so that it doesnt use the $HTTP_POST_VARS superglobal. (and everywhere else you use the super globals.. and you should use $_REQUEST too btw)

https://vborg.vbsupport.ru/showthread.php?t=98047
Reply With Quote
  #38  
Old 06-13-2008, 09:47 PM
sweede's Avatar
sweede sweede is offline
 
Join Date: Jan 2007
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gooner View Post
Thanks... but like i said in my OP, i have no time anymore for coding unfortunatly due to MCSE studies.... but please feel free to modify the code and put your own stamp on it and re-publish it... your very welcome to do so.

I may do that, i like how you made the app form semi- customizable.

I had throught of creating template blocks that you can export and build a form with the vbulletin options but i for whatever reason couldnt figure out how to make it that dynamic. Using some of how you did it though, i should be able to make it complete and have a truely dynamic form.

Also, seein as how you're an avid MMO'er, you should know by now that no one reads the first post
Reply With Quote
  #39  
Old 06-13-2008, 09:50 PM
tuaguild's Avatar
tuaguild tuaguild is offline
 
Join Date: Dec 2007
Location: Memphis TN
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i am getting that security token error even with the fix to the templates.
Reply With Quote
  #40  
Old 06-18-2008, 08:20 AM
salty salty is offline
 
Join Date: Mar 2008
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get the following error when I attempt to submit the form....

Code:
Fatal error: Call to undefined function build_forum_counters() in /home/salty/public_html/misc.php(96) : eval()'d code on line 129
how do I fix this?
Reply With Quote
  #41  
Old 06-18-2008, 10:44 AM
sweede's Avatar
sweede sweede is offline
 
Join Date: Jan 2007
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Salty RS salty?

It would appear that you're using vbb 3.6, which does not contain the function build_forum_counters(). Perhaps the original author mis-marked the forum version requirement for the addon?
Reply With Quote
Reply

Thread Tools

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 05:48 PM.


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.07029 seconds
  • Memory Usage 2,341KB
  • 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
  • (13)bbcode_code
  • (2)bbcode_php
  • (3)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