Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] Recent threads from post author
#1
Recent threads from post author


This plugin allows users to view recent threads from current post author.

Plugin Name: Recent threads from post author


Plugin Author: Harshit
Plugin Version: 1.0
Plugin Mybb Compatibility: 1.6x,1.8x
Plugin Description: Shows recent threads from post author

This plugin allows users to view recent threads from current post author.

[Image: preview_67545_1418096571_f8905f0a4cf029d...10825c.png]

[Image: preview_67545_1418096788_4ca428c340adcde...6a1323.png]

Downloads
http://community.mybb.com/mods.php?actio...ad&pid=330
Reply
#2
Note for downloaders: the plugin is not optimised and will use X + 1 queries per showthread, where X is "Number of posts to show", while only 1 is needed.
Reply
#3
No, it works completely fine without any problem.
Reply
#4
(12-11-2014, 05:00 AM)Harshit Wrote: No, it works completely fine without any problem.
That doesn't mean it's optimised... There is absolutely no need for X additional COUNT(*) queries to get reply amount when the reply amount is saved in mybb_threads table as well.

And you can't say "without any problem", big boards would suffer because of that. Your plugin with 15 limit uses more queries on showthread than the whole MyBB core.
Reply
#5
This user has been denied support. This user has been denied support.
(12-11-2014, 08:11 AM)Destroy666 Wrote:
(12-11-2014, 05:00 AM)Harshit Wrote: No, it works completely fine without any problem.
That doesn't mean it's optimised... There is absolutely no need for X additional COUNT(*) queries to get reply amount when the reply amount is saved in mybb_threads table as well.

And you can't say "without any problem", big boards would suffer because of that. Your plugin with 15 limit uses more queries on showthread than the whole MyBB core.
Yup, a left join like

SELECT p.subject, p.tid, p.icon, p.dateline, t.replies FROM mybb_posts p LEFT JOIN mybb_threads t ON (t.tid = p.tid) WHERE p.uid = 1 ORDER BY p.dateline desc LIMIT 10;
would be better.

Also it would leak private sector replies as well due to no forum permission checks.
Beep Boop          
                                          ~ RIP Server 2014-2014
Reply
#6
Now it is OK. It is working fine.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)