| Author |
Topic Search Topic Options
|
Slap_Shot_12
Newbie
Joined: 11 March 2005
Status: Offline
Points: 16
|
Post Options
Thanks(0)
Quote Reply
Topic: Search box on each page. Posted: 11 March 2005 at 6:05pm |
I've seen a few sites with a search box on the default.asp page, and then on the forum_topics.asp page so you don't have to click the 'search' button and go to a new page to search.
I haven't seen a mod for that, though. Is there one?
Thanks!
|
 |
MadDog
Mod Builder Group
Joined: 01 January 2002
Status: Offline
Points: 3008
|
Post Options
Thanks(0)
Quote Reply
Posted: 11 March 2005 at 7:07pm |
|
What website(s) are you talking about?
|
|
|
 |
Slap_Shot_12
Newbie
Joined: 11 March 2005
Status: Offline
Points: 16
|
Post Options
Thanks(0)
Quote Reply
Posted: 11 March 2005 at 9:42pm |
I'm talking about adding a search box like the one on http://www.ladred.net/forum/, but adding it to the normal default.asp page from web wiz.
Thanks!
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 12 March 2005 at 3:14am |
|
That site is not using Web Wiz Forums.
They are using a PHP based forum system, which is written differently to web wiz forums.
Maybe you could suggest this as a feature in the Web Wiz Forums version 8 suggestion topic.
|
|
|
 |
AlexDP
Groupie
Joined: 19 October 2004
Location: England
Status: Offline
Points: 45
|
Post Options
Thanks(0)
Quote Reply
Posted: 13 March 2005 at 12:29pm |
I have a search box towards the top on my forum_topics.asp pages. However I can't get it to align properly, if anyone can help I would be grateful.
I used the code below for the seach box. It only searches the current forum, not the whole site/forum.
<td width="40%" align="left"><span
class="text"><form method="get" name="frmSearch"
action="search.asp" onSubmit="return CheckForm();" onReset="return
confirm('<% = strResetFormConfirm %>');">
Search:<br />
<input type="text"
name="KW" maxlength="35"
onFocus="if(this.value==this.defaultValue)this.value=''" value="Search
This Forum">
<span class="text">
<input type="hidden" name="SI" value="PT">
<input type="hidden" name="FM"
<%
'Display a link in the link list to the forum
Response.Write vbCrLf & "value=" & intForumID & " "
If
CInt(Request.QueryString("FID")) = intForumID OR
CInt(Request.QueryString("forum")) = intForumID Then Response.Write
"selected"
%>
>
<input type="hidden" name="SM" value="3">
<input type="hidden" name="OB" value="1">
<!-- Check the from is filled in correctly before submitting -->
<script language="JavaScript">
<!-- Hide from older browsers...
//Function to check form is filled in correctly before submitting
function CheckForm () {
//Check for a somthing to search for
if (document.frmSearch.KW.value==""){
msg = "<% = strTxtErrorDisplayLine %>\n\n";
msg += "<% = strTxtErrorDisplayLine1 %>\n";
msg += "<% = strTxtErrorDisplayLine2 %>\n";
msg += "<% = strTxtErrorDisplayLine %>\n\n";
msg += "<% = strTxtErrorDisplayLine3 %>\n";
alert(msg + "\n\t<% = strTxtSearchFormError %>\n\n");
document.frmSearch.KW.focus();
return false;
}
return true;
}
// -->
</script>
</span>
<input type="submit" name="Submit" value="Go">
</form></span></td>
|
Is this what your after?
|
|
|
 |
Slap_Shot_12
Newbie
Joined: 11 March 2005
Status: Offline
Points: 16
|
Post Options
Thanks(0)
Quote Reply
Posted: 13 March 2005 at 6:21pm |
A few things, Alex....
1. That's EXACTLY what I was looking for. YOU'RE THE KING!
2. From a quick glance, I'd guess that you're alignment issue is being caused by the word 'Search' above your text box. To fix it, I think you have a couple options - the first would be to delete the
after the word "Search". The second would be to set the vertical alignement of the 3 cells in your table to middle. To do that just insert the following inside your <TR> tag:
. That should do it.
3. A forum on Guinea Pigs? Seriously?? 
Thanks again!!!
|
 |
AlexDP
Groupie
Joined: 19 October 2004
Location: England
Status: Offline
Points: 45
|
Post Options
Thanks(0)
Quote Reply
Posted: 21 March 2005 at 9:16am |
Slap_Shot_12 wrote:
That's EXACTLY what I was looking for. YOU'RE THE KING! |
No problem - glad to help.
Have tried fiddling with the table, can't get it exactly level in IE
but it will do. My guinea pig forum is very popular - don't mock it!!!
|
|
|
 |