phpBB3 Topic/Post Reactions (like,love,hate)

Extensions in Development[DEV]
Forum rules
Extensions in this forum should be tested locally. ;)
User avatar
Steve
Site Admin
Reactions: 43
Posts: 218
Joined: 13 Dec 2016, 09:43

phpBB3 Topic/Post Reactions (like,love,hate)

Post by Steve » 16 Dec 2016, 15:02

Test Post Reactions yourdomain.com(1).png
Extension Name: phpBB3 Topic/Post Reactions
Author: Steve

Emoji credits: http://emojione.com/

Credits: To those who helped test this extension, here is one for you Image

Extension Description:
Allows Users to add image reactions to your Topic or post via Ajax.

Post Reaction Types:
Thanks, no thanks, like, dislike, love, LOL, happy, neutral, angry etc... or add your own!!

Extension Version: 0.5.6-dev

Requirements:
  • phpBB 3.2.0 >=
  • php 5.4 >=
Features:
  • View Topic Page:
    • Add/Change/Delete Reaction via Ajax.
    • Show Topic/Post Reactions types list, count and total reaction count.
    • Link to Pop up list containing reactions by users.
    • Re-sync.
  • User Profile:
    • Total Reactions count.
    • View recent reactions and full list of reactions link.
  • User Control Panel:
    • Enable /disable Reactions to your Topic/Posts.
    • Enable /disable certain Reaction types to your Topic/Post (sensitive Souls :lol: )
    • Prevent Foes from Reacting to your Topics/Posts
    • Enable/disable notifications.
    • Enable/disable reaction.
  • User Notifications:
    • Notifications sent via the board or email, upon receiving reactions, containing username who reacted, reaction type image, post subject and post link.
  • Pages:
    • Post reactions page: A list of users who have reacted to that post, clicking the reaction image will show a list of users who reacted with that reaction type.
    • View reactions, a page displaying users with the most reactions.
  • Admin Control Panel:
    • Enable /disable
    • Add/Edit/Delete Reaction Types
    • User Permissions
Screenshots: viewtopic.php?p=26#p26

Demo:
Viewtopic Page
Reactions Page

Download: Download Here
postreactions-ext-0.5.6-dev.zip
postreactions-ext-0.5.5-dev.zip
postreactions-ext-0.5.1-dev.zip
postreactions-ext-0.5.0-dev.zip


Donations: I accept free gifts and donations, Keep the beer coming ..Donate Some Beer Image

Notes:
This a development Extension!
Permission need to be set via: ACP -> permissions -> Group permissions


History:
Previously installed versions 0.1.6-dev =< of this extension in development will not work!
Due to re-coding how reactions are stored and displayed in viewtopic page.
Updating from version 0.5.5-dev to 0.5.6-dev:
  • Back up the original extension files.
  • Disable the extension via ACP -> Customise -> Manage extensions.
  • Delete the extension’s files from the filesystem.
  • Upload the new files.
  • Enable the extension.
  • Purge Cache!!
  • Test the new version of the extension!
Version 0.5.6-dev:
  • Fixed:
    • Displaying disabled reaction types.
  • Improvements:
    • Post reaction page.
    • HTML /CSS in view topic.
    • Adding/updating and deleting reactions.
  • Added:
    • 1 to the 5 to make 6 in the version numbering :P
version 0.5.5-dev:

Please read.

Code has changed when dealing with adding, updating and deleting reactions, I have tried and tested the migration file to handle the conversion of data but if you have any reactions not displayed in a post, You will have to re-sync via the button this will completely renew all the data for reactions to that post.
  • Fixed:
    • Empty array whilst deleting inactive users.
    • SQL error when extension is disabled.
    • Quoted posts bug.
  • Improvements:
    • Completed permissions.
      • Can Disable Reactions to their Posts
      • Can Disable Reaction Types to their Posts
      • Can Disable Reactions to Posts with in their Topics
      • Can Disable Reactions extension
    • Post reaction data removal.
    • Post reaction page.
    • HTML /CSS in view topic.
    • Adding/updating and deleting reactions.
  • Added:
    • Disable reaction button and Time out whilst adding reactions.
    • Ability for users to re-sync post reaction /duplicate after quoted posts bug, Re-syncing Will also useful for reaction types removal once disabled but will not be implemented until next release.
    • Permission to re-sync. If admins or mods have permission they can re-sync any post.
    version 0.5.1-dev:
    • Improvements:
      • view topic add reaction permissions fixed.
      • view topic view post reactions list permission fixed.
      • Quick Reply > clicks [Full editor & preview] fixed
      • UCP debug php 5.4 error fixed
    • Added:
      • Greggs sausage roll, packet of crisps and a can of pop in acp module.
    version 0.5.0-dev:
    • Improvements:
      • Removed post reactions table in viewtopic page
      • UCP debug error fixed
      • Notifications fixed
      • View topic page
      • Reaction pages
      • Permissions
    • added:
      • ACP setting to allow Post Authors to react to their Posts
      • Permission for post reactions page
      • Post disable reactions/types
      • Topic/1st post only reactions
      • Reaction image in notifications
      • Enable Reaction Type count in Posts
    version 0.1.6-dev:
    • Compatibility:
      • php versions 5.4 > 7.1
      • MySQL 5.7.14
    • Improvements:
      • Deleting topics and users
      • Debug on posting
      • Permission check in post links
      • View topic page
      • Reaction pages
      • admin control panel
    • added:
      • Black & White emojis
1 Image 3 Image 1 Image
You do not have the required permissions to view the files attached to this post.
Find: water
Replace with: beer

User avatar
Steve
Site Admin
Reactions: 43
Posts: 218
Joined: 13 Dec 2016, 09:43

Screen shots: Topic/Post Reactions(like,love,hate..)

Post by Steve » 28 Dec 2016, 15:17

Installation:
Manage extensions.png
Manage extensions(1).png
Manage extensions(2).png
View Topic:
1 Welcome to phpBB3 yourdomain.com.png
viewtopic.PNG PNG Image 1366 × 624 pixels .png
Play with me yourdomain.com.png
Welcome to phpBB3 yourdomain.com.png
Posting:
Post a new topic.png
ACP forums:
ACP_forums.png
ACP Permissions:
Group permissions.png
ACP Reaction Settings:
Topic Post Reactions.png
ACP Reaction Types:
Reaction Types.png
Reaction Types.png
Add New Topic Post Reaction.png
UCP Topic/Post Reaction Settings:
User Control Panel Topic Post Reactions.png
UCP Topic/Post Reaction notification options:
User Control Panel Edit notification options.png
1
1 Image
You do not have the required permissions to view the files attached to this post.
Find: water
Replace with: beer

User avatar
Steve
Site Admin
Reactions: 43
Posts: 218
Joined: 13 Dec 2016, 09:43

To do: Topic/Post Reactions(like,love,hate..)

Post by Steve » 31 Dec 2016, 19:40

....
Core: thank you Language /buttons
Core: reaction images/emoji images/font awesome icons
Core: template if statements
Core: interface admin/reaction pages

Code: Select all

https://wiki.phpbb.com/Event_List#core.delete_posts_in_transaction
Version check
config reactions_latest_limit
Recent to rec limit
add version in Lang files


Style
array('config.add', array('reaction_image_height', '25')),
array('config.add', array('reaction_image_width', '25')),
Mobile responsive posting buttons
//part of font awesome
Re position reaction select list (*has-profile)


Permissions add
Admins to always see and use reactions

Can disable Topic/Post reactions
Can disable disabling post reactions

...
Can Disable Topic/Post Reactions Extension

Can add Reaction
Can change Reaction
Can delete Reaction

Can Disable Reactions to their Posts
Can Disable Reaction Types to their Posts
Can Disable Reactions to Posts with in their Topics

Can View Reaction Image
Can View post Reactions page
Can View Reactions page


posting

Enable/disable use of reaction types in topic
Enable/disable post reactions
Enable/disable topic reactions


Viewtopic

!forum data enable reactions
Confirm box for deleting reaction
Complete Ajax functions
Remove URL redirect
Move post reactions above signatures and any other post details
remove if statement around reactions count
Post visibility = ITEM_APPROVED


notifications

link to topic not route
//Note - route to post list with full statistics***
Handle deleted posts
Email template
receive an email


Acp

pagination
Ajax ordering
Enable /disable pages
separate module modes
Acp > forums > enable topic/post reactions
reaction type sql cache limit

Acp > user > [username] user reactions
$log events

Ucp

permissions
Enable/disable foes reactions
Enable/disable reaction types
enable/disable post reactions
Enable/disable topic reactions


Ucp > notifications
Enable/disable notifications

Pages

reactions_latest_limit
pagination
Your reactions page
Latest/top reactions list

Reaction count to link to users reactions.
Find: water
Replace with: beer

User avatar
Steve
Site Admin
Reactions: 43
Posts: 218
Joined: 13 Dec 2016, 09:43

Feature requests: Topic/Post Reactions(like,love,hate..)

Post by Steve » 31 Dec 2016, 19:48

...
0
Find: water
Replace with: beer

User avatar
Steve
Site Admin
Reactions: 43
Posts: 218
Joined: 13 Dec 2016, 09:43

Bugs: Topic/Post Reactions(like,love,hate..)

Post by Steve » 12 Jan 2017, 22:00

postreaction-posting-listener.zip
Viewtopic

CSS clash with posting-buttons ul > li > merge

Posting

*Using quick reply avoids users default options

Mode == edit sql_data
* Empty check box for enabling reactions,
Displays in forum with reactions disabled
* Guests can see reaction button and returns no trigger_error

// fix trigger error but leave can see reaction types

view topic
GROUP BY in sql query removes postrow.user.Template if same reaction already used
Disabled forums show empty HTML



pages

Empty img src
Link - title too long on mobile device


notifications
Only one new notification recieved even if another reaction is added to the post
Notifications now aren't deleted also.

//note get_item_id was changed to post_id?
Anonymous sent as username in email
You do not have the required permissions to view the files attached to this post.
Find: water
Replace with: beer

User avatar
Steve
Site Admin
Reactions: 43
Posts: 218
Joined: 13 Dec 2016, 09:43

Pre release: PhpBB3 Topic/Post Reactions (like,love,hate)

Post by Steve » 14 Jan 2017, 20:29

..
0
Find: water
Replace with: beer

User avatar
Car [Bot]
Reactions: 7
Posts: 17
Joined: 14 Dec 2016, 07:02

Re: PhpBB3 Topic/Post Reactions (like,love,hate)

Post by Car [Bot] » 02 Feb 2017, 21:45

Test
1
1 Image
Non - Active account

User avatar
Wolf of Thorns
Donator
Reactions: 4
Posts: 24
Joined: 26 Feb 2017, 22:54

Re: PhpBB3 Topic/Post Reactions (like,love,hate)

Post by Wolf of Thorns » 26 Feb 2017, 23:02

This extension looks amazing. How can I download and apply to my website?
1 Image 1 Image 1 Image

User avatar
Steve
Site Admin
Reactions: 43
Posts: 218
Joined: 13 Dec 2016, 09:43

Re: PhpBB3 Topic/Post Reactions (like,love,hate)

Post by Steve » 27 Feb 2017, 06:43

It should be ready for testing this week, I just need to test on php 5.4.
0
Find: water
Replace with: beer

User avatar
Wolf of Thorns
Donator
Reactions: 4
Posts: 24
Joined: 26 Feb 2017, 22:54

Re: PhpBB3 Topic/Post Reactions (like,love,hate)

Post by Wolf of Thorns » 27 Feb 2017, 12:56

Steve wrote:
27 Feb 2017, 06:43
It should be ready for testing this week, I just need to test on php 5.4.
That sounds great, Steve!

Does this mean that I would be able to test it on my site?

Also, can my wife and I create custom emojis that more graphically align with our site to switch out the ones in the extension?
0