Print Page | Close Window

Search box on each page.

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=14205
Printed Date: 12 April 2026 at 5:39pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Search box on each page.
Posted By: Slap_Shot_12
Subject: Search box on each page.
Date 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!



Replies:
Posted By: MadDog
Date Posted: 11 March 2005 at 7:07pm
What website(s) are you talking about?

-------------
http://www.iportalx.net" rel="nofollow">


Posted By: Slap_Shot_12
Date Posted: 11 March 2005 at 9:42pm

I'm talking about adding a search box like the one on http://www.ladred.net/forum/ - http://www.ladred.net/forum/ , but adding it to the normal default.asp page from web wiz.

 
Thanks!


Posted By: WebWiz-Bruce
Date 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.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: AlexDP
Date Posted: 13 March 2005 at 12:29pm
I have a search box towards the top on http://www.pimms-pages.co.uk/forums/forum_topics.asp?FID=1 - 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?



-------------
http://www.pimms-pages.co.uk - Guinea Pigs World
http://www.pimms-pages.co.uk/forums/ - Guinea Pig Forums


Posted By: Slap_Shot_12
Date 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
< br>
 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:
valign="middle"
. That should do it.
3. A forum on Guinea Pigs? Seriously?? Wink
 
Thanks again!!!


Posted By: AlexDP
Date Posted: 21 March 2005 at 9:16am
Originally posted by Slap_Shot_12 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!!!


-------------
http://www.pimms-pages.co.uk - Guinea Pigs World
http://www.pimms-pages.co.uk/forums/ - Guinea Pig Forums



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net