2005-12-15, 07:26 PM
I want that the statistics on the index page are collapsed by default.
I thougt I could check if the cookie "collaped" exists and if not i could create it. So I have something like:
I thougt I could check if the cookie "collaped" exists and if not i could create it. So I have something like:
if (!$_COOKIE['collapsed'])
{
setcookie("collapsed", "boardstats", "0", $mybb->settings['cookiepath'], $mybb->settings['cookiedomain'], "");
}
But it's not working...Where do I have to insert this code?