Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Confused about google  (Read 2458 times)

0 Members and 1 Guest are viewing this topic.

marian

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 160
    • BYM Photo Gallery
Confused about google
« 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.
« Last Edit: August 02, 2005, 04:04:08 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Confused about google
« Reply #1 on: August 02, 2005, 07:13:05 am »

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
Code: [Select]
                        <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
Code: [Select]
                        <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
Logged

marian

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 160
    • BYM Photo Gallery
Re: Confused about google
« Reply #2 on: August 02, 2005, 11:56:57 am »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.