Google results - photo, description but no site reference

Phoca Gallery - image gallery extension
cresty
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 24 Jul 2009, 10:31

Google results - photo, description but no site reference

Post by cresty »

Hi, firstly, superb gallery, has made my site sooo much easier to use and easy on the eyes, thanks.

Just noticed that Google has started to index the descriptions for all photos (they are quite meaty which is great) as well as the thumbnail titles. No problem with the thumbnails as clicking on a search result takes you to the category page, it's the individual photos that are a bit of a problem. For instance, this Google search result takes you to the following page - http://www.detego.co.uk/index.php?optio ... &Itemid=15

Thing is, there's no reference other than in the url as to where this image is from and you end up with the picture and description but that's it, have I missed something basic for the image to appear on the site template or is this not possible because it's contained within a frame? My only option at present that I can see is to add at the end of each description a copyright symbol with link to the main site.

Any help much appreciated, thanks.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Google results - photo, description but no site reference

Post by Jan »

Hi, yes this is the problem of popups, if some robots will find information in popups it will ignore it and display the information as whole site :-( The solution can be addint nofollow tag for links to popup but then no robots will find this information so maybe it is better to add the link there for such cases. :(
If you find Phoca extensions useful, please support the project
cresty
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 24 Jul 2009, 10:31

Re: Google results - photo, description but no site reference

Post by cresty »

Thanks Jan,
Oh well, lots of copy and paste to do, although it's small price to pay for knowing the bots are searching the pop up text so no problem. I'm amazed I've not come across it before in Google searches actually.
Thanks again for such a super component and the excellent support.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Google results - photo, description but no site reference

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
linux4me
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 01 Dec 2009, 23:52

Re: Google results - photo, description but no site reference

Post by linux4me »

cresty wrote:Thanks Jan,
Oh well, lots of copy and paste to do, although it's small price to pay for knowing the bots are searching the pop up text so no problem. I'm amazed I've not come across it before in Google searches actually.
Thanks again for such a super component and the excellent support.
For your existing posts, I wouldn't do any copy-and-pasting. If you have access to the database via something like phpMyAdmin, you can just run a quick SQL statement to add the text and link to the end of your description for all the existing images. It will be something like this:

Code: Select all

UPDATE jos_phocagallery SET jos_phocagallery.description=CONCAT(jos_phocagallery.description, '<p>To see more images, visit the <a href="http://www.yourdomain.com/index.php?option=com_phocagallery&view=categories&Itemid=125">Your Web Site Gallery Name</a>.</p>') WHERE INSTR(jos_phocagallery.description, '<p>To see more images, visit the <a href="http://www.yourdomain.com/index.php?option=com_phocagallery&view=categories&Itemid=125">Your Web Site Gallery Name</a>.</p>')=0
What that does is add the string '<p>To see more images, visit the <a href="http://www.yourdomain.com/index.php?opt ... =125">Your Web Site Gallery Name</a>.</p>' to all your image descriptions if it doesn't already exist. You'll need to modify the domain name, the database prefix if it's not "jos," the Itemid, and the name of your gallery in both places it appears in the SQL statement to match your site, and modify both to fit what you have already appended to your existing images if you've already done some copy-and-pasting.

This approach will be a lot better than doing all that copy-and-pasting, but you'd still have to run the query every time you add images to resolve the Google image link problem.

I have a suggestion for a better solution. How about adding a parameter to PhocaGallery so the user can enter some HTML that will automatically be appended to the description of each image to resolve this problem with search engine indexing? Google and other search engines are a fantastic source of links to a site.

Thanks for a great gallery solution, Jan.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Google results - photo, description but no site reference

Post by Jan »

Hi, added into the feature request list.

Jan
If you find Phoca extensions useful, please support the project
Post Reply