Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2005-09-25 11:38:41
- davidm
- Member
- From: Paris, France
- Registered: 2004-04-27
- Posts: 719
Help Request : Fix dru_recent_article url path to work with 4.01
There is a problem with the very hepful dru_recent_article plugin (txp:recent_article does not allow for offset or section limitation…). I think this one should not be hard to fix with all the php Whiz around here, and would be most helpful for a lot of people :-)
Problem description
Everything seems to work fine with the plugin up to the point where you click on a link from the article list, which seems to be messy url (http://www.yoursite.com/index.php?id=xx). But even if you revert to messy url in preferences, it doesn’t help the link does not work (I admit I only use clean urls thus I don’t know of whatever modifications have been done with messy url paths since this plugin was created in 2004.)
I think this comes from there, line 32 and 33 :
<code>? tag($Title,‘a’,’ href=”’.$pfr.$Section.’/’.$ID.’/’.$conTitle.’”’)</code>
<code>: tag($Title,‘a’,’ href=”’.$pfr.‘index.php?id=’.$ID.’”’);</code>
Anyone can help fix this ?
I’ll give a try, even if I am not qualified for the task…
THX !
.: Retired :.
Offline
#2 2005-09-25 15:06:07
- alexandra
- Member
- From: Cologne, Germany
- Registered: 2004-04-02
- Posts: 1,370
Re: Help Request : Fix dru_recent_article url path to work with 4.01
Hi David, just a note: the plugin is quite handy but nevertheless you can achieve the same result with article_custom in conjunction with its attribute offset and limit.
Last edited by alexandra (2005-09-25 15:07:23)
Offline
#3 2005-09-25 15:15:44
- davidm
- Member
- From: Paris, France
- Registered: 2004-04-27
- Posts: 719
Re: Help Request : Fix dru_recent_article url path to work with 4.01
Hmmm… that’s what I thought but I tried it unsucessfully : the thing is, I am calling one instance of <code><txp:article></code> in the same page already, maybe that’s why it didn’t work when I tried it (or maybe because it was 4 o’clock in the morning ;-p).
I’ll give it another shot, I must have missed something…
Edit :
Ok, well that will teach me a lesson, I shoud not keep working that late…
It took me 10 seconds to make it work
No who looks dumb ?!!!
<:-|
I think if a moderator here can nuke this post or dead-letter-office it, that would make me look less dumb :-)
Last edited by davidm (2005-09-25 15:23:48)
.: Retired :.
Offline
Re: Help Request : Fix dru_recent_article url path to work with 4.01
Maybe you tried to use a second instance of <code><txp:article /></code> instead of <code><txp:article_custom /></code>
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#5 2005-09-25 18:24:18
- davidm
- Member
- From: Paris, France
- Registered: 2004-04-27
- Posts: 719
Re: Help Request : Fix dru_recent_article url path to work with 4.01
No no it was not that, at least I am sure of this :-)
Might have something to do with some unmastered use of <code><txp:if_section></code>….
.: Retired :.
Offline