Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#151 2005-04-12 22:36:15
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
Does _bycat have the same options and attributes as the _bydate ?
It seems not, but I find that odd that you can’t display author, excerpt or whatever with bycat.
Offline
#152 2005-04-13 03:22:11
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
Another thing, each time I try to use a form with rss_suparchive_bycat I got a “mysql error” on the frontend.
Is there something do to, or not do, within the form ? Or its name, or whatever ?
My call is this one :
< txp:rss_suparchive_bycat
section=“article”
showheader=“1”
headerlabel=“Tous les articles”
limit=“99999”
showcatcount=“1”
showmenu=“1”
form=“aa”
/>
Without the form attribute, works fine. With it, mysql error (I have no details about this one, unfortunately). Just in case, I use PHP 5.0.3 and MySQL 4.1.10.
Offline
#153 2005-04-13 12:07:32
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
Its hard to keep up with the forum when the email subscriptions don’t work…
Stuart – that might not be that difficult. Might be able to use a MAX function in the SQL to get the max posted date. But how would this be different than using now()?
uire & Jeremie – I haven’t updated from SVN lately and I haven’t seen the problems you mention so I’ll have to update and give it a go. Coding against a moving target isn’t always easy.
Offline
#154 2005-04-13 19:55:33
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
Sorry Rob. I’m never sure if this forum is working or not. I think you may have misunderstood me and I have emailed the problem. I’m working on a photo blog and using the plug-in to pick up excerpts. The excerpts are thumbs and have permalinks and are used as a form of navigation. Each page of the blog contains a single article, which is a photo. At the moment the thumbs are always the latest entries as the plug-in picks up “NOW” and works backwards from that point. What I would like to happen is that it picks up the posted date of the article being viewed then work backwards from that point instead. As you move from article to article the thumbs will change to reflect the 4 posts prior to the viewed article. Did I explain that better? This is the current state of affairs.
Last edited by thebombsite (2005-04-13 19:56:26)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#155 2005-04-13 20:21:34
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
thebombsite – I totally dig that photolog setup you have working. Once you have it completed/working, you’ll have to post a detailed how to.
Offline
#156 2005-04-13 20:39:10
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
Thanks ArbinShire. It isn’t actually my own blog so I think I should have permission for that but I certainly have no objection. If Rob can come up with what I’m after I was thinking it might be a candidate for the Textbook so come on Rob, give it your best shot please!
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#157 2005-04-13 23:32:44
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
Hey Stuart, try this….Find the line that reads:
<code>
switch ($timeframe) {
</code>
And add this to the switch statement.
<code><pre>
case “RECENT”:
$posted = “ AND posted <= FROM_UNIXTIME(“.$prev_posted.”)”;
break;
</pre></code>
Then call the plugin using <code><txp:rss_suparchive limit=“4” timeframe=“RECENT” /></code>. Sorted.
Last edited by wilshire (2005-04-13 23:33:19)
Offline
#158 2005-04-14 08:14:53
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
Sorry Rob but not sorted. That made the thumbs disappear completely.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#159 2005-04-14 10:20:01
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
I get the “mysql error” since I upgraded from rev 265 to rev 280.
Perhaps the new sticky feature for articles causes this problem?!
Offline
#160 2005-04-14 12:22:59
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
Crap Stuart. This would depend on your page using a single article view. The <code>$prev_posted</code> value that its using is only present on a single article view, not an article list view.
Let me know if its possible to do it that way, otherwise it might take a bit more work.
Last edited by wilshire (2005-04-14 12:25:15)
Offline
#161 2005-04-14 14:42:55
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
By that I take it that you mean using the “archive” template. If that’s the case I’ll re-check it because:-
a) titles are not permalinks
and
b) thumbs are permalinks but because they weren’t there I couldn’t view the archive template.
I’ll be back Rob.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#162 2005-04-14 15:02:36
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
It works Rob! Nice one. Now I suspect this is the really difficult question. Is there any way of making it use the archive template when it opens or is there a way of making the default think it’s a single view remembering that I can’t use a form? Basically can I by-pass the default or am I stuck with it?
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#163 2005-04-14 15:13:34
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
This forum is getting on my nerves but whilst I’m in questioning mode would the reverse of what you have given me use:-
>= instead of <=Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#164 2005-04-14 16:44:03
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
Stuart, yes you could change from less than to greater than if you wanted to display posts that are dated after the current one. What you could also do it copy that additional switch condition you already added, change from > to < and give it a new name. Then you could make 2 calls to the plugin, one to display the 2 previous thumbs and one to display the next 2 thumbs.
For your other question, how are you displaying your article on your default page? <code><txp:article limit=“1” /></code>?
Offline
#165 2005-04-14 16:51:56
Re: [plugin] [ORPHAN] rss_suparchive - article archive list
Part 1 – great, that’s exactly what I was thinking which, naturally, makes this the best photo blog plug-in out there!
Part 2 – that’s what I’m using though there is a form involved as well so I have:-
< txp:article form=“photo_article” listform=“photo_article” limit=“1” / >
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline