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
problem with Serendipitys archives
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: problem with Serendipitys archives
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.
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/
# 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/
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.
Thanks for making such a great tool and really useful forums! I look forward to version 0.8.
shannon
http://www.strangely-normal.com
http://www.strangely-normal.com
Re: problem with Serendipitys archives
Yes i will do that.garvinhicking wrote:If you know some PHP you can duplicate the plugin and modify it there?
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
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
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/
# 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/
Re: problem with Serendipitys archives
hm,garvinhicking wrote:The archives plugin is found in include/plugin_internal.inc.php
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
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.
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/
# 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/
Re: problem with Serendipitys archives
No problemgarvinhicking 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
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
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.
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/
# 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/