Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#61 2007-02-13 06:09:14

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: asy_sitemap: Google-Sitemap (as-is/for developers)

I tried his version, and beside the small thing above, I didn’t found any issues. What problems are you referring to?

Last edited by Jeremie (2007-02-13 06:09:28)

Offline

#62 2007-02-14 14:57:35

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: asy_sitemap: Google-Sitemap (as-is/for developers)

Jeremie wrote:

I tried his version, and beside the small thing above, I didn’t found any issues. What problems are you referring to?

here they are… and no, the mod does not fix it…


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#63 2007-03-20 19:48:50

fowler
Member
Registered: 2007-02-12
Posts: 79

Re: asy_sitemap: Google-Sitemap (as-is/for developers)

It doesn’t seem to be working for me, I get this error code in my sitemap.xml.gz file..

This page contains the following errors:

error on line 1 at column 1: Document is empty

Below is a rendering of the page up to the first error.

Last edited by fowler (2007-03-20 19:50:02)

Offline

#64 2007-04-22 22:55:11

Aleksandersen
Member
From: Lillehammer, Norway
Registered: 2007-04-12
Posts: 77

Re: asy_sitemap: Google-Sitemap (as-is/for developers)

/atom/ and /rss/ should be added as well.

Offline

#65 2007-04-28 08:46:29

codesweeper
New Member
Registered: 2007-03-30
Posts: 5
Website

Re: asy_sitemap: Google-Sitemap (as-is/for developers)

How to make asy_sitemap to work with the the Multi-Lingual-Publishing Pack Plugin ?

Maybe a lame way but, Check this out:

First get your /textpattern/publish/taghandlers.php file and search for the function “permlinkurl”

Copy and paste it as a new function and rename it as “permlinkurlMLP”

insert the following after array extraction part :

if (empty($l10n_lang)) $l10n_lang = $l10n_lang;
$l10n_lang = substr($l10n_lang,0,2);

Make changes by insertion where necessary, like:

return hu."$l10n_lang/$section/$thisid/$url_title";

After changes are made, upload it back to your server.

Now, go and edit asy_sitemap code (admin cp)

Find the line :

$rs = safe_rows_start("ID,unix_timestamp(Posted) as Posted, unix_timestamp(LastMod) as LastMod, Section, Status, Title, url_title", 'textpattern',

And change it :

$rs = safe_rows_start("ID,unix_timestamp(Posted) as Posted, unix_timestamp(LastMod) as LastMod, Section, Status, Title, url_title, l10n_lang", 'textpattern',

Find the line :

$url = permlinkurl($article); and change it to $url = permlinkurlMLP($article); and save it.

There you go, now your sitemap.xml.gz reflects all the languages installed on your site.

Cheers!

Last edited by codesweeper (2007-04-28 08:48:38)

Offline

#66 2007-05-01 21:07:30

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: asy_sitemap: Google-Sitemap (as-is/for developers)

@Geert van Aken: After installing your patched version (36) in my TXP 4.0.4 I get the following error when editing an article:


Fatal error: Cannot redeclare page_title() (previously declared in …/textpattern/publish/taghandlers.php:16) in …/textpattern/publish/taghandlers.php on line 16

Deactiviting the plug-in makes the error message vanish.

Reactivating … error shows up again


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#67 2007-05-01 21:37:12

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: asy_sitemap: Google-Sitemap (as-is/for developers)

Yes, I have the same issue.

Offline

#68 2007-05-01 23:31:04

LeeUmm
Member
From: Hamilton, Ontario
Registered: 2005-04-22
Posts: 91
Website

Re: asy_sitemap: Google-Sitemap (as-is/for developers)

Ya it’s a known issue as it happens on most installations, if not all. I don’t think this is supported anymore. Maybe if we all chipped in and got some money together somebody would continue it. It could be very handy.

Offline

#69 2007-05-01 23:48:33

RenJonsin
Member
From: Tarpon Springs, FL USA
Registered: 2005-02-06
Posts: 103
Website

Re: asy_sitemap: Google-Sitemap (as-is/for developers)

I’ve taken to turning on the plugin, generating a sitemap once a week, then turning it off. Google knows where the site map is and finds most of the pages on my site through visitors using the Google toolbar anyway. I’m using version 0.7 but I’m not sure if that’s the current one. I do know that it doesn’t break my site, except for one needed plug-in, when I activate it.

Ren

Offline

#70 2007-05-02 11:50:05

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: asy_sitemap: Google-Sitemap (as-is/for developers)

@Lee: I hope this is on schedule for TXP core development but have no info about it.

@Ren: Nice workaround :-)


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#71 2007-05-02 14:55:12

Qwest
Member
From: London, UK
Registered: 2007-01-24
Posts: 112

Re: asy_sitemap: Google-Sitemap (as-is/for developers)

Just thought i’d say thanks for creating this plugin!!

Offline

#72 2007-05-10 20:28:56

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: asy_sitemap: Google-Sitemap (as-is/for developers)

Anybody else know how to fix the Cannot redeclare page_title() error mentioned previously?

Last edited by tinyfly (2007-05-10 20:29:11)

Offline

Board footer

Powered by FluxBB