As I said, my coding experience stops at vB 3.0.xx, so don't count me as the best alternative for advise, but here is what I did, based on Nexialys original hack, for 3.0. Don't ask me what the first conditional does, I have no idea, that's how Nexialys did it, that's how I did it.
Edit class_chore.php and find:
Code:
define('COOKIE_PREFIX', (empty($this->config['Misc']['cookieprefix']) ? 'bb' : $this->config['Misc']['cookieprefix']));
Replace that with:
Code:
$admincpdir = $this->config['Misc']['admincpdir'];
if (preg_match("/$admincpdir/i", $_SERVER['HTTP_REFERER']) OR (VB_AREA =='AdminCP'))
{
$cookieprefix = 'acp_'.$this->config['Misc']['cookieprefix'];
}
else
{
$cookieprefix = $this->config['Misc']['cookieprefix'];
}
define('COOKIE_PREFIX', (empty($cookieprefix)) ? 'bb' : $cookieprefix);
You can substitute 'acp_' with any prefix you want the admincp cookie to have.
Save the file and upload it to your server.
On a side note, I find it particularly frustrating (and it reminded me why I never upgraded to vB 3.5 etc) that the new coding scheme used by vB is so crazy. In some places, they use $vbulletin->config in other places they use $this->config. In some places, they use $this->config["$_SERVER[HTTP_REFERER]"], in other places they use $_SERVER['HTTP_REFERER'] and in others they user REFERRER. In some places, the $admincpdir works, while in others it doesn't. I really do not understand why it is so difficult to have a consistent coding scheme all over the place.