Firefox PHP

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 11:59PM
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/30/2006 04:32AM by brianlmoon.
Re: Howto: Integrate Phorum and Wordpress
January 13, 2006 05:47AM
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 05:51PM
Looks nice, thanks ... I will try that asap ...
Re: Howto: Integrate Phorum and Wordpress
January 13, 2006 06:10PM
Looks nice, me interested. Please keep us updated.

Sergej

------------------------------------------
^AU^ Assassins United
[www.assassinsunited.com]
------------------------------------------
Re: Howto: Integrate Phorum and Wordpress
January 13, 2006 09:15PM
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
pat
Re: Howto: Integrate Phorum and Wordpress
January 14, 2006 02:54PM
Hi gloeglm,

it seems you have a layout-problem (with the wohnheim-site) when displayed on a 800x600 screen...
Re: Howto: Integrate Phorum and Wordpress
January 14, 2006 04:13PM
Yeah, its a bit messy, I should probably remove the sidebar - but who has 800x600 those days anyways ;)
Re: Howto: Integrate Phorum and Wordpress
January 14, 2006 04:19PM
heh, I can tell you that ...
9.28% of the visitors on my site, 12.10% of the visitors on phorum.org use 800x600 ;).


Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Re: Howto: Integrate Phorum and Wordpress
January 16, 2006 10:58AM
So do this integration work for a full 100%?

Sergej

------------------------------------------
^AU^ Assassins United
[www.assassinsunited.com]
------------------------------------------
Re: Howto: Integrate Phorum and Wordpress
January 16, 2006 11:00AM
What do you mean by "Work for a full 100%"?
Sorry, only registered users may post in this forum.

Click here to login