Ideas for a new serendipity plugins!

Creating and modifying plugins.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: is there a plugin which can...

Post by garvinhicking »

HKit: Yes, there is. The "Recent Entries" sidebar plugin. It's even included in a default Serendipity installation! :-)

You can show entries in the future if you go to your s9y configuration and enable the option "Show entries in the Future". Then the calendar will show those.

The mycalendar plugin always shows dates in the future, but the mycalendar plugin is unrelated to entries you make.

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/
hkit
Regular
Posts: 25
Joined: Mon Oct 10, 2005 11:20 am

change order of articles

Post by hkit »

Hi everyone,

thanks Garvin for your help.
I have another question. I would like the calendar to show future events/articles (they should ) but they shouldn't be displayed on top of the frontpage.

On top of the frontpage I would like to have the article/event of today's day or if there isn't one to be published today, the most recent. And scrolling down there shall be listed the articles/events in the future. Articles/events in the past don't need to be published on the frontpage. Is this possible with a plugin or where/how would I need to change the code to do that?

Thank you very much indeed for any help
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: change order of articles

Post by garvinhicking »

Hi!
I have another question. I would like the calendar to show future events/articles (they should ) but they shouldn't be displayed on top of the frontpage.
This is currently not possible and wouldn't make much sense: Why would you want your calendar to display an item for the future, but your reader's can't see it?

You can patch that, though, but I personally see no reason :)
On top of the frontpage I would like to have the article/event of today's day or if there isn't one to be published today, the most recent. And scrolling down there shall be listed the articles/events in the future. Articles/events in the past don't need to be published on the frontpage. Is this possible with a plugin or where/how would I need to change the code to do that?
You could do that, but it would require you to patch up Smarty Templating and/or PHP plugin code. But this might not be necessary, maybe it helps if you just set the amount of entries per page to "1", and then you only see one article on the pag elisting...

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/
hkit
Regular
Posts: 25
Joined: Mon Oct 10, 2005 11:20 am

Re: change order of articles

Post by hkit »

garvinhicking wrote: But this might not be necessary, maybe it helps if you just set the amount of entries per page to "1", and then you only see one article on the pag elisting...
Hi Garvin,

thanks for your reply. I tested it with one entry per page, but it doesn't actually look as nice as I wanted it to be.
garvinhicking wrote: You could do that, but it would require you to patch up Smarty Templating and/or PHP plugin code.
Would you mind helping me to find, where I do find the code which enables the listing of the articles. Why would I need to patch up Smarty Templating. Basically, I'm not really advanced in programming php - so what you guess, is it a big effort to patch this up?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: change order of articles

Post by garvinhicking »

Hi!

Please read http://www.s9y.org/43.html and http://www.s9y.org/78.html for a documentation on Smarty templating.

You'd need to edit the entries.tpl template file, and you might want to look at building your own smarty wrapper function via a config.inc.php file that enables you to use the "serendipity_fetchEntries()" (see include/functions_entries.inc.php) function within Smarty.

Since this is a very specific customization issue that is rarely applicable in usual blog environments, I cannot offer you to code that for free. If you really need/want this and can't get it to work on your own, I do offer my work for $$. :-)

But I think this might not be necessary if instead you get around with existing Serendipity display measures. You could maybe also use the "Sticky Entry" feature and manually make an entry sticky. Or use the smarty templating to highlight the first entry on each page and let the other entries look different...

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/
davecjr
Regular
Posts: 167
Joined: Fri Oct 29, 2004 3:09 pm
Contact:

Post by davecjr »

Should the forum plugin be sending email notifications every time someone posts anything in the forum or only responses to my posts?
dma147
Regular
Posts: 132
Joined: Thu Sep 08, 2005 1:50 pm
Location: Berlin
Contact:

Post by dma147 »

It only sends notifications where you've added yourself to the notifications-list.
In every thread there is a link at the top and at the bottom of the postlist with which you can add yourself to the notigication list of this thread.
Alexander Mieland, dma147
http://blog.linux-stats.org
davecjr
Regular
Posts: 167
Joined: Fri Oct 29, 2004 3:09 pm
Contact:

Post by davecjr »

I don't see where to add myself to a notification list except in the configuration of the plugin itself. It's not a big deal but I had someone add a new thread on my site and I didn't know about it for a few days when I just ran across it! It's just a family site so it's not that big of a deal.
Gagtech
Regular
Posts: 8
Joined: Thu Oct 27, 2005 2:04 am
Contact:

Post by Gagtech »

Not if if this has been mention, but a sidebar plugin for My Digg (www.digg.com) news would be swell.
dma147
Regular
Posts: 132
Joined: Thu Sep 08, 2005 1:50 pm
Location: Berlin
Contact:

Post by dma147 »

davecjr wrote:I don't see where to add myself to a notification list except in the configuration of the plugin itself. It's not a big deal but I had someone add a new thread on my site and I didn't know about it for a few days when I just ran across it! It's just a family site so it's not that big of a deal.
Well a thread must already exist that you can add yourself to the notification list. Maybe I'll implement a notification for for new threads for the admin which can be configured in the configuration dialog of the plugin. But this is not implemented until now.
Alexander Mieland, dma147
http://blog.linux-stats.org
davecjr
Regular
Posts: 167
Joined: Fri Oct 29, 2004 3:09 pm
Contact:

Post by davecjr »

That would be nice but no big hurry for sure. Thanks for all your hard work on plugins. :D
huhny
Regular
Posts: 8
Joined: Tue Dec 07, 2004 3:54 pm
Contact:

Post by huhny »

Hello!

A watermark plugin would be very cool! Every picture I´ve uploaded should be get thumnailed and after that it should be watermarked.

I think this is not so a big problem?

Thanks for your help.

bye,
huhny
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

If you use imagemagick, you can easily change 1 line in s9y to use the watermark feature of imagemagick, where the thumbnail resizing is done (serendipity_makeThumbnail).

Or you create an event plugin that listens on new uploaded files, would also be easy. I'm not a fan of watermarking, which is why I can'T offer help on this I'm sorry :)

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/
Post Reply