Simple Machines Community Forum

General Community => Scripting Help => Aiheen aloitti: Farmacija - kesäkuu 05, 2007, 07:11:15 AP

Otsikko: Script for automatic adding new urls in sitemap
Kirjoitti: Farmacija - kesäkuu 05, 2007, 07:11:15 AP
Is there such script? It should be google compatibile sitemap[ xml type] for automatic adding every new topic?
Otsikko: Re: Script for automatic adding new urls in sitemap
Kirjoitti: KGIII - kesäkuu 06, 2007, 12:45:41 AP
Have you seen this?

SMF Sitemap:
http://custom.simplemachines.org/mods/index.php?mod=755

Otsikko: Re: Script for automatic adding new urls in sitemap
Kirjoitti: SlammedDime - kesäkuu 06, 2007, 01:03:47 AP
Lainaus käyttäjältä: KGIII - kesäkuu 06, 2007, 12:45:41 AP
Have you seen this?

SMF Sitemap:
http://custom.simplemachines.org/mods/index.php?mod=755


+1 :)
Otsikko: Re: Script for automatic adding new urls in sitemap
Kirjoitti: KGIII - kesäkuu 06, 2007, 01:05:39 AP
I figured you'd be partial to that recommendation. 'Tis good work. I snatched it before it was even approved. ;)
Otsikko: Re: Script for automatic adding new urls in sitemap
Kirjoitti: SlammedDime - kesäkuu 06, 2007, 01:07:03 AP
Lainaus käyttäjältä: KGIII - kesäkuu 06, 2007, 01:05:39 AP
I figured you'd be partial to that recommendation. 'Tis good work. I snatched it before it was even approved. ;)
Yea, I noticed that... ;)  Glad you like it.
Otsikko: Re: Script for automatic adding new urls in sitemap
Kirjoitti: Farmacija - kesäkuu 06, 2007, 03:10:09 AP
LainaaAlso included is the option to display an XML sitemap for use with Google Sitemaps. On any of the sitemap pages, simply click the 'XML' link at the bottom for the XML version.  If you wish to submit your site to Google Sitemaps, you will need to use this link.  Google does not like SEF formatted URLs for the sitemap because it won't show the sitemap in the root directory.  Using the link as provided will.
I understand that i have to click on every topic page to get xml link for google sitemap and that is manual adding of urls. am i right?
Otsikko: Re: Script for automatic adding new urls in sitemap
Kirjoitti: KGIII - kesäkuu 06, 2007, 04:14:21 AP
The mod above does all of that automatically.
Otsikko: Re: Script for automatic adding new urls in sitemap
Kirjoitti: Farmacija - kesäkuu 08, 2007, 06:34:13 AP
i have already this mod http://www.simplemachines.org/community/index.php?topic=59676.0 ?
Otsikko: Re: Script for automatic adding new urls in sitemap
Kirjoitti: SlammedDime - kesäkuu 08, 2007, 03:48:17 IP
My mod was sort of based off of his, only it uses less SQL queries, and is built into SMF, rather than simply being an extra file in the file system.
Otsikko: Re: Script for automatic adding new urls in sitemap
Kirjoitti: Farmacija - kesäkuu 11, 2007, 10:55:59 AP
But i need more compatibile google sitemap for non-maual adding urls, and your mode is more suitable than davilac's?
Otsikko: Re: Script for automatic adding new urls in sitemap
Kirjoitti: SlammedDime - kesäkuu 11, 2007, 02:21:30 IP
The way my mod works is simple... lets say your forum is at http://www.myurl.com.  Your XML sitemap for google to use can then be found at http://www.myurl.com/index.php?action=sitemap;xml, which is a valid url to be used in Google's sitemaps.  It is dynamically generated, which means that everytime you access it, it has up to date information on any boards you have and topics you have.  You don't need to do anything to add boards or topics to it, its automagic.