I'm trying o make this modification
Threads notifications work with VB4
and get this error
PHP Code:
Fatal error: Call to a member function fetch_array() on a non-object in /home/username/public_html/vbtest/includes/class_bootstrap.php(1212) : eval()'d code on line 11
follwing this error found this
PHP Code:
($hook = vBulletinHook::fetch_hook('notifications_list')) ? eval($hook) : false;
-- but I don't know where is "eval()d code on line 11"
following the notifications_list hook in this modification
found this
EDITED BY BOP5
PHP Code:
// fetch user readed threads
$notifications_get = $vbulletin->db->query_read("
SELECT * FROM . nlp_notifications_read
WHERE userid = " . $vbulletin->userinfo['userid'] .
iif(((THIS_SCRIPT == 'SHOWTHREAD') AND $threadid),'AND threadid =' . $threadid));
while($notifications_ids = $db->fetch_array($notifications_get))
{
//if(THIS_SCRIPT == 'SHOWTHREAD' AND $threadid = $notifications_ids['threadid']) continue;
$notifications_threadids .= ', ' . $notifications_ids['threadid'];
}
I dont' know where is the error , and how to solve it
is this mysql functions is not working with VB4 ?