where you have:
PHP Code:
if ($daysprune != -1)
{
$datecut = "AND lastpost >= " . (TIMENOW - ($daysprune * 86400));
$show['noposts'] = false;
}
else
{
$datecut = '';
$show['noposts'] = true;
}
I have:
PHP Code:
if (!$daysprune)
{
if ($bbuserinfo['daysprune'] != 0)
{
$daysprune = $bbuserinfo['daysprune'];
}
else
{
$daysprune = iif($foruminfo['daysprune'], $foruminfo['daysprune'], 30);
}
}
and when I follow the instructions I get an error:
Parse error: parse error, unexpected T_ELSE in /home/parapla/public_html/forums/forumdisplay.php on line 514
where line 514 is
PHP Code:
$daysprunesel = iif($daysprune == -1, 'all', $daysprune);
Forgive me but I am extremely novice about these things! What do I need to do to make this work?