Quote:
Originally Posted by bandanafz1
Great Mod, many thanks... works really slick.
Only problem I have is that I have also added the Who Has Read This Post mod.
If I click the thread title to view the message in full the registers the fact that the message has been read. However with the collapsible thread, this does not register the fact that the messages have been read by the user.
Most of my messages do not contain replies, it is basically a read only board for disseminating information so whilst the collapsible threads are really useful for readers, I as the admin want to see what is getting most interest.
Would it be very easy to incorporate some form of interoperability between the mods? possible switchable for those that hadn't installed the Who Has Read mod.
Many thanks... great work!
Edit> Actually did wonder if setting update read count might help but it unfortunately doesn't, presumable it is the step of open the thread view that initiates the steps to register that the user has read the message.
|
Keeping in mind that this untested, go ahead and try this.
In
vbpost_ajax.php:
FIND
PHP Code:
//if ($_SERVER['REQUEST_METHOD'] == 'POST' AND
if ($vbulletin->GPC['ajax'])
{
eval('print_output("' . fetch_template('vbpost_postbit') . '");');
}
else
{
eval('print_output("' . fetch_template('vbpost_postbit') . '");');
}
}
?>
Add
ABOVE:
PHP Code:
if ($vbulletin->userinfo['userid'])
{
$time = TIMENOW;
$ipaddress = IPADDRESS;
$threadid = $threadinfo[threadid];
$userid = $vbulletin->userinfo['userid'];
$db->query_write("
REPLACE INTO " . TABLE_PREFIX . "whoread
(userid, threadid, dateline, ipaddress)
VALUES
($userid, $threadid, $time, '$ipaddress')
");
}
Let me know if that works for you.