PDA

View Full Version : Search box on search templates


JohannMuller
08-15-2004, 03:18 PM
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

Charter
08-15-2004, 04:05 PM
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.

JohannMuller
08-16-2004, 12:19 AM
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.

vinyl-junkie
08-16-2004, 05:57 AM
Perhaps this thread (http://www.phpdig.net/showthread.php?s=&threadid=839&highlight=search+box+every+page) will be of some use. :)

JohannMuller
08-16-2004, 06:11 AM
Thanks Vinyl-Junkie,

Just sent you a short pm.

Johann

JohannMuller
08-16-2004, 07:05 AM
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

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

Charter
08-17-2004, 02:48 PM
Perhaps the SEARCH_PAGE constant is not set correctly in the config file?