Re: WordPress PunBB Complete integration

I'm wondering if there's another way around, which is the ideal solution for me:

- Let WordPress USES the PunBB user database instead. And let PunBB users able to login/post/comment at WordPress blog.

Is it possible? Or too hard. smile

27

Re: WordPress PunBB Complete integration

This will make me switch to punBB again!
Would this plugin work on WPMU 2.7?

thanks

28 (edited by beckham_lkc 2009-07-28 15:39)

Re: WordPress PunBB Complete integration

the code on tiendx2002's first post works for me smile  I am using wordpress 2.8 and punbb 1.3.4

Test results:
1. login using registered wp-user but it <didnt redirect me to the forum>... but was logged in to the forum
2. registered a new user, logged in to the forum, same result as 1.
3. logged in, tried to change passwd, redirected to wp-profile, change passwd, logout, and login again, was able to use the new passwd, login but <didnt redirect me to the forum>
4. try to logout from wp, it did log out from forum. big_smile
5. try to logout from the forum, didnt log me out from wordpress. (just logout from forum) sad

i had the following config:

wp: domain.com
forum: domain.com/forum

define('PUNPATH', './forum'); // path to punbb folder
define('PUNPREFIX', 'pbb_'); // punBB table prefix
define('LANGUAGE', 'English'); // punBB language name, English, etc.


EDITED July 2009:

function punbb_wp_logout()  < look for this function in the plugin
    {
    include PUNPATH.'/config.php';
    setcookie($cookie_name, NULL, time()-3600, '/', 'domain.com', '0');
    }

$base_url = 'http://domain.com/forum';
$cookie_domain = 'domain.com';
$cookie_path = '/';

basically the only things that didnt work are: redirection to the forum after loggin in and point #5.

EDIT: i solve the redirection by replacing the login.php in punbb:

header('Location: http://domain.com/wp-login.php?redirect_to=http://domain.com/forum');

now left item #5.... anyone can enlighten? Thanks a bunch.. wink

Re: WordPress PunBB Complete integration

Hi,

beckham_lkc : Do you try to integrate wordpress theme into punbb (like this method ) ? Does it work ?
I have a problem on this point, see my post

Thanks

Re: WordPress PunBB Complete integration

zazzou93 wrote:

Hi,

beckham_lkc : Do you try to integrate wordpress theme into punbb (like this method ) ? Does it work ?
I have a problem on this point, see my post

Thanks

zazzou93, i did not use that method. I used the method mentioned in tiendx2002's first post.. maybe you try to redo everything again using that post and my post...

or else, try to list out your settings...

31 (edited by zazzou93 2009-07-29 08:04)

Re: WordPress PunBB Complete integration

Hi,

The plugin integrator (tiendx2002's method / Riklaunim plugin) works fine (without theme integration) !

But do you also try to include header/footer of wordpress blog into your punbb forum ?
Here is the theme integration (test). When I active the wordpress plugin mentionned above, my forum hompage is now empty...

Edit : I use wordpress 2.8.2 and punbb 1.3.4

Re: WordPress PunBB Complete integration

http://www.liewcf.com/archives/2005/04/ … wordpress/

I used this method.

Good luck.

Re: WordPress PunBB Complete integration

nice post. Its an very useful plugin...

34

Re: WordPress PunBB Complete integration

After it's look like nobody is going to work in this brilliant Plugin, I just want to give you a small edit to get a function working again.

beckham_lkc wrote:

Test results:
4. try to logout from wp, it did log out from forum. big_smile
5. try to logout from the forum, didnt log me out from wordpress. (just logout from forum) sad

I just fixed the logout from the forum, with my small hotfix it will also log you off from wordpress with a tiny question if you really liked to log off.

It maybe not elegant but it's pretty easy.

Open file: login.php in your PunBB Dir.
Remove the phrase:
header('Location: ../wp-login.php?action=logout');

from the top of this file.

Replace it with:

$action = isset($_GET['action']) ? $_GET['action'] : null;
$errors = array();
if ($action == out)
{
header('Location: ../wp-login.php?action=logout');
}
else
{
header('Location: ../wp-login.php');
}

Thats all you need to do. I am already working on the redirecting thing, I keep you on line!

Re: WordPress PunBB Complete integration

any news ? i'm very interested

thx

Re: WordPress PunBB Complete integration

Hi, is anyone using latest punBB with WP3? I'm interested in getting it going. Currently running phpbb and wp3 (not integrated)