Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.
Help keep Vanilla free:function NewDiscussionsBuilder(&$D) // line 43
{
$s = &$D->DelegateParameters['SqlBuilder'];
/************** Begin "Mark All Read Redux" hack **************/
$DatabasePrefix = $D->Context->Configuration['DATABASE_TABLE_PREFIX'];
$result = mysql_query("SELECT MarkAllRead
FROM ".$DatabasePrefix."User
WHERE UserID=".$D->Context->Session->UserID."",
$D->Context->Database->Connection);
$MarkAllReadRedux_UserData = mysql_result($result, 0);
if ($MarkAllReadRedux_UserData)
{
$s->AddWhere('t', 'DateLastActive', '', $MarkAllReadRedux_UserData, '>');
}
/************** End hack **************/
$s->AddWhere('t', 'CountComments', 'utw', 'CountComments', '>', 'and', '', 0, 1);
$s->AddWhere('', '', 'utw', 'CountComments', '', 'or', 'ISNULL', 0, 0);
$s->EndWhereGroup();
}bobthecowon my forum it seems that, after using the "mark all read" link, using it again is the only way for a discussion to register as read...
A fatal, non-recoverable error has occurred
Technical information (for support personel):
Error Message
The "MarkAllReadRedux" class referenced by "MarkAllReadRedux" does not appear to exist.
Affected Elements
ObjectFactory.NewObject();
For additional support documentation, visit the Lussumo Documentation website at: lussumo.com/docs
$DatabasePrefix."User$DatabaseTables['User']."$MarkAllReadRedux_UserData = strtotime(mysql_result($result, 0));$DatabaseColumns['User']['MarkAllRead'] = 'MarkAllRead';?>$DatabaseColumns['User']['MarkAllRead'] = 'MarkAllRead';
?>
1 to 26 of 26