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 [2] 3 4 5 6 7   Go Down

Author Topic: Google sitemaps  (Read 200658 times)

0 Members and 1 Guest are viewing this topic.

flux

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 80
    • CPG Remote Hack Demo
Re: Google sitemaps
« Reply #20 on: December 24, 2005, 10:54:36 pm »

sorry if the question is obvious but i haven't had time to analyze your code

does this script support the 50k urls limit of sitemaps files ? meaning will it create .1 .2 files if the current sitemap has reached the max 50k <url> limit ?

Nibbler

  • Guest
Re: Google sitemaps
« Reply #21 on: December 25, 2005, 12:09:40 am »

No, it will not.
Logged

mlduclos

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
    • Consciência
Re: Google sitemaps
« Reply #22 on: December 30, 2005, 06:46:45 pm »

I am getting the same error when wunning the simple
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /var/www/vhosts/domain.com/htdocs/imagens/banco/sitemap.php on line 39

But the full version worked. Nice! Thanks for the script.
« Last Edit: December 30, 2005, 07:01:19 pm by mlduclos »
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Google sitemaps
« Reply #24 on: February 21, 2006, 05:59:02 am »

How can I avoid getting chron emails about this? I used this:
php -q

which I thought was supposed to silence emails?
Logged

Nibbler

  • Guest
Re: Google sitemaps
« Reply #25 on: February 21, 2006, 12:18:15 pm »

Use > /dev/null after the command.
Logged

spiros71

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 68
    • Greek translation
Re: Google sitemaps
« Reply #26 on: May 02, 2006, 01:23:44 pm »

Thank you for this mod. A couple of questions.

1. Do we need to link to sitemap.xml somehow?
2. Does changing the following code

// [changefreq = always || hourly || daily || weekly || monthly || yearly || never]
define('CF_DISPLAYIMAGE', 'weekly');
define('CF_ALBUM', 'weekly');
define('CF_CATEGORY', 'weekly');

mean that it will be recreated?

3. If not, which command does one use to set a cron job from control panel?

spiros71

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 68
    • Greek translation
Re: Google sitemaps
« Reply #27 on: May 02, 2006, 07:15:49 pm »

An error given by the control panel of Google sitemaps for a simple map submitted there:

Error      Detail
URL not allowed (Line 1) with URL http://www.translatum.gr/gallery    This url is not allowed for a Sitemap at this location. More

Nibbler

  • Guest
Re: Google sitemaps
« Reply #28 on: May 02, 2006, 07:19:51 pm »

Post a link to the sitemap.
Logged

spiros71

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 68
    • Greek translation
Re: Google sitemaps
« Reply #29 on: May 02, 2006, 08:16:39 pm »

Actually I think it needs an extra slash at the end of the base url:  http://www.translatum.gr/gallery

I resubmitted changing it to http://www.translatum.gr/gallery/ and I will wait to see the results.
everything looks OK now.

This is the file http://www.translatum.gr/gallery/sitemap.xml
« Last Edit: May 02, 2006, 09:02:09 pm by spiros71 »
Logged

Pascal YAP

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 13833
  • Hello World :-)
    • CPG 1.5.x ExperiMental website
Re: Google sitemaps
« Reply #30 on: May 05, 2006, 03:02:55 pm »

Hello Nibbler,

 I have installed simple sitemap_plus.php online on my PHP4, but unfortunately the sitemap_plus.php read only category CAT=1 and not CAT=0  ??? There's nothing in cat=1 .
Here is the the generated file sitemap.xml :
Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
<url><loc>www.pays-dignois.com/galerie</loc>
<priority>1.0</priority></url>
<url><loc>www.pays-dignois.com/galerie/index.php?cat=1</loc>
</url></urlset>

I try sitemap.php and sitemap_plus.php.
The first one do not work at all  ??? and gave a PARSEerror like that :
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in sitemap.php on line 39

Some additionnal infos about my host :

ZLib Support  enabled 
Compiled Version  1.2.2 
Linked Version  1.2.2 

Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value
Logged

Nibbler

  • Guest
Re: Google sitemaps
« Reply #31 on: May 05, 2006, 03:13:40 pm »

The script misses out albums that are not in a category, it's a known issue. The PHP5 version does not work on PHP4.
Logged

Pascal YAP

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 13833
  • Hello World :-)
    • CPG 1.5.x ExperiMental website
Re: Google sitemaps
« Reply #32 on: May 05, 2006, 03:33:25 pm »

Nibbler,
Quote
The PHP5 version does not work on PHP4.
Sure !
Quote
The script misses out albums that are not in a category, it's a known issue.
But Cat=0 is a Category is'nt it ?
Anyway, is it a possibility to turn around this issue ?
For exemple, in my case, change all $cid by cat=0;)

Visibly, the script work nice now !

PYAP
« Last Edit: May 07, 2006, 11:15:32 am by PYAP »
Logged

LooneyToonDad

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Google sitemaps
« Reply #33 on: May 23, 2006, 10:20:20 pm »

I apologize if this is one of those "oh yeah" questions, but where do I find the scripts? I don't see any links. Thanks
Logged

Nibbler

  • Guest
Re: Google sitemaps
« Reply #34 on: May 23, 2006, 10:34:33 pm »

They are attached to the first post.
Logged

LooneyToonDad

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Google sitemaps
« Reply #35 on: May 24, 2006, 12:40:01 am »

Thanks. I think I didn't see them before because I wasn't registered/logged in, but now I do.
Logged

blablabla

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 35
Re: Google sitemaps
« Reply #36 on: August 05, 2006, 12:17:40 pm »

script is working for me but since i have too many pictures all browsers go crazy after a while.
is it possible to run this script and create sitemap without ie/firefox ?
Logged

Nibbler

  • Guest
Re: Google sitemaps
« Reply #37 on: August 05, 2006, 12:59:19 pm »

Use the FILEDUMP option described in the script.
Logged

blablabla

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 35
Re: Google sitemaps
« Reply #38 on: August 05, 2006, 01:12:36 pm »

I'm doing something wrong but no idea what.

define('FILEDUMP', false);

I changed that to :

define('FILEDUMP', true);
then to
define('FILEDUMP', 'sitemap.xml');
then to
define('FILEDUMP', 'sitemap.gz');
and to
define('FILEDUMP', 'sitemap.xml.gz');

but it always keeps showing me endless text in browser.
what do i have to change ? :-[
Logged

jackbremer

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Google sitemaps
« Reply #39 on: August 11, 2006, 09:40:05 pm »

the archives are labelled wrongly...

plus.zip = sitemap.php
simple.zip=sitemap_plus.php

Nibbler said he'd changed them back though ages ago - I'm confused!
Logged
Pages: 1 [2] 3 4 5 6 7   Go Up
 

Page created in 0.035 seconds with 20 queries.