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!

In Partnership with Media Temple

Mint Forum

secret crush on phpBB3

TehBin
Minted
Posted on Jan 22, '08 at 07:39 pm

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.

TehBin
Minted
Posted on Jan 24, '08 at 03:52 am

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

TehBin
Minted
Posted on Jan 24, '08 at 03:59 am

By the way, if anyone knows how to ignore “anonymous” users in secret crush please let me know.

Till
Third-Party Pepper Developer
Posted on Jan 24, '08 at 06:48 am

if ($user->data['user_id'] != ANONYMOUS) {
setcookie('phpbb_username', $user->data['username'], time() + 365 * 86400, '/', $cookiedomain, FALSE);
}

TehBin
Minted
Posted on Jan 24, '08 at 09:45 am

till, thanks

You must be logged in to reply. Login above or create an account