On/Off when users can only see their own threads.
|Assignee:||Tom Moore||% Done:|
|Reported In MyBB Version:||1.6.0||Database Version:|
|PHP Version:||SQA assignments:||Nathan Malcolm|
It seems the On/Off icon doesn't update for users who have only have permission to see their own threads in a forum.
#2 Updated by Tom Moore over 3 years ago
We have a slight problem here.
The lightbulbs tell you if there's a new post in a forum - however, the lastpost data in the forum doesn't carry who originally created the thread. I can easily make the lightbulb appear if there is a new post in a forum, but it won't be able to tell whether it's your thread that's got the new post, or someone elses.
So the only answer to this is to create a really scrappy workaround that checks the owner of the lastpost thread, and if that owner is the current user, then display the lightbulb.
Ryan - the only method I can think of at the moment is to loop through the forum cache before the main loop, collecting the lastpost's tid - then querying these tids and creating an array of 'created threads from lastpost info' (which we can then check for in the main loop). Would you be happy for me to try this? Seems a lot of work for a lightbulb to me...
#7 Updated by Nathan Malcolm over 2 years ago
- Status changed from Resolved to Feedback
- SQA assignments set to Nathan Malcolm
I think you have forgotten to global $db under build_forumbits()
PHP Fatal error: Call to a member function simple_select() on a non-object in /var/www/html/mybb-svn/inc/functions_forumlist.php on line 88