cmshaw (cmshaw) wrote in suggestions,

Make 'friend', 'friend-of', and 'member' status available in S2

Make 'friend', 'friend-of', and 'member' status available in S2

Short, concise description of the idea
Add core functions to S2 to provide permission and status information about the viewer.

Full description of the idea
Create functions in the S2 style language which gives the style information about the viewer's status in relation to the owner of the journal. Each 'edge' in the relationship should be separate and available.

An ordered list of benefits

  • Allow styles to provide friends-locked elements.
  • Allow community styles to provide members-only elements.
  • Allow styles to display 'strangers-only' notices such as "Add me as a friend" links, "Join this community" links, or "This journal is friends-only" announcements.
  • An ordered list of problems/issues involved

  • There's a limit to how much information we want to retrieve about viewers of a page, but friend/member information is not in any way identifying and is already used in other internal functions to provide, eg, friends-locked entries.
  • All of the benefits listed can be achieved by the use of so-called "top level posts" with various security settings. It would simply be easier to have this flexibility in the journal style itself.
  • Some people might assume that they could friends-lock their journal by friends-locking the entry display on their journal style, without realizing that their journal could be displayed in an alternate style with entries still visible.
  • An organized list, or a few short paragraphs detailing suggestions for implementation

  • Ideally, this would work just like viewer_is_owner(). Perhaps the viewer_is_friend() function should accept an optional parameter string for a custom friends group (although, of course, the function in the other direction should not, as other people's custom groups are not information currently available).
  • Tags: community membership, friends, s2, ~ submitted - needs retagging
    • Post a new comment


      Anonymous comments are disabled in this journal

      default userpic

      Your reply will be screened

      Your IP address will be recorded