The MU forums have moved to WordPress.org

Change settings for new blogs (8 posts)

  1. eaglenick
    Member
    Posted 15 years ago #

    How do I go about modifying the settings for new blogs? Things like Themes, Permalinks, Blogroll, the default/first post, etc.

    Thanks.

  2. tdjcbe
    Member
    Posted 15 years ago #

    Search the forums for default settings. Been discussed many times previously. You can either modify the wp-admin/schema.php file directly or there's a couple different plugins that'll do the trick.

    edit: Example plugins:

    http://www.ringofblogs.com/2007/12/21/wpmu-new-blog-settings-plugin/
    http://plugins.paidtoblog.com/wpmu-power-tools/

    You'll still want to review the discussions as each plugin handles things differently.

  3. andrea_r
    Moderator
    Posted 15 years ago #

  4. zanfardinom
    Member
    Posted 14 years ago #

    How do you use the New-Blog-Defaults code?

    mz

  5. andrea_r
    Moderator
    Posted 14 years ago #

    Drop the file in the mu-plugins folder.
    then go in the admin area and read the Blog Defaults menu under Site Admin.

    kind of like the readme.txt file says.

  6. zanfardinom
    Member
    Posted 14 years ago #

    Thanks, andrea_r!

    I downloaded a different New-Blog-Defaults code that did not include a readme.txt file. I thought this was the same file and did not download. Thank you.

    What is the best way to include two links for every new blog? Do you know of a quick WordPress snippet or example code for this?

    Thanks in advance!

    mz

  7. DeannaS
    Member
    Posted 14 years ago #

    The one you downloaded has example php code in it - no administrative interface. You find the section you want to use, and you modify it to do what it you want it to do.

    For just the links, you'd create a php file with the following and put it in your wp-plugins folder:

    function newblogd_blogroll_links( $blog_id, $user_id )
    {
        global $current_site;
        switch_to_blog($blog_id);
        wp_delete_link(1); //delete Wordpress.com blogroll link
        wp_delete_link(2); //delete Wordpress.org blogroll link
        // repeat this line for each link you want to include
        wp_insert_link(array('link_name' => 'my link name', 'link_url' => 'http://somesite.com'));
        restore_current_blog();
    }
    add_action( 'wpmu_new_blog', 'newblogd_blogroll_links', 10, 2 );
  8. tdjcbe
    Member
    Posted 14 years ago #

    That's why I suggested searching. Tons of examples. :)

About this Topic

  • Started 15 years ago by eaglenick
  • Latest reply from tdjcbe