Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#37 2008-10-24 20:38:09

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: rah_sitemap

Possibly cause is a bug in the MySQL. Verified number #38173 node.

That bug just yans and yans about the default value (that is unset).

Offline

#38 2008-10-24 21:05:06

douglgm
Member
From: Bristol
Registered: 2006-08-23
Posts: 182
Website

Re: rah_sitemap

Thanks – I’ll check that first!

Offline

#39 2008-10-25 08:15:42

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

Re: rah_sitemap

minor bug in Custom sitemap URLs on “view” links which point to urls such as…

http://domain.com/txp-directory/http://domain.com/url/

the urls appear OK in the sitemap xml.


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

Offline

#40 2008-10-25 19:48:53

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: rah_sitemap

colak wrote:

minor bug in Custom sitemap URLs on “view” links which point to urls such… …the urls appear OK in the sitemap xml.

Don’t suspect me, ofcourse those appear correctly in the sitemap ;D I just forgot to update the view-URL address from the old version 0.2 way to build them, now fixed :)

New version 0.3.2 released. Changelog:

  • Fixed view url that still (from version 0.2) included installation address before link.

More info and downloads

Last edited by Gocom (2008-10-25 19:50:16)

Offline

#41 2009-02-25 10:44:27

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 355
Website

Re: rah_sitemap

Gocom wrote:

Gallex, affraidly your server is too outdated – it doesn’t support PHP date functions “c” format :/
To fix this, update to PHP 5.x.x+. :)

I like PHP 4.x :)

Fix: simple replace string

date('c',

to

date('Y-m-d\TH:i:s+00:00',

Last edited by makss (2009-08-11 21:05:13)


aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)

Offline

#42 2009-02-25 11:14:01

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 355
Website

Re: rah_sitemap

Request new feature, if it possible…

Option: “Exclude FUTURE posts” [ Posted > now() ]

fast hack ;-) /only exclude/
replace

$rs = safe_rows_start(‘ID, Posted, LastMod’,‘textpattern’,“Category1 not in($notcategory) and Category2 not in($notcategory) and Section not in($notsection) and Status not in($notstatus) order by Posted desc”);

to

$rs = safe_rows_start(‘ID, Posted, LastMod’,‘textpattern’,“Category1 not in($notcategory) and Category2 not in($notcategory) and Section not in($notsection) and Status not in($notstatus) and Posted<now() order by Posted desc”);

Last edited by makss (2009-02-25 11:15:16)


aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)

Offline

#43 2009-04-12 10:56:14

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: rah_sitemap

New rah_sitemap version, 0.4, released. This version brings some nasty new features. Changelog:

  • Added support for custom permlink rules: Now you can easily set anykind of permlink rules for articles, sections and categories.
  • Added option to exclude future articles.
  • Added option to exclude past articles.
  • Added option to exclude expired articles.
  • Moved Custom URL UI to it’s own page.
  • Added multi-delete feature to Custom URL UI.
  • Improved Custom URL UI.
  • Removed default static appending domain from Custom URL input field.
  • Changed TXP minimum requirement to version 4.0.7 (and above). Note that the plugin still works with older TXP versions (down to 4.0.5) if the Exclude Expired articles -option is left empty (unset).

Image equals to 1,000 words:

More info and downloads

Last edited by Gocom (2009-04-12 11:16:17)

Offline

#44 2009-04-12 11:56:05

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,596
Website

Re: rah_sitemap

super Jukka, I have used your previous version a few times now and the plugin is really very useful and flexible, e.g. the ability to add custom links enables one to include other non-txp parts of a site or adapt it to custom htaccess rules.

One thing I did miss was the ability to exclude individual articles. Would it be possible to have a simple exclude articles field with a comma-separated list of article IDs? I’m thinking of a couple of situations:

  • sometimes I’ll have a single article in it’s own section e.g. contact or impressum and just link to the section landing page. The user is never actually aware that one is seeing site.tld/impressum/impressum or /contact/contact but it is output in the sitemap. For the moment I added a rel="canonical" in the hope that google stores only the address I want.
  • sometimes I’ll put introtext for a section at the top of a section landing page in an article rather than hard coding it into the page template so that the site authors can change it if they want to. This article is never meant to be read on it’s own. Again, here I’d like to exclude it from a sitemap.
  • sometimes I’ll add a mem_moderation submit form that is for selected contributors but not linked to anywhere. Again, I’d like to leave this out of a sitemap.

Thanks for considering the request.


TXP Builders – finely-crafted code, design and txp

Offline

#45 2009-04-12 12:16:30

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: rah_sitemap

jakob wrote:

One thing I did miss was the ability to exclude individual articles. Would it be possible to have a simple exclude articles field with a comma-separated list of article IDs? I’m thinking of a couple of situations:

Prehaps you could use sticky article status and exclude that from the list? Or give those articles a odd category which you exclude from the sitemap?

But for the request, that is coming in the future. It’s part of the major version 1.0 aka Bento Sitemap plans. There is probably one-two releases before that one, depending on the amount of bug reports. Feature is mostlikely integrated to article Write page and excluded articles can also be viewed/un-excluded from the Sitemap UI.

Offline

#46 2009-06-03 10:08:39

damienbuckley
Member
From: Brisbane, QLD, AU
Registered: 2006-02-24
Posts: 138
Website

Re: rah_sitemap

Any ideas why I’m getting these errors at Google?

Line Status Details 1 Invalid date
An invalid date was found. Please fix the date or formatting before resubmitting. Help Parent tag:
Tag:
Value:
Problem detected on: url
lastmod
c
Jun 3, 2009

Last edited by damienbuckley (2009-06-03 10:10:01)

Offline

#47 2009-06-03 10:15:52

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: rah_sitemap

damienbuckley wrote:

Any ideas why I’m getting these errors at Google?

Reading the doc’s Requirements section helps ;) Date’s c operator is only available on PHP5 and above. You are using PHP4.

But, if you want, you can manually replace it with other operators (e.g. 'Y-m-d\TH:i:s+00:00') by changing the code. Tho updating to PHP5 is really adviced.

Last edited by Gocom (2009-06-03 10:18:29)

Offline

#48 2009-06-03 11:11:32

damienbuckley
Member
From: Brisbane, QLD, AU
Registered: 2006-02-24
Posts: 138
Website

Re: rah_sitemap

Weird the Cpanel says its running 5.2.9 but when I ran phpinfo it is indeed 4.4.9. I’ll have to contact the hosting company to find out what’s going on. How many instances of the code need replacing?

Last edited by damienbuckley (2009-06-03 12:25:33)

Offline

Board footer

Powered by FluxBB