[TH] Reactions [Deleted]

Frode789

Well-known member
I just installed this. It removed the default likes. How can I get those converted to reaction like? I disabled the addon for now until I figure it out.
 

Jake B.

Well-known member
Yep, in your admin panel under Reactions -> Reaction tools you can click "Rebuild now" under "Convert likes to reactions"
 

Frode789

Well-known member
Can you please add Xenporta 2 support? If you use the custom article layout, you can only use the default likes. This would be great, as I use the article format for all my news posts.
 

STNN

Active member
Hi there, @Mike Creuzer.

I'm currently working with this add-on and experiencing some incompatibilities between Reactions (have updated to latest version) and @Xon's User Mentions Improvements 2.3.0. The server reports quite a few errors, in the form of the below:





Here's a transcript of the main, Stack trace and Request errors:

Code:
InvalidArgumentException: Accessed unknown getter 'is_' on XF:User[13574] src/XF/Mvc/Entity/Entity.php:182
Generated by: Geordan9 Apr 24, 2018 at 12:50 AM

Code:
Stack trace
#0 src/XF/Mvc/Entity/Entity.php(100): XF\Mvc\Entity\Entity->get('is_')
#1 internal_data/code_cache/templates/l1/s5/public/PAGE_CONTAINER.php(483): XF\Mvc\Entity\Entity->offsetGet('is_')
#2 src/XF/Template/Templater.php(1248): XF\Template\Templater->{closure}(Object(ThemeHouse\Reactions\XF\Template\Templater), Array)
#3 src/XF/Pub/App.php(449): XF\Template\Templater->renderTemplate('public:PAGE_CON...', Array)
#4 src/XF/App.php(1726): XF\Pub\App->renderPageHtml('\n\n\n\n\n\n\n\n\n\t\n\t\n\t\n...', Array, Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#5 src/XF/Mvc/Dispatcher.php(310): XF\App->renderPage('\n\n\n\n\n\n\n\n\n\t\n\t\n\t\n...', Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#6 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#7 src/XF/App.php(1891): XF\Mvc\Dispatcher->run()
#8 src/XF.php(328): XF\App->run()
#9 index.php(13): XF::runApp('XF\\Pub\\App')
#10 {main}

Code:
Request state
array(4) {
  ["url"] => string(44) "/threads/dragon-ball-xenoverse-2.196/page-19"
  ["referrer"] => string(74) "https://fearlessrevolution.com/threads/dragon-ball-xenoverse-2.196/page-19"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

At this point I don't know if this is a bug or something I can fix on my own, hence the reason I posted this here. Have advised Xon as well in this post: https://xenforo.com/community/threads/user-mentions-improvements-by-xon.143063/page-2#post-1245008.

Awaiting your feedback.

BR,
STN
 
Last edited:

Rambro

Well-known member
is there a way for the users to see who chose the reaction a post was given similar to how you could see who liked your post?
 

Nirjonadda

Well-known member
Could you check with some of the users that have triggered this error to see what browser (including version) and OS they're using so we can try to replicate it?

User using google chrome latest version with windows 10 64 bit. User some time using VPN or proxy server. Today happened two Server error logs from this user. Hover will open the popout menu then user do click like button and he get "Oops! We ran into some problems." message in the top of the page but like are count after the message gone.

I think Enable Hover for Triggers are will be hit 2 time the like button, one heppen in popup and one happen in user click?

Also, what reaction display style are you using, and is "Like" your default reaction?

How many reaction display style have for this add-on? Do you asking Animation Type? Animation Type is slide up. Yes "Like" are default reaction.


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

Generated by: ছোটভাই Apr 24, 2018 at 5:04 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', 86966, 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(29) "/reactions/react/post/86966/2"
  ["referrer"] => string(40) "/threads/44/page-9"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(4) {
    ["_xfRequestUri"] => string(18) "/threads/44/page-9"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
  }
}

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

Generated by: ছোটভাই Apr 24, 2018 at 5:05 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', 86692, 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(29) "/reactions/react/post/86692/2"
  ["referrer"] => string(40) "/threads/44/page-8"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(4) {
    ["_xfRequestUri"] => string(18) "/threads/44/page-8"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
  }
}
 

Dalton Prock

Well-known member
is there a way for the users to see who chose the reaction a post was given similar to how you could see who liked your post?
Yes, just navigate to said post then click on the "Show All" next to the used reactions. It should then show who reacted with what.
 

Frode789

Well-known member
I would pay for a Reaction extension addon. (with lots of new reactions). Twitch/Discord emojii pack.. :)
 

nap

Member
Hello, my safari users still cant react otherwise then with the thumbs up... (after the 1.0.11 level 1 patch) Is there a fix for these users?
 

kylerc

Well-known member
Hello, my safari users still cant react otherwise then with the thumbs up... (after the 1.0.11 level 1 patch) Is there a fix for these users?

Would you be able to make a ticket on themehouse.com with a username and password for me to try this on your site? I can't read Dutch to get past your registration verification sadly lol. Will take a look at this though once we have access :).
 

Brad Padgett

Well-known member
I have a question. If I disable negative and neutral reactions will it still show in the post bit when I set it to show counts?

Also @Jake B. is there still a plan to make the notable members reaction counts? To be honest I can let that go since it will still show the default like handler and still install it. However I'm still wondering how I can get the reaction to show positive only in counts. Is that possible as of now?
 

Brad Padgett

Well-known member
I recall you all saying that it was possible to disable negative and neutral reactions if I changed the current reactions from using them. Do I have to delete the reaction to do this? I'm testing it out on localhost. I just switched all the reactions to positive instead and then disabled them. This seems more reasonable instead of deleting the reaction completely. Am I required to actually delete them in order to only use positive reactions and delete the other reaction types? It doesn't work with the way I tried. Doesn't seem very reasonable to have to delete the entire reaction. Please let me know how I can go about doing this.

I really want to add it to my site. Thanks.
 

Brad Padgett

Well-known member
Can someone answer my question? I can't install it to my site until someone helps me. @Mike Creuzer @Jake B. @kylerc @Ian Hitt

Not trying to be impatient, just eager to install it on my site and it seems I could not get rid of negative and neutral reaction when changing the reactions all to positive. I need to know if I have to actually delete the reactions that have that type in order to get rid of the reaction type so it will only show positive counts on the post bit. Thanks
 

Jake B.

Well-known member
We really aren't able to guarantee a response to forum posts within a few hours, especially outside of our business hours.

That said, I'm not really sure what you're referring to exactly. I don't believe we ever recommended deleting reactions, only the "Negative" and "Neutral" reaction types -- which as it turns out the interface won't actually allow you to delete default reaction types. We plan on changing this in a future update, but for now you can delete the neutral and negative reaction types directly through the database.
 

Brad Padgett

Well-known member
We really aren't able to guarantee a response to forum posts within a few hours, especially outside of our business hours.

That said, I'm not really sure what you're referring to exactly. I don't believe we ever recommended deleting reactions, only the "Negative" and "Neutral" reaction types -- which as it turns out the interface won't actually allow you to delete default reaction types. We plan on changing this in a future update, but for now you can delete the neutral and negative reaction types directly through the database.

Yes I guess I'm going to have to wait then. It's unfortunate there's no option to disable negative and neutral reactions. If there was merely a way I could disable the counters for it in the post bit without deleting database information I'd be satisfied. Don't think deleting a database table/data would be ideal for me. It actually really disappoints me. I guarantee pushing the update with this as soon as possible would get your more customers. I can't speak for anyone else but I can guarantee there are lots of other people who don't want negative reaction possibilities on their site. I was super happy about the new counts on the profile too that I really wanted to re-install.

I hope you push this update ASAP. Anyways I didn't know forum responses coincide with business hours so I apologize.

Regards,

Brad
 

Xiomera

Member
I have compatibility issues with xenforos media galleria if this addon and your trending addon is enabled. This error message occurs when I try to post a picture there with reactions enabled (reactions version: 1.0.11 Patch Level 1).
Code:
XF\Db\Exception: MySQL statement prepare error [1054]: Unknown column 'react_users' in 'field list' in src/XF/Db/AbstractStatement.php at line 212

    XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 196
    XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 39
    XF\Db\Mysqli\Statement->prepare() in src/XF/Db/Mysqli/Statement.php at line 54
    XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 79
    XF\Db\AbstractAdapter->query() in src/XF/Db/AbstractAdapter.php at line 160
    XF\Db\AbstractAdapter->insert() in src/XF/Mvc/Entity/Entity.php at line 1389
    XF\Mvc\Entity\Entity->_saveToSource() in src/XF/Mvc/Entity/Entity.php at line 1121
    XF\Mvc\Entity\Entity->save() in src/addons/XFMG/Service/Media/Creator.php at line 233
    XFMG\Service\Media\Creator->_save() in src/XF/Service/ValidateAndSavableTrait.php at line 40
    XFMG\Service\Media\Creator->save() in src/addons/XFMG/Pub/Controller/Media.php at line 739
    XFMG\Pub\Controller\Media->actionSaveMedia() in src/XF/Mvc/Dispatcher.php at line 249
    XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 88
    XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
    XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1891
    XF\App->run() in src/XF.php at line 328
    XF::runApp() in index.php at line 13
Furthermore I have a similar problem iwth your trending addon. This error message occurs when I try to post a picture with trending enabled (trending version: 1.0.0a).
Code:
XF\Db\Exception: MySQL statement prepare error [1054]: Unknown column 'thtrending_positive_rating_count' in 'field list' in src/XF/Db/AbstractStatement.php at line 212

    XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 196
    XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 39
    XF\Db\Mysqli\Statement->prepare() in src/XF/Db/Mysqli/Statement.php at line 54
    XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 79
    XF\Db\AbstractAdapter->query() in src/XF/Db/AbstractAdapter.php at line 160
    XF\Db\AbstractAdapter->insert() in src/XF/Mvc/Entity/Entity.php at line 1389
    XF\Mvc\Entity\Entity->_saveToSource() in src/XF/Mvc/Entity/Entity.php at line 1121
    XF\Mvc\Entity\Entity->save() in src/addons/XFMG/Service/Media/Creator.php at line 233
    XFMG\Service\Media\Creator->_save() in src/XF/Service/ValidateAndSavableTrait.php at line 40
    XFMG\Service\Media\Creator->save() in src/addons/XFMG/Pub/Controller/Media.php at line 739
    XFMG\Pub\Controller\Media->actionSaveMedia() in src/XF/Mvc/Dispatcher.php at line 249
    XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 88
    XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
    XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1891
    XF\App->run() in src/XF.php at line 328
    XF::runApp() in index.php at line 13
Ps: I am also using
[TH] Donate 1.0.2 Patch Level 2
[TH] Nodes 1.0.2 Patch Level 1
[TH] UI.X 2.0.5 Patch Level 2
without issues.
Xenforo2
v2.0.4

Got any ideas, fixes in mind for this 2 problems. Would be awesome, cuz I really want to enable this 2 addons for my forum.

Thank you in advance

-Xiomera
 

jOOc

Active member
Nothing happens when I change something under options, like the size and position.
I'm using UI.X2 as a theme. Do I need to rebuild something?
 
Top