The MU forums have moved to WordPress.org

can we remove privacy option when creating blogs? (9 posts)

  1. redbox
    Member
    Posted 17 years ago #

    I don't want my users to create private blogs, I want them all visible and searchable. I tried commenting out the statement in wp-signup.php regarding wanting my blog to be visible, but that had the opposite of making all new signups invisible. Is it possible to make them visible by default and get rid of the option?

  2. suleiman
    Member
    Posted 17 years ago #

    I too am interested in this.

  3. drmike
    Member
    Posted 17 years ago #

    I'd try line #197 of the file wp-signup.php and just set public to 1.

    Hmm, I may try something like that. Either that or default teh box to be checked.

    edit: It defaults to being checked. Oh well...

  4. lunabyte
    Member
    Posted 17 years ago #

    Hardcoding the checkbox field and making it a hidden field with the default value would work. As well you'd have to remove the privacy option from the options menu in the back as well.

  5. drmike
    Member
    Posted 17 years ago #

    Looking at the 60-70% of the blogs at my site and how posts on them don't show up on teh dashboard and fiolks compain about it, I may just do public only.

  6. wildebees
    Member
    Posted 15 years ago #

    Has anybody found a more elegant solution for this?

  7. spmckee
    Member
    Posted 15 years ago #

    Interested as well.

  8. dsader
    Member
    Posted 15 years ago #

    The default option at creation of a new blog is in schema.php:
    add_option('blog_public', '1');
    That should be enough but you could plugin too,

    add_action('wpmu_new_blog', 'ds_new_blog_settings');
    function ds_new_blog_settings($blog_id) {
    	update_blog_option( $blog_id, 'blog_public', -1);
    }

    Hiding the wp-admin/options-privacy.php page can also be done with a plugin

    add_action( '_admin_menu', 'ds_no_more_privacy' );
    function ds_no_more_privacy() {
    foreach($submenu['options-general.php'] as $key => $sm) {
    	if(__($sm[0]) == "Privacy" || $sm[2] == "options-privacy.php") {
    	unset($submenu['options-general.php'][$key]);
    	break;
    	}
    }
    if( strpos($_SERVER['REQUEST_URI'], 'options-privacy.php'))
    	wp_redirect('options-general.php');
    }
    }

    Still have to hack the privacy bits out of your sign-up page the old fashioned way, though.

  9. dsader
    Member
    Posted 15 years ago #

    sorry "1" not "-1" duh.

About this Topic