You are here

README.txt in User Relationships 7

User Relationship Blocks
------------------------
Provides a few basic blocks for use with User Relationships. Block explanations are below.


Send comments to Jeff Smick: http://drupal.org/user/107579/contact, or post an issue at
http://drupal.org/project/user_relationships.


Requirements
------------
Drupal 7
User Relationships API
User Relationships UI


Installation
------------
1. Enable User Relationship Blocks in the "Modules" administration screen.


Blocks
------
User Relationships: Actions
  Some basic actions that can be performed between the current user and the user being viewed*.
  This block is useful for those using nodeprofile

My Pending Relationships
  Shows all the pending relationship requests, both requested from and of the current user.

My Relationships: All Relationships
  Shows all of the current users relationships. The number of relationships and the order
  in which they're shown can be configured.

My Relationships: {Relationship Type}
  Where {Relationship Type} is a specific relationship type. This will show only the current
  user's relationships of the specified type.

User Relationships: All Relationships
  Like "My Relationships: All Relationships" only it shows the relationships of the user being
  viewed*

User Relationships: {Relationship Type}
  Like "My Relationships: {Relationship Type}" only it shows the relationships of the user being
  viewed*


* A note about the user being viewed:
  This user is found using _user_relationship_blocks_get_uid(). This can be
  overridden by implementing hook_user_relationship_blocks_get_uid().


Theme Developers
----------------
There is one theme function and three theme files.

The function is "theme_user_relationship_block_subject" and is used to generate the title of the block

The files are under the "templates" directory and listed below:
  user_relationships-block for "My Relationships: " and "User Relationships: " blocks
  user_relationships-pending_block for pending relationships
  user_relationships-actions_block for relationship actions


Credits
-------
Originally Written by JB Christy.
Rewritten by Jeff Smick.
Written originally for and financially supported by OurChart Inc. (http://www.ourchart.com)

File

user_relationship_blocks/README.txt
View source
  1. User Relationship Blocks
  2. ------------------------
  3. Provides a few basic blocks for use with User Relationships. Block explanations are below.
  4. Send comments to Jeff Smick: http://drupal.org/user/107579/contact, or post an issue at
  5. http://drupal.org/project/user_relationships.
  6. Requirements
  7. ------------
  8. Drupal 7
  9. User Relationships API
  10. User Relationships UI
  11. Installation
  12. ------------
  13. 1. Enable User Relationship Blocks in the "Modules" administration screen.
  14. Blocks
  15. ------
  16. User Relationships: Actions
  17. Some basic actions that can be performed between the current user and the user being viewed*.
  18. This block is useful for those using nodeprofile
  19. My Pending Relationships
  20. Shows all the pending relationship requests, both requested from and of the current user.
  21. My Relationships: All Relationships
  22. Shows all of the current users relationships. The number of relationships and the order
  23. in which they're shown can be configured.
  24. My Relationships: {Relationship Type}
  25. Where {Relationship Type} is a specific relationship type. This will show only the current
  26. user's relationships of the specified type.
  27. User Relationships: All Relationships
  28. Like "My Relationships: All Relationships" only it shows the relationships of the user being
  29. viewed*
  30. User Relationships: {Relationship Type}
  31. Like "My Relationships: {Relationship Type}" only it shows the relationships of the user being
  32. viewed*
  33. * A note about the user being viewed:
  34. This user is found using _user_relationship_blocks_get_uid(). This can be
  35. overridden by implementing hook_user_relationship_blocks_get_uid().
  36. Theme Developers
  37. ----------------
  38. There is one theme function and three theme files.
  39. The function is "theme_user_relationship_block_subject" and is used to generate the title of the block
  40. The files are under the "templates" directory and listed below:
  41. user_relationships-block for "My Relationships: " and "User Relationships: " blocks
  42. user_relationships-pending_block for pending relationships
  43. user_relationships-actions_block for relationship actions
  44. Credits
  45. -------
  46. Originally Written by JB Christy.
  47. Rewritten by Jeff Smick.
  48. Written originally for and financially supported by OurChart Inc. (http://www.ourchart.com)