coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: Teune on August 24, 2005, 11:04:09 PM

Title: Google bot changing most recently viewed picture list (NOT robots.txt issue)
Post by: Teune on August 24, 2005, 11:04:09 PM
http://www.chicagobirds.com/photos

I have Random, Recently Added, and Recently Viewed thumbnails on the start page.
But at least once a day it seems that Google comes in (I'm happy) and runs through a certain set of pics (dozens or more at exactly the same time) and those pics get added to the most recently viewed. But the number of total views does not go up unless someone actually views a picture.
So the thumbnails at the bottom of recently viewed usually shows mostly the last Google bot runthrough, but the stats are good, they only change for actual views.
Anyone seen this before or know of a way to prevent a search engine from changing the recently viewe thumbnails?

Ed
Title: Re: Google bot changing most recently viewed picture list.
Post by: Stramm on August 25, 2005, 06:04:27 PM
read this http://www.robotstxt.org/wc/faq.html#away
Title: Re: Google bot changing most recently viewed picture list.
Post by: Teune on September 13, 2005, 06:00:34 PM
Quote from: Stramm on August 25, 2005, 06:04:27 PM
read this http://www.robotstxt.org/wc/faq.html#away

I understand about robots.txt

As in my original post I never indicated that I didn't want Google to index my site.

I WANT Google to find my gallery and my pictures, but I do not want it to effect my recently viewed photos list since it does not increase the view counter.
Since it does not increment the viewed counter, surely there must be a way for the pictures viewed by a search engine bot to not show up in the most recently viewed list.

Any ideas?
Title: Re: Google bot changing most recently viewed picture list (NOT robots.txt issue)
Post by: Joachim Müller on September 19, 2005, 09:54:34 AM
you could hack the coppermine code: add the rel="nofollow" attribute to the links that lead to most recently viewed pics, make the google spider obey your "regular" navigation only. Edit themes/yourtheme/theme.php, find<a href="{TOPN_TGT}">{TOPN_LNK}</a> ::and replace with<a href="{TOPN_TGT}" rel="nofollow">{TOPN_LNK}</a> ::. It's a bit more complicated though to make the spider ignore the thumbnauils created in the meta album blocks on the index pages, but with some hacking (the case switches are the place to look for) you should manage as well.
Title: Re: Google bot changing most recently viewed picture list (NOT robots.txt issue)
Post by: Teune on September 19, 2005, 05:21:10 PM
Thanks Gaugau, I will give that a shot!  ;D