Google sitemaps - Page 2 Google sitemaps - Page 2
 

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 1 Guest are viewing this topic.

flux

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


mlduclos

#22
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.


Tranz

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

which I thought was supposed to silence emails?

Nibbler

Use > /dev/null after the command.

spiros71

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

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

Post a link to the sitemap.

spiros71

#29
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

Pascal YAP

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 :
<?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

Nibbler

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

Pascal YAP

#32
Nibbler,
QuoteThe PHP5 version does not work on PHP4.
Sure !
QuoteThe 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

LooneyToonDad

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

Nibbler

They are attached to the first post.

LooneyToonDad

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

blablabla

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 ?

Nibbler

Use the FILEDUMP option described in the script.

blablabla

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 ? :-[

jackbremer

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!