user_relationships in node.tpl.php
<?php $uid = $node->uid; $owner = $node->name; //if users are friends and relationship has been approved if ($relationships = user_relationships_load( array('between' => array($user->uid, $uid),'approved' => 1))) { // set a value of friends to 1 to allow content to be displayed below. $friends = 1; } else { $friends = 0; } echo "friends value = " . $friends; ?> <div class="content clear-block"> <?php if ($friends == 0) { print render($content); }; ?> </div> |
Posted in Drupal