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

Login with username, password and session length
News: cpg1.5.2 beta released
The brand new cpg1.5.x series that comes with a lot of new features finally has reached the release stage: a first public beta release cpg1.5.2 has been released that is mainly aimed at translators, testers and community members that have contributed in the past. The beta release is not meant to be used in a production environment, but only on testbeds and for evaluation purposes. There is currently no support for cpg1.5.x yet!
[more]
   Home   Help Search Board rules Login Register  
Pages: 1 2 3 [4] 5 6 7   Go Down
  Print  
Author Topic: Google sitemaps  (Read 71690 times)
0 Members and 1 Guest are viewing this topic.
daniell
Coppermine novice
*
Posts: 28


WWW
« Reply #60 on: December 19, 2006, 12:58:18 am »

if albums are not in one category this sitemap doesnīt work?
Logged

daniell
Coppermine novice
*
Posts: 28


WWW
« Reply #61 on: December 19, 2006, 01:23:37 am »

http://www.superimagens.com.br/sitemap.xml

get just one page.. and itīs not in html (i use sef_url) are in php!

any tips?
Logged

noworyz
Contributor
***
Gender: Male
Posts: 74



WWW
« Reply #62 on: January 08, 2007, 06:10:05 pm »

I am having an issue with the sitemap as it has 1 error

Code:
http://www.egriz.com/GrizPics2
is not part of the domain

It is referencing that it does not have the tailing slash.

In my config I have set as my url

 http://www.egriz.com/GrizPics2/

What do I need to change so it adds the tailing slash in the sitemap for the base url?
Logged
daniell
Coppermine novice
*
Posts: 28


WWW
« Reply #63 on: January 08, 2007, 06:11:38 pm »

i cannot make this works  too

cofee cup site mapper works very good for me
Logged

noworyz
Contributor
***
Gender: Male
Posts: 74



WWW
« Reply #64 on: January 09, 2007, 09:41:57 pm »

I have found a solution that added the tailing slash to the base url and which made it so there are no errors on the sitemap according to Google.


in sitemap.php

FIND
Code:
echo '<url>';
echo "<loc>$base</loc>";
echo "<priority>1.0</priority>";
echo '</url>';

REPLACE WITH
Code:
echo '<url>';
echo "<loc>$base/</loc>";
echo "<priority>1.0</priority>";
echo '</url>';
Logged
wluo
Coppermine newbie

Posts: 1


« Reply #65 on: March 16, 2007, 06:13:04 pm »

Very nice, however it seems the files are the exact opposite as you describe.  The simple zip is actually for PHP5/xml and CPG 1.4.x, and the plus zip is for PHP4.1+ and CPG 1.2+.

Where Can I find the simple zip or plus zip?  Thanks
Logged
Nibbler Topic starter
Dev Team member
****
Gender: Male
United Kingdom United Kingdom

Posts: 19445



WWW
« Reply #66 on: March 16, 2007, 06:22:36 pm »

Attached to the first post.
Logged

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

Posts: 3


« Reply #67 on: March 19, 2007, 12:52:23 pm »

Thanks for the script.

Is there a way to import another sitemap in to the one thats generated through this script?

or even for the script to crawl the main website and add as needed, minus anything found in robots.txt


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

Posts: 19445



WWW
« Reply #68 on: March 19, 2007, 01:26:32 pm »

No, that would be a whole new script.
Logged

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

Posts: 3


« Reply #69 on: March 19, 2007, 01:43:51 pm »

Ive found a workaround if any one interested in importing their xml in to their normal site sitemap.xml...
what ive done is...

Installed and ran, GSiteCrawler, wich was posted a bit further up by another user. (Thanks)
Configure your site.
Add FTP.

Under Filter/Ban URLs...
Import your robots.txt
Then
Click add, and add the url to your coppermine/gallery directory
You dont want this program to crawl your gallery.

Then go to URL List
If theres anything thats in their, delete it all.
Then click (Re)Crawl at the top.

This will populate the url list with your normal site, minus anything in robots.txt and coppermine gallery.

Then on each line click the tickbox manual.
(You do this so you can delete all non manual entrys (from this script) when you need to update)

Then click the Import arrow, and select Existing google sitemap-file.
open from your http://web/coppermine/sitemap.xml file
(the sitemap.php script should be configured to dump the file on your server)

Import em, and dont delete your current list, when it asks.

and thats it, then click generate, and it will upload to your ftp settings, and notify google.

When you need to update, boot it up, select Delete all non-manual links, from the url list. And import the same way, and generate.

Things you might want to keep in mind.
You could set your main index.html or main site to 1.0 priority, if you do this, open up the sitemap.php script and edit...

Code:
echo '<url>';
echo "<loc>$base</loc>";
echo "<priority>1.0</priority>";
echo '</url>';

to

Code:
echo '<url>';
echo "<loc>$base</loc>";
echo "<priority>0.90</priority>";
echo '</url>';

or whatever priority you want for your main coppermine/gallery directory.


Hope this makes sence, and is of some use to anyone.


Regards.
Logged
PirateZipp
Coppermine novice
*
Gender: Male
Posts: 34

Hotimage.dk


WWW
« Reply #70 on: March 22, 2007, 10:55:56 pm »

hey...

this is a nice script... but i got 1 recust...

is it porseball to make the script automated over writh the old sitemap.xml??

my ide is to make a Cronjob to update the sitemap every day so google can get the newest site map every time they update and so i dont need to update it every time...

thanks

Logged

.
PirateZipp
Coppermine novice
*
Gender: Male
Posts: 34

Hotimage.dk


WWW
« Reply #71 on: March 23, 2007, 01:10:12 am »

i got it...

if you find:

echo '<url>';
echo "<loc>$base</loc>";
echo "<priority>1.0</priority>";
echo '</url>';

And replasing the:

echo "<loc>$base</loc>";

with:

echo "<loc>$base/</loc>";

it will work...

and you can now point google sitemap at the .php file... at this mode you will always got your sitemap updated...

Thanks from here...  and thx for the nice script....
Logged

.
loot
Coppermine newbie

Posts: 5


« Reply #72 on: April 21, 2007, 12: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>
Logged
IIIBradIII
Coppermine newbie

Posts: 10


« Reply #73 on: May 26, 2007, 09:25:45 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 problem here - it doesn't appear to work for those of us using albums instead of categories.  Cry
Logged
xxxxxxxx
Coppermine newbie

Posts: 6


« Reply #74 on: July 12, 2007, 08:57:56 pm »

Hi!

This script generates a beauty-full site map.
The only thing is that itīs named 1 not sitemap.xml
What I am I doing wrong?

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

Posts: 19445



WWW
« Reply #75 on: July 12, 2007, 09:53:47 pm »

What did you set FILEDUMP to at the top of the script?
Logged

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

Posts: 6


« Reply #76 on: July 13, 2007, 10:17:12 am »

Hi!

You mean this entry? /ble via fopen('sitemap.xml')), or fa/?

Erik

Here is the top section of my script!

<?php

/*
   Google sitemap generator for PHP4.1+ and CPG 1.2+
*/

// use time of last comment on a pic as lastmod ? (if false then we just use pic's upload time (ie. db, not EXIF) which is cheaper)
define('INC_COMMENT_TIMES', false);

// dump the sitemap to a specified file (or generally anything accessible via fopen('sitemap.xml')), 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', true);

// 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', false);

// [0.0 <= priority <= 1.0]
define('P_DISPLAYIMAGE', 0.5);
define('P_ALBUM', 0.5);
define('P_CATEGORY', 0.5);

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

define('IN_COPPERMINE', true);
require('include/init.inc.php');

// This should work as it is, but hardcode if necessary.
define('CPG14', version_compare(COPPERMINE_VERSION, "1.4.0", ">="));
define('PHP5', version_compare(phpversion(), "5", ">="));

// No user servicable parts below here
Logged
Nibbler Topic starter
Dev Team member
****
Gender: Male
United Kingdom United Kingdom

Posts: 19445



WWW
« Reply #77 on: July 13, 2007, 06:35:09 pm »

Set it to the filename you want or to false. true is not an option.
Logged

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

Posts: 6


« Reply #78 on: July 13, 2007, 08:38:58 pm »

Thanks!

Php is not my arena for sure!

 Shocked

Erik
Logged
Ludo
Contributor
***
Gender: Male
Italy Italy

Posts: 537



WWW
« Reply #79 on: August 22, 2007, 04:45:14 pm »

Simple version easily installed and configured, and working properly.
Many thanks to Nibbler.
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.104 seconds with 15 queries.