I needed a simple module like this so I ported it to drupal 6.

I also needed a block output so I abstracted the query and sent everything through theme_table as well (to conform with drupal standards).

both the page and block uses the same output.

Comments

citronica’s picture

Thank you!! My timing seems to be very good, because today was the first time I looked at this module, and suddenly there was a brand-new D6 patch ready and waiting.

I had a little trouble applying the patch though... it worked fine on blog_list.module but it failed on blog_list.info, so I made those changes by hand. Here's what happened:

$ patch < blog_list.patch
patching file blog_list.info
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file blog_list.info.rej
patching file blog_list.module

But broadly speaking, it works! I'll tell the Drupal Multi-User Blogging Group about this :-)

Best wishes,
Andrea

PS: Don't let me stop anyone from reviewing the code... I'd do it myself if I knew how.

citronica’s picture

Hmm, now this is odd.

I have a page view called "Latest Blog Entries", which shows teasers of the ten most recent blog posts, and it uses a pager at the bottom. The Blog List block is in the sidebar of that page.

When I added more than ten blog entries, the pager showed up at the bottom of the Latest Blog Entries page, as I expected, but it also shows up at the bottom of the Blog List block! And when I go to mysite.com/blog to see the Blog List page, the pager is there as well. I only have four blogs listed, and when I click on the "Next" button I get an empty list which only has the "User" heading on top.

mradcliffe’s picture

StatusFileSize
new1.69 KB
new3.75 KB

That's my fault. I added the pager to the block thinking it would work, and that's not possible in drupal. :)

blog_list-patched.patch patches you from the previous patch to the fix.
blog_list_cvs.patch is a full patch from blog_list cvs.

tsi’s picture

Will someone please publish the pached files ?
Not so good at patch work :-(

Thanks.

fpatten’s picture

I Second this. I tried with the instructions posted here http://drupal.org/node/60818 but kept getting the fail error.

patch < blog_list_cvs.patch
patching file blog_list.info
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file blog_list.info.rej
patching file blog_list.module

The module will not load in Drupal at all.

mradcliffe’s picture

StatusFileSize
new1.67 KB

I just did the following:

cvs co contributions/modules/blog_list
cd contributions/modules/blog_list
wget http://drupal.org/files/issues/blog_list_cvs.patch
patch -p0 < blog_list_cvs.patch
patching file blog_list.info
patching file blog_list.module

No problems. Attached.

tsi’s picture

Thanks ! works for me.

fpatten’s picture

Tried this version. The module was loaded but I error when trying to load the page.

vladsavitsky’s picture

To have a list of bloggers you can use simple module Bloggers for Drupal 6.
Module show a list of bloggers and X their last blog posts titles.