Topics from month, year

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
poddu
Posts: 2
Joined: Thu May 15, 2008 6:21 am
Location: Vancouver, Canada

Topics from month, year

Post by poddu »

I installed s9y into serendipity.poddu.com and customised one of the importers to import from my dotclear blog dotclear.poddu.com. I also customised the template, and some of the plugins (particularly the mailer plugin to use smtp using phpmailer). I couldn't find any other convincing way of managing a mailing list, so I simply imported all the dotclear mailing list entries into s9y database, as users with no publishing rights. Now I can simply check the "Send to all authors" when I compose a new article. All works out great.

From the home page, under ARCHIVES, click on Older, then click on any of the (view topics). The page that opens has "Topics from month, year" in the dateline. Notice that the month-year is always 1 month off, although the topics list is correct.

Example, if you clicked on (view topics) of May-2008, the page opens with "Topics from April, 2008", and the topics of May-2008 are listed. Did I screw something up while customisation?
Cheers
Mayur Poddar
@poddu.com
@www.67knots.com
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Topics from month, year

Post by garvinhicking »

Hi!

Great customizations!:)

Maybe you want to share the dotclear importer?

I believe the archive "one of" was a thing that was fixed in our current s9y 1.4 alpha releases, maybe you can temporarily test this?

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/
poddu
Posts: 2
Joined: Thu May 15, 2008 6:21 am
Location: Vancouver, Canada

Post by poddu »

To import from dotclear, I used dotclear to first do a backup of the dotclear tables - a MySql database operations plugin lets you do that. Basically gives you a dump of the dotclear tables.

I used the blogger.com importer, for no particular reason - I just happened to open the file first, and decided to go on with it. I added some things to it - like IPaddress of comment and the lines, and hard coded the author id to 1.

I wrote a script to parse the dbdump from dotclear and generate a file that is fed to blogger importer.

You can find the script and the modified blogger importer here:
http://download.poddu.com/webhosting/s9y/dotclear.zip

[ I am not an avid programmer, so you'll find some REAL shoddy code. That's what happens when you go from being a systems programmer to a pilot. But hey, it worked for me!]

If anybody is interested, they could beautify the code and make it a plugin - maybe of use to others. No rights reserved.
Cheers
Mayur Poddar
@poddu.com
@www.67knots.com
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Thank you...sadly, blogger.com already was the ugliest importer class to begin with ;)

So I guess there might be some places to tidy up. I'll try to have a look at your module and see how we can put it to use :)

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