Wordpress Mu integration (with Phorum as master)
Posted by cactux
|
Wordpress Mu integration (with Phorum as master) December 18, 2008 04:07AM |
Registered: 20 years ago Posts: 131 |
Hello,
I am looking for a way to integrate Wordpress Mu into an existing Phorum installation.
There is a topic for the other way round (when a user is created in Wordpress then it is automatically created in Phorum), you can see it there: [www.phorum.org]
What I would like is to give my users the possibility to open a blog on my site.
They should have a button or something like that (maybe on their profile page) "create a blog". Then it will automatically enable their personnal blog at [www.example.com] (where username comes from Phorum).
Once they log onto my site (the login is managed by Phorum), they should be recognized by WP and they can start blogging without having to enter another username or password.
Do you know of a way to do this?
Thanks!
Yann
Cactus : [www.cactuspro.com]
I am looking for a way to integrate Wordpress Mu into an existing Phorum installation.
There is a topic for the other way round (when a user is created in Wordpress then it is automatically created in Phorum), you can see it there: [www.phorum.org]
What I would like is to give my users the possibility to open a blog on my site.
They should have a button or something like that (maybe on their profile page) "create a blog". Then it will automatically enable their personnal blog at [www.example.com] (where username comes from Phorum).
Once they log onto my site (the login is managed by Phorum), they should be recognized by WP and they can start blogging without having to enter another username or password.
Do you know of a way to do this?
Thanks!
Yann
Cactus : [www.cactuspro.com]
|
Re: Wordpress Mu integration (with Phorum as master) December 25, 2008 06:51AM |
Admin Registered: 21 years ago Posts: 8,532 |
I don't know what API's WP Mu provides for this. You'd need at least the code for:
For creating the Blog, you need the Phorum username. That should not be too hard, when running your code from the Phorum environment. the $PHORUM['user'] variable holds all possible info for your user.
Recognizing the authenticated Phorum users outside Phorum can be done using the Quick Authentication script.
One issue to beware of: the Phorum username might contain characters that are not valid in a URL. You might have to mangle some usernames to make them valid in the URL. E.g. if you have two users "john" and "jøhn", you'd have to take care of jøhn in such way that:
I hope these hints help!
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
- Creating the Blog
- Authenticating the user based on an external authentication session (Phorum's)
For creating the Blog, you need the Phorum username. That should not be too hard, when running your code from the Phorum environment. the $PHORUM['user'] variable holds all possible info for your user.
Recognizing the authenticated Phorum users outside Phorum can be done using the Quick Authentication script.
One issue to beware of: the Phorum username might contain characters that are not valid in a URL. You might have to mangle some usernames to make them valid in the URL. E.g. if you have two users "john" and "jøhn", you'd have to take care of jøhn in such way that:
- the name won't contain the ø anymore
- the mangled name won't collide with "john"
I hope these hints help!
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Wordpress Mu integration (with Phorum as master) December 25, 2008 08:26AM |
Registered: 20 years ago Posts: 131 |
Hello Maurice,
Thanks for the tips!
I already have a home made plugin to forbid special chars in username. Only small letters and numbers. So this ill not be a problem.
I will see with the $PHORUM data available.
The Quick Authentication script seems very interesting, great!
I'll tell you here if I can do something interesting with it.
Cactus : [www.cactuspro.com]
Thanks for the tips!
I already have a home made plugin to forbid special chars in username. Only small letters and numbers. So this ill not be a problem.
I will see with the $PHORUM data available.
The Quick Authentication script seems very interesting, great!
I'll tell you here if I can do something interesting with it.
Cactus : [www.cactuspro.com]
Sorry, only registered users may post in this forum.