[TH] Reactions [Deleted]

Thanks, I think I just assumed that it would have worked like that but I am realizing that Likes and Reactions aren't quite linked as I thought it would be.
Of course but it makes sense that users should be able to disable notifications for all reactions just like "Likes" as most of us don't like to deal with having to view all those notifications :) I've created an issue on this: https://github.com/Audentio/xf2addon-issues/issues/206
 
While I am asking for things this is less of a concern but can we get the reactions into a "footer" of some sort.

ARovgqo.webp

This is how ours used to look. There was a box on the bottom that they would all sit in. Could that be an option?
 
How do you mean exactly? Like making them anonymous for different users, user groups?

I’d like to make negative Reactions anonymous. At the moment hardly anyone uses dislike / disagree or negative ones as it displays their name against it.

A system (like Reddit) where it’s anononous would be good ideally, by reaction, so Dislike is anonymous but Like isn’t
 
While I am asking for things this is less of a concern but can we get the reactions into a "footer" of some sort.

View attachment 173715

This is how ours used to look. There was a box on the bottom that they would all sit in. Could that be an option?
Surely, I'll add this as a suggestion as I believe by default the reactions are shown above where it has the checkbox and the "Sendar, 4 minutes ago" so another location might be an idea.
I’d like to make negative Reactions anonymous. At the moment hardly anyone uses dislike / disagree or negative ones as it displays their name against it.

A system (like Reddit) where it’s anononous would be good ideally, by reaction, so Dislike is anonymous but Like isn’t
I see, maybe even an option that can be added to all reaction options which allow what you're asking for. I'll make an issue on this :)
 
Surely, I'll add this as a suggestion as I believe by default the reactions are shown above where it has the checkbox and the "Sendar, 4 minutes ago" so another location might be an idea.
Yeah even if it stays where it is now but instead of being little boxes for each reaction it's contained in a long box that reaches from edge to edge on the post.
 
Yeah even if it stays where it is now but instead of being little boxes for each reaction it's contained in a long box that reaches from edge to edge on the post.
Of course, as by default, those little boxes are to separate all of the reactions so that their not all bunched up. But, I'll create an issue on this as it might be something that can be improved in the future.
 
To be honest I find all ThemeHouse products to be like that, you kinda have to know that going in. :p

All add-ons don't come bugs-free even XF software itself however, that does't entitle the developer/s to neglect addressing any issues and fixing them periodically in a short period of time or else why would support fee be charged if there is no support unless deliberately doing so for support renewal fee to be due. Its also a bit of a hassle to sign up here and there in order to get in touch with the developer/s. Seeing the number of TH team here makes one wonder why many bugs are still not fixed! If it was one man job one would understand but it seems like there are busy developing styles and other add-ons for whatever reason while not giving us here a second look.
 
Yeah even if it stays where it is now but instead of being little boxes for each reaction it's contained in a long box that reaches from edge to edge on the post.
Of course, as by default, those little boxes are to separate all of the reactions so that their not all bunched up. But, I'll create an issue on this as it might be something that can be improved in the future.
i like this idea. might be nice to have an option to turn that on and off. our users have said they miss the likes bar.
 
@Jake B.

Code:
InvalidArgumentException: Accessed unknown getter 'sv_rating_type' on XF:UserAlert[772460] src/XF/Mvc/Entity/Entity.php:182
Generated by: Pimpernel Smith Apr 19, 2018 at 1:38 AM
Stack trace
#0 src/XF/Mvc/Entity/Entity.php(100): XF\Mvc\Entity\Entity->get('sv_rating_type')
#1 internal_data/code_cache/templates/l1/s1/public/alert_post_rating.php(8): XF\Mvc\Entity\Entity->offsetGet('sv_rating_type')
#2 src/XF/Template/Templater.php(1248): XF\Template\Templater->{closure}(Object(ThemeHouse\Reactions\XF\Template\Templater), Array)
#3 src/XF/Alert/AbstractHandler.php(67): XF\Template\Templater->renderTemplate('alert_post_rati...', Array)
#4 src/XF/Entity/UserAlert.php(67): XF\Alert\AbstractHandler->render(Object(XF\Entity\UserAlert))
#5 [internal function]: XF\Entity\UserAlert->render()
#6 src/XF/Template/Templater.php(938): call_user_func_array(Array, Array)
#7 internal_data/code_cache/templates/l1/s1/public/alert_macros.php(18): XF\Template\Templater->method(Object(XF\Entity\UserAlert), 'render', Array)
#8 src/XF/Template/Templater.php(661): XF\Template\Templater->{closure}(Object(ThemeHouse\Reactions\XF\Template\Templater), Array, Array)
#9 internal_data/code_cache/templates/l1/s1/public/account_alerts_popup.php(21): XF\Template\Templater->callMacro('alert_macros', 'row', Array, Array)
#10 src/XF/Template/Templater.php(1248): XF\Template\Templater->{closure}(Object(ThemeHouse\Reactions\XF\Template\Templater), Array)
#11 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('account_alerts_...', Array)
#12 src/XF/Mvc/Renderer/Json.php(81): XF\Template\Template->render()
#13 src/XF/Mvc/Renderer/Json.php(65): XF\Mvc\Renderer\Json->renderHtmlFallback('XF:Account\\Aler...', 'public:account_...', Array)
#14 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Json->renderView('XF:Account\\Aler...', 'public:account_...', Array)
#15 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#16 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#17 src/XF/App.php(1891): XF\Mvc\Dispatcher->run()
#18 src/XF.php(328): XF\App->run()
#19 index.php(13): XF::runApp('XF\\Pub\\App')
#20 {main}
Request state
array(4) {
  ["url"] => string(200) "/account/alerts-popup?_xfRequestUri=%2Fthreads%2Fthe-touch-the-tissue-thread-tm.2064%2Fpage-26&_xfWithData=1&_xfToken=1524116274%2Cc7fad0f7d1476386fda726c71f915b63&_xfResponseType=json&_=1524116731049"
  ["referrer"] => string(78) "http://www.dressedwell.net/threads/the-touch-the-tissue-thread-tm.2064/page-26"
  ["_GET"] => array(5) {
    ["_xfRequestUri"] => string(52) "/threads/the-touch-the-tissue-thread-tm.2064/page-26"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(43) "1524116274,c7fad0f7d1476386fda726c71f915b63"
    ["_xfResponseType"] => string(4) "json"
    ["_"] => string(13) "1524116731049"
  }
  ["_POST"] => array(0) {
  }
}

Code:
InvalidArgumentException: Accessed unknown getter 'sv_rating_type' on XF:NewsFeed[432401] src/XF/Mvc/Entity/Entity.php:182
Generated by: Unknown account Apr 19, 2018 at 2:01 AM
Stack trace
#0 src/XF/Mvc/Entity/Entity.php(100): XF\Mvc\Entity\Entity->get('sv_rating_type')
#1 internal_data/code_cache/templates/l1/s1/public/news_feed_item_post_rating.php(8): XF\Mvc\Entity\Entity->offsetGet('sv_rating_type')
#2 src/XF/Template/Templater.php(1248): XF\Template\Templater->{closure}(Object(ThemeHouse\Reactions\XF\Template\Templater), Array)
#3 src/XF/NewsFeed/AbstractHandler.php(67): XF\Template\Templater->renderTemplate('news_feed_item_...', Array)
#4 src/XF/Entity/NewsFeed.php(64): XF\NewsFeed\AbstractHandler->render(Object(XF\Entity\NewsFeed))
#5 [internal function]: XF\Entity\NewsFeed->render()
#6 src/XF/Template/Templater.php(938): call_user_func_array(Array, Array)
#7 internal_data/code_cache/templates/l1/s1/public/news_feed_macros.php(34): XF\Template\Templater->method(Object(XF\Entity\NewsFeed), 'render', Array)
#8 src/XF/Template/Templater.php(661): XF\Template\Templater->{closure}(Object(ThemeHouse\Reactions\XF\Template\Templater), Array, Array)
#9 internal_data/code_cache/templates/l1/s1/public/news_feed_macros.php(14): XF\Template\Templater->callMacro('news_feed_macro...', 'feed_item', Array, Array)
#10 src/XF/Template/Templater.php(661): XF\Template\Templater->{closure}(Object(ThemeHouse\Reactions\XF\Template\Templater), Array, Array)
#11 internal_data/code_cache/templates/l1/s1/public/member_latest_activity.php(34): XF\Template\Templater->callMacro('news_feed_macro...', 'feed_row', Array, Array)
#12 src/XF/Template/Templater.php(1248): XF\Template\Templater->{closure}(Object(ThemeHouse\Reactions\XF\Template\Templater), Array)
#13 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('member_latest_a...', Array)
#14 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#15 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Html->renderView('XF:Member\\Lates...', 'public:member_l...', Array)
#16 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#17 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#18 src/XF/App.php(1891): XF\Mvc\Dispatcher->run()
#19 src/XF.php(328): XF\App->run()
#20 index.php(13): XF::runApp('XF\\Pub\\App')
#21 {main}
Request state
array(4) {
  ["url"] => string(38) "/members/robertito.401/latest-activity"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Last edited:
new errors

Code:
ErrorException: Template error: number_format() expects parameter 1 to be float, string given src/XF/Language.php:804
Generated by: Rambo Apr 19, 2018 at 2:22 AM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(2, 'number_format()...', '/home/dressedw/...', 804, Array)
#1 src/XF/Language.php(804): number_format('NAN%', 0, '.', ',')
#2 src/XF/Template/Templater.php(3590): XF\Language->numberFormat('NAN%', 0)
#3 [internal function]: XF\Template\Templater->filterNumber(Object(ThemeHouse\Reactions\XF\Template\Templater), 'NAN%', true)
#4 src/XF/Template/Templater.php(847): call_user_func_array(Array, Array)
#5 internal_data/code_cache/templates/l1/s95/public/th_display_reactions.php(162): XF\Template\Templater->filter('NAN%', Array, true)
#6 src/XF/Template/Templater.php(661): XF\Template\Templater->{closure}(Object(ThemeHouse\Reactions\XF\Template\Templater), Array, Array)
#7 internal_data/code_cache/templates/l1/s95/public/th_display_reactions.php(132): XF\Template\Templater->callMacro('th_display_reac...', 'react_total_per...', Array, Array)
#8 src/XF/Template/Templater.php(661): XF\Template\Templater->{closure}(Object(ThemeHouse\Reactions\XF\Template\Templater), Array, Array)
#9 internal_data/code_cache/templates/l1/s95/public/message_macros.php(382): XF\Template\Templater->callMacro('th_display_reac...', 'react_postbit', Array, Array)
#10 src/XF/Template/Templater.php(661): XF\Template\Templater->{closure}(Object(ThemeHouse\Reactions\XF\Template\Templater), Array, Array)
#11 internal_data/code_cache/templates/l1/s95/public/post_macros.php(38): XF\Template\Templater->callMacro('message_macros', 'user_info', Array, Array)
#12 src/XF/Template/Templater.php(661): XF\Template\Templater->{closure}(Object(ThemeHouse\Reactions\XF\Template\Templater), Array, Array)
#13 internal_data/code_cache/templates/l1/s95/public/thread_view.php(554): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#14 src/XF/Template/Templater.php(1248): XF\Template\Templater->{closure}(Object(ThemeHouse\Reactions\XF\Template\Templater), Array)
#15 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#16 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#17 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#18 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#19 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#20 src/XF/App.php(1891): XF\Mvc\Dispatcher->run()
#21 src/XF.php(328): XF\App->run()
#22 index.php(13): XF::runApp('XF\\Pub\\App')
#23 {main}
Request state
array(4) {
  ["url"] => string(54) "/threads/zen-and-the-art-of-forum-maintenance-v2.2575/"
  ["referrer"] => string(57) "http://www.dressedwell.net/forums/dressedwell-central.16/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

Code:
ErrorException: Template error: Division by zero internal_data/code_cache/templates/l1/s95/public/th_display_reactions.php:160
Generated by: Rambo Apr 19, 2018 at 2:22 AM
Stack trace
#0 internal_data/code_cache/templates/l1/s95/public/th_display_reactions.php(160): XF\Template\Templater->handleTemplateError(2, 'Division by zer...', '/home/dressedw/...', 160, Array)
#1 src/XF/Template/Templater.php(661): XF\Template\Templater->{closure}(Object(ThemeHouse\Reactions\XF\Template\Templater), Array, Array)
#2 internal_data/code_cache/templates/l1/s95/public/th_display_reactions.php(132): XF\Template\Templater->callMacro('th_display_reac...', 'react_total_per...', Array, Array)
#3 src/XF/Template/Templater.php(661): XF\Template\Templater->{closure}(Object(ThemeHouse\Reactions\XF\Template\Templater), Array, Array)
#4 internal_data/code_cache/templates/l1/s95/public/message_macros.php(382): XF\Template\Templater->callMacro('th_display_reac...', 'react_postbit', Array, Array)
#5 src/XF/Template/Templater.php(661): XF\Template\Templater->{closure}(Object(ThemeHouse\Reactions\XF\Template\Templater), Array, Array)
#6 internal_data/code_cache/templates/l1/s95/public/post_macros.php(38): XF\Template\Templater->callMacro('message_macros', 'user_info', Array, Array)
#7 src/XF/Template/Templater.php(661): XF\Template\Templater->{closure}(Object(ThemeHouse\Reactions\XF\Template\Templater), Array, Array)
#8 internal_data/code_cache/templates/l1/s95/public/thread_view.php(554): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#9 src/XF/Template/Templater.php(1248): XF\Template\Templater->{closure}(Object(ThemeHouse\Reactions\XF\Template\Templater), Array)
#10 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#11 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#12 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#13 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#14 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#15 src/XF/App.php(1891): XF\Mvc\Dispatcher->run()
#16 src/XF.php(328): XF\App->run()
#17 index.php(13): XF::runApp('XF\\Pub\\App')
#18 {main}
Request state
array(4) {
  ["url"] => string(54) "/threads/zen-and-the-art-of-forum-maintenance-v2.2575/"
  ["referrer"] => string(57) "http://www.dressedwell.net/forums/dressedwell-central.16/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
 
None of those errors appear to be coming from reactions, They look to be coming from one of Xon’s add-ons
 
@Jake B. Still getting this Server error log. Today happened one more.

Code:
XF\Db\DuplicateKeyException: MySQL query error [1062]: Duplicate entry 'post-2917-298' for key 'content_type_id_like_user_id' src/XF/Db/AbstractStatement.php:212

Generated by: Black Knight Apr 19, 2018 at 9:18 PM

Stack trace

INSERT  INTO `xf_liked_content` (`content_type`, `content_id`, `like_user_id`, `content_user_id`, `is_counted`, `like_id`, `like_date`) VALUES (?, ?, ?, ?, ?, ?, ?)
------------

#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL query err...', 1062, '23000')
#1 src/XF/Db/Mysqli/Statement.php(77): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1062, '23000')
#2 src/XF/Db/AbstractAdapter.php(79): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(160): XF\Db\AbstractAdapter->query('INSERT  INTO `x...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1389): XF\Db\AbstractAdapter->insert('xf_liked_conten...', Array, false)
#5 src/XF/Mvc/Entity/Entity.php(1121): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/XF/Repository/LikedContent.php(94): XF\Mvc\Entity\Entity->save()
#7 src/addons/ThemeHouse/Reactions/Entity/ReactedContent.php(143): XF\Repository\LikedContent->insertLike('post', 2917, Object(Datio\AllowedEmails\XF\Entity\User), false)
#8 src/addons/ThemeHouse/Reactions/Entity/ReactedContent.php(93): ThemeHouse\Reactions\Entity\ReactedContent->toggleLike()
#9 src/XF/Mvc/Entity/Entity.php(1145): ThemeHouse\Reactions\Entity\ReactedContent->_postSave()
#10 src/addons/ThemeHouse/Reactions/Repository/ReactedContent.php(101): XF\Mvc\Entity\Entity->save()
#11 src/addons/ThemeHouse/Reactions/ControllerPlugin/React.php(29): ThemeHouse\Reactions\Repository\ReactedContent->insertReact(Object(haydric\toRights\XF\Entity\Post), Object(ThemeHouse\Reactions\Entity\ReactedContent))
#12 src/addons/ThemeHouse/Reactions/Pub/Controller/React.php(27): ThemeHouse\Reactions\ControllerPlugin\React->actionToggleReact(Object(haydric\toRights\XF\Entity\Post), Object(ThemeHouse\Reactions\Entity\ReactedContent), 'insert')
#13 src/XF/Mvc/Dispatcher.php(249): ThemeHouse\Reactions\Pub\Controller\React->actionReact(Object(XF\Mvc\ParameterBag))
#14 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('ThemeHouse\\Reac...', 'React', 'json', Object(XF\Mvc\ParameterBag), 'reactions', Object(ThemeHouse\Reactions\Pub\Controller\React), NULL)
#15 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#16 src/XF/App.php(1891): XF\Mvc\Dispatcher->run()
#17 src/XF.php(328): XF\App->run()
#18 index.php(13): XF::runApp('XF\\Pub\\App')
#19 {main}

Request state

array(4) {
  ["url"] => string(28) "/reactions/react/post/2917/2"
  ["referrer"] => string(35) "/threads/227/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(4) {
    ["_xfRequestUri"] => string(13) "/threads/227/"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
None of those errors appear to be coming from reactions, They look to be coming from one of Xon’s add-ons
huh. all the templates are listed as themehouse reactions. i wonder if this is a function of having both of your reaction addons installed at the same time. his is turned off at the moment, obviously.
 
Maybe it's a feature request but can we get the "Likes" postbit to instead be all + reactions received?
 
huh. all the templates are listed as themehouse reactions. i wonder if this is a function of having both of your reaction addons installed at the same time. his is turned off at the moment, obviously.


InvalidArgumentException: Accessed unknown getter 'sv_rating_type' on XF:UserAlert[772460] src/XF/Mvc/Entity/Entity.php:182
and
InvalidArgumentException: Accessed unknown getter 'sv_rating_type' on XF:NewsFeed[432401] src/XF/Mvc/Entity/Entity.php:182

look like they're coming from Xon's add-on, didn't see your second post -- will have a look at these :)

Maybe it's a feature request but can we get the "Likes" postbit to instead be all + reactions received?

Can you elaborate on exactly what you mean?
 
Can you elaborate on exactly what you mean?

Here is the postbit for a sample user that I chose.

postbit.webp

He has 405 likes which are inherent to XF and positive in nature.

reactions.webp

These are all the reactions that he has received. The laughing worf and upraised fist are both positive reactions but are not included in the likes count because they can't be tied into that wrapper if I am understanding it correctly.

We would like it so that when all is said and done he will have 552 "Likes" in his avatar postbit. This is the combination of the three positive reactions.
 
For this you'll want to disable the likes from displaying in the postbit and only show the reaction count. You can change this from a bar to text. I think we'll also be adding a separate option for each reaction type to display separately as well so you can do a line for "Positive reactions"
 
Top Bottom