Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#385 2007-02-13 14:46:03

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

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

Rob,
I mostly use this plugin for “tagging” purposes, but there are times when I am also using it for managing the location output of certain types of articles. I do so by giving those articles the category of “articles” or “notes”, neither of which do I wish to have show up in the filedunder tag list.

I checked the thread here (searching, not reading as its quite long) and could not find anything about category exclusion. Is that something which can be added in a future release?


Offline

#386 2007-02-15 13:14:07

castanet
Member
From: Oxford
Registered: 2005-03-19
Posts: 97

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

Just to explain what I would like this plugin to do… I’m building a real estate agency site using Txp and want to list each property under a whole batch of categories – area, price, number of rooms – all the usual stuff. Then I want visitors to be able to select which categories they want and – hey presto – properties which are included in all those categories appear!
Can rss_unlimited_categories help do this?
I have to say, I think the potential for this plugin is enormous.

Offline

#387 2007-02-15 21:35:46

cmcgregor
New Member
Registered: 2007-01-23
Posts: 2

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

Hi Rob,

I have been using another one of your plugins, RSS_superarchive for a while now but just recently have come across the need for multiple categories.

I work for an institute that has 1000’s of publications. Each publication has a category such as a study or report, ect. Then each publication has a category of what the issue the publication surrounds, like healthcare, ect. I need to be able to output a list of articles by category and date… url/section/category/year/….basically both of your plugins combined. Is there some way to accomplish this?

Offline

#388 2007-02-28 10:51:20

dog_biscuits
Member
Registered: 2005-10-14
Posts: 10

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

Hi,

Just wondering what the purpose of the following code section is, or more importantly, would it hurt if I removed it?

$_GET[‘request_uri’] = serverSet(‘REQUEST_URI’); $_GET[‘qs’] = serverSet(‘QUERY_STRING’);

After a lot of digging and great help from Alex (zem), these lines appear to be the cause of some of the strange urls that Googlebot is visiting (see example below) on my site and the circular redirects problem that I was having with ‘Redirect Pro’

notebook/?css=default&requ​est_uri=/notebook/?css=default​&qs=css=default​​

thanks.

Offline

#389 2007-03-02 11:43:02

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

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

bdhamilton wrote:

I installed the plugin and it seemed to be working fine; I transferred old categories to the new table. Then, I’m not sure what I did, but the multi-category box disappeared. I’ve disabled and re-enabled, uninstalled and reinstalled, but now I can’t get the plugin functioning again.

Same problem here.

Z-

Offline

#390 2007-03-02 15:09:40

sgoodwin
Member
From: Boston, MA
Registered: 2006-05-11
Posts: 13

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

me too! it was working a couple of days ago!

Offline

#391 2007-03-05 02:49:01

plusonetwo
Member
From: Seattle, WA
Registered: 2006-02-23
Posts: 18
Website

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

Could someone give me a little more insight about the rss_if_article_unlimited_category tag?

I’ve got an article form that most articles within my site use. However, some articles do not have any categories at all while others do. For those that do, I’ve got some code that displays “Filed under: Category name here”. Is there a way, using this tag, to not show Filed under for the articles that don’t have a category?

Does is use TXP’s txp:else tag or does it use txp:rss_else… or does this not exist at all?

Thanks!

- Michael

Offline

#392 2007-03-13 08:35:23

mwhyte
New Member
Registered: 2006-11-21
Posts: 2

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

Another one for the disappearing categories list. Any ideas? It seems to be in the page source, so perhaps some kind of javascript issue?

Offline

#393 2007-03-13 09:03:07

M_i
Member
Registered: 2006-03-05
Posts: 122

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

plusonetwo wrote:

Could someone give me a little more insight about the rss_if_article_unlimited_category tag?

I’ve got an article form that most articles within my site use. However, some articles do not have any categories at all while others do. For those that do, I’ve got some code that displays “Filed under: Category name here”. Is there a way, using this tag, to not show Filed under for the articles that don’t have a category?

I reported the same problem here. Normally, Textpattern wouldn’t display a label for a list of 0 items, but somehow rss_unlimited_categories_filedunder also showed the label when there were no categories to list. What I did was edit the rss_unlimited_categories_filedunder function. If I remember correctly, all I did was move one } but I’d have to reinstall the original version to check.

Edit: I checked my version against the original, and here’s the change I made:

In your rss_unlimited_categories plugin, find the function rss_unlimited_categories_filedunder — these are the last lines of that function.

Rob Sable’s original (version 0.7.2):

			if ($rsc) {
				foreach ($rsc as $a=>$b) {
					$path = ($usemessy) ? hu."?s=".$linktosection."&c=".strtolower($b['name']) : hu.$linktosection."/".strtolower($b['name']);
					$cats[]=tag(htmlspecialchars($b['title']),'a',' href="'.$path.'" title="'.htmlspecialchars($b['title']).'"');
				}
			}
			return doTag(doLabel($label, $labeltag).doWrap($cats, $wraptag, $break, $class, $breakclass), $listwraptag).n;
		}

My edited version that doesn’t display the label when there are 0 categories assigned to an article:

			if ($rsc) {
				foreach ($rsc as $a=>$b) {
					$path = ($usemessy) ? hu."?s=".$linktosection."&c=".strtolower($b['name']) : hu.$linktosection."/".strtolower($b['name']);
					$cats[]=tag(htmlspecialchars($b['title']),'a',' href="'.$path.'" title="'.htmlspecialchars($b['title']).'"');
				}
				return doTag(doLabel($label, $labeltag).doWrap($cats, $wraptag, $break, $class, $breakclass), $listwraptag).n;
			}
		}

The only difference is that that before last } you now see after that return doTag line, used to be before that line, first excluding and now including that line in the if statement.

Last edited by M_i (2007-03-13 10:55:39)

Offline

#394 2007-03-13 10:48:23

mwhyte
New Member
Registered: 2006-11-21
Posts: 2

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

Re disappearing category list… I’ve now resolved it. At least in my case, the culprit was a single quote in the category title – it doesn’t get escaped so upsets the JS variable assignment. Hopefully this helps other folk!

Offline

#395 2007-03-14 19:13:27

sugoo
Member
Registered: 2006-05-29
Posts: 20

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

thanks so much! that fixed my problem too!

Offline

#396 2007-03-15 05:45:40

Beertigger
Member
Registered: 2007-01-30
Posts: 18

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

mwhyte wrote:

Re disappearing category list… I’ve now resolved it. At least in my case, the culprit was a single quote in the category title – it doesn’t get escaped so upsets the JS variable assignment. Hopefully this helps other folk!

Ah-hah! That seems to have fixed things…

I’ll haveta test a bit to be sure.

Thanks!

Offline

Board footer

Powered by FluxBB