MyBB Community Forums

Full Version: New plugin hook in showthread.php before postbits
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Could we add a new plugin hook into showthread.php before the postbits will be builded?

eg:
$plugins->run_hooks("showthread_pre_postbit_linear");

before
// Get the actual posts from the database here.
$posts = '';
$query = $db->query("
	SELECT u.*, u.username AS userusername, p.*, f.*, eu.username AS editusername
	FROM ".TABLE_PREFIX."posts p
	LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=p.uid)
	LEFT JOIN ".TABLE_PREFIX."userfields f ON (f.ufid=u.uid)
	LEFT JOIN ".TABLE_PREFIX."users eu ON (eu.uid=p.edituid)
	WHERE $pids
	ORDER BY p.dateline
");
+1, good idea!
+1 supp
Would make sense to me, could be very useful.
I also support this one as well, good idea Smile