Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#256 2006-08-22 15:07:04
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
wilshire wrote:
h2. Important Again
Version 0.5 of this plugin contains a change that was made after TXP 4.0.3 was released. If you are running off the latest version from SVN, you won’t have any problems. If you are running 4.0.3 or an SVN version that isn’t very recent, you will not see the multi-select drop down list on the article -> write tab. In order to fix the problem, find this word in the code:
article-col-2
and replace it with
articleside
Given that TxP 4.03 is the latest released version of Textpattern, might it not be a good idea to make articleside the default value, and tell those on the bleeding edge to use article-col-2?
Assuming you’re biased towards the bleeding edge folks, could you at least add a comment into the installation instructions to tell mainstream users what to do. I had to grep through 9 pages of forum to find out.
I’m sure this will prove to be a fantastic plugin – please don’t take my request as undue criticism, if I didn’t think it was great, I wouldn’t be showing an interest.
Andrew K
Offline
#257 2006-08-22 18:21:04
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Autstin/mstwntd – I’ll have to look at that.
ak7176 – My apologies for your time wasted. I originally didn’t intend to make the change until 4.0.4 came out but then because of other fixes, ended up putting it out there. I added the note above to the install plugin page so that its clear.
Offline
#258 2006-08-22 18:24:34
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
No probs – after posting that, I read about the soon-to-be-released 4.04, and it all made sense!
FWIW, your plugin is working just fine, but the rest of my textpattern installation is up the creak.
Cheers!
Andrew K
Offline
#259 2006-08-23 02:26:22
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Well, seems that the ability to resolve /section/category/title URLs took away the ability to resolve normal URLs. I removed that code for now so if you re-download version 0.5 things should be back to normal.
Offline
#260 2006-08-23 08:00:34
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Result! My site’s unbroken! Not a very quantitative test report, but that’s all I’ve got at the moment :-)
Andrew K
Offline
#261 2006-08-23 18:09:40
- deronsizemore
- Member

- From: Kentucky
- Registered: 2005-11-02
- Posts: 324
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
I’m sorry if this has been discussed somewhere in this thread, but I don’t have time to look through 11 pages of posts to try and find it.
I just installed this plugin and from what I can see, it’s not working. When I go to Content -> Write tab it’s still displaying the normal 2 category drop down lists. I DO have the plugin set to active “YES” on the plugin screen, so I know that’s not it. Anything else I might be doing wrong here?
Thanks
Offline
#262 2006-08-23 19:18:20
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
If you are using Textpattern version 4.0.3 then Click “Edit” on this plugin, find the text “article-col-2” and replace it with “articleside”.
If you upgrade to Textpattern 4.0.4 in the future, then remember to reinstall the plugin, or change the text back again.
Andrew K
Offline
#263 2006-08-23 19:34:03
- deronsizemore
- Member

- From: Kentucky
- Registered: 2005-11-02
- Posts: 324
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Thanks, that did it! :)
Offline
#264 2006-08-24 06:35:19
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Hi Rob, I’m using your unlimited categories plugin and also think it’s pretty Cool.
I needed to do a Small Mod :) to the rss_unlimited_categories_list Function to set a class (activeclass) for the active category element. (useful in a navigation)
Hope this helps somebody else and you include it in a new version :)
Rafa
This is the part of the code I modified:
function rss_unlimited_categories_list($atts) { extract(lAtts(array( ‘section’ => ‘’, ‘time’ => ‘past’, ‘parent’ => ‘’, ‘showcount’ => 1, ‘countlinked’ => 1, ‘linktosection’ => ‘article’, ‘listwraptag’ => ‘’, ‘break’ => ‘li’, ‘wraptag’ => ‘ul’, ‘label’ => ‘’, ‘labeltag’ => ‘’, ‘class’ => ‘’, ‘breakclass’ => ‘’, ‘sortdir’ => ‘asc’, ‘activeclass’ => ‘’, ),$atts));
$sections=rssBuildSctSql($section); $time = rssBuildTimeSql($time);
$prnt = ($parent) ? “ WHERE parent = ‘@$parent’ “ : “”; $rsc = getRows(“SELECT distinct c.id, c.name, c.title FROM “.PFX.“textpattern_category as tc LEFT JOIN “.PFX.“txp_category as c ON tc.category_id = c.id “.$prnt.“ORDER BY c.name “ .$sortdir);
if ($rsc) {
global $c; // Custom Mod by Rafael Nevarez, added activeclass attribute
$row = array(); foreach ($rsc as $a=>$b) { $aq= “SELECT *, unix_timestamp(Posted) as uPosted FROM “.PFX.“textpattern as t LEFT JOIN “.PFX.“textpattern_category as c ON t.ID = c.article_id WHERE “.$sections.” c.category_id = ‘“.$b[‘id’].”’ and t.Status = 4 “.$time.” ORDER BY t.title”; $rsa = getRows($aq); if ($rsa) { $path = hu.$linktosection.”/”.strtolower($b[‘name’]); $count = ($showcount) ? “ (“.count($rsa).”) ” : “”; $row[]=($countlinked) ? tag(htmlspecialchars($b[‘title’].$count),‘a’,’ class=”’. ($c $b['name'] ? $activeclass : '') .'" href="'.$path.'" title="'.htmlspecialchars($b['title']).'"') : tag(htmlspecialchars($b['title']),'a',' class="'. ($c $b[‘name’] ? $activeclass : ‘’) .’” href=”’ . $path . ‘” title=”’ . htmlspecialchars($b[‘title’]) . ‘”’) . $count; } } return doTag(doLabel($label, $labeltag).doWrap($row, $wraptag, $break, $class, $breakclass), $listwraptag).n; } return ‘’; }
Last edited by RafaNevarez (2006-08-24 06:36:36)
Offline
#265 2006-08-24 07:34:46
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Would that be used to differentiate the current category from the others? That would, indeed, be useful.
Andrew K
Offline
#266 2006-08-24 07:37:37
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Yep, thats the idea, to asign a diferent class to the element that represents the current category (useful to style it in a different way)
Rafa
Offline
#267 2006-08-24 10:06:42
- starzabove
- Member

- Registered: 2004-04-13
- Posts: 76
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Is it late and I’m just missing something? I misspoke before, saying that I had the filed_under working correctly. It is still only partially working.
What I have in my article form is:
<code><div id=“cats”><txp:rss_unlimited_categories_filedunder label=“Categories: “ linktosection=“prints” /></div>
</code>
Here is an example page:
http://www.studiohart.net/Prints/peeking-lizard
You will see near the bottom it says:
Categories:
chilis, Lizard, Ristra, Southwestern
So, if you click on “Lizard” you get the url:
http://www.studiohart.net/prints/lizard
Which, is /section/category but nothing is showing up when you click on it.
Am I missing something? I have the admin prefs set to /section/title
HELP!
Thanks.
EDIT/UPDATE: Well, it does seem to work IF the category is in the original 2 dropdown categories, but not if they are selected in the additional categories box. (hope that makes sense)
Last edited by starzabove (2006-08-24 10:24:45)
90+ Textpattern installs and still going…
Offline
#268 2006-08-28 03:00:16
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
hallo,
I just upgraded from 0.4 to 0.5 (of the plugin) and see that the tag cloud is now sorted/weighted… is it possible to have the tag cloud not be weighted? that is, could I put it back in alphabetical order, rather than order of most tagged to least tagged?
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
#269 2006-08-28 11:50:24
- alfette
- Member
- From: Cologne, Germany
- Registered: 2006-08-22
- Posts: 20
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Dear all,
I read all 11 Pages of this thread and I know, the question I want to ask was asked bofore in various forms. But I just could not fix the problem I have with this plugin. Maybe someone knows, what I have to do?
I use Texpattern version 4.0.3, unlimited_categories version 0.5., URL-scheme /section/id/titel, site is running locally.
I put <code><txp:rss_unlimited_categories_filedunder linktosection=“projektliste” /></code> in my article form to get an output of the selected categories. This works very well.
After I have clicked on one category I’d like to get a list of all articles marked with this cat.
I did this:
1) Create a section called “projektliste”
2) Create a site-template related to the section “projektliste”
3) Put in this template <code><txp:rss_unlimited_categories_article_list form=“projektliste” /></code>
4) Create a form called “projektliste” with this content <code><txp:title /></code>
The link, which is created after clicking is like this: http://v.local/projekte/projektliste/dreidimensional
I expected to see a list of article-titles, but unfortunally I see nothing…
I’m very new with textpattern, so I’m sure it must be something simple what I did wrong.
Do you have any ideas or suggestions for me? Thanks a lot!
Yours sincerly, Alfette
Last edited by alfette (2006-08-28 12:53:44)
Offline
#270 2006-08-29 00:27:37
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
starzabove & alfette – Make sure the page you expect to see the article listing on has the <txp:rss_unlimited_categories_article_list /> tag as you say you do alfette.
But if the section your articles are posted in is not the current section, you’ll have to specify the section in the tag. So if you post articles to the section called article, but you have the tag on a page in the section called archive, your tag should look like this: <txp:rss_unlimited_categories_article_list section="article" />
Alicson – That was an unitended side effect. I updated the 0.5 download so that the cloud will be sorted by name unless a limit is specified.
Offline