I'm currently using User relationships module, and setting the UR-Node access module so that nodes can only be viewed by users related to the author.
However, I want to have a public display version of the node for search engines, sharing links, and also for a button to say 'You need to become friends with x to see this node'.
So, I was thinking of using the User relationships API to determine the users' relationship, and output two different displays in the tpl.php file.
Does anybody know how to determine the relationship programatically? I'm stuck.
(I've done this in the Views I've made, it's just in the nodes, that I'm having trouble)