Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#517 2008-12-02 11:59:10

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

Re: tru_tags: A tagging plugin for textpattern

@nathan Re: truist.com changes

I will send the message to some rainskit.com mail addresses :)

  1. Your forum profile still mentions truist.com.
  2. I have no idea where the forum mail form is going to but I hope you can be reached.
  3. rainskit.com also still has truist.com in the page title.

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

Offline

#518 2008-12-02 14:06:06

truist
Plugin Author
From: Ohio, USA
Registered: 2004-11-09
Posts: 257
Website

Re: tru_tags: A tagging plugin for textpattern

All – I haven’t yet tried tru_tags in a 4.0.7 environment, but I will, sometime this week or weekend. If anyone does encounter a problem, please post as much detail as you can here, and that will speed the fix :)

Markus – thanks for sending me the notes. I had updated my email address on the forum, but I didn’t realize that there was a separate link to my (old) website, so now I’ve updated that also. But your third item – truist.com in the page title – I don’t see that. Can you send me a link to a page that has the problem?

Offline

#519 2008-12-02 16:40:35

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: tru_tags: A tagging plugin for textpattern

Markus (and Nathan), I just updated tru_tags to 3.3 in my local 4.0.7 install, and so far I haven’t seen anything that doesn’t work. But I must say I’m not (yet) using all possible tags. Do you know what was the problem on the site you mentioned?

Offline

#520 2008-12-03 14:06:43

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

Re: tru_tags: A tagging plugin for textpattern

Els: No descriptions, no code and no reaction to my comments on the blog so far. I believe the owner might have some issues with the new parser and should check all his parameters for correctly " quoted parameters. But as I said: no confirmation and it seems to be the only case with tru_tags so far.

Last edited by merz1 (2008-12-03 14:07:09)


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

Offline

#521 2008-12-08 02:47:12

truist
Plugin Author
From: Ohio, USA
Registered: 2004-11-09
Posts: 257
Website

Re: tru_tags: A tagging plugin for textpattern

Markus, I updated the documentation according to your suggestion. Thanks.

I’m working (this minute!) on finalizing the documentation for v3.3 and updating the roadmap. Look for an “official” announcement of v3.3 sometime tonight :)

Offline

#522 2008-12-08 02:47:44

truist
Plugin Author
From: Ohio, USA
Registered: 2004-11-09
Posts: 257
Website

Re: tru_tags: A tagging plugin for textpattern

P.S. – I have updated my sites to TXP 4.0.7 and I haven’t seen any problems with tru_tags.

Offline

#523 2008-12-08 04:07:32

truist
Plugin Author
From: Ohio, USA
Registered: 2004-11-09
Posts: 257
Website

Re: tru_tags: A tagging plugin for textpattern

All –

I have finally “officially” announced tru_tags v3.3 on my releases page, because all the features from v3.2 are finally documented.

Most of the valuable stuff in v3.3 was really released in v3.2 (see the forum post for details) – specifically, the ability to make a tag-based archive page. But v3.2 still points to my old website (truist.com) which I sold recently, so if you’re using v3.2, your documentation links won’t work. v3.3 fixes that.

But: v3.3 requires TXP 4.0.7. I fixed a bug and updated v3.3 to support article expiration dates (so tru_tags will hide expired articles from the cloud), but that support means that you have to have 4.0.7. So if you really don’t want to upgrade to TXP 4.0.7, please don’t upgrade tru_tags past v3.2.

Sorry for all the confusion – I will avoid overlapping releases in the future =)

I have also made minor updates to the roadmap, just to make sure it was synced up with the requests here in the forum. Please shout if I’m missing something.

Enjoy!
Nathan

Offline

#524 2008-12-08 14:16:35

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

Re: tru_tags: A tagging plugin for textpattern

I also updated to TXP 4.0.7 and to the updated tru_tags 3.3. No problems with tru_tags.

@Nathan You should have announced 3.3.1 (or 3.4) to make clear that this is a new updated 3.3.n version. Not everybody will read your announcement until or immediately note “updated v3.3” :)

Last edited by merz1 (2008-12-08 14:18:20)


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

Offline

#525 2008-12-09 00:13:05

truist
Plugin Author
From: Ohio, USA
Registered: 2004-11-09
Posts: 257
Website

Re: tru_tags: A tagging plugin for textpattern

Good point. But I don’t think there’s much harm in it – the only thing missing from the earlier copy of v3.3 is the bugfix and the article expiration date support, which seem minor. And since they require TXP 4.0.7, maybe anyone who already has v3.3 on TxP 4.0.6 is happy that way :)

Offline

#526 2008-12-09 17:19:29

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

Re: tru_tags: A tagging plugin for textpattern

maybe anyone who already has v3.3 on TxP 4.0.6 is happy that way :)

Yes I was for sure :) but that’s the point. Maybe somebody who has 4.0.6 and is downloading the ‘updated 3.3’ now without reading the release note is not so happy this way.


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

Offline

#527 2009-01-03 07:32:44

fdsafdsa
Member
From: cn
Registered: 2007-04-19
Posts: 47
Website

Re: tru_tags: A tagging plugin for textpattern

i need tru tag 3.3,autor’s site offline

Offline

#528 2009-01-03 10:40:44

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: tru_tags: A tagging plugin for textpattern

Here you go:

# tru_tags v3.3
# Article tagging
# Nathan Arthur
# http://www.rainskit.com/

# ......................................................................
# This is a plugin for Textpattern - http://textpattern.com/
# To install: textpattern > admin > plugins
# Paste the following text into the 'Install plugin' box:
# ......................................................................

YToxMTp7czoxNToiYWxsb3dfaHRtbF9oZWxwIjtpOjA7czo3OiJ2ZXJzaW9uIjtzOjM6IjMu

MyI7czo2OiJhdXRob3IiO3M6MTM6Ik5hdGhhbiBBcnRodXIiO3M6MTA6ImF1dGhvcl91cmki

O3M6MjQ6Imh0dHA6Ly93d3cucmFpbnNraXQuY29tLyI7czoxMToiZGVzY3JpcHRpb24iO3M6

MTU6IkFydGljbGUgdGFnZ2luZyI7czo0OiJ0eXBlIjtpOjE7czo0OiJuYW1lIjtzOjg6InRy

dV90YWdzIjtzOjQ6ImhlbHAiO3M6Njc1OiIJPHA+VG8gbGVhcm4gbW9yZSBhYm91dCB0cnVf

dGFncywgY2hlY2sgb3V0IHRoZSA8YSBocmVmPSJodHRwOi8vd3d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