recently added posts

Creating and modifying plugins.
Post Reply
periferral

recently added posts

Post by periferral »

Hi I would like to add Recently Added items to the sidebar. Looks like there should be a plugin already for this because I see the Serendipity blog site has this but I can't seem to find it anywhere. Can someone send me a pointer to this. Thanks
periferral

found it

Post by periferral »

Hi I found the plugin and set it up. However it requires me to have the date and it puts the date down on a second line. I don't want the date and so I left it empty. However, it still kept the date. Then I put a " " but that created an empty line between the entries. I am looking at the s9y blog and I see recent entries without the extra line break.

Any clues how I can get the same look. Thanks in advance
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: found it

Post by garvinhicking »

The plugin on blog.s9y.org has been edited, so that the date is ommitted. You'll need to also manually edit the plugins/serendipity_plugin_recententries/serendipity_plugin_recententries.php file and look at the very bottom of the file; there you see the HTML output. You can alter this.

Best thing is to save this plugin then inside a directory "serendipity_plugin_recententries2", and name the .php file also with a "2". Also edit the "class serendipity_plugin_recententries" inside the file to be called with a "2". Then you can install your own plugin and it won't get overwritten when upgrading.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
periferral

works

Post by periferral »

Garvin. works great. thanks for the tip.
francisco
Regular
Posts: 42
Joined: Thu Jul 21, 2005 9:33 pm

Re: found it

Post by francisco »

garvinhicking wrote:The plugin on blog.s9y.org has been edited, so that the date is ommitted.
If this is so common that the s9y.org site made this change and others are asking, why not generalize it and make it configurable?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: found it

Post by garvinhicking »

Actually this was requested the first time in 2 years. But if anyone patches a plugin, I'm open for those contributions to add them to our repository of course!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply