Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | buddyblock.png | 4.11 KB | dldege |
status_block.patch | 3.41 KB | dldege |
Comments
Comment #1
dldege CreditAttribution: dldege commentedScreenshot of default block output (Zen Theme)
Comment #2
jbhan CreditAttribution: jbhan commentedwill this work in 4.7?
Comment #3
dldege CreditAttribution: dldege commentedThe 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.
Comment #4
fagothanks 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.
Comment #5
dldege CreditAttribution: dldege commentedCool and thanks.
I'll take a look at the code guidelines for future contributions.
Comment #6
(not verified) CreditAttribution: commented