Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

cool11

macrumors 68000
Original poster
Sep 3, 2006
1,851
228
http://www.google.com/coop/cse/

is the first link one should visit.

But I am not sure if it is the easiest way to go.

I thought all I had to do is copy paste some code lines, in php, in web pages of my site.
Instead of this, if I try to explore google custom search through the official google page, I should make a google account, make some declaration etc.

Can you please help me to do it with ease?
Are there any php code lines to include them in my site?
 
You're not really explaining what you want to achieve, and why you're having difficulty.

If you want a Google custom search you sign up and get one, it's pretty much as simple as that.
 
The Google custom search involves copy and pasting some HTML code, not PHP. I set it up on my site with no troubles. If you could explain your situation more we might be able to give you some guidance.
 
Ι took the steps in google.com/cse. I did made an account to use it.

First step: "Set up your search engine"
...
Sites to search: domain.com (my site)

Second step: "Try it out "
I tried many words, included even in the index page of my site but here is what I always get:

Web results preview close
If these aren't the results you expected, you can go back to step 1 and make changes.

Your search - "the word I am searching"- did not match any documents.



So, what am I doing wrong?
 
Has your web site been indexed by Google? Using Google's webmaster tools you can find out. The custom search works off of its index of your site, so if it hasn't indexed your site yet it won't return anything as you are experiencing. The Google webmaster tools will also let you submit a sitemap file that will help Google index your site. You cans search that out, it should be easy to find out about.
 
My site is indexed by google since many years.
Where is my fault?
 
Despite the preview not showing results during setup, have you implemented the search on your site to try out? If so, can you post a link to where you have implemented it? Maybe there's something in the code that could give a clue.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.