A simple block that by default displays user name, total buddy count, pending count, and requested count (as links to buddylist pages). The block is themeable and can be renamed in the setttings just like the other two blocks currently defined.

CommentFileSizeAuthor
#1 buddyblock.png4.11 KBdldege
status_block.patch3.41 KBdldege
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dldege’s picture

FileSize
4.11 KB

Screenshot of default block output (Zen Theme)

jbhan’s picture

will this work in 4.7?

dldege’s picture

The block code itself should work but the way settings are handled in 4.7 is different then in 5.0. So, you would not be able to apply this patch directly but you could take the block code and the theme_buddylist_status_block() code and retro fit that into the 4.7 module code base.

fago’s picture

Status: Needs review » Fixed

thanks for your contribution :)

for the future please make sure to meet the drupal coding standards, e.g. insert a space after a comma and use readable variable names. then only use official buddylist terminology everywhere.

I've gone through your path and committed it, I've also committed a backport to 4.7
further the block will only appear if the approval is required.

dldege’s picture

Cool and thanks.

I'll take a look at the code guidelines for future contributions.

Anonymous’s picture

Status: Fixed » Closed (fixed)