Page 1 of 1
problem with Serendipitys archives
Posted: Sat Jan 08, 2005 6:33 pm
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
Re: problem with Serendipitys archives
Posted: Sat Jan 08, 2005 8:04 pm
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.
Posted: Sat Jan 08, 2005 9:00 pm
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.
Re: problem with Serendipitys archives
Posted: Sat Jan 08, 2005 11:47 pm
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
Re: problem with Serendipitys archives
Posted: Sun Jan 09, 2005 1:52 pm
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
Re: problem with Serendipitys archives
Posted: Sun Jan 09, 2005 9:54 pm
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
Re: problem with Serendipitys archives
Posted: Mon Jan 10, 2005 10:40 am
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.
Re: problem with Serendipitys archives
Posted: Mon Jan 10, 2005 5:58 pm
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
Re: problem with Serendipitys archives
Posted: Mon Jan 10, 2005 6:13 pm
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.
