Textpattern CMS support forum

You are not logged in. Register | Login | Help

#691 2010-09-05 21:31:13

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

Re: tru_tags: A tagging plugin for textpattern

(Markus, as always, thanks for your quick and helpful reply!)

Clayton wrote:

BTW, tru_tags_handler “will also accept all of the attributes used by tru_tags_cloud” according to rainskit.com. It almost did :)

Yes, I realized that you must have tried what you tried because of that line in the documentation. I’m actually not sure (without looking at the code) whether the documentation is wrong or the code is wrong, but obviously not every attribute works as described. I’ll look into it… someday what I have time to focus on tru_tags again. (Just to explain: 6-month old baby, and 2 jobs, so I have very very little time for hobby programming.)

Offline

#692 2010-09-06 15:23:57

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

Re: tru_tags: A tagging plugin for textpattern

Clayton wrote:

BTW, tru_tags_handler “will also accept all of the attributes used by tru_tags_cloud” according to rainskit.com. It almost did :)

Yep, sorry, didn’t remember/see that line. I never used tru_tags_handler that way because to me it makes no sense to link wildly to external sites with internal keywords. In a single article context it makes a lot of sense on the other hand.

I now have:

... <txp:tru_tags_cloud showcounts="title" linkpath="http://my.com/tag/" linkpathtail="" /> ...

Just to make that clear: If my.com is your main site where your Textpattern installation incl. tru_tags is running then you won’t need linkpath="http://my.com/tag/" linkpathtail="" at all. The internal /tag/ links will always refer to your tag search result page as long as ‘tag’ is the section you created as the tru_tags landing page/section.


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

Offline

#693 2010-09-06 16:48:57

Clayton
Member
Registered: 2009-06-12
Posts: 14

Re: tru_tags: A tagging plugin for textpattern

merz1 wrote:

  • Just to make that clear: If my.com is your main site where your Textpattern installation incl. tru_tags is running then you won’t need linkpath="http://my.com/tag/" linkpathtail="" at all. The internal /tag/ links will always refer to your tag search result page as long as ‘tag’ is the section you created as the tru_tags landing page/section.

Markus, I am using this for internal links. I find that the trailing / is always added by default and I want everything on my site to be without trailing slash. I read somewhere that default is without trailing slash but I have not found this in my case. Great plugin, btw, and I would never have found anything wrong if I wasn’t so fussy about trailing slashes. I only learned recently that google treats mysite.com, mysite.com/, www.mysite.com and mysite.com/index.php etc as different sites.

Offline

#694 2010-09-06 17:13:11

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

Re: tru_tags: A tagging plugin for textpattern

OK, a trailing slashes phobia can be accepted :)
But nevertheless parsing the attributes & reducing the slashes is not as green as the core result.

Well, an argument for a trailing slash could be that those search results are lists which offer links to single articles (no trailing slash :) but this might be semantically a little bit over the top aka hair splitting.

I only learned recently that google treats mysite.com, mysite.com/, www.mysite.com and mysite.com/index.php etc as different sites.

Well, well, well … forget about that. Google decides itself which page to list if all those pages are indifferent (aka duplicate content).


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

Offline

#695 2010-09-10 12:22:14

jens31
Plugin Author
From: munich / dtschermani
Registered: 2008-08-25
Posts: 183
Website

Re: tru_tags: A tagging plugin for textpattern

dunno, if i said it before, but anyways this plug-in is a hell of a machine and i say it twice: great job!!

i have a minor problem, which i solved, but i had my problems..
i tried to delete a tag. this worked well (i checked the db and couldnt find the “wrong” tags anymore)
but for some reason the tag still appeared in the cloud. clicking on it ended in a 404.
like i said, i even checked the db, but couldnt find the wrong one.
so i ended up editing (deleted and reinserted) the (not so many <10) articles by myself. that helped. but is there any reasonable explaination for that behavior?
maybe because i first installed a redirect (but deleted it as well)?

thanks
jnz

Offline

#696 2010-09-12 02:34:31

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

Re: tru_tags: A tagging plugin for textpattern

Nothing comes to mind. Any chance your browser was just caching the original page? tru_tags just uses the keywords field, so if the tags weren’t present in that field in any articles, it just wouldn’t have any other way to include them in the cloud.

Offline

#697 2010-09-13 09:46:01

jens31
Plugin Author
From: munich / dtschermani
Registered: 2008-08-25
Posts: 183
Website

Re: tru_tags: A tagging plugin for textpattern

hm. dunno. pressed the reload button a zillion times. then edited all the articles and the wrong tags were gone.
strange (..but whatever..). thanks for your time.

Offline

#698 2010-12-10 09:15:52

whocarez
Plugin Author
From: Germany/Ukraine
Registered: 2007-10-08
Posts: 237
Website

Re: tru_tags: A tagging plugin for textpattern

A while ago – after some time of debugging and measuring – I found a solution for my performance problems. Maybe it is not only useful for me and Nathan can integrate it in the official version. Tested on Textpattern 4.2 und 4.3.
Find it here:
tru_tags-3.7-alpha.txt

Mainly I changed the following in tru_tags_related_tags_from_search:

- $all_tags = array_merge($all_tags, tru_tags_trim_tags($article_tags));
+ foreach(tru_tags_trim_tags($article_tags) as $i) {$all_tags[] = $i;}

and in tru_tags_cloud_query

- $all_tags = array_merge($all_tags, tru_tags_trim_tags($temp_array));
+ foreach(tru_tags_trim_tags($temp_array) as $i) {$all_tags[] = $i;}

It brought me a significant performance boost!!
The hint was from here:
http://www.bitbybit.dk/carsten/blog/?p=203

A minor change is to replace array_key_exists() with isset
as this guy recommends: http://drupal.org/node/24501

in tru_tags_get_tags_for_article

- if (array_key_exists($tags_field, $rs)) {
+ if (isset($rs[$tags_field])) {

in tru_tags_related_tags_from_search

- if (array_key_exists($tags_field, $a)) {
+ if (isset($a[$tags_field])) {

in tru_tags_cloud_query

- if (array_key_exists($tags_field, $row)) {
+ if (isset($row[$tags_field])) {

Hope it helps someone else ….

Last edited by whocarez (2011-10-23 12:20:44)

Offline

#699 2011-01-07 19:33:00

Jaro
Member
From: S/F
Registered: 2004-11-18
Posts: 89

Re: tru_tags: A tagging plugin for textpattern

I’m having an interesting problem with this plugin. Here is what I do:

1.) I import articles with future publishing date using the jmd_csv plugin

2.) When the day comes the article is published automatically

3.) When I click on a tag that was assigned to an article the tag page is not found

4.) But when I manually republish the article (i.e. hit the Publish button) the tag page is found

Any ideas why this is happening?

Offline

#700 2011-01-22 04:02:42

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

Re: tru_tags: A tagging plugin for textpattern

Jaro, a few questions:

1) I assume your import CSV file had a column labeled “Keywords”?

2) Can you give me a few examples of exactly what was in that column in the input CSV file?

3) Can you give me a few examples of exactly how you specified the future publish date, in the CSV file?

Offline

Board footer

Powered by FluxBB