[UW] Forum Comments System [Deleted]

A bug that is somewhat hard to replicate...

Even though I set "Comments Limit per post" to 1, new thread I haven't visited since still display all the comments on 1st visit.
A page reload will fix it and just display 1 last comment.

Feature Request: Limit/max comments (I just want to limit each to comment to 40).
 
A bug that is somewhat hard to replicate...

Even though I set "Comments Limit per post" to 1, new thread I haven't visited since still display all the comments on 1st visit.
A page reload will fix it and just display 1 last comment.
Actually it's not a bug. Unread comments are always displayed all on a 1st visit. Works as designed.
 
  • Like
Reactions: rdn
Actually it's not a bug. Unread comments are always displayed all on a 1st visit. Works as designed.
Can we have an option to force collapse it please?
This is problematic with my mobile users specially low end phones.

Thanks.

Edit: Maybe we can have a new option for "Comments Limit per post for unread comments".
 
Last edited:
  • Like
Reactions: arn
Bug?

1590777116964.png
How can we temporarily fix this issue?
Thanks.
 
I got the following error:

1591233165787.png

Code:
Error: Call to undefined method UW\FCS\Extend\Job\User::db() src/addons/UW/FCS/Extend/Job/User.php:23
Generated by: admin Jun 4, 2020 at 2:09 AM
Stack trace
#0 src/XF/Job/AbstractRebuildJob.php(47): UW\FCS\Extend\Job\User->rebuildById(1)
#1 src/XF/Job/Manager.php(253): XF\Job\AbstractRebuildJob->run(G)
#2 src/XF/Job/Manager.php(195): XF\Job\Manager->runJobInternal(Array, G)
#3 src/XF/Job/Manager.php(79): XF\Job\Manager->runJobEntry(Array, G)
#4 src/XF/Admin/Controller/Tools.php(139): XF\Job\Manager->runQueue(true, 8)
#5 src/XF/Mvc/Dispatcher.php(350): XF\Admin\Controller\Tools->actionRunJob(Object(XF\Mvc\ParameterBag))
#6 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', Object(XF\Mvc\RouteMatch), Object(Truonglv\Watermark\XF\Admin\Controller\Tools), NULL)
#7 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(Truonglv\Watermark\XF\Admin\Controller\Tools), NULL)
#8 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#9 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
#10 src/XF.php(391): XF\App->run()
#11 admin.php(13): XF::runApp('XF\\Admin\\App')
#12 {main}
Request state
array(4) {
  ["url"] => string(27) "/forums/admin.php?tools/run-job"
 ["referrer"] => string(49) "https://www.mydomain.com/forums/admin.php?tools/run-job"

  ["_GET"] => array(1) {
    ["tools/run-job"] => string(0) ""
  }
  ["_POST"] => array(3) {
    ["_xfRedirect"] => string(13) "/forums/admin.php"
    ["_xfToken"] => string(8) "********"
    ["only_ids"] => string(0) ""
  }
}

The add-on can be used though.
 
Hey there,

Just bought and excited to try this out. However I think there is an incompatibility with a pre-existing add-on that I have on the forum. The plugin causes the button inside the text editor to repeat endlessly over, breaking out of the screen.

View attachment 226137

The add-on in question is: https://xenforo.com/community/resou...s-on-your-forum-using-add-pics-for-free.7698/

I'm not sure if it's this add-on that's causing the issue specifically or the fact that there was a custom button in the text editor.
The "Images" button shouldn't be repeating any longer, from the latest version.
 
So I got the chance last night to test out this add-on and my users are loving it! They think it's a really great approach on conversations / topics and the layout feels intuitive and functional.

The only feedback they had for me was about the notifications. The way my forum operates is that we have a "main thread" where most of the discussion happens, essentially like a group chat. They are getting notifications every time someone comments on a post in the thread, and thus getting inundated with notifications that are not relevant to them.

I noticed that there was only one option in the preferences for the notifications:

View attachment 226181

I was wondering if it would be possible to have a more granular control on what kind of notifications to receive from the comments? My users said that they would like to receive only notifications from comments on THEIR post, and not anyone else's. Is this doable?

Is it possible to do not alert the user if the comment isn't made on their post replies?

🔹New features from the latest version regarding comments notifications and also a phrase updated; Receive a notification when someone…
  • Comments on others' posts in a watched thread
  • Comments on your posts in a watched thread

1591298495486.png

I got the following error:

View attachment 226880

Code:
Error: Call to undefined method UW\FCS\Extend\Job\User::db() src/addons/UW/FCS/Extend/Job/User.php:23
Generated by: admin Jun 4, 2020 at 2:09 AM
Stack trace
#0 src/XF/Job/AbstractRebuildJob.php(47): UW\FCS\Extend\Job\User->rebuildById(1)
#1 src/XF/Job/Manager.php(253): XF\Job\AbstractRebuildJob->run(G)
#2 src/XF/Job/Manager.php(195): XF\Job\Manager->runJobInternal(Array, G)
#3 src/XF/Job/Manager.php(79): XF\Job\Manager->runJobEntry(Array, G)
#4 src/XF/Admin/Controller/Tools.php(139): XF\Job\Manager->runQueue(true, 8)
#5 src/XF/Mvc/Dispatcher.php(350): XF\Admin\Controller\Tools->actionRunJob(Object(XF\Mvc\ParameterBag))
#6 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', Object(XF\Mvc\RouteMatch), Object(Truonglv\Watermark\XF\Admin\Controller\Tools), NULL)
#7 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(Truonglv\Watermark\XF\Admin\Controller\Tools), NULL)
#8 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#9 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
#10 src/XF.php(391): XF\App->run()
#11 admin.php(13): XF::runApp('XF\\Admin\\App')
#12 {main}
Request state
array(4) {
  ["url"] => string(27) "/forums/admin.php?tools/run-job"
["referrer"] => string(49) "https://www.mydomain.com/forums/admin.php?tools/run-job"

  ["_GET"] => array(1) {
    ["tools/run-job"] => string(0) ""
  }
  ["_POST"] => array(3) {
    ["_xfRedirect"] => string(13) "/forums/admin.php"
    ["_xfToken"] => string(8) "********"
    ["only_ids"] => string(0) ""
  }
}

The add-on can be used though.

Was fixed in the latest version.
 
Last edited:
xffutureuser updated [UW] Forum Comments System with a new update entry:

UW-FCS Version 1.8.11

🔸
Use case:

Forum allows guest / unregistered posts, however to appear they require moderator approval.

When I try to move a post which has comments by guests to a new thread I get an error "Attempted to convert NULL to string/binary [username] ".
So this is fixed.

🔸Error when
use any reaction with a negative value. Not custom -1, but set to "negative" in the reaction panel.
So this is fixed.

Read the rest of this update entry...
 
  • Like
Reactions: rdn
Is this add-on based on posts with a lot of changes in life of XF like the one from Themehouse?
Or based on posts with less changes?
Or based on new tables, please?
 
Is this add-on based on posts with a lot of changes in life of XF like the one from Themehouse?
Or based on posts with less changes?
Or based on new tables, please?
This add-on was based on xF2 profile comments and functionalities as vB5 comments now with much more features than xF2 profile comments and vB5 comments combined.
 
Thank you, but i really want to know which tables you are using.
So i guess you have won tables and do a join?
 
Cannot use Spam cleaner, with just an error.

Code:
Server error log
XF\Db\Exception: MySQL query error [1264]: Out of range value for column 'message_count' at row 1 src/XF/Db/AbstractStatement.php:228
Generated by: Admin Jun 6, 2020 at 9:04 PM
Stack trace
UPDATE  `xf_user` SET `message_count` = ? WHERE `user_id` = 1718366
------------

#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException()
#1 src/XF/Db/Mysqli/Statement.php(77): XF\Db\Mysqli\Statement->getException()
#2 src/XF/Db/AbstractAdapter.php(94): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(322): XF\Db\AbstractAdapter->query()
#4 src/XF/Mvc/Entity/Entity.php(1299): XF\Db\AbstractAdapter->update()
#5 src/addons/UW/FCS/Entity/Comment.php(241): XF\Mvc\Entity\Entity->fastUpdate()
#6 src/XF/Mvc/Entity/Entity.php(1595): UW\FCS\Entity\Comment->_postDelete()
#7 src/addons/UW/FCS/Extend/Spam/Cleaner/Post.php(41): XF\Mvc\Entity\Entity->delete()
#8 src/XF/Spam/Cleaner.php(120): UW\FCS\Extend\Spam\Cleaner\Post->cleanUp()
#9 src/XF/Spam/Cleaner.php(105): XF\Spam\Cleaner->cleanUpContent()
#10 src/XF/Pub/Controller/SpamCleaner.php(47): XF\Spam\Cleaner->cleanUp()
#11 src/XF/Mvc/Dispatcher.php(350): XF\Pub\Controller\SpamCleaner->actionIndex()
#12 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass()
#13 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch()
#14 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop()
#15 src/XF/App.php(2190): XF\Mvc\Dispatcher->run()
#16 src/XF.php(391): XF\App->run()
#17 index.php(20): XF::runApp()
#18 {main}
Request state
array(4) {
  ["url"] => string(34) "/spam-cleaner/userrrr.1718366/"
  ["referrer"] => string(49) "https://domain.co/members/userrrr.1718366/"
  ["_GET"] => array(1) {
    ["/spam-cleaner/userrrr_1718366/"] => string(0) ""
  }
  ["_POST"] => array(10) {
    ["action_threads"] => string(1) "1"
    ["delete_messages"] => string(1) "1"
    ["delete_conversations"] => string(1) "1"
    ["ban_user"] => string(1) "1"
    ["check_ips"] => string(1) "1"
    ["no_redirect"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(29) "/members/userrrr.1718366/"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
Cannot use Spam cleaner, with just an error.

Code:
Server error log
XF\Db\Exception: MySQL query error [1264]: Out of range value for column 'message_count' at row 1 src/XF/Db/AbstractStatement.php:228
Generated by: Admin Jun 6, 2020 at 9:04 PM
Stack trace
UPDATE  `xf_user` SET `message_count` = ? WHERE `user_id` = 1718366
------------

#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException()
#1 src/XF/Db/Mysqli/Statement.php(77): XF\Db\Mysqli\Statement->getException()
#2 src/XF/Db/AbstractAdapter.php(94): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(322): XF\Db\AbstractAdapter->query()
#4 src/XF/Mvc/Entity/Entity.php(1299): XF\Db\AbstractAdapter->update()
#5 src/addons/UW/FCS/Entity/Comment.php(241): XF\Mvc\Entity\Entity->fastUpdate()
#6 src/XF/Mvc/Entity/Entity.php(1595): UW\FCS\Entity\Comment->_postDelete()
#7 src/addons/UW/FCS/Extend/Spam/Cleaner/Post.php(41): XF\Mvc\Entity\Entity->delete()
#8 src/XF/Spam/Cleaner.php(120): UW\FCS\Extend\Spam\Cleaner\Post->cleanUp()
#9 src/XF/Spam/Cleaner.php(105): XF\Spam\Cleaner->cleanUpContent()
#10 src/XF/Pub/Controller/SpamCleaner.php(47): XF\Spam\Cleaner->cleanUp()
#11 src/XF/Mvc/Dispatcher.php(350): XF\Pub\Controller\SpamCleaner->actionIndex()
#12 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass()
#13 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch()
#14 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop()
#15 src/XF/App.php(2190): XF\Mvc\Dispatcher->run()
#16 src/XF.php(391): XF\App->run()
#17 index.php(20): XF::runApp()
#18 {main}
Request state
array(4) {
  ["url"] => string(34) "/spam-cleaner/userrrr.1718366/"
  ["referrer"] => string(49) "https://domain.co/members/userrrr.1718366/"
  ["_GET"] => array(1) {
    ["/spam-cleaner/userrrr_1718366/"] => string(0) ""
  }
  ["_POST"] => array(10) {
    ["action_threads"] => string(1) "1"
    ["delete_messages"] => string(1) "1"
    ["delete_conversations"] => string(1) "1"
    ["ban_user"] => string(1) "1"
    ["check_ips"] => string(1) "1"
    ["no_redirect"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(29) "/members/userrrr.1718366/"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
This is fixed in the latest version.
 
  • Like
Reactions: rdn
xffutureuser updated [UW] Forum Comments System with a new update entry:

UW-FCS Version 1.8.12

🔸A similar error to this case has been fixed:
Use case:

Forum allows guest / unregistered posts, however to appear they require moderator approval.

When I try to move a post which has comments by guests to a new thread I get an error "Attempted to convert NULL to string/binary [username] ".
🔸In the text for reaction on comment received, in the Last activity page, "your comment" was not actually a link. So this was fixed too.

Read the rest of this update entry...
 
New error I got:
Server error log

Error: Call to a member function canView() on null src/addons/UW/FCS/Pub/Controller/Comment.php:45
Generated by: Unknown account Jun 7, 2020 at 2:19 AM

Stack trace
#0 src/addons/UW/FCS/Pub/Controller/Comment.php(327): UW\FCS\Pub\Controller\Comment->assertViewableComment()
#1 src/XF/Mvc/Dispatcher.php(350): UW\FCS\Pub\Controller\Comment->actionReactions()
#2 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass()
#3 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch()
#4 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop()
#5 src/XF/App.php(2190): XF\Mvc\Dispatcher->run()
#6 src/XF.php(391): XF\App->run()
#7 index.php(20): XF::runApp()
#8 {main}

Request state
array(4) {
["url"] => string(24) "/comments/4992/reactions"
["referrer"] => bool(false)
["_GET"] => array(1) {
["/comments/4992/reactions"] => string(0) ""
}
["_POST"] => array(0) {
}
}


Server error log
Error: Call to a member function canView() on null src/addons/UW/FCS/Pub/Controller/Comment.php:45
Generated by: User Jun 7, 2020 at 2:27 AM
Stack trace
#0 src/addons/UW/FCS/Pub/Controller/Comment.php(20): UW\FCS\Pub\Controller\Comment->assertViewableComment()
#1 src/XF/Mvc/Dispatcher.php(350): UW\FCS\Pub\Controller\Comment->actionindex()
#2 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass()
#3 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch()
#4 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop()
#5 src/XF/App.php(2190): XF\Mvc\Dispatcher->run()
#6 src/XF.php(391): XF\App->run()
#7 index.php(20): XF::runApp()
#8 {main}
Request state
array(4) {
["url"] => string(15) "/comments/4992/"
["referrer"] => bool(false)
["_GET"] => array(1) {
["/comments/4992/"] => string(0) ""
}
["_POST"] => array(0) {
}
}
 
Last edited:
Top Bottom