punBB and Wordpress integration plugin

Check out the new site at https://rkblog.dev.

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.
  • Unpack the ZIP and move jl-punbb to wordpress wp-content/plugins/
  • Edit file jl-punbb.php, set the path to punBB folder and punBB tables prefix
define('PUNPATH', '../punbb'); // path
define('PUNPREFIX', 'pun_'); // table prefix
  • Activate the plugin in WP Admin Panel
  • Now we edit few punBB files, starting with register.php. Add at the beginning:
header('Location: http://www.url/do/wordpress/wp-login.php?action=register');
  • Edit login.php and add at the beginning:
header('Location: http://www.url/do/wordpress/wp-login.php');
  • In profile.php find:
if ($action == 'change_pass')
  • After add:
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

Check out the new site at https://rkblog.dev.
Comment article
Comment article RkBlog main page Search RSS Contact