Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#109 2005-03-22 03:31:33

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

Re: [plugin] [ORPHAN] rss_suparchive - article archive list

You might be getting an unintentional filtering based on the article category. Try setting nocatfilter=“1” in the plugin calls.

If that doesn’t work, look for a line that reads
<code>
$where = “status=4 $sections $categories $authors $posted $orderby $offsetsql”;
</code>

and add an echo after it
<code>
echo $where;
</code>

Reload your page, see if anything looks off. If you post the output of the echo statement maybe I can see whats going on.

Offline

#110 2005-03-22 12:41:43

mkarolow
New Member
From: Salem, Ma, USA
Registered: 2004-09-26
Posts: 9
Website

Re: [plugin] [ORPHAN] rss_suparchive - article archive list

Wilshire,

nocatfilter did not do it. I was using sungodbiff’s method for section/title. When I was on an single article page, the $where was
<pre>status=4 AND ( (section = ‘events’) ) AND Posted LIKE ‘news-item-3-%’ ORDER BY posted asc</pre>

Changing back to section/id/title gets
<pre>status=4 AND ( (section = ‘events’) ) AND Posted LIKE ’14-news-item-3%’ ORDER BY posted asc</pre>

It apprears to be filtering based on the current article, but in the posted field.

Check out the section page and click on one of the single articles to see what I mean.

[edit] I should add that I’m on RC3, rev232.

Last edited by mkarolow (2005-03-22 12:49:41)

Offline

#111 2005-03-22 14:50:04

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

Re: [plugin] [ORPHAN] rss_suparchive - article archive list

I’m thinking the section/title URL scheme might be causing the problem. I need to update the plugin again to use the new permlinking functions.

You can see from the where clause that its querying the Posted field (which is the posted date of the article) and trying to match it to the article title. This is obviously why you’re not getting any results. I’ll have to look at changing to the new functions.

If I can get a new version together and you have time, maybe I’ll email it to you so you can test it out.

Offline

#112 2005-03-22 15:49:06

mkarolow
New Member
From: Salem, Ma, USA
Registered: 2004-09-26
Posts: 9
Website

Re: [plugin] [ORPHAN] rss_suparchive - article archive list

Just to make it clear, it doesn’t work in section/id/title either, which is the mode I have it in now.

Thanks for the crazy fast responses, and if it doesn’t work out, I understand.

Last edited by mkarolow (2005-03-22 15:50:05)

Offline

#113 2005-03-22 15:53:00

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

Re: [plugin] [ORPHAN] rss_suparchive - article archive list

Talk about crazy fast….I’ve had a few other people mention this to me so I’ll look into it.

Offline

#114 2005-03-23 17:26:07

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

Re: [plugin] [ORPHAN] rss_suparchive - article archive list

I just posted a new version. It includes some bug fixes having to do with permlinks and some new functionality.

Version 0.12

  • Added showcatsonly to suparchive_bycat.
  • Updated permlink calls to use new RC3 functions.

The new showcatsonly attribute on the rss_suparchive_bycat tag allows you to display a listing of categories with each linked to a filtered view of your archive. You can see this here on my archive. You can still display the count within each category through the use of the mdn_count plugin.

Also of note is that I’ve starting compiling the plugin in the new format, meaning uploading the file is no longer necessary. Just copy and paste the contents of the rss_suparchive-0.12.txt file into the textarea on the plugin screen and click the Upload button.

rss_suparchive

Download

Offline

#115 2005-03-24 01:41:16

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: [plugin] [ORPHAN] rss_suparchive - article archive list

wilshire, been having a problem with getting /archive/2005/03 type urls to work, as u know : )

  • switching from /year/month/day/title PLM to /section/id/title gets monthly archives working again
  • then I can lay sgb_url_handler plugin over the top of this no worries, and switch back to /year/month/day/title PLM
  • but switch on sgb_error_documents and I’m getting a 404 on the monthly archive

just noting this sequence of events for the record

cheers

Offline

#116 2005-03-24 02:18:42

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

Re: [plugin] [ORPHAN] rss_suparchive - article archive list

Aw shite nardo. I was hoping this would fix it.

I’ve never tried out /year/month/day/title. I’ll have to give it a go. Might be a few days though.

As far as working with other plugins, I don’t know that I can guarantee that…

Offline

#117 2005-03-24 02:24:07

domfucssion
Plugin Author
Registered: 2004-10-23
Posts: 39

Re: [plugin] [ORPHAN] rss_suparchive - article archive list

I am using the latest version of rss_suparchive_bycat in a subdirectory (soandso.com/blogname/textpattern) and I am having problems with the category and section links generated by this plugin.
on frontpage:
links to categories are going to server root not site root:
eg. soandso.com/categoryname
instead of
soandso.com/sitename/categoryname

inside a section:
links to categories are going to server root not site root:
eg. soandso.com/categoryname
instead of
soandso.com/sitename/sectionname/categoryname

also if an id is used with useartcats=“1” on a page with an Id then links to :
http://soandso.com/sitename/thisarticle_sectionname/321/sectionname/?c=categoryname

using tag::
< txp:rss_suparchive_bycat useartcats=“1” showsections=“1” / > on individual articles

<txp:rss_suparchive_bycat showcatsonly=“1” /> on the front

Offline

#118 2005-03-24 04:50:53

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

Re: [plugin] [ORPHAN] rss_suparchive - article archive list

Double shite!

3 changes should take care of this. 2 lines that contain:
<code>
<a href=”/’.$linktosection.’?c=’.$catname.’”
</code>

should read:
<code>
<a href=”’.hu.$linktosection.’?c=’.$catname.’”
</code>

And 1 line that contains
<code>
<a href=”’.$asection.’/?c=’.$catname.’”
</code>

should read:
<code>
<a href=”’.hu.$asection.’/?c=’.$catname.’”
</code>

Offline

#119 2005-03-24 15:21:55

domfucssion
Plugin Author
Registered: 2004-10-23
Posts: 39

Re: [plugin] [ORPHAN] rss_suparchive - article archive list

Cool, that fix it, cheers

Just wondering though, why doesn’t hu need a $ to define as a var?

Last edited by domfucssion (2005-03-24 15:25:27)

Offline

#120 2005-03-28 22:35:14

mkarolow
New Member
From: Salem, Ma, USA
Registered: 2004-09-26
Posts: 9
Website

Re: [plugin] [ORPHAN] rss_suparchive - article archive list

Hey Rob,

I think timeframe=“ANY” isn’t being handled right. It looks you’re just checking for FUTURE or not FUTURE on this line:
<pre>$posted= ($timeframe == “FUTURE”) ? “ AND Posted >= now() “ : “ AND posted < now() “;</pre>

Any idea what to put in there for ANY?

Thanks!

Offline

Board footer

Powered by FluxBB