Quote:
Originally Posted by cashcash
the message i get :
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in [path]/profile.php(2087) : eval()'d code on line 5
|
Try another one replace to the plugin with:
PHP Code:
if ($vbulletin->options['recent_thanks_notif'] AND $vbulletin->options['recent_thanks_on_off']){
$isthere = $db->num_rows($db->query_read("SELECT recent_thankact FROM " . TABLE_PREFIX . "user WHERE userid = ".$vbulletin->userinfo['userid']." AND recent_thankact=1"));
if($isthere){
$recent_thankact_checked = 'checked="checked"';
}
else {$recent_thankact_checked='';
}
$templater = vB_Template::create('recent_thanks_ufield');
$templater->register('recent_thankact_checked', $recent_thankact_checked);
$templater->register_page_templates();
$template_hook[usercp_options_messaging] .= $templater->render();
}
Hope it will fix the problem.