PunBB SDK Update
Aight kiddies, in response to a few concerned emails, I’ve changed the auto-login in the PunBB Plugin for Rails to directly log the user in via cookies/db instead of AJAX.
Just to refresh you on how this plugin is used..
Install your Rails app
Install PunBB in the public dir (or even a subdir)
Generate the login code with the punbb path
./script/generate punbb_authentication account /forums |
Email support@ahgsoftware.com when/if it blows up
JUST KIDDING, you’ll be fine
That command generates the skeleton files needed for login/logout. You MUST specify a relative path to PunBB installation (e.g. /forums). All other variables are pulled from the config.php file via a neat regex (including the db table prefix, cookie name, etc). You krafty little koder peers of mine, might wanna check out that little regex scanner, you can use it to pull variables out of all kinds of config files (Wordpress, Joomla, etc).
I really do agree with 99% of the principles that Rails and Dave’s pet project stand for, but, I am firmly in the camp that HATES writing login code. I’d say 2 out of 15 total large-scale Rails projects that I’ve designed have necessitated a highly targeted and advanced User engine. The rest have just needed a quick user db with a simple administration panel. Wordpress or PunBB work fantastically for this. Most of my wordpress + Rails integration code is buggy and not ready for primetime (and neither is my PunBB plugin, use at your own risk!), but, I do plan to release it soon. For now, happy posting!
Leave a Reply