The directions for secret crush on phpBB2 do not work for phpBB3. Does anyone know how to make it work with phpBB3? Any would be greatly appreciated. Thank you.
Login to download the latest version of Mint and your favorite Pepper, purchase additional licenses, or post in the Forum. Don't have an account? Create one!
The directions for secret crush on phpBB2 do not work for phpBB3. Does anyone know how to make it work with phpBB3? Any would be greatly appreciated. Thank you.
I got the phpBB developers to help answer my question.
open includes/functions.php look at the end of the page_header function:
"// application/xhtml+xml not used because of IE
header('Content-type: text/html; charset=UTF-8');
header('Cache-Control: private, no-cache="set-cookie"');
header('Expires: 0');
header('Pragma: no-cache');
return;"
add “setcookie(‘phpbb_username’, $user->data[‘username’], time() + 365 * 24 * 60 * 60, ‘/’, $cookiedomain, false);” in the empty line aboe “return;”
hope this helps. Cheers
By the way, if anyone knows how to ignore “anonymous” users in secret crush please let me know.
if ($user->data['user_id'] != ANONYMOUS) {
setcookie('phpbb_username', $user->data['username'], time() + 365 * 86400, '/', $cookiedomain, FALSE);
}
You must be logged in to reply. Login above or create an account