Saturday, February 12, 2005

recent comments; hack the hack

well, it seems blogger changed it's date options for posts and RESET everyone to a shorter date which screwed up the recent comments hack.
I changed the date stamp for comments back to the one we can parse for recent comments hack and then got to looking at all the bloated space those full dates takek up.
i re-implemented the recent comments hack wiht KEVIN's version.

it's hard to read at first, but give it a few days and let me know if you like it.

13 comments:

k2h said...

kevins version is AWESOME. i'll even put it over on K2H. totally awesome.. well done.

Unknown said...

the hack is awesome! you should give your hack to blogger hacks to let everyone enjoy the beauty of it.

k2h said...

I made a change to this on my site. I removed the YEAR, as I think it won't take 12 months to get 15 unique comments, so the year is wasted space, and wasted reading material. so I removed it, but I left kevs line commented out so he can still get credit =) if anyone else likes how it looks on k2h, compared to nerdy tales, we'll put the code over here.

k2h said...

when I made changes to the code way back when I let blogger hacks know but never heard back, so I don't think they cared.

forkev said...

I already posted it back to blogger hacks. I doubt I'll hear back from them, but at least someone else could benefit from it.

forkev said...

i caught a bug. (ok, alodia did because she insists on using the other broser i started her using years ago)
firefox renders list items on the next line. ie6 does NOT. therefore if we encapsulate the year.month.day in [li] [/li] tags it'll draw correctly in both browsers. i'll also chop the year as it's probaly not needed in this context, but i'll leave the syntax commented in so we have it if we need it.

forkev said...

next up: lets put the mm.dd -DAY up there. we'd like to know that it was last tuesday, right?

forkev said...

i like it without the full date. just in the MM.DD Day format. cool. it just keeps getting better.

k2h said...

the DAY addition is wonderful... maybe we should modify the code to say [time] [name] [RANK]: [Title]

where [RANK] is a summ of the number of times the person has commented on the topics that are shown on the main page of the blog. kind of like an instant ranking.

k2h said...

or it [RANK] could be the YABBER facter. the number of characters you've typed MULTIPLIED by the number of posts. that way lots of short posts could compete for the same YABBER factor as a person that posts a long post.

k2h said...

one more addition... I think we should imbed an open IRC interface into nerdy. so if someone else is browsing the site we can see them and chat. we can fit it in a small pane on the side or something.. or maybe right under the title. I'll start diging around for an applet.

forkev said...

i like the yabber factor and irc ideas. I'm not sure how many recent posts get iterated through when recent comments hack draws. i'll need to post a loop in there and do some testing.

forkev said...

i'd also like to combine the recent posts into the recent comments

i'd like to make the recent topics draw on the 'comments' page only, but not only show the last 10 or whatever, but like the 5 newest ones too if you are reading an old post.