The user_relationships_blocks plugin uses incorrect variable names in the _user_relationship_blocks_view() function. It therefore effectively ignores admin settings. Attached is a patch which fixes the variable names.

The patch also fixes an incorrect variable name in the theme_user_relationship_block_content() function.

CommentFileSizeAuthor
ur_blocks_vars.patch1.54 KBprfctns6@gmail.com
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sprsquish’s picture

Status: Needs review » Closed (fixed)
olafke’s picture

Title: Blocks Plugin Ignores Configuration Settings » Blocks Plugin Ignores Configuration Settings - only for My Relationship
Version: 5.x-2.x-dev » 5.x-2.4-2
Status: Closed (fixed) » Active

First of all, thanks for this awesome module. I have some trouble with it but I desperately want to get it running.
I have a specific problem with all blocks created by the block module except for the user relationship action block which works perfectly fine.

All other blocks are displayed as long as users do not have relationships with each other. The relationship has been created but the user does not have any of that kind, the block displays "My Friends" or " Users's Friends" : "you have no Friends" or "User has no Friends"

The moment a user has a certain type of relationship, the block in which the relationship should be listed disappears.

I have worked myself through the PHP which left me with a serious headache and no clue what the problem could be. I'll keep trying but any help would be be greatly appreciated.

sprsquish’s picture

Status: Active » Closed (fixed)

The -dev version of the module works as advertised.

I'll be releasing 2.5 shortly. It'll contain all the fixes.

olafke’s picture

Cool. Thanks.