Thread: Add-On Releases - Advanced Application Forms
View Single Post
  #5  
Old 07-20-2011, 02:50 PM
nhawk nhawk is offline
 
Join Date: Jan 2011
Posts: 1,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chick View Post
This is great and works very well, just one issue (see the word ARRAY in the attached image) it shows on the main form page, and the page that one fills out.

Is there a way to remove this or fix it? Thank you
There shouldn't be anything where you're showing 'ARRAY' unless there's an error after sending the application. And the error isn't an array.

There might be a problem with the template, try replacing the advapp_application template with this...

Code:
$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
	<!-- no cache headers -->
	<meta http-equiv="Pragma" content="no-cache" />
	<meta http-equiv="Expires" content="-1" />
	<meta http-equiv="Cache-Control" content="no-cache" />
	<!-- end no cache headers -->
	$headinclude
	$advapp_css
	<title>$pagetitle - $vboptions[bbtitle]</title>
</head>
<body>
$header
$navbar
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" style="border-bottom-width:0px">
	<tr>
		<td class="tcat" width="100%">$apptype</span></td>
	</tr>
</table>
<if condition="$imp_vars['do'] == 'start' OR $imp_vars['do'] == 'errors'">
	<form action="application-forms.php?do=send" method="post"id="staff_application">
	<table class="tborder" width="100%" cellpadding="6" cellspacing="1" border="0"  align="center">
		<thead>
			<tr align="center">
				<td class="thead" align="left">$pagetitle</td>
			</tr>
		</thead>
		<tbody>
			<if condition="$errors != ''">
	 		<tr align="center">
				<td class="alt1" align="left">
 					<table cellpadding="0" cellspacing="0" border="0">
						<tr>
							<td>
									$errors
							</td>
						</tr>
					</table>
 				</td>
			</tr>
			</if>
			<tr align="center">
				<td class="alt2">
					<table width="95%" cellpadding="6" cellspacing="1" border="0">
						<tr align="left">
							<td width="45%" valign="top"><div class="advappleftcol">
								$vbphrase[advapp_applyfor]
							</div></td>
							<td>
								$positionname
							</td>
						</tr>
						<tr align="left"><td colspan="2"><div class="tcat appdiv"></div></td></tr>
						<tr align="left">
							<td width="45%" valign="top"><div class="advappleftcol">
								$vbphrase[advapp_membername]
							</div></td>
							<td>
								$username
							</td>
						</tr>
						$questions
						<if condition="$vboptions[advapp_humanverify]">
						<if condition="$human_verify">
						<tr align="left"><td colspan="2"><div class="tcat appdiv"></div></td></tr>
						<tr align="left">
							<td width="45%" valign="top">
							$vbphrase[advapp_humanverify]
						</td><td>
							$human_verify
						</td></tr>
						</if>
						</if>
					</table>
 				</td>
			</tr>
		</tbody>
	</table>
	<br />
	<div class="advbuttons">
		<div class="group">
		<input type="hidden" name="maxquestions" value="$maxquestions" />
		<input type="hidden" name="positionapplying" value="$positionapplying" />
		<input type="hidden" name="positionname" value="$positionname" />
		<input type="hidden" name="appid" value="$appid" />
		<input type="hidden" name="apptype" value="$apptype" />
		<input type="hidden" name="multichoice" value="$multichoice" />
		<input type="hidden" name="username" value="$username" />
		<input type="submit" class="button" value="$vbphrase[send]" tabindex="1" accesskey="s" />
		<input type="reset" class="button" value="$vbphrase[reset_fields]" tabindex="1" accesskey="r" />
		<input type="hidden" name="s" value="$session[sessionhash]" />
		<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
		</div>
	</div>
	</form>
<else />
	<div class="standard_error">
		<h2 class="blockhead">$vbphrase[vbulletin_message]</h2>
		<div class="blockbody formcontrols">
			<div class="blockrow restore">
				<p align="center">$vboptions[advapp_thanks]</p>
				<p><a href="$vboptions[forumhome].php$session[sessionurl_q]"><div class="smallfont" align="center">$vbphrase[advapp_return] $vboptions[bbtitle]</div></a></p>
			</div>
		</div>
	</div>
</if>

$footer
</body>
</html>
If that doesn't do it, then I'm going to need all of the info on the application. (vB version, postion settings, questions, etc).

EDIT: I just noticed you said it shows on the main form page too. On the main page, that would be the application type greeting in that area. But again, that's not an array. It almost sounds like something wasn't imported during install. That's a long shot, but that's all I can think of.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01232 seconds
  • Memory Usage 1,800KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete