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

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

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

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...

domain.com

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.

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

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

path to punBB folder

- for the language yes, change it to "English"
- both scripts have to use the same database to work nicely.

WP version isn't a problem until the plugin works smile

hard to guess the problem.

1. delete in your browser all cookies for your site and try to login

2. in punBB config.php set $cookie_domain = ''; to $cookie_domain = 'yourdomain.com';
and check (try also with deleted cookies)

3. if it still doesn't work then it must have problem with this (jl-punbb.php plugin):

setcookie($cookie_name, serialize(array($user->id, md5($cookie_seed.sha1($user_pass)))),  time() + 31536000, $cookie_path.'; HttpOnly', $cookie_domain, $cookie_secure);

it may need some hacking then like: $cookie_path.'; HttpOnly' to $cookie_path

Kheldon wrote:

Hi,

I've been looking for a user integration like this for Wordpress and punBB. smile

I tried to do this but I can't seem to get it to work.

I have installed punBB on http://www.mmo-gamer.com/community/ and WP is installed in the root: http://www.mmo-gamer.com/

In punBB config.php you may try to set the punBB cookie domain to "mmo-gamer.com" and try then.

MaryJane197 wrote:

Now i do have some questions about this plugin tho.  Is there a way to make the password's the same or are they the same with this plugin?  Because i know when you first register on punbb that it randomly generates a password for you.  So i was just wondering if it uses the same password from the WordPress or if it registers you in Punbb with a random one?? Anyone know?

I uses wordpress users and passwords. It does not import users from punBB that aren't in WP smile Users that exist at both script will have to use WP password in punBB.

path, not an URL. If you have

/forum
/southern

then use ../forum

jl-punbb is a Wordpress plugin and you use it as any other plugin. Put it in /wp-content/plugins/ of your wordpress install, edit the jl-punbb file and add path to punBB folder and it's table prefix. Then install/activate this plugin in Wordpress Admin Panel. The integration is done, but you have to also redirect users from punBB login/register to Wordpress to maintain synchronisation of the tables - you edit in punBB - login.php, register.php and profile.php as described above.

check this: http://www.liewcf.com/blog/archives/200 … wordpress/
and maybe this: http://www.almosteffortless.com/2005/09 … and-punbb/

login.php and register.php - at the start - line 1 (after <?php)

the readme is in Polish, and my first post is the English version of it.

download: link

I used: WP: 2.2.1 | punBB: 1.2.15 - to integrate Wordpress user system  with punBB (http://jakilinux.org/ with http://forum.jakilinux.org/ smile)

I. Instalation
- edit the plugin file and add punBB info:

define('PUNPATH', '../punbb'); // path to punbb folder
define('PUNPREFIX', 'pun_'); // punBB table prefix

- then save & install as any other WP plugin (DB backup is nice idea)

Edit punBB register.php, and at start add:

header('Location: http://www.url/do/wordpress/wp-login.php?action=register');

For login.php:

header('Location: http://www.url/do/wordpress/wp-login.php');

In profile.php find:

if ($action == 'change_pass')
    {

Below add:

header('Location: http://www.url/do/wordpress/wp-admin/profile.php');

II. How it works
- punBB user table is synced against WP user table using passwords from WP. When you install users that are registered on WP will be copyed to punBB (but not in the other side).
- If a user have account on punBB and WP - he will user WP login and WP password for both
- it covers login/logout, register and password changes

45

(29 replies, posted in Programming)

I like multiplatform open solutions and .net / C# isn't that great for me wink as for scripting languages for C#, Java, .Net there is for example multipurpose Python (also Jython - written in Java, Iron Python written in .Net). Ruby in simillar position. PHP as a versalite scripting language is a bit limited.

I'll update the archives. I've used 681 as it was the current version when I was updating the code smile

it will work with newer version until some bigger code changes wink

I've updated punFramework to work with punBB 1.3 r-681 and you can download it from phpclasses. punBB 1.3 r-681 tarballs can be found on sourceforge

49

(0 replies, posted in PunBB 1.2 discussion)

Latest number of Polish phpSolutions (http://www.phpsolmag.org/) contains my article about punBB - what is it and what ca it do (features, integrations, migrating from other scripts etc.) The english/other language version of the magazine should show up in other countries soon (I think wink)

50

(38 replies, posted in PunBB 1.2 discussion)

http://punbb.tox.pl/board/index.php smile Polish support forum