Two New Features
posted on november 16, 2004, tag: site
I finally started to use Del.icio.us a few days ago and instantly realized how much easier it was than putting sidebar items into my own database. So today I whipped up a simple Del.icio.us class that calls their open API. Every hour it downloads new links I've added and drops them into my database (scheduled with a cron job). Simple and effective. Because of this, there will probably be more See Also items in the future (it's so much easier!).
Also because of this (and since there were already nearly 70 items) I've added pagination to the See Also archive. Now you won't see just a giant list of items, they'll be split by the current setting of 10 items per page. My page controls look identical to d's so credit is due. I couldn't figure out any other way to effectively do it, his way seems to be the best. I also increased the number of items appearing in the sidebar to 6 rather than 5.
There are a few more things to implement with this Del.icio.us support, including links to the tags and handling for when I edit a link on the Del site. And since the pagination code is done now (it was crazy simple) I will put it to use in the category archives, where some pages can get very long.
On a related note, my Codebase is really coming together. I'm in the finalizing/commenting code stage at this point and it will be a short while longer, but I've finalized the pricing scheme and it will all be released soon.
Comments
There are 3 comments, comments are closed
Michael D. Boyle on 11/17/2004:
I was wondering, what parameters do you pass to del.icio.us to get links you've posted in the last hour?
Garrett on 11/17/2004:
Actually, there is no way as I see it to get links posted in only an hour timeframe, so I just get a list of all recent posts and then only enter the items whose hashes don't already appear in my database.
Lauri J. on 12/06/2004:
Any hints on release schedule of the "Codebase"? Judging by the comments posted on previous entries, there's a great interest towards your code and you have an biz opportunity up for grabs. :)