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.
We need to provide a block to display a user's top x friends (ideally configurable).
Comment | File | Size | Author |
---|---|---|---|
#3 | urblocks2.patch | 11.41 KB | prfctns6@gmail.com |
#1 | urblocks.patch | 11.32 KB | prfctns6@gmail.com |
Comments
Comment #1
prfctns6@gmail.com CreditAttribution: prfctns6@gmail.com commentedAttached is a patch that creates a number of blocks which display relationships.
There are 2 classes of blocks: "My <relationships>" blocks display the relationships of the user who is viewing the site; "User <relationships>" blocks display the relationships of the user whose profile is being viewed. For each of the 2 classes of blocks, there is one block for each defined relationship type, and one block which displays all relationships. So if there are n relationship types defined, there are 2*(n+1) blocks defined.
In this first implementation, the "User <relationships>" blocks are hardcoded to only display on nodes of type 'usernode'. Future plans are to allow the administrator to configure which node types the "User <relationships>" blocks should display on.
All of the blocks have the following configuration options:
Comment #2
prfctns6@gmail.com CreditAttribution: prfctns6@gmail.com commentedComment #3
prfctns6@gmail.com CreditAttribution: prfctns6@gmail.com commentedIn the patch I submitted yesterday, the blocks contained all relationships, not just those that are approved. Attached is a new complete patch, with that portion of the code fixed.
Comment #4
Zahor CreditAttribution: Zahor commentedThe "My (relationship_name)" block displays all relationships for me on each block - so every block has everyone even though the relationships are different.
Comment #5
sprsquish CreditAttribution: sprsquish commentedJB can you request CVS access so I can give you commit rights to maintain the blocks plugin?
Tanks :o)
Comment #6
AjK CreditAttribution: AjK commentedCVS application approved, added to project. Have a good day folks!
Comment #7
prfctns6@gmail.com CreditAttribution: prfctns6@gmail.com commentedZahor:
Can you tell me something about your configuration?
Also, in blocks other than the "My Relationships" block (which is supposed to have all relationships), what do you see for each relationship: just the user name, or the user name and the name of the relationship?
Thanks.
Comment #8
prfctns6@gmail.com CreditAttribution: prfctns6@gmail.com commentedComment #9
prfctns6@gmail.com CreditAttribution: prfctns6@gmail.com commentedChecked in the 1.0 version of the block code. This code does not address Zahor's issue, as I need more info from Zahor before I can debug.
Possible enhancements for future versions:
Comment #10
prfctns6@gmail.com CreditAttribution: prfctns6@gmail.com commented