Support Forum Project Downloads FAQ Documentation About Demo Tutorials Blog Plugins
November 21, 2009, 05:04:14 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Maintenance release cpg1.4.25 - upgrade recommended
The Coppermine development team is releasing an update for Coppermine in order to fix an issue with http uploads that could occur in particular versions of PHP.The fix is not security-critical, so if your gallery is running fine with cpg1.4.23 or cpg1.4.24 you don't need to upgrade. If you are running an older version than cpg1.4.23, you must update to this latest version as soon as possible because of the security impact (the past few maintenance releases before cpg1.4.24 all were security-related).
[more]
   Home   Help Search Board rules Login Register  
Pages: 1 [2] 3 4 5 6 7   Go Down
  Print  
Author Topic: Google sitemaps  (Read 71701 times)
0 Members and 1 Guest are viewing this topic.
flux
Contributor
***
Posts: 80


WWW
« Reply #20 on: December 24, 2005, 09: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 ?
Logged

Nibbler Topic starter
Dev Team member
****
Gender: Male
United Kingdom United Kingdom

Posts: 19445



WWW
« Reply #21 on: December 24, 2005, 11:09:40 pm »

No, it will not.
Logged

I don't care about what they say, I won't live or die that way.
mlduclos
Coppermine newbie

Posts: 18


WWW
« Reply #22 on: December 30, 2005, 05: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, 06:01:19 pm by mlduclos » Logged
TranzNDance
Dev Team member
****
Gender: Female
United States United States

Posts: 6138



WWW
« Reply #23 on: December 30, 2005, 05:54:35 pm »

http://forum.coppermine-gallery.net/index.php?topic=18749.msg98752#msg98752
Logged

TranzNDance
Dev Team member
****
Gender: Female
United States United States

Posts: 6138



WWW
« Reply #24 on: February 21, 2006, 04: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 Topic starter
Dev Team member
****
Gender: Male
United Kingdom United Kingdom

Posts: 19445



WWW
« Reply #25 on: February 21, 2006, 11:18:15 am »

Use > /dev/null after the command.
Logged

I don't care about what they say, I won't live or die that way.
spiros71
Coppermine regular visitor
**
Gender: Male
Posts: 65


WWW
« Reply #26 on: May 02, 2006, 12: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?
Logged

spiros71
Coppermine regular visitor
**
Gender: Male
Posts: 65


WWW
« Reply #27 on: May 02, 2006, 06: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
Logged

Nibbler Topic starter
Dev Team member
****
Gender: Male
United Kingdom United Kingdom

Posts: 19445



WWW
« Reply #28 on: May 02, 2006, 06:19:51 pm »

Post a link to the sitemap.
Logged

I don't care about what they say, I won't live or die that way.
spiros71
Coppermine regular visitor
**
Gender: Male
Posts: 65


WWW
« Reply #29 on: May 02, 2006, 07: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, 08:02:09 pm by spiros71 » Logged

Pascal YAP
Dev Team member
****
Gender: Male
Armenia Armenia

Posts: 3791


He's me, and She's Moon


WWW
« Reply #30 on: May 05, 2006, 02: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  Huh There's nothing in cat=1 .
Here is the the generated file sitemap.xml :
Code:
<?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  Huh 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

! Pas de PM please ! No PM s'il vous plait !
Nibbler Topic starter
Dev Team member
****
Gender: Male
United Kingdom United Kingdom

Posts: 19445



WWW
« Reply #31 on: May 05, 2006, 02: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

I don't care about what they say, I won't live or die that way.
Pascal YAP
Dev Team member
****
Gender: Male
Armenia Armenia

Posts: 3791


He's me, and She's Moon


WWW
« Reply #32 on: May 05, 2006, 02: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=0Wink

Visibly, the script work nice now !

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

! Pas de PM please ! No PM s'il vous plait !
LooneyToonDad
Coppermine newbie

Posts: 8


« Reply #33 on: May 23, 2006, 09: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 Topic starter
Dev Team member
****
Gender: Male
United Kingdom United Kingdom

Posts: 19445



WWW
« Reply #34 on: May 23, 2006, 09:34:33 pm »

They are attached to the first post.
Logged

I don't care about what they say, I won't live or die that way.
LooneyToonDad
Coppermine newbie

Posts: 8


« Reply #35 on: May 23, 2006, 11:40:01 pm »

Thanks. I think I didn't see them before because I wasn't registered/logged in, but now I do.
Logged
blablabla
Coppermine novice
*
Gender: Male
Posts: 35


« Reply #36 on: August 05, 2006, 11:17:40 am »

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 Topic starter
Dev Team member
****
Gender: Male
United Kingdom United Kingdom

Posts: 19445



WWW
« Reply #37 on: August 05, 2006, 11:59:19 am »

Use the FILEDUMP option described in the script.
Logged

I don't care about what they say, I won't live or die that way.
blablabla
Coppermine novice
*
Gender: Male
Posts: 35


« Reply #38 on: August 05, 2006, 12: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 ? Embarrassed
Logged
jackbremer
Coppermine newbie

Posts: 9


« Reply #39 on: August 11, 2006, 08: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
  Print  
 
Jump to:  

Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
Page created in 0.043 seconds with 15 queries.