Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Search box on each page.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Search box on each page.

 Post Reply Post Reply
Author
Slap_Shot_12 View Drop Down
Newbie
Newbie
Avatar

Joined: 11 March 2005
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Slap_Shot_12 Quote  Post ReplyReply Direct Link To This Post 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!
Back to Top
MadDog View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 01 January 2002
Status: Offline
Points: 3008
Post Options Post Options   Thanks (0) Thanks(0)   Quote MadDog Quote  Post ReplyReply Direct Link To This Post Posted: 11 March 2005 at 7:07pm
What website(s) are you talking about?
Back to Top
Slap_Shot_12 View Drop Down
Newbie
Newbie
Avatar

Joined: 11 March 2005
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Slap_Shot_12 Quote  Post ReplyReply Direct Link To This Post 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!
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
AlexDP View Drop Down
Groupie
Groupie


Joined: 19 October 2004
Location: England
Status: Offline
Points: 45
Post Options Post Options   Thanks (0) Thanks(0)   Quote AlexDP Quote  Post ReplyReply Direct Link To This Post 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?

Back to Top
Slap_Shot_12 View Drop Down
Newbie
Newbie
Avatar

Joined: 11 March 2005
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Slap_Shot_12 Quote  Post ReplyReply Direct Link To This Post 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!!!
Back to Top
AlexDP View Drop Down
Groupie
Groupie


Joined: 19 October 2004
Location: England
Status: Offline
Points: 45
Post Options Post Options   Thanks (0) Thanks(0)   Quote AlexDP Quote  Post ReplyReply Direct Link To This Post 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!!!
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.