Customizing SMF > Modifications and Packages

SMF Versatile Post Reactions

(1/9) > >>

Decent_946:
Link to Mod



SMF Versatile Post Reactions
Developed by Assadullah Shaikh AKA Decent_946


About Mod:

This mod adds animated reaction emojis/smileys below every post of a topic. It allows users to show their reaction towards the post by clicking the emoji. By hovering over the emoji, you can view the list of users who have reacted to the post with selected reaction. Reaction count is also displayed alongside each emoji separately.


Credits:

I pay my special credits to @Arantor for helping me in solving queries and errors of the mod. :)

The mod is Inspired by: Awesome Post Ratings and SMFPacks Reactions Mod.


Features and Options

Users:
-Only registered member's can react to the post.
-A user can react with multiple reactions on same post.


Admins:
-Edit, Add and Remove Reaction Emojis with via Admin Panel.
-Allow/Disallow a member to revert their casted reaction

Admin Tabs:
Admin -> Forum -> VReactions:

* General - Contains the Mod information and tools used.
* Edit Reactions - Contains the list of available Reaction smileys. Allows you to delete any reaction.
* Add Reactions - Allows you to add new reaction by uploading a new .gif image file.
*Note: Currently, only .gif file is allowed to be uploaded.

Admin -> Configuration-> Modification Settings:
    Check: Allow members to revert their reaction.


Github:
Source Files.

Changelog:

09/08/2020 - v1.1
-Fixed a bug reported by Shadav. Now it deletes the checked emojis.

12/08/2020 - v1.2
-Updated the mod. Now Administrator can enable/disable whether members can revert their vote or not.

12/08/2020 - v1.2
-Fixed a bug upon reverting a reaction.
-Altered the CSS to have a proper layout

06/09/2020
-Fixed a bug reported by njtweb which caused overwriting of other mod options. If one has lost some options from Miscellanous, users are requested to re-install.

License: Mozilla Public License 2.0

Screenshots: https://imgur.com/a/mnmXBA1

shadav:
looks good
would be nice to be able to edit the existing ratings :) instead of deleting and readding them

as well in display.template.php

to hide the ratings from guests and topic author (kind of silly to rate your own posts  :P )
find

--- Code: --- //versatile reactions
loadreactionemojis($message['id'], $context['user']['id']);
--- End code ---
replace with

--- Code: --- //versatile reactions
if ($user_info['is_guest'] == false && !$message['is_message_author'])
{
loadreactionemojis($message['id'], $context['user']['id']);
}
--- End code ---

hm ok if you do that then you can't see the rating results....hm....

so then maybe a way to not allow topic author to rate own post but still display how many and who rated their posts....

thank you for this mod :) and great work

shadav:
found a bug

when deleting a reaction, it doesn't delete the selected one, it deletes whatever the last one is
so if i'm trying to delete id 1 and there's a total of 8 reacts
I click on delete for id 1, but id 8 gets deleted, if i click on id 1 again, id 7 gets deleted....

Decent_946:

--- Quote from: shadav on August 08, 2020, 02:36:23 AM ---found a bug

when deleting a reaction, it doesn't delete the selected one, it deletes whatever the last one is
so if i'm trying to delete id 1 and there's a total of 8 reacts
I click on delete for id 1, but id 8 gets deleted, if i click on id 1 again, id 7 gets deleted....

--- End quote ---
Umm, looks like the last change made it happen. Will be fixing it soon.

Thank you for debugging! :-)

KittyGalore:

--- Quote from: shadav on August 08, 2020, 02:36:23 AM ---found a bug

when deleting a reaction, it doesn't delete the selected one, it deletes whatever the last one is
so if i'm trying to delete id 1 and there's a total of 8 reacts
I click on delete for id 1, but id 8 gets deleted, if i click on id 1 again, id 7 gets deleted....

--- End quote ---
Yes you can't remove any reaction it stays there.

Navigation

[0] Message Index

[#] Next page

Go to full version