Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#577 2009-07-08 11:08:43

rathersplendid
Plugin Author
From: London
Registered: 2008-05-02
Posts: 163
Website

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

Ok, I’m using this plugin and it works perfectly with one, quite major exception.

I am posting articles in the future and when I browse this month’s archive page, for instance, all the future articles show up. I have set the “timeframe=“past” attribute in my rss_suparchive tag and nothing seems to happen/change.

Can anyone offer a solution?

Many thanks


Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle

Offline

#578 2009-07-10 19:08:50

magzalez
Member
From: Gainesville, FL, USA
Registered: 2008-09-09
Posts: 16
Website

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

rathersplendid, i’m having the exact same problem :(

Offline

#579 2009-07-10 19:15:58

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

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

+1
also hoping someone knows a fix

Offline

#580 2009-07-19 21:37:33

lajackie
Member
Registered: 2008-03-09
Posts: 11

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

Help! Everything is working great with rss_suparchive BUT I can’t figure out how to sort the list in chronological order (rather than have most recently posted on top.) I know that there are two sort options, date and random… but how do i change the direction of the date? I’ve seen some mentions of “sortdir” attributes but i don’t know how that would work here.

First person to answer gets a hug.

THANKS!

Offline

#581 2009-07-19 22:29:11

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

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

rathersplendid wrote:

I am posting articles in the future and when I browse this month’s archive page, for instance, all the future articles show up. I have set the “timeframe=“past” attribute in my rss_suparchive tag and nothing seems to happen/change.

Just glancing over the code, timeframe appears to be case sensitive. So, as it says in the help, try timeframe="PAST"

lajackie wrote:

how do i change the direction of the date?

Try sortby="posted asc"


Code is topiary

Offline

#582 2009-07-20 19:21:08

lajackie
Member
Registered: 2008-03-09
Posts: 11

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

I’m trying to display my archive list in chronological order.

jsoo wrote:

Try sortby="posted asc"

Thanks for trying, but that didn’t make a difference. Here’s what I’m using:

<txp:rss_suparchive section=“articles” showcommentscount=“1” countprefix=” (” countsuffix=”) “ subdateformat=”%B %d” subdatesep=” &raquo; “ class=“aa” addbreak=“1” limit=“999” dateformat=”%Y” showsubdate=“0” sortby=“posted asc” />

Any more ideas?

Last edited by lajackie (2009-07-20 19:22:50)

Offline

#583 2009-07-20 20:43:48

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

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

lajackie wrote:

Thanks for trying, but that didn’t make a difference. Here’s what I’m using:

No, now I see why it wouldn’t. As it says in the plugin help,

RANDOM” is the only other option.

otherwise the sort order is hard coded based on the setting of the timeframe attribute.

If you want to hack the plugin to make sortby override this behavior, click rss_suparchive’s “Edit” link in the plugin list. Find these two lines:

	$orderby= ($timeframe == "FUTURE") ? " ORDER BY posted asc " : " ORDER BY posted desc ";
	$orderby= ($sortby == "RANDOM") ? " ORDER BY rand() " : $orderby ;

and replace them with this:

 	$orderby = ' ORDER BY ';
 	if ( $sortby )
 	 	 $orderby .= $sortby == 'RANDOM' ? 'rand()' : $sortby;
	else
		$orderby .= $timeframe == 'FUTURE' ? 'posted asc' : 'posted desc';

Code is topiary

Offline

#584 2009-07-21 17:38:40

magzalez
Member
From: Gainesville, FL, USA
Registered: 2008-09-09
Posts: 16
Website

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

jsoo wrote:

Just glancing over the code, timeframe appears to be case sensitive. So, as it says in the help, try timeframe="PAST"

Still does not work :-\

Offline

#585 2009-07-21 18:25:35

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

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

Great, that makes me 0 for 2 on this one.

Having looked at this plugin a bit, I am curious as to how people are using it. The plugin was created back before you could make similar archive lists without a plugin. What functionality does it offer that Txp 4.0.8 doesn’t? Is it just the convenience of a single tag (albeit with many attributes) instead of the complex code in the page I linked?


Code is topiary

Offline

#586 2009-07-23 13:24:22

magzalez
Member
From: Gainesville, FL, USA
Registered: 2008-09-09
Posts: 16
Website

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

jsoo wrote:

Having looked at this plugin a bit, I am curious as to how people are using it. The plugin was created back before you could make similar archive lists without a plugin. What functionality does it offer that Txp 4.0.8 doesn’t? Is it just the convenience of a single tag (albeit with many attributes) instead of the complex code in the page I linked?

I just hadn’t realized I could do that. The way it explains it on that page makes perfect sense though. I’ll give it a try. Thanks! :)

Offline

#587 2009-07-23 13:57:51

magzalez
Member
From: Gainesville, FL, USA
Registered: 2008-09-09
Posts: 16
Website

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

I tried the method explained here, and it worked like a charm.

This is how I set up my article form:

<txp:if_different> <li><a href="<txp:link_to_home />archive/<txp:posted format="%Y/%m" />"><txp:posted format="%B %Y" /></a></li> </txp:if_diffrent>

What would be nice is an article count next to the article lists, but I haven’t put a lot thought into how I would do that. Thoughts?

Offline

#588 2009-07-24 01:28:28

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

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

magzalez wrote:

What would be nice is an article count next to the article lists, but I haven’t put a lot thought into how I would do that. Thoughts?

Maybe smd_query to do a count within the if_different block. Just a guess…

Edit: On second thought, not a good idea — would invoke a new query for every article. Wasn’t thinking clearly about how if_different works.

Last edited by jsoo (2009-07-24 09:08:44)


Code is topiary

Offline

Board footer

Powered by FluxBB