Hello,

I've installed the Advanced Profile Kit and the User Relationships module. I created two different user roles and I want the two roles to have a "Boss" -> "Employee" type of relationship and for the "Boss" and "Employee" to have different styled profiles. Well, I've nearly got everything successfully set up with only a few minor things left to do that I'm having trouble completing.

Basically what I'm trying to do is change the verbiage on the "Friends" tab (that links to the "friends_list") from "Friends" to "Bosses" OR "Employees" depending on the role of the user. I've been modifying the view apk_ur_friends_gallery here: ?q=admin/build/views/edit/apk_ur_friends_gallery and I've figured out how to change the title of the tab to "Employees" and how to only get it to only display the relationship in one direction (Employees of a given Boss).

However, now I'm trying to change the title of the tab to "Bosses" and only display the relationship in the other direction (Bosses of a given Employee). I've created a second view to do this, but I'm not sure how to tie this view to the particular role that I want it associated with (employees) and how to make it show up in place of the tab "Employees" that is currently displaying on both users with the roles "Boss" and "Employee".

I'm guessing that there's an easy way to configure things so that the view that's pulled in for the profile of a user with the role "Boss" is a different view than what's used for the profile of a user with the role "Employee", but I don't know it.

Can anyone help?

Comments

mmlr38’s picture

Anyone with some insight for me?