Posted by mannejkumar on July 13, 2011 at 6:13pm
9 followers
| Project: | User Relationships |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
| Issue tags: | author pane, user relationship |
Issue Summary
Dear friends i searched alot to solve this problem.but no one has given proper answer. after trying one hour i found two problems
one is in user relationships they have given wrong variable name
at 72 line change $relationship to $rtype means
$css_class = array(str_replace(' ', '-', $relationship->name) change to $css_class = array(str_replace(' ', '-', $rtype->name)
and in authorpane module in author-pane.tpl.php file change at replace $user_relationships_api with $user_relationships
then it will work fine.thanks to michelle for great module
Comments
#1
Added tag
#2
thanks @mannejkumar
works for me
#3
your solution worked really well, thanks :)...I ran into another problem though, once the requestee has accepted the relationship, it still shows "Add as friend" on their profile page.
for example:
I visited another users profile and clicked on "add as friend" and sent the invite, once he/she accepted the invite and I visited the profile again, it still says "add as friend" instead of "remove friend", but if the requestee visits the requester's profile it shows "remove friend" as expected, so the problem is from the requestee side.
any suggestions?
I use author pane dev version with panels and user_view page.
#4
Error in Author Pane fixed, see this commit.
*Moved to User Relatioships to get the error in that module also fixed.*
@Maintainers of User Relationships: Could the error in User Relationships also be fixed? Patch provided.
#5
Stripped a tag.
#6
Closed #1412276: Notice: Undefined variable: relationship in user_relationships_preprocess_author_pane() (line 70 as a duplicate of this issue.
Patch looks good to me, but will leave this one for Berdir to commit.
#7
Thanks for the patch and reviews, commited.
#8
Automatically closed -- issue fixed for 2 weeks with no activity.