Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Google Site Search and internal Textpattern search
On PHPXref, I updated the Google Site Search code. I decided this time to display the results on my own site.
What I encountered on the search results page was a bit odd, at the top was Textpattern specific search results. For a time there, I thought Google knew what I was running and was including my own site’s results. Then it hit me.
This is the URL for a Textpattern search:
This is the URL for a Google Site Search:
What I think is happening, is that Textpattern is pulling out the ?* and the *q=phpxref from the Google derived URL.
Am I on the right track?
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
Re: Google Site Search and internal Textpattern search
Bert,
I’m not authoritative about this, but your theory fits what I know. TXP just takes the query string, parses it up, and then says “is there a parameter named ‘q’?” If so, it assumes you are doing a search.
I’m not sure what the fix is. Easiest (if possible) would be to have Google not use ‘q’ in their query. Next easiest is probably to tell TXP not to run searches when using that URL, although I’m not sure how to do that. You could also try to get TXP to use some parameter other than ‘q’ for its searches.
Offline
Re: Google Site Search and internal Textpattern search
Hey Nathan,
When I get a chance I’ll see what I do, the easiest is changing the Textpattern code on PHPXref.
But as you suggest, I’m going to contact Google and ask them what they could do at their end. Textpattern was around long before Site Search was launched.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
Offline
Re: Google Site Search and internal Textpattern search
Gocom,
That did the trick, I feel like a txp:tag newbie. As the saying goes, if you don’t use it, you lose it.
Thanks.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline