Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#571 2008-06-20 15:09:22
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
MattD wrote:
Is there a way to get similar output as rss_suparchive_bycat but by Author?
Would something like this work out for you?: http://1haiku.com/archive#authorarchive
That’s made with: <txp:article_custom section="in" limit="999" form="archive" sortby="custom_3" sortdir="asc" />
If you want the menu of authors beforehand, I think you could simply call article_custom, use if_different, and just permlinking the author tag.
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
#572 2008-06-20 15:51:48
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
@alicson how do you get it to print the author name before the list of that author’s articles?
I got it to do what i want using some PHP
<txp:php>
$rs = safe_rows('count(*) as total, AuthorID', 'textpattern',
'Status=4 group by AuthorID');
if ($rs)
{
foreach ($rs as $row)
{
if ($row['total'] > 1)
{
$txt = 'articles';
}
else
{
$txt = 'article';
}
$realName = get_author_name($row['AuthorID']);
echo <<<EOD
<div id="c_{$realName}" class="rssCcat"><a href="/author/{$realName}/" title="View all articles written by {$realName}">{$realName}</a> ({$row['total']}) </div>
<ul><txp:article_custom limit="999" author="{$realName}" form="archive" /></ul>
EOD;
}
}
</txp:php>
But I just noticed that when in debug I get the following error
Tag error: <txp:rss_suparchive_bycat formwraptag="ul" /> -> Notice: Undefined index: excerpt on line 474
textpattern/lib/txplib_misc.php(574) : eval()'d code:474 rss_suparchive_bycat()
textpattern/publish.php:970 rss_suparchive_bycat()
processtags()
textpattern/publish.php:929 preg_replace_callback()
textpattern/publish/taghandlers.php:2688 parse()
textpattern/publish.php:970 if_search()
processtags()
textpattern/publish.php:929 preg_replace_callback()
textpattern/publish/taghandlers.php:2348 parse()
textpattern/publish.php:970 if_individual_article()
Last edited by MattD (2008-06-20 16:09:07)
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#573 2008-06-20 16:31:40
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
I can’t help so much the debugging, nor the php, but
to answer your initial question in case you still want the answer:
<txp:if_different><txp:mdn_if_custom field="3" empty="1"><txp:author /><else /><txp:rei_show_custom customid="3" /></txp:mdn_if_custom></txp:if_different>
(Of course, for mdn_if_custom and rei_show_custom you can just use the built-in txp:if_custom and txp:custom tags, respectively.
custom field 3 on 1haiku.com is a field for authors to enter their name if they want a different attribution.)
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
#574 2008-12-11 22:57:03
- lovehasnologic
- New Member
- Registered: 2008-12-03
- Posts: 3
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
Hey everyone. I’ve got two problems I’m having with this plugin. I’m using it at http://teamclermont.com/on-tour to display all the tour dates for the artists they are working. The artists are set as categories on the post, and the articles are post-dated to the day of the show. I’m then using this tag.
<txp:rss_suparchive_bycat section=“on-tour” form=“tc_tourdates” limit=“9999” showcatcount=“0” formwraptag=“div” showcats=“0” timeframe=“FUTURE” />
The first problem is that it will not display the category if ONLY future posts exists. Currently, my workaround is for them to create a dummy post for each band in the “on-tour” section setting the band as the category and NOT post-dating it, so there’s always one post for the category in the past. Then, the tag only shows the future posts. It’s not pretty, but it works, however, if there’s a fix for this that’d be excellent.
The second problem is that I can’t sort the posts at all. Every post within the category sorts Posted desc. I’d like to sort by Posted asc as these are future tour dates, and I want them to count down like…
12-13
12-14
12-15
etc.
the sort attributes seem to only work with rss_suparchive and not rss_suparchive_bycat. Am I wrong in thinking this? Any way to fix this so we can sort the shows list properly?
Thanks in advance for the help.
Mike
Offline
#575 2009-05-24 00:47:01
- Gulfcoast
- Member
- Registered: 2009-04-12
- Posts: 76
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
I searched all pages of the plug in forum but didn’t see if the tags in the form=“wo_recent” were ever revealed. Can anyone assist with this? Thank you so much.
Offline
#576 2009-06-11 22:58:08
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
Hi, I don’t know how to search to find a solution for this, but I think you could help me:
I have pagination in my site, I use this:
<txp:rss_suparchive section="*" limit="5" form="daily-blog" /> (and I have more than 5 articles)
I am here: /archive/2008/04 and I want to go to the next page. So I click on Older link.
But, when I click on Older (<txp:older />) I go to:
/archive/?pg=2 , where I see all the articles, and not filtered by Month and Year. It should go to: /archive/2008/04/?pg=2 (Where it works, of course), but I did it manually.
Do you know how could I fix it?
Thanks in advance and sorry for bad English, still.
Last edited by robhert (2009-06-11 23:00:42)
Offline
#577 2009-07-08 11:08:43
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
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
rathersplendid, i’m having the exact same problem :(
Offline
#579 2009-07-10 19:15:58
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
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=” » “ 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
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
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
jsoo wrote:
Just glancing over the code,
timeframeappears to be case sensitive. So, as it says in the help, trytimeframe="PAST"
Still does not work :-\
Offline
#585 2009-07-21 18:25:35
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