Confused about google Confused about google
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Confused about google

Started by marian, August 01, 2005, 11:51:39 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

marian

I have the problem that Google keeps picking up the URLS of pix from Last Uploads, Most Viewed etc. As we add around 40 photos per day, the Last Uploads are a particular prob and we keep getting e-mails saying "Wrong Picture".
I've searched and found a thread that solves this - http://forum.coppermine-gallery.net/index.php?topic=9725.msg43677#msg43677 - but being php challenged I'mstill  not clear about what I have to do.
It says "This has been solved in the CVS - now it uses PID - so pos is ignored", but I dont know what CVS and PID mean.
Also as that thread is almost a year old I'm not sure whether the instructions apply to 1.3, so before I attempt to alter the code could someone clarify what exactly I need to do?
Thanks in advance.

Joachim Müller

The thread you're refering to doesn't apply to cpg1.3.x, but to the next coppermine version. You could make the google spider ignore the links by adding a rel="nofollow" attribute to the links. Edit themes/yourtheme/theme.php, find                        <a href="{LASTUP_TGT}">{LASTUP_LNK}</a> ::
                        <a href="{LASTCOM_TGT}">{LASTCOM_LNK}</a> ::
                        <a href="{TOPN_TGT}">{TOPN_LNK}</a> ::
                        <a href="{TOPRATED_TGT}">{TOPRATED_LNK}</a> ::
                        <a href="{FAV_TGT}">{FAV_LNK}</a> ::
                        <a href="{SEARCH_TGT}">{SEARCH_LNK}</a>
and replace with                        <a href="{LASTUP_TGT}" rel="nofollow">{LASTUP_LNK}</a> ::
                        <a href="{LASTCOM_TGT}" rel="nofollow">{LASTCOM_LNK}</a> ::
                        <a href="{TOPN_TGT}" rel="nofollow">{TOPN_LNK}</a> ::
                        <a href="{TOPRATED_TGT}" rel="nofollow">{TOPRATED_LNK}</a> ::
                        <a href="{FAV_TGT}" rel="nofollow">{FAV_LNK}</a> ::
                        <a href="{SEARCH_TGT}" rel="nofollow">{SEARCH_LNK}</a>
This will tell the google spider not to include those links when indexing your page. For details, see http://googleblog.blogspot.com/2005/01/preventing-comment-spam.html

marian

Thanks GauGau I've noted that code.
Not sure about putting off spiders, but this isn't the place so I'll post in General Discussion