Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-05-17 16:42:20

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

Plugin: rss_link_date

As of Rev 366 a global variable <code>$thislink</code> has been added when processing the <code><txp:linklist /></code> tag.

This plugin simply adds the ability to display the date a link was added on a link form. I use this for my Recent Links listing.

Download rss_link_date 0.1

Details

Offline

#2 2005-05-25 21:47:49

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: Plugin: rss_link_date

Rev 385

using this with mem_glinklist I get this error

Warning: strtotime() [function.strtotime]: Called with an empty time parameter. in D:\dev\sites\cepa\public_html\main\textpattern\lib\txplib_misc.php(352) : eval()’d code on line 5

does this only work with <code><txp:linklist /></code>

Update: Never mind, it does work with <code><txp:linklist /></code> and not <code><txp:mem_glinklist /></code>

Last edited by tinyfly (2005-05-25 22:03:11)

Offline

#3 2005-08-04 15:42:04

gdtroiano
Archived Plugin Author
From: Highland Park, NJ
Registered: 2005-01-29
Posts: 59
Website

Re: Plugin: rss_link_date

using rss_link_date with rss_suparchive causes that latter to filter according to the date selected with the former.

is there a way to keep rss_suparchive unfiltered and continue to display all the desired articles?

Offline

#4 2005-08-10 16:10:09

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

Re: Plugin: rss_link_date

I’m not sure how you’re using this but rss_link_date should only be used on link forms. I use both plugins on my archive page with no problem. Can you give some more details?

Offline

#5 2005-08-10 16:20:39

gdtroiano
Archived Plugin Author
From: Highland Park, NJ
Registered: 2005-01-29
Posts: 59
Website

Re: Plugin: rss_link_date

okay, i’m a jerk!

i meant to say that it’s the use of rss_posted with rss_suparchive that’s causing my problem.

i’m not sure why rss_link_date was in my brain. :-/

Offline

#6 2005-08-10 17:13:40

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

Re: Plugin: rss_link_date

In that case, I’d expect it to work like that. Thats the reason I created rss_posted.

Last edited by wilshire (2005-08-10 17:13:54)

Offline

#7 2005-08-10 17:22:52

gdtroiano
Archived Plugin Author
From: Highland Park, NJ
Registered: 2005-01-29
Posts: 59
Website

Re: Plugin: rss_link_date

right. it does its job perfectly by filtering the posts, but i also use rss_suparchive in a sidebar to display all recent posts. it’s not a big deal, but i was wondering if there is a way to only filter the one instance of rss_supararchive, while leaving the sidebar instance alone. see: http://www.njforfeingold.org/archive/2005/08

btw, your plugins have been lifesavers. thanks a bunch!

Offline

#8 2005-08-10 17:32:22

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

Re: Plugin: rss_link_date

Nope, no way to do that. If the date fields are in the URL, the plugin will use them to filter the list.

Offline

#9 2005-08-10 17:34:33

gdtroiano
Archived Plugin Author
From: Highland Park, NJ
Registered: 2005-01-29
Posts: 59
Website

Re: Plugin: rss_link_date

oh, well—worth a shot.

thanks, again.

Offline

#10 2006-03-29 09:10:44

lisionosk
Member
From: Switzerland
Registered: 2006-02-10
Posts: 99

Re: Plugin: rss_link_date

Hi!

I’m using the rss_link_date for the Quick Links part of my site (using the link ‘Noted’ form), and it is great as it is meant to do just what that feature lacked, which was to display the date the link was posted. I have one problem, though, I have posted a link here: http://urbangriffin.com/notes/, and the date gets reactualised to the present day each day. Yesterday, the date was 2006/03/28, today it has turned to 2006/03/29…

Last edited by lisionosk (2006-03-29 09:12:44)

Offline

#11 2006-06-22 15:57:15

alittle116
Member
From: Brooklyn
Registered: 2005-09-14
Posts: 72
Website

Re: Plugin: rss_link_date

i have installed the plugin, but now what? i am using noted links. is there something that i need to add to the form? thanks…

Offline

#12 2007-07-22 19:25:25

davidag
New Member
Registered: 2007-07-22
Posts: 1

Re: Plugin: rss_link_date

Not working correctly in 4.0.5: Date was always 1 jan 70.

Corrected code:

function rss_link_date($atts) {
	global $thislink, $dateformat;
	extract(lAtts(array('format' => $dateformat),$atts));
	return safe_strftime($format, $thislink['date']);
}

Last edited by davidag (2007-07-22 19:27:24)

Offline

Board footer

Powered by FluxBB