ElkArte Community

Elk Development => Feature Discussion => Topic started by: meetdilip on February 10, 2014, 09:50:40 pm

Title: Custom Likes
Post by: meetdilip on February 10, 2014, 09:50:40 pm
Now a days, reputation system has paved way for likes. Now XF has custom likes mod where people can have more than one like item (say winning, funny etc). I was just wondering if we can have a custom Like instead of a no. of like buttons like in XF mod. Say you like someone, and we can add an option for user to leave a comment as well. Say for a new mod release thread, user can like it and give a custom message as well (visible only to the person who received like). It can be like " Want to see more features ", " good work buddy " etc.

Also if I not asking too much, a feature to show who all liked a post will be nice. It can be visible to all.
Title: Re: Custom Likes
Post by: TE on February 10, 2014, 11:01:57 pm
Quote from: meetdilip – Also if I not asking too much, a feature to show who all liked a post will be nice. It can be visible to all.
Posts I liked
http://www.elkarte.net/community/index.php?action=profile;area=showlikes;sa=given;u=28
Posts from me liked by others
http://www.elkarte.net/community/index.php?action=profile;area=showlikes;sa=received;u=28
It's a bit hidden in the profile but it's already there :)
Title: Re: Custom Likes
Post by: hugbear on January 18, 2015, 04:17:04 am
First things first: I'd like to say "Hello!" and to express my amazement at the speed this piece of software is progressing - in a great way, too!

Since this is my first post, let me mention that I am neither owner nor full-fledged administrator of any forum. However, every now and then I put on an admin's coat, helping out on a SMF one (http://suzuki-club.ro) where I moderate. Over the time there have been a few migration propositions but I've found the contenders lacking. Lately though I've been playing with ElkArte, and my heart began to sway :).

Now, to the point of this topic: The concept of "Like" has been promoted by social software of a certain nature (of which I'm not a fan :D), where instant presence and gratification prevail against discourse, consistency and history of the conversation. My view (and it's just that, ONE's view) is that a discussion forum should promote involvement through elaborated comment. There are, however, areas (mostly technical in nature) in which social comments would bury information that should be easily retrievable. The participants, though, are human and would like to know that their work is appreciated - and humans do that mostly by using words like "Thank You!" This forum itself has its fair share of them, and for good reason!

The grand finale: Of course, all this babble was only meant to fuzz the devs into implementing an option to turn "Likes" into "Thank You!". :D Would you, please? Thank you...

(P.S. please excuse any misuse of English, as it isn't my native language.)
Title: Re: Custom Likes
Post by: meetdilip on January 18, 2015, 05:44:31 am
Welcome @hugbear . Hope you will be around in our journey way forward. :)
Title: Re: Custom Likes
Post by: radu81 on January 18, 2015, 05:51:34 am
@hugbear to turn likes into thanks you can simply change the translations.

P. S open importer imports your old likes/thanks from 3 smf mods, so if you're using thank o matic mod you won't loose your "thank you" data
Title: Re: Custom Likes
Post by: emanuele on January 18, 2015, 07:17:50 am
Hello hugbear and welcome around! :)

radu is right, change likes to thank you is a matter of translation and I wouldn't go much further than that.
Looking around there are about 30 strings to tweak in the user-facing (that is all that matters usually) area.
At the moment I can't, but feel free to bump the topic for a list of the strings that should be changed.

On the suggestion made by @meetdilip,TBH I'm not really fond on the "custom likes", yeah they are kind of fun for the occasional "funny" or whatever, but the net effect is just to dilute the "appreciation" of the post/topic.
My 2 (euro) cents of course, I wouldn't stop anyone willing to create it. ;)
Title: Re: Custom Likes
Post by: hugbear on January 18, 2015, 11:59:17 am
Thank you all for your kind an quick replies.

There's good news that OI can do that - didn't get the chance to look into it that deep (I've installed T-O-M but it's not working at the moment, due to some borked collations in the DB, to which I don't have access).

Anyway, time to get busy with 'dem files!
Title: Re: Custom Likes
Post by: omBre on December 21, 2017, 05:09:49 pm
Hi ElkArte

I am going after Forum for big talk that is safe and free just like this one, but i'll need one extra reputation plugin too, altho now as just like thumb is also good, yet for me it would be usefull if there is "like and dislike" buttons, but even more usefull if there could be added rule that posts with particular dislikes to be instantly hidden as free moderation tool for the members, thus avoiding discussion to be chopped by admins or moderators, simply to have public mod that would make the Forum more flexible with the rules and the talk i.e. some discussions to be hidden for guests, and even hidden for members till they choose to see the disliked message that is hidden by their own consent ... finnaly this could be done maybe through Topic option for like/dislike posts, so members to see if they want only hidden messages or just the open one, or both ...

Title: Re: Custom Likes
Post by: ahrasis on December 21, 2017, 07:51:43 pm
You can unlike for now.
Title: Re: Custom Likes
Post by: omBre on December 22, 2017, 06:06:35 am
Thanks Man ... coz its open source forum, could you point me where in the engine architecture could be this worcked around ... could it be done this freely, or I need approval, sorry I havent read the evelopers rules, simply juat jumped in and got directly to the matter that bugs me ... eralier I was after WebWiz coz they have "reputation mode" plugin for posts, altho just like/dislike count without hide/unhide rule ... I am just bemused why this thing is unavailable till now on any forum platform at all ...If we manage to work this here it would be free advertismnt for this platform here in Macedonia where it should be used for Marijuana Legalization Forum ... simply is topic that could trigger big talk but painfull to moderate it easily, in that sense and coz democratic option too, I am after such plugin or rule that could make this member moderation of threads through likes/dislikes system first before all, tho This Forum is Love on the first site as design and options ... Please give me guidance on this matter, coz I am rushing to bring up such board til the end of January ...

Thanks omBre
Title: Re: Custom Likes
Post by: emanuele on December 23, 2017, 03:27:09 pm
Because in the past it didn't work very well, or at least that the "story" that goes around.
I have my doubts as well about "self moderation" though likes/dislikes, I'm pretty sure on certain communities (or at least on certain communities I have participated over the time) it would quickly become a fight among groups and not an useful tool.

Anyway, welcome omBre!

I'm a bit confused now as to what you would like indications about: custom likes or the reputation thingy (provided I'm not fully sure what you intend with that since it can be a quite big number of things).
Title: Re: Custom Likes
Post by: omBre on December 24, 2017, 07:49:57 pm
Hi Emanuelo ... reputation man, I need Reputation Mod ... I want people to discuss freely, but in same time all the hard talk to be filtered easily by the very same participants in the discussion ... you can say simply: democracy at its best ...

Altho, there is large space for missuse of such democratic award system through likes/dislikes, if there is additional hide/unhide rule for posts, at least its worth the try, so there should be as least as possible need for direct moderation, in samew time like that throwing in trash all kind of unworthy digressions but which can also provoke other vibe and talk in different or simmilar theme or thread, weather there was no room for such talk in the main thread ... go with the flow mentality that can bring brainstorming idealism and options, than elite agenda from narrow mindset through direct moderation  i.e. to focus energy in steril way which actually in the end, at least, will loosen the atmosphere for such Free Green Vibe ... Yes Psichology Rulz here too, but with little luck and some trials and errors with the poppular mood finnaly we could come to workable strategy for member moderation, some times one only need patience for things to come to gether https://www.reddit.com/r/OutOfTheLoop/comments/3cymwo/whats_with_the_score_hidden_on_many_newer_reddit/

Again, Please give me a clue, is it possible for such plugin to be seen anywhere soon, and if not, could it be this done through copy paste of some engine like that of Rep. Mod of webwiz for start, twicking it later for hide/unhide rule later ... http://www.s2h.co.uk/wwf/mods/reputation-mod/

Thanks

Title: Re: Custom Likes
Post by: omBre on January 03, 2018, 04:27:22 am
so I've stuck with ElkArte for sure, but this was my main wish from this Crew ... an like/dislike option through which the board members could moderate any spam with defined amount of dislikes ...  altho it would be ideal if there is room for double forum (https://www.elkarte.net/community/index.php?topic=4823.0) too, so there can be parallel place for guests, spamers or unrelated digressions, that altogether can make selfsufficient forum that can bring the youth quickly to platform for political party



Title: Re: Custom Likes
Post by: omBre on January 03, 2018, 03:53:04 pm
I've found a like/dislike code, but how to put on this strings new rule for "hide/unhide post" after number of good and bad thumbs  also logicaly "moderator apply all" rule ...

http://codewithawa.com/posts/like-and-unlike-system-using-php-and-mysql-database
Title: Re: Custom Likes
Post by: ahrasis on January 03, 2018, 10:21:24 pm
I am not sure whether @vbgamer45 have a mod in SMF like that that can be converted here as an addon. Otherwise, you can always do it yourself or ask / hire somebody to do it for you.
Title: Re: Custom Likes
Post by: omBre on January 04, 2018, 01:53:24 am
Thanks Ahrasis ... I would go also with "hide/unhide posts by number of dislikes" that should be done aditionaly, on top of that there should be thumb in every thread as "show all posts/hide disliked posts" by default hiden as rule those posts with 10% dislikes from the participants in the particular thread ... also maybe is better to have rule that members can dislike posts after certain amount of time eg. 3 or 5 days so there would be avoided some popular rush by certain first hand impression ...

I know this would be big script, but when it comes to democracy, I believe that with such flexible moderation system things will look way better, sure there should be also margin that only members with 100 posts can have such privilage, tho anyone should also be able to like/dislike posts, and also that stats to be public so members could easily aligh themselves with other with simmilar opinions, maybe making group or fraction on some issues ...

... ah idealism ... I'll start probably with direct moderation, altho painfull process, as for the moderators so as for the members ... and maybe my friends could do some script or plugin for such mod, but when it comes to political debate I am not trusting to no one, except the first forum package and addons ... until things roll out in more optimistic way i.e. official party ... this forum in a way is most suitable place for political platform building but how that to be managed and no one to be unsatisfied among the members, especially if there is large group, its little bit tricky ...
Title: Re: Custom Likes
Post by: emanuele on January 04, 2018, 07:20:48 am
If you want my opinion keep reading, otherwise stop here. :P

If you are looking to keep satisfied minorities, then the "self-moderation" is the worst solution ever.
If you "plan" to have multiple political parties, the "self-moderation" is even less a good solution.
Why?
Because the moment one group sees a post from another (or a minority) that doesn't satisfy their own view, they will coordinate to "kill" the post by downvotes. As a reaction the other parties will either coordinate to kill the first (if big enough) leading to flame war or the simply lose trust in the forum and abandon it.
Title: Re: Custom Likes
Post by: omBre on January 04, 2018, 08:30:57 am
wait a sec. I wont to use this as moderation tool for senior members not groups or noobies ... and if there are frantic fractions among them its better to know this in this way than chasing white rabbits around, and normally if such behavior is dangerous on some topics it would be blocked for certain topics ... democracy is evolving matter but if is applied only by elite moderation it becomes plutocracy, in this manner by the master of ceremony of any political e-forum ...

... for sure takes time members to obtain some good practices, but building them through shared resposibilities is way faster than usual ... simply my own expirience with the e-forum platforms was always altered to chatting room as place where one can have enough flexibility without loosing his creativity ... as I said earlier at least I want to give a try, even tho ur arguments are quite ok, only thing that matters in the end is good debate unstrained from any extra hard talking rules, while in same time keeping the board clean as possible altho it was stuffed with too many disractions or digressions ... cant imagin to educate older people where or how they should post or even worst to delete their posts ... better to have mercy tool than sacrifacing stacks of comments in the bin coz someone had maybe bad day or lazy month ... Please if U could help I'll appreciated this a lot ... Thanks
Title: Re: Custom Likes
Post by: Frenzie on January 04, 2018, 08:52:46 am
Quote from: emanuele – they will coordinate to "kill" the post by downvotes. As a reaction the other parties will either coordinate to kill the first (if big enough) leading to flame war or the simply lose trust in the forum and abandon it.
Will they really coordinate? I think it's more that when they see it they dislike it, which might very well happen en masse organically. It might feel like a coordinated effort to the person being downvoted. Which is not something I think is necessarily a terribly good idea, mind you. :)
Title: Re: Custom Likes
Post by: omBre on January 04, 2018, 09:55:40 am
Frenzie in the post #11 there is reddit link that expains how could be avoided such behavior ... simply if they were using this for long and dont complain, then why I cant try ... this leaves me to few choices either to find developer that will code such dislike system, or maybe finding the reddit strings for such rule ...

here is something, could this be inserted in ElkArte

https://searchcode.com/codesearch/view/65768233/
Title: Re: Custom Likes
Post by: omBre on January 04, 2018, 12:34:47 pm
one way of regulating things Frenzie is adressing, is to have some dislike rule like: Don't dislike unless entry is trolling, spam, abusive, xenophobic ... other is to show the count for dislikes ... and finnaly only senior members should have the oportunity to dislike ... yes member-moderation could aply censorship, but if there is option also at the beginning of the topic to show all posts or/and hide disliked, I believe it wouldt matter, as voting is just option to hide unnecasary posts when it comes to guests, but also clean debate for members too, tho with room for any kind of digression ...

~

maybe these links will be at hand too

https://github.com/jitinp/flarum-voting-ext

https://github.com/dydx/reddit-social-links

also there are already similar mods on phpBB but can they stick to SMF too

https://www.phpbb.com/community/viewtopic.php?f=496&t=2329296

https://www.phpbb.com/community/viewtopic.php?t=2095240
Title: Re: Custom Likes
Post by: omBre on January 06, 2018, 08:31:50 am
at last here is SMF mod, hm, I was not aware that this was recognized as voting system, I have lost one day in whole to come to this mod, like/dislike hide\unhide :D

https://www.simplemachines.org/community/index.php?topic=548246.msg3888570#msg3888570
Title: Re: Custom Likes
Post by: Auctor Lucan on November 21, 2019, 09:28:28 am
Hi there!

Is there any way to enable that locked threads can be liked by users as well? I am using Elkarte 1.0.10. Thanks in advance!

Best,

Auctor Lucan
Title: Re: Custom Likes
Post by: Spuds on November 21, 2019, 05:32:01 pm
open sources/controllers/Likes.controller.php

line 107 should say
Code: (find) [Select]
			if ($liked_message && empty($liked_message['locked']))

change that to

Code: (replace) [Select]
			if ($liked_message)

that should allow liking of topics even if they are locked



Title: Re: Custom Likes
Post by: Auctor Lucan on November 22, 2019, 02:21:30 am
Unfortunately, there seem to be some other factor that prevents one to like a locked thread. I have emptied the cache and refreshed, trying to find the like button on several locked threads, but they are not there. Could there be an additional controller to update?
Title: Re: Custom Likes
Post by: Spuds on November 22, 2019, 08:40:34 am
Indeed ... we need to show the button, that last change only allows it to work.  So in addition to the above, you will need to edit your Dispaly.controller.php which is also in sources/controllers.

In that
Code: (find) [Select]
		$message['use_likes'] = allowedTo('like_posts') && empty($context['is_locked']) && ($message['id_member'] != $user_info['id'] || !empty($modSettings['likeAllowSelf'])) && (empty($modSettings['likeMinPosts']) ? true : $modSettings['likeMinPosts'] <= $user_info['posts']);

Code: (replace) [Select]
		$message['use_likes'] = allowedTo('like_posts') && ($message['id_member'] != $user_info['id'] || !empty($modSettings['likeAllowSelf'])) && (empty($modSettings['likeMinPosts']) ? true : $modSettings['likeMinPosts'] <= $user_info['posts']);

That should allow the button to show up.
Title: Re: Custom Likes
Post by: Auctor Lucan on November 22, 2019, 09:57:43 am
Awesome! Works like a charm, thank you!!