I'm using SimpleBlogroll on a site that sometimes has blog entries with blank titles (from blogger.com). In the database, the "last_item' entry is blank, and the blogroll doesn't seem to update when new posts are made after it. I worked around this by writing an entry title (if it's blank) to the database in the function _simpleblogroll_modify_db(), and in _simpleblogroll_build_block() I similarly form the link text after the switch statement by rebuilding the title if it's blank.

Is there a better way to do this?

thx

CommentFileSizeAuthor
#2 simbleblogroll_315118.patch1.21 KBfiliptc

Comments

filiptc’s picture

Assigned: Unassigned » filiptc

Yeah, you are right, my bad. I didn't consider that situation. There are several approaches to this, the easiest one being to let simpleblogroll compare timestamps (instead of item titles) if titles are empty and do the update if an item with a newer timestamp exists. I'll post the updated code and release a new version today. Thanks for pointing out the bug. Cheers.

filiptc’s picture

Status: Active » Needs review
StatusFileSize
new1.21 KB

Try out the attached patch and post back.

ncy’s picture

thanx for the quick fix. works for me in my tests.

filiptc’s picture

Status: Needs review » Fixed

Rolling out 1.4! Cheers.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.