Is there anything obviously "wrong" with it? Inefficient, etc?
$news = $this->_getDb()->fetchAll("
SELECT xf_thread.*, xf_user.*, xf_post.message, xf_post.attach_count, xf_node.title AS node_title,
IF(xf_user.username IS NULL, xf_thread.username, xf_user.username) AS username,
IF(EWRporta_promotes.promote_date IS NULL, xf_thread.post_date, EWRporta_promotes.promote_date) AS promote_date,
EWRporta_promotes.promote_icon, EWRporta_promotes.promote_data
FROM xf_thread
LEFT JOIN xf_user ON (xf_user.user_id = xf_thread.user_id)
INNER JOIN xf_post ON (xf_post.post_id = xf_thread.first_post_id)
INNER JOIN xf_node ON (xf_node.node_id = xf_thread.node_id)
LEFT JOIN EWRporta_promotes ON (EWRporta_promotes.thread_id = xf_thread.thread_id)
$fromWhere
WHERE (xf_thread.node_id IN (".$this->_getDb()->quote($options['forum']).") OR EWRporta_promotes.promote_date < ?)
AND xf_thread.discussion_state = 'visible'
AND IF(EWRporta_promotes.promote_date IS NULL, xf_thread.post_date, EWRporta_promotes.promote_date) < ?
ORDER BY $fromOrder promote_date DESC
LIMIT ?, ?
", array(XenForo_Application::$time, XenForo_Application::$time, $page, $options['limit']));
Extra Portal?This is one reason why i look forward to the new widgetportal which will be released this weekend. Hopefully that addon will have less impact inn the server.
None of the above.Extra Portal?
or Widget page of BD Widget?
Yes exactly.I'm currently styling Widget Page to replace my Xenporta homepage.
Still have some styling issues to fix but the functions are there. @xfrocks is doing a great job to develop BD WF into a powerful addon.
Replaced Xenporta with Widget Page as my home index todayYes exactly.
When Widget Page/Portal becomes stable and well documented.
I will be going to use that also as my Index
That's better improvement.Replaced Xenporta with Widget Page as my home index today
Widget page
Timing: 0.0442 seconds Memory: 6.367 MB DB Queries: 12
Xenporta
Timing: 0.0659 seconds Memory: 7.574 MB DB Queries: 15
We use essential cookies to make this site work, and optional cookies to enhance your experience.