Quote:
Originally Posted by chick
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.