problem with Serendipitys archives

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
domasofan
Posts: 4
Joined: Sat Jan 08, 2005 6:15 pm

problem with Serendipitys archives

Post by domasofan »

hi all,

I have installed Serendipity and found out that i have entries like december 2004 and november 2004 in my archive list. But i have installed the blog system in january 2005. why is this displayed?
Can i remove the december 2004 and november 2004 entries?
Because they have no entries.

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

Re: problem with Serendipitys archives

Post by garvinhicking »

The plugin currently always shows the last 2-3 months. There currently is no configuration option to turn that off...

If you know some PHP you can duplicate the plugin and modify it there?

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/
Shan
Regular
Posts: 11
Joined: Thu Jan 06, 2005 6:11 pm
Contact:

Post by Shan »

This was one of my questions as well. I just installed serendipity this week and so far I have nothing but raves! It's great. I really like the plugin structures and theming. I have to admit, I was a little leery of the themes at first, but I am now sold.

Thanks for making such a great tool and really useful forums! I look forward to version 0.8.
domasofan
Posts: 4
Joined: Sat Jan 08, 2005 6:15 pm

Re: problem with Serendipitys archives

Post by domasofan »

garvinhicking wrote:If you know some PHP you can duplicate the plugin and modify it there?
Yes i will do that.
Where i can find this plugin?

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

Re: problem with Serendipitys archives

Post by garvinhicking »

The archives plugin is found in include/plugin_internal.inc.php, the 'class serendipity_archives_plugin' part. Copy the whole class definition to plugins/serendipity_plugin_myarchives/serendipity_plugin_myarchives.php and then you can do your modifications to the code there. After having properly modified it, you can install the plugin via Plugin Configuration in Serendipity.

Shan: Thanks a lot for your praise! :-)

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/
domasofan
Posts: 4
Joined: Sat Jan 08, 2005 6:15 pm

Re: problem with Serendipitys archives

Post by domasofan »

garvinhicking wrote:The archives plugin is found in include/plugin_internal.inc.php
hm,
i don't found such a file. the folder include doesn't exist.
have the newest version of the software.

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

Re: problem with Serendipitys archives

Post by garvinhicking »

Okay, sorry - I was applying this to version 0.8 of Serendipity. In version 0.7 you'll find the class inside serendipity_sidebar_items.php :)

Sorry for the confusion,
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/
domasofan
Posts: 4
Joined: Sat Jan 08, 2005 6:15 pm

Re: problem with Serendipitys archives

Post by domasofan »

garvinhicking wrote:Okay, sorry - I was applying this to version 0.8 of Serendipity. In version 0.7 you'll find the class inside serendipity_sidebar_items.php :)
No problem :).
Have fixed it. Works great.
Can you include it, that he do this automatically?

I have a sollution.
You must only write the month in the database when the blog system was installed. Then you can count how much months you can list in the archives view.

Thanks for helping :).

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

Re: problem with Serendipitys archives

Post by garvinhicking »

One of our developers wants to dedicate to this setting. The way which would work a bit better is to get the timestamp of the first entry instead of inserting when Serendipity was installed...

So I hope this'll be added in our default installation soon. :-)
# 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