Dublicate Pages Dublicate Pages
 

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

Main Menu

Dublicate Pages

Started by ArturO, December 24, 2005, 04:35:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ArturO

Hello,
Im using Coppermine Photo Gallery 1.3.0

I used the Forum-Search to find a solution for my Problem, but couldn't find a thread that could help me out.

Some Pages do display the same Content because they are available through different URls.
For example :
displayimage.php?album=29&pos=0 AND displayimage.php?pos=-253
displayimage.php?pos=-253 itself is Refered within displayimage.php?album=29&pos=0

How must coppermine be edited/configured to only use Links to the displayimage.php?pos=-xxx file
The Links from following Pages need to be edited
thumbnails.php?album=29
Thumbnails from displayimage.php?pos=-252 so as the thumbnails in displayimage.php?album=29&pos=1

I try to exclude the Googlebot from indexing and cacheing some of my dublicate pages by setting the following Metatags to the files
<META NAME="GOOGLEBOT" CONTENT="NOINDEX, NOFOLLOW, NOSNIPPET, NOARCHIVE">
A bunch of pages are already indexed, so I cannot use the robots.txt file.
Because I dont want to fully exclude googlebot from all of my gallery I cannot use them in the template.html but must include them only in following files:
-files with $_GET['fullsize'] set
-files with $_GET['slideshow'] set
-files with album and pos set

Joachim Müller

upgrade to cpg1.3.5, your coppermine version is very outdated.
Use robots.txt, the google bot reads it whenever visiting your page. You can as well ask google to remove your pages from the index. More details: http://www.google.com/intl/en/webmasters/ and http://www.google.com/intl/en/webmasters/bot.html

ArturO

#2
I just set up CPG 1.4.2

The program-code is way to difficult to understand for me. I still want to chieve that the Thumbnails in the Album-Display link to displayimage.php?ps=-xxx instead of displayimage.php?album=xx&pos=x
So as the preview-thumbs of the displayimage.php when displaying media.

ADD:
I just found this Thread http://forum.coppermine-gallery.net/index.php?topic=5832.20
I got it to work so that URls are displayed ike this : displayimage.php?album=24&pos=-900 instead of pos=1,2,3 and so on...
But what needs to be modified so that the album=xx is no longer included?

Doing the modifications to the displayimage.php as described in the thread wasnt possible because varios changes have bee done in v.1.4.2
Thats what I refer to:

in displayimage.php find

    if ($pos > 0) {
        $prev = $pos - 1;
        $prev_tgt = "$PHP_SELF?album=$album$cat_link&pos=$prev";
        $prev_title = $lang_img_nav_bar['prev_title'];
    } else {
        $prev_tgt = "javascript:;";
        $prev_title = "";
    }
    if ($pos < ($pic_count -1)) {
        $next = $pos + 1;
        $next_tgt = "$PHP_SELF?album=$album$cat_link&pos=$next";
        $next_title = $lang_img_nav_bar['next_title'];
    } else {
        $next_tgt = "javascript:;";
        $next_title = "";
    }



and replace with



    if ($pos > 0) {
        $prev = $pos - 1;
        //mod static links start
$pic_data = get_pic_data($album, $pic_count, $album_name, $prev, 1, false);
$prevnext_data = $pic_data[0];
if (isset($prevnext_data)) $prev = "-".$prevnext_data['pid'];
//mod static links end
        $prev_tgt = "$PHP_SELF?album=$album$cat_link&pos=$prev";
$prev_title = $lang_img_nav_bar['prev_title'];
    } else {
        $prev_tgt = "javascript:;";
        $prev_title = "";
    }
    if ($pos < ($pic_count -1)) {
        $next = $pos + 1;
        //mod static links start
$pic_data = get_pic_data($album, $pic_count, $album_name, $next, 1, false);
$prevnext_data = $pic_data[0];
if (isset($prevnext_data)) $next = "-".$prevnext_data['pid'];
//mod static links end
        $next_tgt = "$PHP_SELF?album=$album$cat_link&pos=$next";
$next_title = $lang_img_nav_bar['next_title'];
    } else {
        $next_tgt = "javascript:;";
        $next_title = "";
    }


that's it... if you want to have the filmstrip static links too... find in functions.inc.php

Joachim Müller

moved this thread from the cpg1.3.x support board to the one that deals with your new version of coppermine, as your code changes refer to the new code as well.