Support Forum Project Downloads FAQ Documentation About Demo Tutorials Blog Plugins
November 07, 2009, 12:17:54 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: cpg1.5.1 alpha - testers wanted
There has been an alpha release of cpg1.5.1 for a closed group of testers (not available for all users). If you want to participate in testing cpg1.5x, please read the thread cpg1.5.1 alpha: how to become a tester to figure out if you can apply for tester group membership
   Home   Help Search Board rules Login Register  
Pages: [1] 2 3 4 5 ... 7   Go Down
  Print  
Author Topic: Google sitemaps  (Read 70818 times)
0 Members and 1 Guest are viewing this topic.
Nibbler Topic starter
Dev Team member
****
Gender: Male
United Kingdom United Kingdom

Posts: 19439



WWW
« on: June 09, 2005, 05:16:51 pm »

New in from the 'Let's make life even easier for google' department...

Run this script from your server to create a google sitemap. Check google for details on the system itself, but the idea is that you create an xml file with info about your site that is then used by their crawlers. This will generate such an xml file. It comes in 2 flavours. The simple version will work for everyone*, and the PHP5 CPG 1.4 version is there for people with more up-to-date kit and uses a proper DOM to create the output plus other fun stuff. Both versions support all the tags, produce valid xml according to the schema, support gz compression, and can be used to create a static xml file for larger galleries or be run directly for up to the second results for smaller galleries. They generate links to all publicly accessible category, album, and picture pages.

Both come with all options disabled, so enable what you need by changing the commented info at the top of the files. There is no GUI as they are intended to be cronable.

Simple : PHP4.1+ and CPG 1.2+
Plus : PHP5/xml and CPG 1.4.x
« Last Edit: June 19, 2005, 06:28:01 pm by Nibbler » Logged

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

Posts: 3


« Reply #1 on: June 19, 2005, 02:53:11 pm »

Simple : PHP4.1+ and CPG 1.2+
Plus : PHP5/xml and CPG 1.4.x
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+.
Logged
snork13
Contributor
***
Gender: Male
Posts: 260


Internet! Is that thing still around?


WWW
« Reply #2 on: June 19, 2005, 05:29:11 pm »

Simple : PHP4.1+ and CPG 1.2+
Plus : PHP5/xml and CPG 1.4.x
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+.

reversed for me too Wink
Logged
Nibbler Topic starter
Dev Team member
****
Gender: Male
United Kingdom United Kingdom

Posts: 19439



WWW
« Reply #3 on: June 19, 2005, 06:28:26 pm »

Sorry, I've switched them back.
Logged

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

Posts: 5


« Reply #4 on: August 01, 2005, 11:43:43 am »

hi.
a bit of problem in my case. I used this to generate the sitemap but its generating the sitemap only for the user galleries and not for all the images i have. All my images are accessible but still it does not map them.

Here is the generated op
http://www.techenclave.com/forums/gallery/sitemap.xml.gz

and the gallery is here
http://www.techenclave.com/forums/gallery/

umm so what am i doing wrong?? Huh
Logged
Nibbler Topic starter
Dev Team member
****
Gender: Male
United Kingdom United Kingdom

Posts: 19439



WWW
« Reply #5 on: August 01, 2005, 06:07:11 pm »

It's because you have albums that are not in a category. I'll fix it and update the thread shortly.
Logged

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

Posts: 5


« Reply #6 on: August 01, 2005, 07:43:46 pm »

k thanks.. will wait for it  Grin
Logged
togi
Coppermine regular visitor
**
Posts: 61


« Reply #7 on: September 09, 2005, 12:39:41 pm »

i get an error when i run sitemaps.php


Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/.bechamelwasher/togi/photo.net.ph/sitemap.php on line 39
Logged
Nibbler Topic starter
Dev Team member
****
Gender: Male
United Kingdom United Kingdom

Posts: 19439



WWW
« Reply #8 on: September 09, 2005, 12:45:44 pm »

Don't use the 'plus' version if you don't have PHP5.
Logged

I don't care about what they say, I won't live or die that way.
TranzNDance
Dev Team member
****
Gender: Female
United States United States

Posts: 6138



WWW
« Reply #9 on: October 02, 2005, 03:47:14 pm »

I just downloaded the simple version. When I extracted, it gave me the plus file.
Logged

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

Posts: 6138



WWW
« Reply #10 on: October 02, 2005, 03:52:52 pm »

I have PHP 4 and when I tried to run sitemap.php, I got the same error as togi. sitemap_plus.php is the one that works.
Logged

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

Posts: 6138



WWW
« Reply #11 on: October 02, 2005, 04:24:51 pm »

The script (which I renamed accordingly) does not list my uploads from this year. Is there a limit to the number of entries the script will include? http://takethu.com/sitemap.php

edit: I'm not sure what happened... maybe the cron job finally worked, or maybe it was there all along but I found photos from this year in the site map. Maybe because it was out of chronological order, I couldn't find it before.
« Last Edit: November 09, 2005, 03:01:43 pm by TranzNDance » Logged

andy_cul
Coppermine regular visitor
**
Gender: Male
Posts: 50


WWW
« Reply #12 on: October 30, 2005, 08:09:26 am »

having this error

Quote
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/jologs/public_html/photogallery/sitemap.php on line 39
Logged

Unity is Strength, Knowledge is Power and Attitude is Everything.
(http://img133.imageshack.us/img133/9097/andyculcopy1fn.jpg)
mini1400
Coppermine novice
*
Gender: Male
Posts: 34


WWW
« Reply #13 on: November 02, 2005, 11:55:22 am »

Am I being completely stupid?

uploaded the script into my coppermine location
call it with http://mini1400.demon.co.uk/cpg/sitemap.php

get nothing!

What do I need to change to get it to work?
« Last Edit: January 18, 2006, 10:41:48 pm by mini1400 » Logged

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

Posts: 6138



WWW
« Reply #14 on: November 09, 2005, 03:12:37 pm »

@andy_cul and mini1400: Did you modify the script in any way? If so, what are the changes? What did you use to edit?
Logged

mini1400
Coppermine novice
*
Gender: Male
Posts: 34


WWW
« Reply #15 on: November 10, 2005, 12:52:34 pm »

Hi there,

script attached
Logged

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

Posts: 19439



WWW
« Reply #16 on: November 10, 2005, 01:15:29 pm »

Use the simple version if the plus version won't run on your setup.
Logged

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


WWW
« Reply #17 on: November 10, 2005, 05:13:59 pm »

Ahhh. was getting confused - the sitemap-simple zip contains a file sitemap-plus.php & sitemap-plus.zip contains sitemap.php....
Logged

mihat
Coppermine newbie

Posts: 3


« Reply #18 on: December 04, 2005, 11:03:47 am »

I get fatal error ... What should I do?

Fatal error: Class 'DOMDocument' not found in /net/www/galerija/sitemap.php on line 37

My system info:
Apache 2.0.54
PHP 5.0.5
Mysql 4.1
CPG 1.4.2
Logged
Nibbler Topic starter
Dev Team member
****
Gender: Male
United Kingdom United Kingdom

Posts: 19439



WWW
« Reply #19 on: December 04, 2005, 07:22:35 pm »

Use the simple version if the plus version won't run on your setup.
Logged

I don't care about what they say, I won't live or die that way.
Pages: [1] 2 3 4 5 ... 7   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.046 seconds with 16 queries.