Re: Wordpress integration plugin :)

path to punBB folder

My site [PHP, Python, Linux]

27

Re: Wordpress integration plugin :)

Ok Riklaunim !! Thanks, but I think I put the right path. smile
I'll try again. and give the path and url. ^_^

Benoît V.
My Board

Re: Wordpress integration plugin :)

I've managed to get PunBB installed and linked to WordPress. Now, when I create a new user in WordPress, a new user is created in PunBB too.

1.  How do I get punBB displayed in a page in Wordpress, so that it uses the same theme a WP ?

2.  When users in WP edit their profile, there is an error :


WordPress database error: [Unknown column 'anil' in 'where clause']
UPDATE pun_users SET email='anil@unilrn.com' WHERE username = anil


Warning: Cannot modify header information - headers already sent by (output started at /home/scorpiof/public_html/drive/wp-includes/wp-db.php:160) in /home/scorpiof/public_html/drive/wp-includes/pluggable.php on line 491

Warning: Cannot modify header information - headers already sent by (output started at /home/scorpiof/public_html/drive/wp-includes/wp-db.php:160) in /home/scorpiof/public_html/drive/wp-includes/pluggable.php on line 492

Warning: Cannot modify header information - headers already sent by (output started at /home/scorpiof/public_html/drive/wp-includes/wp-db.php:160) in /home/scorpiof/public_html/drive/wp-includes/pluggable.php on line 493

Warning: Cannot modify header information - headers already sent by (output started at /home/scorpiof/public_html/drive/wp-includes/wp-db.php:160) in /home/scorpiof/public_html/drive/wp-includes/pluggable.php on line 494

Warning: Cannot modify header information - headers already sent by (output started at /home/scorpiof/public_html/drive/wp-includes/wp-db.php:160) in /home/scorpiof/public_html/drive/wp-includes/pluggable.php on line 479

Warning: Cannot modify header information - headers already sent by (output started at /home/scorpiof/public_html/drive/wp-includes/wp-db.php:160) in /home/scorpiof/public_html/drive/wp-includes/pluggable.php on line 480

Warning: Cannot modify header information - headers already sent by (output started at /home/scorpiof/public_html/drive/wp-includes/wp-db.php:160) in /home/scorpiof/public_html/drive/wp-includes/pluggable.php on line 390

What could be wrong ?

Re: Wordpress integration plugin :)

1.  I don't know
2. in the plugin file find:

$wpdb->query("UPDATE ".PUNPREFIX."users SET email='".$wpuser->user_email."' WHERE username = ".$wpuser->user_login."");

change to:

$wpdb->query("UPDATE ".PUNPREFIX."users SET email='".$wpuser->user_email."' WHERE username = '".$wpuser->user_login."'");

should help

My site [PHP, Python, Linux]

Re: Wordpress integration plugin :)

Thanks, that worked !

What is the Quicktag to insert for getting punBB forums in a page ?

31 (edited by detrom 2007-11-06 12:25)

Re: Wordpress integration plugin :)

Hi, firt of all thanks for the plugin.

I have installed the plugin but I get no errors and users are not been redirecting to my punbb forum. I check forum user data base and I only have one user listed(administrator).

Anyone have any ideas to fix that?

EDITED: Ok users are now on my forum db, but i have one new problem, all password on the data base have this value "BRAK". How can copy passwords from wp db to pun forum db?

Sorry about my english.

Re: Wordpress integration plugin :)

"BRAK" is a "blank" password for punBB part of the plugin. It will be updated as soon as user loggin to WP.

My site [PHP, Python, Linux]

33

Re: Wordpress integration plugin :)

Ok thanks Riklaunim.

Just one more question. If I edit login.php as you say, when i try to login, it redirects me to wordpress login. After i get logged i go back to my forum but it doesnt appear has logged in. What can i do?

Sorry again about my english.

Re: Wordpress integration plugin :)

It should work like that + log in user in punBB. If you use different subdomains for forum and wordpress then in punBB config.php you have to set cookie domain to your domain.

My site [PHP, Python, Linux]

35

Re: Wordpress integration plugin :)

Hi, i have forum.domain.com to my forum and domain.com to wp blog. I have to set cookie="domain.com" or "forum.domain.com"?

If i use the normal login.php without wordpress redirect, it will work?

Re: Wordpress integration plugin :)

domain.com

My site [PHP, Python, Linux]

37

Re: Wordpress integration plugin :)

Hi Riklaunim, i think i have all done but when y try to login into my forum it redirect me to wordpress login. After login on wordpress i write forum url on firefox but im not loged in.

Please tell me what I am doing wrong.

Thanks

Re: Wordpress integration plugin :)

well it should loggin you to punBB also. Are you using WP 2.3? The plugin works with 2.2 but there are some problems with WP 2.3.

Other problem may be with cookie handling...

My site [PHP, Python, Linux]

39 (edited by detrom 2007-11-07 21:56)

Re: Wordpress integration plugin :)

I, i have wp 2.2.3, i think cookies are the problem.

If i dont redirect login.php it will work?

Re: Wordpress integration plugin :)

punBB should redirect as you can't use punBB login system. You must login in WP.

My site [PHP, Python, Linux]

41

Re: Wordpress integration plugin :)

I have set domain.com for confing.php cookie, but i doesnt works. Maybe is another problem?

Re: Wordpress integration plugin :)

$cookie_path should be domain.com and it should work then.

My site [PHP, Python, Linux]

43 (edited by detrom 2007-11-07 22:04)

Re: Wordpress integration plugin :)

i this is my config.php:

$cookie_name = 'punbb_cookie';
$cookie_domain = 'mydomain.com';
$cookie_path = '/';

is correct?

Re: Wordpress integration plugin :)

try with  Re: $cookie_path set to domain.com  smile

My site [PHP, Python, Linux]

45

Re: Wordpress integration plugin :)

Ok now:

$cookie_name = 'punbb_cookie';
$cookie_domain = 'mydomain.com';
$cookie_path = 'mydomain.com';

I set config.php but i doesnt work again.

if i use WWW.mydomain.com? Maybe this is the problem because i use in htacess a redirect from mydomain.com to www.mydomain.com

Re: Wordpress integration plugin :)

$cookie_domain = '';

and you don't put www. in domain names

My site [PHP, Python, Linux]

47 (edited by detrom 2007-11-08 20:44)

Re: Wordpress integration plugin :)

Thanks for all Riklaunim,

It doenst work. Can i use your e-mail of gmail to use gtalk to solve the problem?

OK ALL WORKS FINE, here are my settings if anyone have same problems:

I use domain.com and forum.domain.com

config.php only change this

$cookie_domain = 'domain.com';
$cookie_path = '/';

and at jl-punn.php i only change two things:

define('PUNPATH', '../forum.domain.com/'); // path to punbb folder
define('PUNPREFIX', 'pun_'); // punBB table prefix, -----> Yo can use another prefix or use blank if none.

THANKS FOR ALL RIKLAUNIM ;-)

48

Re: Wordpress integration plugin :)

I'm wondering if anyone got this to work with WP 2.3.1???

Re: Wordpress integration plugin :)

It works on 2.3.1 on my localhost without any changes.

My site [PHP, Python, Linux]

50

Re: Wordpress integration plugin :)

I tested it. It works fine for me smile

But why you have choose Wordpress side login ?

With that system, if a member want change something on his Punbb profil (sign, avatar, and other things...), he can't do it.  neutral
If you look at Logicfury CMS, it's possible to change pass and name with a bridge, with access to Punbb profil or CMS profil without any changes the user profil panel. big_smile

Can you make the same thing for wordpress ? tongue

Benoît V.
My Board