Howto: Integrate Phorum and Wordpress
Posted by gloeglm
All files from this thread
File Name | File Size | Posted by | Date | ||
---|---|---|---|---|---|
phorum_wordpress_issue.gif | 21.3 KB | open | download | Ben | 06/19/2006 | Read message |
wordpress-phorum.zip | 5.2 KB | open | download | Beckism | 01/25/2007 | Read message |
Howto: Integrate Phorum and Wordpress January 12, 2006 05:59PM |
Registered: 19 years ago Posts: 9 |
Hi everybody,
at first let me praise you for the nice piece of software Phorum is :) I found it really simple to use and to integrate into my site.
The last days I spent some time on integrating a Phorum installation into a WordPress site managed by me. The forum now displays surrounded by the WordPress layout and user management is integrated (I made Phorum use the WordPress user- and login-system).
I wrote up what I did on my blog: [www.gloegl.de]
Some parts are quite hackish, if you have any suggestions on how to make this cleaner, I would appreciate any comments.
Perhaps some of you will find the info useful. Although it is about WP/Phorum integration, the technique can also be used for other Phorum-integration tasks.
Edited 1 time(s). Last edit at 01/29/2006 10:32PM by brianlmoon.
at first let me praise you for the nice piece of software Phorum is :) I found it really simple to use and to integrate into my site.
The last days I spent some time on integrating a Phorum installation into a WordPress site managed by me. The forum now displays surrounded by the WordPress layout and user management is integrated (I made Phorum use the WordPress user- and login-system).
I wrote up what I did on my blog: [www.gloegl.de]
Some parts are quite hackish, if you have any suggestions on how to make this cleaner, I would appreciate any comments.
Perhaps some of you will find the info useful. Although it is about WP/Phorum integration, the technique can also be used for other Phorum-integration tasks.
Edited 1 time(s). Last edit at 01/29/2006 10:32PM by brianlmoon.
Re: Howto: Integrate Phorum and Wordpress January 12, 2006 11:47PM |
Admin Registered: 23 years ago Posts: 4,495 |
Give these a shot. You will need to change the /phorum/dir to your Phorum dir.
function insert_phorum_user($user_id) { global $wpdb, $PHORUM; $userdata=get_userdata($user_id); $time = time(); $curr_dir = getcwd(); chidr("/phorum/dir"); define("PHORUM_ADMIN", 1); include_once "./common.php"; $phorum_user = array( "user_id" => $user_id, "username" => $userdata->user_login, "password" => $userdata->user_pass, "password_temp" => "", "email" => $userdata->user_email, "hide_email" => 1, "active" => 1, "admin" => 0, "date_added" => $time, "date_last_active" => $time ); phorum_db_user_add($phorum_user); chdir($curr_dir); } function delete_phorum_user($user_id) { global $wpdb, $PHORUM; $curr_dir = getcwd(); chidr("/phorum/dir"); define("PHORUM_ADMIN", 1); include_once "./common.php"; phorum_db_user_delete($user_id); chdir($curr_dir); }
Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Re: Howto: Integrate Phorum and Wordpress January 13, 2006 11:51AM |
Registered: 19 years ago Posts: 9 |
Re: Howto: Integrate Phorum and Wordpress January 13, 2006 12:10PM |
Registered: 21 years ago Posts: 868 |
Looks nice, me interested. Please keep us updated.
Sergej
------------------------------------------
^AU^ Assassins United
[www.assassinsunited.com]
------------------------------------------
Sergej
------------------------------------------
^AU^ Assassins United
[www.assassinsunited.com]
------------------------------------------
Re: Howto: Integrate Phorum and Wordpress January 13, 2006 03:15PM |
Admin Registered: 23 years ago Posts: 4,495 |
As for your style sheet, just use an external style sheet for Phorum like we do on this site. The default template is made for easy of customization for those that don't want to get down and dirty. You are beyond that I would say.
Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Re: Howto: Integrate Phorum and Wordpress January 14, 2006 08:54AM |
Registered: 20 years ago Posts: 683 |
Re: Howto: Integrate Phorum and Wordpress January 14, 2006 10:13AM |
Registered: 19 years ago Posts: 9 |
Re: Howto: Integrate Phorum and Wordpress January 14, 2006 10:19AM |
Admin Registered: 22 years ago Posts: 9,240 |
Re: Howto: Integrate Phorum and Wordpress January 16, 2006 04:58AM |
Registered: 21 years ago Posts: 868 |
So do this integration work for a full 100%?
Sergej
------------------------------------------
^AU^ Assassins United
[www.assassinsunited.com]
------------------------------------------
Sergej
------------------------------------------
^AU^ Assassins United
[www.assassinsunited.com]
------------------------------------------
Re: Howto: Integrate Phorum and Wordpress January 16, 2006 05:00AM |
Registered: 19 years ago Posts: 9 |
Sorry, only registered users may post in this forum.