Hardware, programming and astronomy tutorials and reviews.

punBB and Wordpress integration plugin

This wordpress plugin integrates punBB user system. punBB user operations like login or register are handled by wordpress. Get the plugin: and proceed with installation.
define('PUNPATH', '../punbb'); // path
define('PUNPREFIX', 'pun_'); // table prefix
header('Location: http://www.url/do/wordpress/wp-login.php?action=register');
header('Location: http://www.url/do/wordpress/wp-login.php');
if ($action == 'change_pass')
header('Location: http://www.url/do/wordpress/wp-admin/profile.php');
Plugin is installed and ready.

punBB login/cookie problems

Sometimes they may be some problems with autologin to punBB when you login to Wordpress. If forum and WP are in differend subdomains etc. then edit punBB config.php and set $cookie_domain and, or $cookie_path to your domain name.

PHP Tutorials and Scripts, 4 August 2011, Piotr Maliński

Comment article