The MU forums have moved to WordPress.org

Mollom? (2 posts)

  1. crsneil
    Member
    Posted 15 years ago #

    Having done the requisite searches, I can't seem to find anybody that's reporting overwhelming success with Mollom.

    The developer says it's not really meant for WPMU, but that it *can* be configured to work with MU.

    Anybody geting any love from it? Any config hints if you DO have it working?

  2. Netsensei
    Member
    Posted 15 years ago #

    Hi,

    I'm the developer of WP Mollom. I designed this primarily for regular Wordpress users. I'm planning on looking into MU in the near future.

    I know that some users do have it working on Wordpress MU. I can even tell you how. It takes a bit of PHP knowledge and it's a hack that I'm not really supporting right now. So, do this at your own risk if you're really want to try this one out.

    1. You need to deactivate the mollom configuration page to make sure that subblogs can't change the global settings for the whole MU installation. You could do that by commenting the add_action() hook on line 219 in wp-mollom.php or commenting the entire function.

    2. Next, you need to put this code in a seperate PHP file. It's a small plugin that will set all the configuration variables that WP Mollom will need to function on your MU installation. (Yes, it's old code! Try to look for a new version if you can find one!) Change the different variables with your data. The important thing is to make sure you fill out your public/private key combo.


    <?php
    /*
    Plugin Name: WPMU new blog settings plugin for WPMU 2.6
    Version: 0.2
    Plugin URI: http://www.ringofblogs.com/2007/12/21/wpmu-new-blog-settings-plugin/
    Author: Elad Salomons
    Author URI: http://www.ringofblogs.com
    Description: WPMU new blog settings plugin
    */
    function new_blogs_setting( $blog_id ) {
    //set your options here:
    add_option('gmt_offset', 2); // timezone dingetjes

    add_option('mollom_private_key', 'b7e.....);
    add_option('mollom_public_key', '5e5.....');
    add_option('mollom_servers', 'http://88.151.243.81#http://82.103.131.136');
    add_option('mollom_reverseproxy', '');
    add_option('mollom_reverseproxy_addresses', '');

    add_option('comment_whitelist', ''); // Alle comments gelijk voor de wet.

    mollom_activate(); // mollom "activate" functie, gaat de sessions tabel maken enz.
    // stop editing here
    return;
    }
    add_action('populate_options', 'new_blogs_setting');
    ?>

    3. Save the file and upload it to your wp-content/plugins folder.
    4. In your administration panel, you should see the new plugin pop up. Activate the plugin.

    When a new blog is created, all the Mollom variables will be set through this function and Mollom should protect the new blog.

    It's a work around that I haven't tested myself, so I would recommend that you test it first to make sure it works properly.

    Again, it's a hack and nothing more. If you run into trouble, I'm not really in a position to help you out here as I don't have much MU experience atm.

    With regards,

    Matthias Vandermaesen
    --
    http://www.netsensei.nl

About this Topic

  • Started 15 years ago by crsneil
  • Latest reply from Netsensei