Quote:
Originally Posted by catsma_97504
I downloaded and installed this mod last night. And tonight members are complaining that current threads are showing up as closed. After researching this complaint I've realized that all threads show as closed when viewing the Subscribed Threads Quick Link. All other forum views work as expected.
The Subscribed Threads link is set up with a Target URL of subscription.php{session.sessionurl_q}.
Is there something I can add to this URL to fix the bug? I already tried adding contenttype=vBForum_Thread; but all displayed threads still showed up as Closed.
Edit: Looks like this bug exists on My Posts as well. This Target URL is search.php?do=finduser&userid={bbuserinfo.userid}& contenttype=vBForum_Post&showposts=1. When I change showposts=0 or remove it, this link then becomes My Threads, which works correctly. Something is missing when showing the given member's actual posts in a list.
So, there are 2 areas that appear to need updating.
|
Not sure if you're still looking for a solution but for the subscription.php page create a hook
usersub_view_query name it whatever you want with the contents:
PHP Code:
require(DIR . '/dbtech/auto_close_threads/hooks/fetch_threadinfo_query.php');
For the search result page you'll need to do a manual query in another hook to expose the custom field added by the module to your search results. The hook you have to create is
threadbit_process, with execution order 4 (so it comes before the other process hook from the autoclose plugin) with the contents:
PHP Code:
if(!isset($thread['dbtech_act_lastpost'])) {
global $vbulletin;
$tresult = $vbulletin->db->query_first("
SELECT t.dbtech_act_lastpost
FROM ".TABLE_PREFIX."thread AS t
WHERE t.threadid = " . $thread['threadid'] . "
");
$thread['dbtech_act_lastpost'] = $tresult['dbtech_act_lastpost'];
}