Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'disable registration'

Viewing 17 results - 476 through 492 (of 492 total)
  • Author
    Search Results
  • #45946
    takuya
    Participant

    go to wp-admin, there’re options there.

    You need to understand more about wpmu before using buddypress. If you face these kind of problems or questions, do not post here as they are not buddypress questions.

    #45327
    enlightenmental1
    Participant

    are you trying to disable blogs completely?

    or just remove the menu option?

    to disable blogs completely:

    rename bp-blogs.php and /bp-blogs/

    i.e. “bp-blogs.phpDISABLED”

    that will remove all menu links to blogs, you’d also want to change registrations to users only and not allow blog registrations.

    to remove that menu option from just the profile page, your looking at some core edits, or possibly adding something to bp-custom.php to remove the link from the profile screen.

    I forget off hand how to do this. I’ll re-post once I remember :-)

    #45238
    Andrea Rennick
    Participant

    “Allow new registrations

    – Disabled

    – Enabled. Blogs and user accounts can be created.

    – Only user account can be created.

    – Only logged in users can create new blogs.”

    See the one that says “Only user account can be created.”? Check it. Save.

    Deep
    Participant

    Hi John,

    I registration is disabled but still the table creation is going on.

    The server is pretty much stable.. by running netstat command, I found only 27 active connections..

    Deep

    It sounds to me like a bot is hitting your registration hard, and keeps attempting to refresh a page or is getting stuck on the creation reload or activation email, and is overloading the server with requests.

    It’s kinda one of those situations now, where all those plugins start to muck up our ability to figure out if this is BP’s fault or not. Usually the recommended plan of attack is to disable all plugins now, try to create a test user yourself, and see what happens.

    Even if you upgrade to the most recent trunk, and a bot or an unruly plugin are to blame, rather than creating tons of new tables, you’re still getting the overload of requests which is causing all sorts of havoc.

    Deep
    Participant

    I am on RC1.. I had Send Invites plugin installed, it messed up the whole thing (i.e. it automatically disabled the JS for some reason), so I deleted the plugin file and folder.

    I had installed WP Super Cache too, it did not work well, so I had to take it off too..

    Other than that, no MU plugins…

    Here is the list of plugins I have installed for a single blog:

    Akismet

    All in One SEO Pack

    Global Translator

    Google XML Sitemaps

    SexyBookmarks

    Smart Youtube

    Smilies Themer

    Twitter for WordPress

    Twitter for WordPress

    WordPress 2.6+ and bbPress 0.9 cookie integration

    WP Custom Login Logo

    I disabled all the plugins but still the issue remains.

    In my previous reply, I had disabled registration just to cross verify.. but still the new tables are getting created..

    I traced the user from the User ID mentioned in the table name.. the user looks like a spammer to me.. but now sure what the user is trying to do as those created tables have 0 records…

    Deep
    Participant

    It doesn’t look like spam as I don’t see much increase in registration (wp_users table) The tables are being generated for the users which are already present..

    I have disabled the registrations now.. let’s see how it goes.. I really doubt if it will work though..

    Thanks for the inputs.. any other pointers which I should look for?

    #42508

    In reply to: Security

    Burt Adsit
    Participant

    You disabled registration in the wpmu admin area: Site Admin > Options > Allow New Registrations with that option set to what?

    1) Disabled

    2) Enabled. Blogs and user accounts can be created.

    3) Only user account can be created.

    4) Only logged in users can create new blogs.

    Now you have 4 new users on your site? If you choose option 2 or option 3 then people will still be able to register for accounts on your site.

    Are you sure they are users or just people creating comments on your blog posts?

    #41429
    Aron Jay
    Participant

    <?php

    /*

    Plugin name:Limit Blogs per User

    Plugin Author:Brajesh K. Singh

    Plugin URI:http://www.thinkinginwordpress.com/2009/03/limit-number-of-blogs-per-user-for-wordpress-mu-and-buddypress-websiteblog-network/

    Author URI:http://ThinkingInWordpress.com

    Version:1.0

    */

    add_filter(\”wpmu_active_signup\”,\”tiw_check_current_users_blog\”); //send fake/true enable or disabled request

    add_action(\”wpmu_options\”,\”tiw_display_options_form\”); //show the form to allow how many number of blogs per user

    add_action(\”update_wpmu_options\”,\”tiw_save_num_allowed_blogs\”);//action to save number of allowed blogs per user

    /****Check ,whether blog registration is allowed,and how many blogs per logged in user is allowed */

    function tiw_check_current_users_blog($active_signup)

    {

    if( !is_user_logged_in() )

    return $active_signup;//if the user is not logged in,do not change the site policies

    //otherwise…

    global $current_user;

    $blogs=get_blogs_of_user($current_user->ID);//get all blogs of user

    $number_of_blogs_per_user=tiw_num_allowed_blogs();//find

    //if number of allowed blog is greater than 0 and current user owns less number of blogs */

    if($number_of_blogs_per_user>0&&count($blogs)<$number_of_blogs_per_user)

    return $active_signup;

    else

    return \”none\”;

    }

    /****How many blogs are allowed per user *************/

    function tiw_num_allowed_blogs()

    {

    $num_allowed_blog=get_site_option(\”tiw_allowed_blogs_per_user\”);//find how many blogs are allowed

    if(!isset($num_allowed_blog))

    $num_allowed_blog=0;

    return $num_allowed_blog;//return the number of allowed blogs

    }

    /*****Show the Number of Blogs to restrict per user at the bottom of Site options ****/

    function tiw_display_options_form()

    {

    ?>

    <h3><?php _e(\’Limit Blog Registrations Per User\’) ?></h3>

    <table>

    <tbody>

    <tr valign=\”top\”>

    <th scope=\”row\”>Number of blogs allowed per User</th>

    <td>

    <input type=\”text\” name=\”num_allowed_blogs\” value=\”<?php echo tiw_num_allowed_blogs()?>\” />

    <p>If the Value is Zero, It indicates any number of blog is allowed</p>

    </td>

    </tr>

    </tbody>

    </table>

    <?php

    }

    /**************Save the Number of blogs per user when the form is updated **************/

    function tiw_save_num_allowed_blogs()

    {

    $allowed_number_of_blogs=intval($_POST[\”num_allowed_blogs\”]);//how many blogs the user has set

    //save to the database

    update_site_option(\”tiw_allowed_blogs_per_user\”,$allowed_number_of_blogs);//now update

    }

    ?>

    You can set the number of blog you would like to allow.. its not mine, just wanna share it.. :D

    – Aron

    EDIT: to set the number of blogs, proceed to Site Admin/Options/ then look below..

    #39867

    I would do this by going into /member-themes/buddypress-member/blogs/create.php and doing…

    <?php if ( bp_blog_signup_enabled() ) : ?>
    <?php
    global $bp;
    $blogs = bp_blogs_get_blogs_for_user($bp->loggedin_user->id);
    if ($blogs['count'] != 9)
    {
    bp_show_blog_signup_form();
    }
    else
    {
    ?>
    <div id="message" class="info">
    <?php _e( 'Limit nine blogs per member. If you would like another, please contact an Admin for assistance.', 'buddypress' ); ?>

    </div>
    <?php
    }
    ?>

    <?php else: ?>

    <div id="message" class="info">
    <?php _e( 'Blog registration is currently disabled', 'buddypress' ); ?>

    </div>

    <?php endif; ?>

    Just remember not to overwrite the member theme if you do a BuddyPress update. ;)

    #39313
    dpsweb
    Member

    SORRY!!! I did this and the error went away:

    WPMU Admin Options > Allow New Registrations : Disabled.

    WPMU Admin LDAP Options > Disable Public Signup : NO

    What happens now is when a user clicks on the signup button it takes them to the WPMU login page. They login and it uses LDAP. There is no local user account signups as everything appears to be going through the LDAP plugin to authenticate.

    #38478

    In reply to: Only one blog for user

    Burt Adsit
    Participant

    OK people this seems to work. This requires modifying the member theme since I didn’t find any actions in bp to hook this into so here goes:

    In the member theme the file:

    /buddypress-member/blogs/create.php

    There is this chunk of code:

    <?php if ( bp_blog_signup_enabled() ) : ?>

    ..(some other stuff here)..

    <?php else: ?>

    <div id=”message” class=”info”>

    <p><?php _e( ‘Blog registration is currently disabled’, ‘buddypress’ ); ?></p>

    </div>

    <?php endif; ?>

    Replace the ..(some other stuff here).. with this:

    <?php

    global $bp;

    $blogs = bp_blogs_get_blogs_for_user($bp->loggedin_user->id);

    if (!$blogs)

    {

    bp_show_blog_signup_form();

    }

    else

    {

    ?>

    <div id=”message” class=”info”>

    <p><?php _e( ‘Limit one Blog per member’, ‘buddypress’ ); ?></p>

    </div>

    <?php

    }

    ?>

    This is the entire little create.php file in pastie: http://pastie.org/396083

    This was a: “quick ya we should have that and I’ve got to get to the store and get some boxes because I’m moving from Michigan where we have a snow storm today and Virginia where I’m moving to comes to a screeching halt when they get 1″ of snow and I gotta run now” solution.

    When I get back from the store I’ll help clean up the damage this might cause. This does work for me in a quick test.

    gogoplata
    Participant

    It works for the main blog too, thought the search function isn’t all that useful given there would only be a single blog but all the other functions work with the main blog.

    All you’d need to do to get this setup is to change the default role for the main blog from subscriber to contributor and disable blog registration. Also, you may want to hack at the code to remove things such as the blog directory, the list of user blogs, etc. but this is optional.

    #35059
    Burt Adsit
    Participant

    There is only an option to turn off the adminbar for logged out users. Yes/No for them. Otherwise it’s Yes for everywhere in mu. The adminbar gets generated at every page load in mu. You could disable it completely by default someplace in code and then in the pages that you want it to appear on, enable it before the wp_head() call that your theme makes in header.php

    bp registers its need for attention by the calls:

    add_action( ‘wp_footer’, ‘bp_core_admin_bar’ );

    add_action( ‘wp_head’, ‘bp_core_add_css’ );

    You could un-register these calls someplace like functions.php in your theme to turn off the adminbar globally:

    remove_action( ‘wp_footer’, ‘bp_core_admin_bar’ );

    remove_action( ‘wp_head’, ‘bp_core_add_css’ );

    Then in your theme, on the specific pages you want to show the adminbar register the adminbar again before the call to wp_head():

    add_action( ‘wp_footer’, ‘bp_core_admin_bar’ );

    add_action( ‘wp_head’, ‘bp_core_add_css’ );

    In your theme you’ll have to add some logic in header.php to detect what page is being displayed and make the event registration calls.

    So, in functions.php un-register the calls and in header.php before wp_head() re-register them. They’ll get turned off again when functions.php loads the next time and the sequence starts again.

    #33823

    In reply to: No Blog Registration

    gogoplata
    Participant

    I should note, though, that the “Creat a Blog” function doesn’t work, it’s just a link to a page that says registrations are disabled.

    #33822

    In reply to: No Blog Registration

    gogoplata
    Participant

    Right, that’s the only downside. I only disabled it temporarily, which is why I still installed the blog component but if you never intend on allowing blogs not having it installed is probably for the best.

    #33805

    In reply to: No Blog Registration

    gogoplata
    Participant

    I still installed bp-blogs, but disabled registrations and it worked perfectly.

Viewing 17 results - 476 through 492 (of 492 total)
Skip to toolbar