By chueewowee on
When I do a search I get the contents of the front page. I've tried a number of searches.
The only difference is the breadcrumb disappears, but the listings are as front page. 75% of the site has been indexed, with cron set up from the web host 'webcron'. Reports from them are successful jobs.
Also, my 4.6 test site on my home computer returns no results and does the same thing.
I can see there is no error in the logs.
Any ideas of how to proceed with checks?
You can test it on m site at:
Comments
Broken search form
The built-in search form in your theme is incorrect. Try copying one from one of the standard themes.
Using the correct URL works:
http://www.mightyzero.com/press/search
--
If you have a problem, please search before posting a question.
neat
Thanks so much for taking the trouble Steve. I based the theme on Blix, and I suppose I must have alterded the search form, unless Bix had iit wrong, in page.tpl.php. I'll check both soloutions
-----------------------------------------------------
"It's never too late to have a happy childhood."
http://mightyzero.com/press
Repair Search function in non-starndard themes
I found the search function doesn't work in non-standard themes like Blix and
Manji, but does in standard themes like bluemarine and friendselectric.
How can continue to work with on the non-standard theme I started on , but incorporate a working search function?
I checked page.tpl.php in Blix and in Manji, and they seem to have similar but not identical search function code as in the standard themes. I can see this is not a phptemplate/xtemplate issue.
I can't show the code here as posting won't allow it.
Cheers.
-----------------------------------------------------
"It's never too late to have a happy childhood."
I need help with this too.
I need help with this too. Anyone got a solution? I run the Blix theme but whenever I enter something in the search box it takes me to the default search page.
???
Correct your page.tpl.php
You can find the correct code in the page.tpl.php of for example FriendsElectric
I wanted to write here what part needs to be replaced with what, but everytime i try to submit, my submission is cancelled eventhough I use the
code tags.
Best regards,
Lennart
Best regards,
Lennart
Thanks..but phptemplate not working
Ok thanks. I understand that, and even guessed it. But now phptemplate causes a break, so I can't use it! ...since installing Tiger OS X. Something to do with the included PHp4 I guess.
-----------------------------------------------------
"It's never too late to have a happy childhood."
Got a decent search function in Blix
Thanks Lennart, it's good. Just need to put in a relevant div class in my css to position it well.
-----------------------------------------------------
"It's never too late to have a happy childhood."
Open the page.pl.php
Open the page.pl.php
Inside
,
find the following codes. It might be slightly different in different themes.
change
name="keys"intoname="edit[keys]", then you are done. Your search box will word properly.--------------------------
http://www.kzeng.info
Worked Great, Thanks
Thanks very much for this fix! Worked great on my Pushbutton PHP theme using the phptemplate engine :-)
search box now returns search results not default search page
thank you very much for the fix!
in part, i wrote this comment so that the fix might be more easily found by the title. i've spent a couple of months off and on trying to find a fix. i figured i couldn't have been the only one with this problem...but nothing was coming up.
thanks again...
eva