The pending relationships view seems to belong to "user_relationships_browser", but there's no way of editing it directly afaik. I'd like to create a unified user profile menu so account management is consistent. What I'm shooting for basically looks like this:

[About me] [Friends] [Friend requests]

Simple and focused.

I've created a custom view to act as a friends list, but I'm unable to find a way to create a custom pending view, or somehow edit the user_relationships_browser to behave as desired. The current set up of all messages with sub tabs doesn't quite fit with the design for me because I only have one type of relationship so all I need is a list of it, and a method of approval. I'm not sure how to proceed though because the current setup doesn't seem to allow for customization...

Is the pending view hard coded in the module and can't be edited through the views UI? Is the setup I'm trying to achieve just a pipe dream?

Thanks for reading.

Comments

highvoltage’s picture

Hmm, how about simply attaching the existing pending tab to the profile instead of being a subtab to the relationships tab, then? Would that require hacking the module? Gotta be some way of getting UR interface linked to the user profile...

Anybody?

alex.k’s picture

You are right the pages under /relationships are not views-powered. You would need to create the corresponding view. It should be possible to use the starter view user_relationships_browser and add menu tabs with urls like user/%/requests etc.

Also, have a look at a simpler view to work off of... you would just need to set the filter to pending, and change fields as necessary.

jrabeemer’s picture

I'm trying to create a pending relationships view.

I have filter: User relationships: Relationship status = 0 set, but how do you filter those pending with the logged in user?

Ideally, it would show both kinds of requests initiated by the logged in user or another person initiated to the logged in user.

Bilmar’s picture

momendo - any success on creating a view that shows pending relationships?

I was able to create the pending requests SENT (using alex.k's suggestion of working off the starter view user_relationships_browser), but unable to get the pending requests RECEIVED in views.
Would anyone be able to assist?
Thanks very much in advance!

YK85’s picture

I am also trying hard to get this working, but unsuccessful so far...
Can anyone share a solution?

jrabeemer’s picture

My guess to start would be to try to create the list through a SQL query, or find the equivalent through functions in the module.

YK85’s picture

would you or someone be able to provide simple examples or share a tutorial that the community may refer to?
i think if users of UR finds way to achieve these views it would be a big heap forward.

thanks!

j0k3z’s picture

Has anyone figured this out???????

birchy82’s picture

Anyone figure this out? I'd like to have a simple icon that shows only when a user has someone requesting to be in a relationship with them....anyone?

guntherdevisch’s picture

subscribing!

guntherdevisch’s picture

My solution on http://drupal.org/node/460000#comment-3190684

Greets,
Gunther

YK85’s picture

Status: Active » Closed (duplicate)

this is now easily possible with #866400: Views filter patch for current user
marking this as duplicate