Quote:
Originally Posted by 007
HotLinkHosting, now I am back to the Fatal Error from before:
Fatal error: Call to a member function on a non-object in ..../includes/class_postbit.php(251) : eval()'d code on line 2
The hook I am using is postbit_display_start.. I have tried it in other postbit hooks with the same problem however.. I think that is the right hook to use though. It makes sense at least according to where it is in the code..
|
so well, exaclty which error are you reciving using whit the code i gave you?
well try this now, inspired on Hotlink code:
PHP Code:
$datecut = TIMENOW - 86400;
$postcount = $db->query_first("SELECT COUNT(*) AS total FROM " . TABLE_PREFIX . "post WHERE userid = '".$vbulletin->userinfo['userid']."' AND dateline >= ".$datecut."");