PDA

View Full Version : ADDON: Admin Google Sitemap Ping Service


janickg
01-12-2007, 09:14 PM
DESCRIPTION:
Automatically resubmits your sitemap by triggering a HTTP-request on new image upload. Make sure that you already have a sitemap created (hopefully dynamically), if you do not know how to do this, search for se.nsuo.us's Google Sitemap creator addon in the Pixelpost forums.

IMPORTANT:
Assumes that your sitemap is located at http://yourdomain.com/yourphotoblogpath/sitemap.xml
If your sitemap is located somewhere else, you may redirect a http request by forwarding the url through .htaccess; for users of se.nsuo.us's Google Sitemap creator:
Insert the following lines into your .htaccess file


RewriteEngine On
RewriteBase /
RewriteRule ^sitemap.xml$ index.php?z=sitemap


VERSION: 1.0

INSTALLATION
Download and unzip the file to your addons directory. Make sure you have your sitemap at the specified location in the description. Upload a new post and the addon will do its job, you will see its updated status just before the crop thumbnails section upon update.

NEW TAG: none

DOWNLOAD:
http://www.pixelpost.org/v1/index.php?x=downloads&details=197

GeoS
01-12-2007, 11:05 PM
Our community members are starting to write addons on own hand - good as I was waiting for it for a looooong time :)

BTW Nice idea for new addon :D

janickg
01-13-2007, 12:42 AM
Geos, agreed! I think its fun, but its also hard to think of ideas outside one's needs within their personal photoblog. I wrote this because I was looking into sitemaps and wanted to improve the crawl rate from Google, I'm not sure how effective this will be, but it sure does automate the process instead of manually resubmitting it everytime you upload a post.

One thing would be nice though, if the addons page on the old pixelpost home were tagged or organized in some manner. The list is long and pretty jumbled. ;-)

Next step for this addon is to make the sitemap url userr defined in the admin page and store it in the db.

se.nsuo.us
01-13-2007, 04:31 AM
It is nice to see addons being created to complement addons already present - thanks

GeoS
01-13-2007, 09:21 PM
Youve got right. There were and still are plans to rebuild Pixelpost's site but it needs time from all of developers. One of us need to make graphic and the other ones need to code it. Maybe after this release of PP (1.6) there will be enough time to rebuild Pixelpost's home :D

clickykbd
01-15-2007, 02:02 AM
I just installed both the sitemap creator and the admin half that work so well together... thanks for the addons!

janickg
01-15-2007, 06:27 AM
Great to hear! Hopefully this coming weekend (or sometime) I get to work on making the address of the sitemap user-defined in the admin options.

zac
01-18-2007, 06:41 AM
Thanks for this... I am just getting wise to the whole google sitemap thing.. if anyone needs help creating a sitemap I just found this great program:

http://gsitecrawler.com/

I am a little confused by this addon... and the .htaccess tweak. What exactly does this do? Will it affect the way other things crawl the site?

.. for example my sitemap is going to be in my root folder... http://www.mysite.com/sitemap.xml

but my blog resides in the subfolder

http://www.mysite.com/blog/index.php

If I redirect to the blog will the sitemap generator no longer crawl the rest of the site?

Thanks for creating this addon!

janickg
01-18-2007, 02:50 PM
You do not need to redirect anything, just http redirect the request for yoursite.com/blog/sitemap.xml to yoursite.com/sitemap.xml using .htaccess.

This will tell the servers that anyone trying to access yoursite.com/blog/sitemap.xml will pull up your sitemap itself. Google will use the information in your sitemap to help in its crawl, this doesn't mean the rest of your domain will not be crawled. I hope that clarifies things.

zac
01-21-2007, 04:41 AM
yes indeed .. .thanks much :)

Ariel
03-31-2007, 07:38 AM
Oh, it took me a little while to get this working.

If your photoblog is at www.mysite.com/photoblog/ instead of at www.mysite.com, you'll need to change that second line to RewriteBase /photoblog/

I hope that helps someone else from getting tripped up. :)