forum.coppermine-gallery.net
Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: marian on August 01, 2005, 11:51:39 am
-
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.
-
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
-
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