
10-03-2007, 08:52 PM
|
 |
|
|
Join Date: May 2007
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by magnus
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.
|
Many thanks, will try tomorrow when I get time.
|