Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#151 2006-11-18 09:17:23
Re: tru_tags: A tagging plugin for textpattern
All – just a quick update so you don’t lose hope. I’ve got tags in feeds working, and all the existing bugs fixed. (I discovered the cause of the issue where extra spaces were showing up between tags.) I’ve inspired myself to finally write the admin-side stuff also, so I haven’t released the new version yet. You can get an undocumented version (with the tags in the feeds) here, but it’s completely unsupported at this point. It should work for Technorati feeds.
If you do grab it, make sure to switch it on by editing the plugin, and you’ll probably want to create a form named “tru_tags_feed_tags” and put something like this in it:
<txp:tru_tags_if_has_tags>
<h4 class=“tags”>filed under: <txp:tru_tags_from_article /></h4>
</txp:tru_tags_if_has_tags>
That’s the last I’m going to say about this until I release tru_tags_2.0. Play around and see if you can figure it out :)
Last edited by truist (2008-07-03 12:01:32)
Offline
#152 2006-11-23 14:31:58
Re: tru_tags: A tagging plugin for textpattern
Just checked the code. Did not install yet …
register_callback('tru_tags_atom_handler', 'atom_entry');
function tru_tags_atom_handler($event, $step) { return tru_tags_feed_handler(true); }
register_callback('tru_tags_rss_handler', 'rss_entry');
function tru_tags_rss_handler($event, $step) { return tru_tags_feed_handler(false); }
Last line: return false for rss is OK to get tags in RSS feeds?
Edit: Oh, my comment was a little fast. If I see it right you only produce tags for the atom feed right now?
I will check the new version on a production site when there is more time …
Last edited by merz1 (2006-11-23 14:38:17)
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
#153 2006-11-24 01:37:17
Re: tru_tags: A tagging plugin for textpattern
The ‘false’ is correct – it’s my poor-man’s way of indicating whether the feed is Atom or RSS. Atom is ‘true’ and RSS is ‘false’.
Offline
#154 2006-12-04 18:08:40
Re: tru_tags: A tagging plugin for textpattern
truist wrote:
All – just a quick update so you don’t lose hope. I’ve got tags in feeds working, and all the existing bugs fixed.
I installed this update last night, and it seems to work fine. Nice work!
-Alan
Offline
#155 2006-12-05 13:28:17
Re: tru_tags: A tagging plugin for textpattern
@Nathan: I installed and activated clean URLs and feed support. I am getting the folowing error message:
Fatal error: Cannot redeclare tru_tags_use_clean_urls() (previously declared in (…)/textpattern/lib/txplib_misc.php(512) : eval()’d code:10) in (…)/textpattern/lib/txplib_misc.php(512) : eval()’d code on line 7
Any idea?
Edit: Again, a very fast comment.
I see that when installing the 1.10 I get two versions of tru_tags in my plugin list:
tru_tags Nathan Arthur 1.9
tru_tags.tmp Nathan Arthur 1.10
Deactivating tru_tags 1.9 solved the problem. I simply did not see tru_tags.tmp 1.10.
Last edited by merz1 (2006-12-05 13:35:18)
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
#156 2006-12-05 13:59:58
Re: tru_tags: A tagging plugin for textpattern
Oops! Apologies about that – I wrote a little “release” script for 1.10, and didn’t notice that it generated a plugin with a name of “tru_tags.tmp”. I’ll get that fixed when I officially release the next version.
..speaking of which, the next version will be 2.0. It’s essentially finished (but not online). I’m doing some final testing and I have a lot of documentation to update. From memory, it includes:
- Bug fixes
- Clean URLs without .htaccess customization
- Clickable tags on the admin side
- Customizable tags in feeds (but still no tag-based feeds – that requires a TXP patch)
- Changes to the configuration code
- A few new cloud attributes (for limiting cloud size)
- Minor performance improvements
There are a few more fancy features still lined up for future versions, but I figure that set is enough to justify the “2.0” moniker. I’ll get it out as quickly as I can :)
Offline
#157 2006-12-06 01:43:57
Re: tru_tags: A tagging plugin for textpattern
@Nathan: A short and positive feedback regarding 1.10 and the feed tweaking. Technorati now takes my Atom excerpt feed (via Feedburner) and indexes all the right tags and not only the two categories as tags. That really made my day. Thanks!
Do you see a chance to also get a tag cloud into the feed? I think that a tag cloud added to the feed body might be a nice internal cross link promotion for other pages on a site.
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
#158 2006-12-06 03:48:13
Re: tru_tags: A tagging plugin for textpattern
merz1 – I think you could actually get a tag cloud into a feed now, in 1.10. It’s one of the undocumented features (that I’ll be documenting in 2.0) – you can define a form (in txp admin) named “tru_tags_feed_tags” and whatever you put in that form will end up in your article feed, instead of the default output that I hard-coded. Normally you’d just put tru_tags_from_article but you could also put tru_tags_cloud (or both) in there and get a cloud in each article feed.
I haven’t tried it, though :)
Offline
#159 2006-12-06 12:11:36
Re: tru_tags: A tagging plugin for textpattern
@Nathan: Oh Yes, how stupid from me. Your Form offers multiple possibilities …
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
#160 2006-12-17 17:18:35
Re: tru_tags: A tagging plugin for textpattern
The old ‘Gruner-+-Jahr’ problem is rising its head again on my site.
In version 1.10 it is broken again!
Reference
http://forum.textpattern.com/viewtopic.php?pid=123007#p123007
My settings:
function tru_tags_use_clean_urls()
{
return 1; #DO NOT ENABLE THIS unless you've read the instructions
}
function tru_tags_add_tags_to_feed_body()
{
return 1; #this will append "tags: trees, flowers, animals, etc" (with links) to the body of RSS/Atom feeds
}
#YOU ONLY NEED TO CARE ABOUT THIS FUNCTION IF YOU USE CLEAN URLS AND NON-ALPHANUMERIC CHARACTERS IN YOUR TAGS (LIKE '+')
#MM: more info at http://forum.textpattern.com/viewtopic.php?pid=123007#p123007
function tru_tags_double_urlencode()
{
return 0; #use this if you aren't using a broken version of apache, or if you only use letters/numbers in your tag names, or if you're not using clean urls
#return tru_tags_use_clean_urls(); #use this if you are using a version of apache that has this problem: http://issues.apache.org/bugzilla/show_bug.cgi?id=34602
}
I tried setting it to ‘1’ but it did not help.
Last edited by merz1 (2006-12-17 17:20:51)
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
#161 2006-12-18 03:17:46
Re: tru_tags: A tagging plugin for textpattern
merz1 – tru_tags_double_urlencode() should be returning ‘1’. Do I understand correctly that you tried that, and it still didn’t work? Any chance that you’ve run into the problem where the plugin is named “tru_tags.tmp”? I can’t think of anything that’s changed in 1.10 that would cause this to break, but I can dig into it if need be.
Offline
#162 2006-12-18 15:06:24
Re: tru_tags: A tagging plugin for textpattern
tru_tags_double_urlencode() should be returning ‘1’. Do I understand correctly that you tried that, and it still didn’t work?
Yes I tried it and it did not work.
Update: I just tried it again and now it returns the correct value gruner-%252B-jahr.
(Maybe it was a browser or server cache issue???)
Any chance that you’ve run into the problem where the plugin is named “tru_tags.tmp”? I can’t think of anything that’s changed in 1.10 that would cause this to break, but I can dig into it if need be.
Yes, I am using the .tmp version of 1.10.
Is there a newer version (without the .tmp)?
To me it looks like a regression.
-(…) problem as described in Keyword: Gruner + Jahr
Last edited by merz1 (2006-12-18 15:25:17)
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
#163 2007-01-02 01:14:09
Re: tru_tags: A tagging plugin for textpattern
I am very pleased to announce the release of tru_tags 2.0. (Happy new year!) This release is a major step forward for tru_tags, including:
- Clean URLs without modifying .htaccess
- Tags in RSS and Atom feeds
- It’s possible to add arbitrary content to articles in RSS and Atom feeds
- Tags on the admin side when writing/editing articles
- Tag clouds can be limited to a maximum number of tags
- A number of smaller enhancements (nearly everything that’s been requested here)
- Fixes for every known defect
The only thing missing (that I’m aware of) are some of the very advanced features (like grouping by age) that have been requested on this forum. In general, I’m not going to reply to all the outstanding issues/requests – please just assume it’s been fixed, and let me know if it hasn’t :)
Please read the release notes before upgrading. There are a few minor backwards-incompatibilities, and a few things you’ll want do do when you upgrade.
As always, please report issues here or on my site.
Last edited by truist (2008-07-03 12:00:43)
Offline
#164 2007-01-02 21:55:06
Re: tru_tags: A tagging plugin for textpattern
Thanks to Jadelrab for finding a small javascript problem, which I’ve fixed and updated in v2.0 (without a version bump). If you already grabbed it, you may want to grab it again. (The problem was that a “</a>” should have been “<\/a>”. Apparently the lack of a backslash causes problems in some cases.)
Offline
#165 2007-01-15 10:35:01
Re: tru_tags: A tagging plugin for textpattern
THANKS! Nathan, version 2.0 is installed and works as expected. Another beautiful step forward for tag lovers :-)
By now I would really recommend to put tru_tags into the Textpattern core code. The support for keywords/tags in TXP out of the box is simply a shame …
My future requests:- AJAX makes existing tags automagically show up in a list when typing (see del.icio.us plugin for Firefox)
- Keyword extract from body via existing keywords?
- Keyword maintenance (search and replace in keyword field)
- A switch for capitalization
- striphyphens + urlencode: Right now spaces become ‘+’. Isn’t ‘%20’ more correct or sometimes a better alternative?
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline