The search facilty, still doesn't work and does not return post results that I know are listed.
Any Ideas Please BA?
The following is what I have in my vB4.0.3
PHP Code:
<tr>
<vb:if condition="$threadinfo['threadid'] == 'XXXX'">
<td align="$stylevar[left]" valign="top" width="50%">
<fieldset class="fieldset" style="margin:0px">
<legend><b><font size="3">Search</font> <font size="2"></b></legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td colspan="2">
<tr>
<form action="search.php?do=process&searchthreadid=XXXX" method="post">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class=""><b><font size="2">Please enter a search word:</font></b><a name="goto_threadsearch"></a></td>
</tr>
<tr>
<td align="left">
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" name="do" value="process" />
<input type="hidden" name="searchthreadid" value="$threadinfo['threadid']}'" />
<font size="3"><b>Find:</b></font> <input type="text" class="bginput" name="query" size="25" /> <input type="image" src="http://www.myforumaddress.com/images/sample.gif" alt="Search ."><br/>
</td>
</tr>
</table>
</form>
</select></label>
</tr>
</fieldset></vb:if>
<br />
I have also tried the following too:
PHP Code:
<input type="hidden" name="searchthreadid" value="$threadinfo['threadid']}'XXXX" />
PHP Code:
<input type="hidden" name="searchthreadid" value="$threadinfo['threadid']}'XXXX'" />
PHP Code:
<input type="hidden" name="searchthreadid" value="$threadinfo['threadid']} == 'XXXX" />
Where XXXX is the threadID.