Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#229 2006-08-10 21:24:52

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

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

Cool. That’s a deal.

Unfortunately, you won’t be able to bring the drinks on the plane. And possibly the cheese.

Offline

#230 2006-08-10 21:37:59

jonhicks
Member
From: Oxfordshire UK
Registered: 2004-03-22
Posts: 256
Website

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

They always let cheese through, it promotes good, peace loving vibes


Cheers,
Jon VC#9

Offline

#231 2006-08-10 23:34:35

Austin
Member
Registered: 2006-06-13
Posts: 19

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

Thanks again for the great plugin. I’m still having trouble, though. I couldn’t get the SQL commands to assign my old articles to the new tables, and if I manually re-assign them categories at the “write” tab, the new commands like rss_unlimited_categories_article_list don’t output them. Only new articles are outputted.

Sorry for my ignorance. I’m very new at this. But any help would be great.

Offline

#232 2006-08-11 12:01:54

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

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

Austin- Can you show the SQL you’re trying to use? Is it failing? Or it just doesn’t seem to do anything?

Offline

#233 2006-08-11 15:02:50

Austin
Member
Registered: 2006-06-13
Posts: 19

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

Rob, I put your SQL statements

INSERT INTO textpattern_category (article_id, category_id) SELECT t.id, c.id FROM textpattern t LEFT JOIN txp_category c on t.category1 = c.name where c.type = ‘article’ and t.category1 != ‘’;

INSERT INTO textpattern_category (article_id, category_id) SELECT t.id, c.id FROM textpattern t LEFT JOIN txp_category c on t.category2 = c.name where c.type = ‘article’ and t.category2 != ‘’;

into the query box for the textpattern database and got this error:

SELECT *
FROM
WHERE CONCAT_WS( ”-”, article_id, category_id ) = “1-68”
ORDER BY article_id, category_id

MySQL said: Documentation

  1. – You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘WHERE CONCAT_WS(”-”, article_id, category_id)
    = “1-68”’ at line 3

I’ve never done any SQL so I’m not sure what I’m doing. Thanks. and thanks again for your plugins.

Offline

#234 2006-08-13 16:20:01

alexwest
Member
From: Järna, Sweden
Registered: 2004-08-04
Posts: 53

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

Hi,

These two lines (around line 177) in rss_unlimited_categories_list seem to be producing a double <code>li</code> in the output.

<blockquote>
$row[]=($countlinked) ? tag(htmlspecialchars($b[‘title’].$count),‘a’,’ href=”’.$path.’” title=”’.htmlspecialchars($b[‘title’]).’”’) : ‘’;
$row[]=(!$countlinked) ? tag(htmlspecialchars($b[‘title’]),‘a’,’ href=”’ . $path . ‘” title=”’ . htmlspecialchars($b[‘title’]) . ‘”’) . $count : ‘’;
</blockquote>

Also, I can’t seem to limit the output of rss_unlimited_categories_article_list to the specified section in the relevant attribute.

Thanks,
Alex

EDIT: Maybe not those two lines, but i get a double <code>li</code> in the output of the tag. Depending on countlinked one or the other <code>li</code> receives the output of the plugin.

Last edited by alexwest (2006-08-13 16:30:21)


be safe and happy

Offline

#235 2006-08-13 18:06:05

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

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

Rob,
I mentioned this in my last email, but unless other’s object, I’d love to see this plugin hide the default category dropdowns (the twin dropdowns) since they become redundant, or is that something that other’s use simultaneously? If so, is it difficult to add it as an pref?

Just a thought man, thanks,

Matthew


Offline

#236 2006-08-14 02:56:00

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

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

Matthew – I never wanted to assume that people didn’t want to see the original category dropdowns because they were using the plugin which is why they’re still there. I just saw this post for ied_hide_in_admin which looks like it should help you remove those and other unwanted fields.

alexwest – Can you post how you’re calling the plugin?

Austin – What version of MySQL are you using? Have you checked to see if there are any records in the textpattern_category table?

Offline

#237 2006-08-14 12:04:35

alexwest
Member
From: Järna, Sweden
Registered: 2004-08-04
Posts: 53

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

Hi Rob,

This is what I am doing.

On this page, i am calling rss_unlimited_categories_list like this:
<code>
<txp:rss_unlimited_categories_list linktosection=“calendario” parent=“calendario” showcount=“1” countlinked=“0” />
</code>

This is where i get the double <code>li</code>

<br/>

On any of the pages linked to from the previous, like this for example, i am calling rss_unlimited_categories_related and rss_unlimited_categories_article_list like this:
<code>
<txp:rss_unlimited_categories_related section=“calendario” category=“raids-btt” form=“article_list” sortby=“custom_1” sortdir=“asc” />
<txp:rss_unlimited_categories_article_list form=“article_single” section=“calendario” limit=“1” sortby=“custom_1” sortdir=“asc”/>
</code>

This is where i can’t restrict it to the given section.

<br/>

I’ve set the page to debug mode, in case it helps.

Thanks.


be safe and happy

Offline

#238 2006-08-14 14:55:37

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

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

alexwest – Can you download 0.4 again, reinstall it, and let me know if that fixes the problems?

Also, the way you’re calling rss_unlimited_categories_related is not right. There is no category attribute on the tag but you’re including one.

<txp:rss_unlimited_categories_related section="calendario" category="raids-btt" form="article_list" sortby="custom_1" sortdir="asc" />

Offline

#239 2006-08-14 15:32:13

alexwest
Member
From: Järna, Sweden
Registered: 2004-08-04
Posts: 53

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

Hi,

Yes! that fixed the the double <code>li</code> issue… and the restriction by the section attribute of the other tags.

One more question? Are the links created by rss_unlimited_categories_related and rss_unlimited_categories_article_list sensitive to the category being browsed? I mean, would they output URLs like site.com/section/category/title… this seems not to be the case now. I believe that would be handy in the case of this site.

Thanks for your help Rob. Cheers,
Alex


be safe and happy

Offline

#240 2006-08-14 15:45:00

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

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

Good, glad that worked.

No, the article links are not generated using /section/category/title URLs but I would think you could use another plugin to do that.

Offline

Board footer

Powered by FluxBB