Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
bilalkhan #1
Member since Oct 2016 · 81 posts · Location: Pakistan
Group memberships: Members
Show profile · Link to this post
Subject: xmpp message like dislike stanza
Does xmpp provide message like dislike stanza?
forexample today is a good day, rest of the people can like this message and some of them can dislike.


I want to implement the above functionality first am looking for xep or stanzas?
Avatar
Alex #2
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
XEP-0367: Message Attaching is what you are looking for.

Alex
Avatar
bilalkhan #3
Member since Oct 2016 · 81 posts · Location: Pakistan
Group memberships: Members
Show profile · Link to this post
Alex, i do not want attachment of file. Only want the counter of like and dislike, forexample today is a good day, 5 people like this, only show the counter on the all the respective parties.

My initial thoughts this can be achieve through IQ, if their is no XEP supported. Please see below picture.
https://ibb.co/dz3UiF
Avatar
Alex #4
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
This XEP is not about attaching files, please read it again.

You can add a like or dislike to a message like his:

  1. <message to='antonio@milan.lit/ship' from='prospero@milan.lit/island id='RgEGnjqy'>
  2.  <body>like.png</body>
  3.  <attach-to id='oldmessage1' xmlns='urn:xmpp:message-attaching:0'/>
  4. </message>
  5.  
  6. <message to='antonio@milan.lit/ship' from='prospero@milan.lit/island id='RgEGnjqy'>
  7.  <body>dislike.png</body>
  8.  <attach-to id='oldmessage1' xmlns='urn:xmpp:message-attaching:0'/>
  9. </message>
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS