Topic: WordPress PunBB db integration workaround
What I have been wanting to do for a while is for members to be able to open an account with punbb and then post comments in wordpress with that punbb account.
I don't think anyone has actually done this yet? or if they have there not sharing it.
But I might have a workaround. Now I am not a programmer so tell me if I'm being an idiot...but it might just work.
Basically what you could do is edit the comment code in WordPress like this...
First you edit the wordpress comment code by putting an if statement along these line:
if ($pun_user['is_guest']) {
echo "you must be logged in to comment on articles";
}
else
{
DISPLAY THE WORDPRESS COMMENT BOX IN THE NORMAL WAY
}
Now you edit the wordpress comment box in such a way that it doesn't give you the option to edit the name field (and you remove the need for the email address)...instead it grabs the name of the punbb member in question and forces that name to be sent to the wordpress db when you hit submit.
You could use this to grab the username: pun_htmlspecialchars($pun_user['username'])
Now this may not work as you may not be able to call these punbb things inside the comment part of wordpress, and even if it does work it would be an ugly hack. But until someone makes a proper bridge it might suffice.
Thoughts anyone? Am I being a moron or might this work?
see my hack to integrate punbb with wordpress comment system.
Illustration Community