Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#625 2009-05-04 09:19:55

hoho
Plugin Author
Registered: 2009-04-05
Posts: 11

Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories

Hello,

I’m wondering if Rob still maintains this great plugin. The ‘ORPHAN’ keyword suggests he does not but I’m not familiar with the conventions at this forum.

The last official version bump was two years ago, a number of bugs have been identified and fixed since then and I find it very tedious and uncomfortable to search this long and unstructured thread for fixes of bugs I experience with the latest official version. What would be the best way of continuously providing an easy to find version featuring all bug fixes? For instance, could someone take over or is it be better to introduce a new plugin ???_unlimited_categories?

Anyway, makks, would you share the uncompressed version of 0.7.4p2, please? I would like to extend it with few patches from this thread and of my own, namely
  • selected categories are gone after text->preview/html->text cycle
  • it is not possible to deselect all categories (or I didn’t know how so I added a JavaScript control to do the job)
  • the plugin tries to modify the interface even on ‘html’ and ‘preview’ tabs which results in errors reported to the console (I like clean code)

Check my modifications (only the PHP part): rss_unlimited_categories-0.7.4p3.php.txt

Last edited by hoho (2009-05-04 09:21:02)

Offline

#626 2009-05-05 20:50:02

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

Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories

hoho wrote:

Check my modifications (only the PHP part): rss_unlimited_categories-0.7.4p3.php.txt

Thanks, hoho! Your patch available here (txt and zip version). Please, check it in version 0.7.4p4

rss_unlimited_categories patch 0.7.4p3

Changes:

0.7.4p3 (patch by hoho – 05/04/2009)

  • preserve categories selection over text->html/preview->text cycle (by Ramen Angel )
  • add ‘Deselect all’ link to the article interface
  • do not try to change the interface when on ‘html’ or ‘preview’
  • fix missing slash in rss_unlimited_categories_filedunder (line 188, by floodfish )

Last edited by makss (2009-05-06 01:13:42)


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

#627 2009-05-05 23:45:49

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

Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories

rss_unlimited_categories patch 0.7.4p4

Changes:

0.7.4p4 (patch from forum thread with small bugfix)

  • add activeclass attribute to rss_unlimited_categories_list tag.
  • fix bug in 0.7.4p3

Last edited by makss (2009-05-06 01:14:48)


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

#628 2009-05-08 08:16:03

hoho
Plugin Author
Registered: 2009-04-05
Posts: 11

Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories

Thanks makss!

Talking about “uncompressed plugin” I meant something else. The correct keyword was “to decode”. Sorry for hassling you.

Offline

#629 2009-05-08 19:49:31

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

Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories

To create, edit and publish plugins, I use ied_plugin_composer IMHO, it’s a best solution.
For support TAB in edit area install upm_insert_tab v0.3p1

Last edited by makss (2009-05-08 20:41:57)


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

#630 2009-05-08 23:07:28

MattH
Member
From: Ann Arbor, MI
Registered: 2004-10-17
Posts: 30

Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories

Is there a way to use rss_uc to retrieve articles with multiple categories using “AND” instead of “OR”? That is, can I request articles of categories 1 and 2?

Offline

#631 2009-05-09 01:49:06

floodfish
Member
From: Brooklyn, NY
Registered: 2007-01-11
Posts: 155
Website

Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories

Can anyone confirm if rss_unlimited_categories_related is working with v0.7.4p4 ?

Or maybe I am just using it wrong. I get the titles of the related articles, but can’t get the category names themselves to show up.

Can anyone provide a sample form that should work for this? I can’t figure out which tag (if any) to represent the category name itself.

Last edited by floodfish (2009-05-11 18:32:34)

Offline

#632 2009-05-12 17:51:06

MattH
Member
From: Ann Arbor, MI
Registered: 2004-10-17
Posts: 30

Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories

So, I’ve been poking around in the SQL to get articles with all of the specified categories instead of just one, but I can’t figure out how.

The query as it exists now is:

SELECT DISTINCT t.ID FROM textpattern as t
		LEFT JOIN textpattern_category as tc ON t.ID = tc.article_id
		LEFT JOIN txp_category as cat ON cat.id = tc.category_id
		WHERE  1=1 AND ( (section = 'sectioname') ) AND  Status=4  
		AND ( cat.name = 'artistname'  OR  cat.name = 'blog' )
		 and Posted <= now()

the most relevant part being:

AND ( cat.name = 'artistname'  OR  cat.name = 'blog' )

However, there doesn’t seem to be an easy way to change that OR to function as an AND. Any suggestions / snippets would be very much appreciated.

In the plugin, this code is built on and around lines 396 and 430.

Last edited by MattH (2009-05-12 17:52:32)

Offline

#633 2009-05-27 20:59:36

floodfish
Member
From: Brooklyn, NY
Registered: 2007-01-11
Posts: 155
Website

Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories

Matt, would grouping your categories and using everything with the same parent be any help?

Offline

#634 2009-05-27 22:13:38

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories

floodfish wrote:

Can anyone confirm if rss_unlimited_categories_related is working with v0.7.4p4 ?

Recently updated site from 4.0.6 with rss_uc0.74 to 4.0.8 with rss_uc7.4p4 – works good, but didn’t tested global variables fixes yet.


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#635 2009-05-28 20:33:13

dl33
Member
Registered: 2006-06-17
Posts: 192
Website

Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories

Is it possible to use rss_unlimited_categories_filedunder in such a way that it doesn’t link the list entries? (plain text only?)

Offline

#636 2009-05-28 20:43:18

floodfish
Member
From: Brooklyn, NY
Registered: 2007-01-11
Posts: 155
Website

Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories

dl33, I don’t think so. but could be a relatively easy hack to change the code, somewhere around lines 190-199

Offline

Board footer

Powered by FluxBB