Google sitemaps - Page 6 Google sitemaps - Page 6
 

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

Google sitemaps

Started by Nibbler, June 09, 2005, 06:16:51 PM

Previous topic - Next topic

0 Members and 5 Guests are viewing this topic.

Makc666

Quote from: antisa33 on October 30, 2008, 06:25:41 PM

You can download a simple version here:
http://forum.coppermine-gallery.net/index.php/topic,18749.0.html

I don't support 4.1+ versions and they are VERY old.

You can also try to change line  #45
from:
private $urlset, $starttime;
to:
$urlset, $starttime;

http://news.php.net/php.general/237982
QuoteIN PHP less then 5.0 public/private declarations are not supported...

Joachim Müller

Full reference for the private vs public statement (i.e. visibility): http://www.php.net/manual/en/language.oop5.visibility.php
I disagree though with the usage of PHP5-only syntax.

Halfhidden

How do you create multiple files for larger site please. My sitemap is over 160mbs and is turned down by Google

Nibbler

The mod doesn't support that. Attached is the file I use for gelipo.com, you should be able to get it working if you change the links and paths.


Halfhidden

Thanks Nibbler ;D That's beyond the call of duty and really appreciated  ;D

flapane

Quote from: Makc666 on December 01, 2007, 01:38:14 PM
I also wrote a version which has compatibility with SEF_URLs plugin for cpg1.4.x
Its topic is here - http://forum.coppermine-gallery.net/index.php?topic=46718

Look for code at the beginning of sitemap_sef_urls.php
// Compatibility with SEF_URLs plugin for cpg1.4.x
// Download here - http://forum.coppermine-gallery.net/index.php?topic=46718
// 0 = Off; 1 = On;
// $sef_urls = 1;
$sef_urls = 0;


Don't for get to change these lines for what you need!
// dump the sitemap to a local file (specified here), or false to output straight to user agent.
// Use a .gz ending if you are making a compressed file.
// Use a .gz or .xml.gz ending if you are making a compressed file.
//define('FILEDUMP', 'sitemap.xml');
define('FILEDUMP', false);


Nibbler, fill free to include these changes in your next version!
I will be much appreciated!

Tested.
Working.

Hi everybody!
can anybody confirm that he managed to use this versions?
thanks
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

flapane

#106
http://www.test.com/gallery/sitemap.php ---> even if I have hundreds of photos


<!--
Generated Mon, 16 Feb 2009 20:06:51 +0100 in 0 seconds.
-->

<urlset>

<url>
<loc>http://www.test.com/gallery/</loc>
<priority>1.0</priority>
</url>

<url>
<loc>http://www.test.com/gallery/index-1.html</loc>
</url>
</urlset>
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

flapane

(Seems like I can't edit my own posts isn't it)

I fogot to mention that of course I have set
$sef_urls = 1;
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

flapane

Quote from: loot on April 21, 2007, 01:51:05 PM
Hi,

i have no categories in my coppermine.
So this is the result.
tested simpel and the plus version.
is there a chance ?


thx and greets.

loot



   <!--
Generated Sat, 21 Apr 2007 13:46:46 +0200 in 0.04 seconds.
-->

   <urlset>

   <url>
<loc>http://www.mysite.com/</loc>
<priority>1.0</priority>
</url>

   <url>
<loc>http://www.mysite.com/index.php?cat=1</loc>
</url>
</urlset>

Same here (I disabled sef plugin and tried with the simple version)
I use albums.
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

flapane

#109
omg what a mess.... in the first post simple is plus and vice versa  ::)

I have picked up the REAL plus version and now it's almost working...
http://www.test.com/gallery/sitemap_plus_gallery.php

It doesn't map the last uploads, if you search in sitempa, you won't find any 2009 year photo, why?
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

Ludo

I see at least 2 2009 entries  :P

flapane

uh? If you perform a text search in the sitemap, you won't find any lastmod with such data
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

Ludo


flapane

You won't believe me, but it didn't find it before I had a crash 1 minute ago and reopened a new instance of Firefox ;D
All's well that's ends well
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

soldave

This is going to be a dumb question, but I have to run the sitemap.php file each time I update the gallery to keep it current, right?

Ludo

Wrong! :P
GoogleBot will check it according with <changefreq> setting

soldave

Ah, ok.  So the google bot will tell the sitemap when to update itself?

flapane

// dump the sitemap to a specified file (or generally anything accessible via fopen()), or false to output straight to user agent.
// Be aware that if you enable this and the output buffer exceeds php's memory limit and ini_set() fails the script will crash and burn.
// Use a .gz or .xml.gz ending if you are making a compressed file.
//define('FILEDUMP', 'sitemap.xml');
define('FILEDUMP', sitemap.xml.gz);

// use gzip compression ? disable if you have zlib output compression enabled
// Zlib support in PHP is not enabled by default. You will need to configure PHP --with-zlib[=DIR]
// The windows version of PHP has built in support for this extension. You do not need to load any additional extension in order to use these functions.
// Note: Builtin support for zlib on Windows is available with PHP 4.3.0.
define('GZ_COMPRESS', true);



Result is Completed, compressed and dumped to sitemapxmlgz
How come the extensions aren't separated using a . ?
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

Nibbler

You missed out the quotes. Should be

define('FILEDUMP', 'sitemap.xml.gz');

flapane

Oh my, why didn't I see them in the previous example //define('FILEDUMP', 'sitemap.xml'); ? :o
thank you
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com