Return the user id of the user to compare with the current user

tedece - May 11, 2008 - 16:20
Project:User Relationships
Version:6.x-1.0-beta7
Component:Code
Category:bug report
Priority:normal
Assigned:alex.k
Status:closed
Description

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

#1

Copypast - July 18, 2008 - 15:33

HELP!!!

#2

PhiliW - July 31, 2008 - 16:26
Assigned to:Anonymous» 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

#3

OneClickVentures - August 12, 2008 - 15:59

bump...rather confused here.

#4

PhiliW - August 14, 2008 - 05:25

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... :-)

#5

TheresaM - September 7, 2008 - 23:24

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.

#6

alex.k - September 7, 2008 - 23:51
Component:Miscellaneous» Code
Assigned to:PhiliW» Anonymous

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 :)

#7

webslinger - September 9, 2008 - 12:45

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

#8

daneyuleb - September 10, 2008 - 21:57

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

#9

alex.k - September 10, 2008 - 22:37

Thank you daneyuleb!

#10

alex.k - October 30, 2008 - 13:05
Assigned to:Anonymous» alex.k
Status:active» fixed

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.

AttachmentSize
sample blocks setup.png 26.73 KB
blocks sample screenshot 56.39 KB

--project followup subject--

Anonymous (not verified) - November 13, 2008 - 13:56

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

--project followup subject--

Anonymous (not verified) - November 13, 2008 - 14:04

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

#11

Anonymous (not verified) - November 13, 2008 - 14:12
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.