Environment:
-Drupal 5.3
-User relationships version 5.x-2.4-2
-The user belongs to role "players" and has marked the options (access control): can have relationship, maintain relationships and view user relationships)
When a user accedes to his account, the "my relationship" option only shows to the options "All and pending".
As I can add relationship with other users?
Many thanks for you time and help.
Comments
Comment #1
thidalgo commentedComment #2
VVN commentedSimply, you can enable the User Relationships: Actions block, it provides a link to a little form to add relationships (and others).
Or, to adjust the layout as you like, you can put the same link in your user_profile/bio/anyother tpl.php (in the form "/relationship/request/[UID]?destination=[user_profile/bio/anyother path])
For example, in user_profile.tpl.php you have to put something like this:
print l('Add relationship with '.$user->name,'/relationship/request/'.$user->uid.'?destination=user%2F'.$user->uid);For profile based on nodes (usernode, bio, etc), i think you have to put something like this (not tested):
print l('Add relationship with '.$node->name,'/relationship/request/'.$node->uid.'?destination='.htmlentities($node->path,ENT_QUOTES));Comment #3
VVN commentedwhoops, i pasted wrong function to encode url :/
urlencode($node->path)
instead of
htmlentities($node->path,ENT_QUOTES)
Comment #4
lias commentedHere's your code with the change for adding to node-userprofile.tpl.php for nodeprofile:
Comment #5
sprsquish commentedCleaning up issue tracker and considering this issue closed.