pi icon indicating copy to clipboard operation
pi copied to clipboard

Interaction bar

Open taiwen opened this issue 11 years ago • 3 comments

TODO

  • Schema
    • User action link
      • like: uid, <object-id>, time
      • checkin: uid, <object-id>, time
      • rating: value, uid, <object-id>, time
      • visit: uid, <object-id>, time
    • Action stats
      • action, <object-id>, count
  • Interaction controller in system module, or a standalone module interaction
    • Receiver for helper
  • View helper
    • Stats/Count for display
    • Button for action

For

  • Local
    • Vote/Like
    • Rating
    • Comment
    • Check-in
    • Visit
    • Download
  • External
    • PlusOne
    • Tweets
    • Share
    • ...

References

  • http://schema.org/UserInteraction
  • http://sixrevisions.com/user-interface/karma-design-pattern/

@voltan @MarcoXoops @sexnothing @linzongshu

taiwen avatar Dec 26 '13 02:12 taiwen

Helper for interaction (between user and page) bar

Usage inside a phtml template

  // Load helper for current request URI
  $interaction = $this->interaction();

  // Load for specific object
  $interaction = $this->interaction(
      array('module' => <module>, 'id' => <id>, 'type' => <type>)
  );

  // Load for current request URI with specified id and/or type
  $interaction = $this->interaction(
      array('id' => <id>, 'type' => <type>)
  );

  // Render specific actions
  $interaction->render(
      array('like', 'rating', 'checkin', 'visit', 'plusone', 'twitter')
  );

  // Render default actions
  $interaction->render();

  // Load/Render specific actions for specific object
  $this->interaction(
      array('module' => <module>, 'id' => <id>, 'type' => <type>),
      array('like', 'rating', 'checkin', 'visit', 'plusone', 'twitter')
  );

  // Load/Render specific actions for current request URI
  $this->interaction(
      '',
      array('like', 'rating')
  );

taiwen avatar Dec 26 '13 03:12 taiwen

I like this idea , Good for me :D I think interaction module is good, just it good if we can support user submits too (Article / news / any other posts)

On payamakyab.com we have user Score system, and make Score by submit / vote / favorite / send by user or other users . ( Check this page : http://www.payamakyab.com/sms/user/gorgan69 ).

voltan avatar Dec 26 '13 05:12 voltan

hum, need to think about this

Marc-pi avatar Jan 15 '17 08:01 Marc-pi