Quote:
Originally Posted by Andreas
Hmm ... are you sure?
Hookname: search_getnew_start
PHP Code:
if ($_REQUEST['do'] == 'getdaily') { $vbulletin->input->clean_array_gpc('r', array( 'hours' => TYPE_UINT, 'minutes' => TYPE_UINT, 'seconds' => TYPE_UINT )); if (($vbulletin->GPC['days'] < 1) AND(!($vbulletin->GPC['hours']))AND(!($vbulletin->GPC['minutes']))AND(!($vbulletin->GPC['seconds']))) { $vbulletin->GPC['days'] = 1; $vbulletin->GPC['hours'] = 0; $vbulletin->GPC['minutes'] = 0; $vbulletin->GPC['seconds'] = 1; } elseif($vbulletin->GPC['days']<1) { $vbulletin->GPC['days'] = 0; } $datecut = TIMENOW - (($vbulletin->GPC['days']*24*60*60) + ($vbulletin->GPC['hours']*60*60) + ($vbulletin->GPC['minutes']*60) + $vbulletin->GPC['seconds']); }
Btw: There is a small typo in the instructions: 'seconds' => TYPT_UINT instead of 'seconds' => TYPE_UINT 
|
That was close but to do that you need to change if from using days. Like I used days2 and changed the navbar to reflect it to use it as a plugin. Becuase by then days will already be set to one if it was less then one.