Hi,

In the Block "Use relationships" and maybe in the others blocks

Why it's necessary to type something in the field named :
Return the user id of the user to compare with the current user : *

Because it's write under :
(EXPERT ONLY) If you don't know what this is, just leave it alone.

I don't know what to type...

Thanks for help

Comments

Copypast’s picture

HELP!!!

PhiliW’s picture

Assigned: Unassigned » PhiliW

I could need some help on this, too!
I just can't change the settings for the blocks and I really need to :-/

Thanks in advance,
Phil

OneClickVentures’s picture

bump...rather confused here.

PhiliW’s picture

I just can't believe we are the only ones with this problem! I think that this (UR) is such a powerful tool and many people will use it. Is the answer to our Problem so simple that nobody wants to help? I will keep on looking into this thread, maybe sometime someone will come... :-)

TheresaM’s picture

Same issue here and the worst part about it , you can't set the block to set on any particular page without configuring this particular information. therefore rendering this module useless to newer users who don't know what to input into this field.

alex.k’s picture

Component: Miscellaneous » Code
Assigned: PhiliW » Unassigned

Confirmed; the problem exists for everyone i think. Will be looking at it as I can't use most of the blocks because of it, too.

Just that the code is a little cryptic and I'll be working through it as i get a hang of the maintenance duties :)

webslinger’s picture

Same here. Asterisk doesn't work, and I'm feeling stuck. Please help!

daneyuleb’s picture

Replace db_write with drupal_write_record in user_relationships_blocks.module and it will get you by the error for now.

Since it still requires you to put something in that field, though, to get past the screen, I pasted the php code from the equivalent window in the All Relationships block's setup window.

Don't know if the above will blow anything up, but until the code is fixed it seems to work for me.

-Daniel

alex.k’s picture

Thank you daneyuleb!

alex.k’s picture

Assigned: Unassigned » alex.k
Status: Active » Fixed
StatusFileSize
new56.39 KB
new26.73 KB

Gave a complete cleanup to user_relationship blocks, and committed to the 6.x branch. This will appear in the -dev release shortly.

- fixed reported issue, that is being able to edit block settings. Also the snippet now supports "blog/%uid" style of URLs.
- improved help descriptions a little, to make it clearer what this snippet is and what blocks do.
- corrected blocks when used with one-way relationships
- improved wording a lot, so that I can make sense of it at least :)
- code style fixes

Please try any blocks, and post back with any issues. AJAX links (#327090: AJAX popups for confirmation dialogs) on the relationship actions block work, too. Screenshot shows three most useful blocks. There are quite a few different relationship types to test everything, so it can get busy if you do that.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.