Google sitemaps - Page 7 Google sitemaps - Page 7
 

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

Google sitemaps

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

Previous topic - Next topic

0 Members and 6 Guests are viewing this topic.

Drahus

Quote from: anaemia on March 19, 2007, 02:43:51 PM
Ive found a workaround if any one interested in importing their xml in to their normal site sitemap.xml...

Hi,
is it better to use this mod for the gallery with an another sitemap generator for the further parts of my site,
or
to use GSiteCrawler for the whole site including CPG?

I think, it would be much better and comfortable to use only GSiteCrawler, but this program generates sitemap of about 70 000 sites (it takes hours and hours of crowling and is still not finished...) from my not very big website ( http://www.dc-foto.com/gallery/ ). 

Thank you for your opinions and advice,

Drahus
Photographer

phill104

Have I got something configred incorrectly here Mr Nibbler Sir? When I try and generate a sitemap all I get is the following on a gallery with over 4000 images.

<?xml version="1.0" ?>
- <!-- Generated Sun, 26 Apr 2009 20:22:22 +0100 in 0 seconds.
  -->
- <urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
- <url>
  <loc>http://www.windsurf.me.uk/cpg133/</loc>
  <priority>1.0</priority>
  </url>
- <url>
  <loc>http://www.windsurf.me.uk/cpg133/index.php?cat=1</loc>
  </url>
- <url>
  <loc>http://www.windsurf.me.uk/cpg133/index.php?cat=3</loc>
  </url>
- <url>
  <loc>http://www.windsurf.me.uk/cpg133/index.php?cat=5</loc>
  </url>
  </urlset>


http://www.windsurf.me.uk/cpg133/sitemap.php
It is a mistake to think you can solve any major problems just with potatoes.

Nibbler

Quote from: Drahus on April 26, 2009, 09:08:28 PM
Hi,
is it better to use this mod for the gallery with an another sitemap generator for the further parts of my site,
or
to use GSiteCrawler for the whole site including CPG?

I think, it would be much better and comfortable to use only GSiteCrawler, but this program generates sitemap of about 70 000 sites (it takes hours and hours of crowling and is still not finished...) from my not very big website ( http://www.dc-foto.com/gallery/ ). 

Thank you for your opinions and advice,

Drahus

I'd advise using this since it 'knows' Coppermine and won't create the duplicate links that your screenshot shows. Also, this script doesn't do any crawling as the links are generated automatically.

Quote from: Phill Luckhurst on April 26, 2009, 09:21:08 PM
Have I got something configred incorrectly here Mr Nibbler Sir? When I try and generate a sitemap all I get is the following on a gallery with over 4000 images.

<?xml version="1.0" ?>
- <!-- Generated Sun, 26 Apr 2009 20:22:22 +0100 in 0 seconds.
  -->
- <urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
- <url>
  <loc>http://www.windsurf.me.uk/cpg133/</loc>
  <priority>1.0</priority>
  </url>
- <url>
  <loc>http://www.windsurf.me.uk/cpg133/index.php?cat=1</loc>
  </url>
- <url>
  <loc>http://www.windsurf.me.uk/cpg133/index.php?cat=3</loc>
  </url>
- <url>
  <loc>http://www.windsurf.me.uk/cpg133/index.php?cat=5</loc>
  </url>
  </urlset>


http://www.windsurf.me.uk/cpg133/sitemap.php


Try changing


ISNULL(alb_password)


to


(ISNULL(alb_password) OR alb_password = '')

phill104

#123
Cheers Nibbler, worked a treat. ;D

I missed that on page 5  :-[
It is a mistake to think you can solve any major problems just with potatoes.

robindengate

Hi,

Making it work on galleries with no category.

I don't think this has been covered, I've just scanned through all the earlier replies and didn't see anything.

Anyway, after reading the much earlier post about changing " all $cid by cat=0 ", I had a go at this (not PHP savvy, myself) as I was having this problem.

I found it wasn't quite that simple, and initially got a few errors, so needed to make different changes in different lines, but the idea is basically OK and I got it working and my sitemaps are fine.

Here is my updated file (simple version - as mentioned before the original file names seem to be intersposed):

RD

RD

"Hard work never killed anybody, but why take a chance?" -Edgar Bergen

papukaija

#125
Quote from: robindengate on September 04, 2009, 04:32:39 PM
Here is my updated file (simple version - as mentioned before the original file names seem to be intersposed):
For some reason the generated xml file is throwing a xml parsing error (or syntax) in Firefox:
"element not found, line:1, col:1". By the way your file is based on the simple version.

EDIT: After looking at the content of my gallery folder, I noticed that your script creates by default a file called "can_cm_sitemapxml" - the file name must be between '' (line 14). So there is no error message (the error message came because the manually created can_cm_sitemap.xml file was emtpy).

The fixed version of your file is attached as zipped to this message.

robindengate

Quote from: papukaija on September 06, 2009, 01:23:31 PM
For some reason the generated xml file is throwing a xml parsing error (or syntax) in Firefox:
"element not found, line:1, col:1". By the way your file is based on the simple version.

It's working fine for me in firefox, so not being an expert, only a dabbler, I can't help you with that.

Oh, and I did say I was using the simple version!
RD

"Hard work never killed anybody, but why take a chance?" -Edgar Bergen

robindengate

Sorry, papukaija

Yes, I forgot to take out my own sitemap filename before uploading!

Thanks for correcting.

BTW: my gallery:  http://www.canalandnarrowboat.co.uk/cm/index.php

RD

"Hard work never killed anybody, but why take a chance?" -Edgar Bergen

fantasyfreak

Hello, i created a sitemap and i noticed i have 2 types of urls for same pics:

In sitemap
/displayimage.php?pos=-17

While i browse via album navigation:
/displayimage.php?album=6&pos=0

I am scared Google will take it as duplicated content.

How can i solve this problem?



Joachim Müller

Not related to this mod, but an issue inherent to cpg1.4.x that can't be solved easily. Will be taken care of in cpg1.5.x. Anyway, as this is not related to this mod at all it should not be discussed here in this thread any further.

fantasyfreak

Sorry Joachim :) i noticed the problem just after i installed and tested this script. The difference between site and list of urls in sitemap was really big so i added comment to this thread.

It really would be great if someone will find a time to fix it. It can just skyrocket traffic of Coppermine sites.

One last thing: mentioned link problem is connected to several themes: SEO, Core files, navigation structure and even to sitemaps. It just depending on point of view. If i do not wish to spam or create a multiple posts i have to decide for one post. I can do it properly or less properly. Do not forget many of users are not php gurus, but this does not means they are not skilled in other areas. I am sure many people here passed universities so pls do not treat them as they live somewhere in caves.

I understand you have a difficult task ... to take care of so many people with their "stupid" questions again and again....but still.....

Have a nice day and thanks for your time.

Joachim Müller

In the future, please respect moderation:
Quote from: Joachim Müller on January 03, 2010, 08:17:11 PM
Anyway, as this is not related to this mod at all it should not be discussed here in this thread any further.
In other words: you shouldn't have replied here!

fantasyfreak

I installed sitemap (PHP4 version) few days ago. Everything worked perfectly. I added albums to categories and script generated xml file with all urls.
my last url in sitemap is:
http://fantasticgallery.com/displayimage.php?pos=-671

From that time i added several pictures but these new links are not added into sitemap anymore.

I deleted script file and even sitemap xml file and i reuploaded it again several times. No help. Sitemap is always created in same way, my last image is that with number 671.

How can i fix the problem?


flapane

I don't know if it's really related to the mod (plus version), to cpg or to Google, but did anybody notice that Google webmaster Tools tells that only a small part of the sitemap links are indicized (only 13 of 499, in my case) ?
It happened under 1.4.x, still happens under 1.5.x
As you can see from the attached sitemap, it shouldn't contain any weird links.
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

flapane

After 1 month, the situation seems to be the same
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

daniell

Thankz robindengate for the sitemap for galleries that dont use categories! =D


anyone has a version that generate .html sitemap instead of the .php!?