PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 08-15-2004, 03:18 PM   #1
JohannMuller
Green Mole
 
Join Date: Aug 2004
Posts: 4
Question Search box on search templates

Hi there,

I have installed php on my site and everything seems to be working fine, except for one thing. When I use any of the search templates and I type in a query I get either one or no result. However, if I then click on one of the other template links at the top, the full search results with e.g. 15 hits come out. What am I doing wrong.

My website is www.dutchtax.net. There is a search box at the bottom of the page. This works fine, but if you then try to run a second query from the results page (search template), things go wrong. Ps. I removed all search templates except for phpdig.html).

Hope this is clear enough.

Kind regards,


Johann Muller
__________________
Johann Muller
JohannMuller is offline   Reply With Quote
Old 08-15-2004, 04:05 PM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. If I use the search box at the bottom of the page, I get results like you say, but on the second query the words "next query" are in the search box, and running that search produces no results. If, on the second query, I replace "next query" with my search terms, I get results again.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 08-16-2004, 12:19 AM   #3
JohannMuller
Green Mole
 
Join Date: Aug 2004
Posts: 4
Charter, thanks for getting back to me.

After I posted the piece and waited for a while (I know it was not long, but it was about 2 am my time in Amsterdam) I tweaked the code in the grey template such that worked like the one on my home page which is fine for now. During European time I get a couple of hundred hits a day and I wanted the site to work properly this morning.

However, the problem remains as described, if I use the code as it came with PHPDig 1.8.3, I get no search results. The original code read:
<td>
<phpdig:form_head/>
<table class="borderCollapse">
<tr>
<td class="blueForm">
<phpdig:form_title/>
</td>
</tr>
<tr>
<td class="greyForm">
<phpdig:form_field/>
<phpdig:form_button/>
<phpdig:form_select/>
</td>
</tr>
<tr>
<td class="greyForm">
<phpdig:form_radio/>
</td>
</tr>
<tr>
<td class="greyForm">
<phpdig:form_dropdown/>
</td>
</tr>
</table>
<phpdig:form_foot/>
</td>

I changed it for now to
<div><form action="http://www.dutchtax.net/PHPDIG_DIR/search.php" method="post"><input name="query_string" type="text" size="35" value="next query" tabindex="2"><input name="search" type="submit" value="Go"></form></div>

I do not know another way of explaining other than showing you what I mean. Is it possible for us to agree a time around which I can change back the site (it is a matter of swapping the current phpdig.html for the original). How about this afternoon at 4 my time (Central European Time), which is 10am in NY?

Thank you for the help it really is appreciated.
__________________
Johann Muller
JohannMuller is offline   Reply With Quote
Old 08-16-2004, 05:57 AM   #4
vinyl-junkie
Purple Mole
 
Join Date: Jan 2004
Posts: 694
Perhaps this thread will be of some use.
vinyl-junkie is offline   Reply With Quote
Old 08-16-2004, 06:11 AM   #5
JohannMuller
Green Mole
 
Join Date: Aug 2004
Posts: 4
Thanks Vinyl-Junkie,

Just sent you a short pm.

Johann
__________________
Johann Muller
JohannMuller is offline   Reply With Quote
Old 08-16-2004, 07:05 AM   #6
JohannMuller
Green Mole
 
Join Date: Aug 2004
Posts: 4
Here is the rest of our correspondence for everyone else's benefit.

Kind regards,


Johann Muller

____________________________________________________

----- Original Message -----
From: Vinyl-Junkie
To: Johann Muller
Sent: Monday, August 16, 2004 4:46 PM
Subject: Re: vinyl-junkie from phpdig forums


Hi Johann,

Looks like a bug to me in that template. You might want to post a message on the forum confirming that. In the meantime, just set your config.php file to use a single template and not give visitors a choice of which to display.

-------------------------------------------------------------------

----- Original Message -----
From: Johann Muller
To: Vinyl-Junkie
Sent: Monday, August 16, 2004 7:19 AM
Subject: Re: vinyl-junkie from phpdig forums


Great, thanks.

I just swapped the phpdig.html files. May I suggest the following.

1. Go to www.dutchtax.net and fill in "participation" in the search box. Hit the button. You should get a lot of results.
2. In the results page (phpdig.html) fill in "participation exemption" in the search box and hit the button. You should now get no results at all (or only 1).
3. However, if you then click on the "phpdig.html" link at the top of the page you will get all the search results under participation exemption.

Can you help me with what goes wrong between step 2 and 3.

Kind regards,


Johann Muller

-------------------------------------------------------------------
__________________
Johann Muller
JohannMuller is offline   Reply With Quote
Old 08-17-2004, 02:48 PM   #7
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Perhaps the SEARCH_PAGE constant is not set correctly in the config file?
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Search box opening a new window? llawrence Troubleshooting 0 05-23-2007 04:39 AM
Search box on every page? chrisdgreen How-to Forum 3 07-29-2005 09:27 AM
search box? WebDiva 2.0 How-to Forum 3 08-19-2004 12:58 PM
Adding search box to every page Psycho1 How-to Forum 7 04-25-2004 08:04 AM
Search box on html page rafarspd How-to Forum 4 12-04-2003 06:37 AM


All times are GMT -8. The time now is 06:48 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.