Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wp user activate'

Viewing 25 results - 301 through 325 (of 902 total)
  • Author
    Search Results
  • #181943
    danbp
    Participant

    ola !
    I have no idea, but some paths…

    First, if you altered the user.php, it’s the wrong way, because it’s a core file. Translation modification should only be done in the po/mo file

    Secondly, you have a special character (tilde) in the word contraseña. Would probably be more secure that you use the HTML entity for this.

    Don’t know what you did before the errors screen, but you have to go back to a previous stage, without errors. Deactivate all plugins, except BP. Remove the WP translations files from the languages folder, and try to enter your install in english…

    Please read more about BuddyPress language here.

    #181764
    Mathieu Viet
    Moderator

    @livsy

    From what i see, the latest user you registered “Leon123” is an author. Have you changed his role manually ? else the signup process is ok.

    174 users seems to be problematic

    I wonder who is adding ‘signup_ip’ in the usermeta, have you reactivated the plugins ? Or it maybe the theme you are using ? In options i see that “buddycorp” is adding a lot of options and some are related to signups, is it your theme ?

    Otherwise, i think i would test this :
    0/ make a back up of the database.

    1/ It looks like you deactivated BuddyPress and rollback to a previous version of the database several time because in the signups table, there were signups in “8plicate”
    So before batch activate or activate, you’ll surely need to run this query :
    DELETE FROM wp_signups WHERE signup_id > 173

    2/ try with one user (for example “sert” ID = 2006) to edit his user_status to 2 and then go into the BuddyPress signups management screen and try to activate him. Once done check his role.

    3/ If everything went fine, i think, i’ll update the user status of the 174 users to 2, then form the signups management screen batch activate the 174 users, i think it’s best to do it step by step, you can increase the number of signups displayed from the screen options, but i advise you not to set it to 174, maybe 40.

    to update the 174 user status, you can run this query in PhpMyAdmin for example :
    UPDATE wp_users SET user_status = 2 WHERE ID NOT IN ( SELECT user_id FROM wp_usermeta WHERE meta_key = "wp_capabilities" );

    For your info activating the signup for the “admin” user won’t work as the activation key is empty, so you can just delete it for this user.

    I wonder if it’s not simpler for you to batch edit the user roles.

    #181744
    Mathieu Viet
    Moderator

    hi @livsy

    How were you doing before ? Once a user registered, you were changing the role before he activated his account ?

    Or are you choosing a role different than Subscriber in the WordPress setting (wp-admin/options-general) > New User Default Role dropdown field ?

    About the upgrade difficulties, were you using a plugin that was dealing with registrations, and if yes which one ?

    Thanks for your feedback.

    #181570
    Mathieu Viet
    Moderator

    Hi @textrat

    I’m really sorry to read about this issue. I’ve run some tests to try to reproduce. This is the results of it:

    1/ “Confirm User Registration” doesn’t seem to interfere. The plugin is adding a user_meta “authentication” set to 1 for each users. When a user logs in it checks if this user meta is there and if so allow the log in, else display a message saying the account is not authenticated.
    2/ The only way i’ve managed to have a user_status set to 0 and the activation_key still in usermeta for this user was to set the user_status to 0 myself directly in the database (testing config WP 3.8.3, BP 1.9.2 > 2.0 and Confirm User Registration)
    3/ From the Manage Signups screen if i activate this kind of user (user_status 0 and activation_key not empty), i have the message that user is already activated, but the user is no more in the list of pending accounts and is now available in the users list with the default role
    4/ About the 152 pre-existing, the only way i’ve managed to reproduce a similar problem was to restart all again and to delete the value of activation_key meta in the database. eg : activation_key > “” : The meta is there but empty. In this case, the user keeps on being in pending after trying to activate it.

    I think clearing the “pending bit” can be achieve by updating the “active” field to 1 into the signups table for the 152 pre-existing users. But, before doing so, you should check the ‘activation_key’ meta values for some of the 152 users to see if the value is empty. This way it could confirm my point 4.
    Then you should check for the corresponding user_status to be sure it is not set to 2.

    Whatever you do, i advise you to backup your database before.

    mairaj
    Participant

    Also, in the settings here – https://mysite.com/wp-admin/network/settings I have set up following message -`

    Dear User,

    Your new mysite.com account is set up.

    You can log in with the following information:
    Username: USERNAME
    Password: PASSWORD
    LOGINLINK

    Thanks!

    –The Team @ SITE_NAME`

    However, what my users are receiving is this –

    Thanks for registering! To complete the activation of your account please click the following link:
     
    http://mysite.com/activate/?key=some-key-here

    Its a MultiSite installation.

    #178211
    Joss Winn
    Participant

    Hi again,

    I still have this problem. I’m sure it’s BuddyPress that is the cause, as it still occurs with different themes and with all other plugins deactivated. When I deactivate BuddyPress, the problem stops.

    Run your mouse over the links on this page, and you’ll see the issue: http://blogs.lincoln.ac.uk/test/

    I was wondering whether it is a legacy of running BuddyPress since alpha/beta and whether there is an old setting in the database or something that I might look out for. Where are the BuddyPress settings stored in the database? None of the wp_bp tables look like they hold global settings.

    In my wp-config.php file, I have the following:

    define( ‘BP_ENABLE_ROOT_PROFILES’, true ); //removes the /members/ slug
    define( ‘BP_DEFAULT_COMPONENT’, ‘custom-profile’ ); //defaults to profile page rather than activity stream of a user
    define( ‘BP_ENABLE_USERNAME_COMPATIBILITY_MODE’, true ); //for LDAP compatibility
    define ( ‘BP_IGNORE_DEPRECATED’, true );
    define(‘BP_USE_WP_ADMIN_BAR’,true);

    Thanks for any advice,
    Joss

    #178074
    terraling
    Participant

    Okay, scratch that, it’s not working… I stripped out what I’d been tinkering with before.

    Here’s the problem:

    
    global $wpdb;
    // Activate user
    $wpdb->query('UPDATE wp_users SET user_status = 0 WHERE ID = '.$user_id);
    // Remove the activation key meta
    delete_user_meta( $user_id, 'activation_key' );
    //TESTING
    $user = get_user_by( 'id', $user_id );
    error_log("user id " . $user_id . " has status = " . $user->user_status);
    
    $signon = wp_signon( array('user_login' => $user_login, 'user_password' => $user_password, 'remember' => false) );
    

    So the signon fails because my error_log says
    user id 106 has status = 2
    even though it has just been set to 0 and, if I look directly in the wp_users table I see that it is indeed 0.

    I can only assume that the sql query to write user_status is slow and when I manually inspect it it has changed, but when the code checks it it is still set to 2.

    Does that sound plausible? Or am I missing something?

    #177720
    BuddyBoss
    Participant

    I’ve never seen that before. Standard advice is to switch themes and deactivate all plugins, then switch everything back one by one to see if a specific theme/plugin is the cause.

    If not, BuddyPress does automatically inject links into some content. Profile fields for example, when viewing a user’s profile. Weird that it’s doing this on a random WP page though.

    As for ‘network activated’ I suggest leaving it to just ‘activated’ on your main site that you’re running BP on. No reason to run it everywhere.

    #177708
    Joss Winn
    Participant

    UPDATE:

    I’ve changed BuddyPress from being ‘network activated’ to just ‘activated’ on the main/root site. I don’t know what the recommended setup is these days, but we’ve had it network activated since BuddyPress only ran on WPMU.

    Having it activated on the main site only means that the ‘bug’ now only affects the main site and not every site across the network. So the example I give above no longer shows the issue.

    However, you can still see it on this page:

    http://blogs.lincoln.ac.uk/test/

    See how, whenever there is @lincoln.ac.uk either in the content of the page, or in a mailto link, BuddyPress injects a hyperlink with a random user’s email address following the root domain:

    http://blogs.lincoln.ac.uk/amakrzanowska%40lincoln.ac.uk/

    I’ve no idea how or why it’s constructing that URL and automatically inserting it whenever @lincoln.ac.uk is found in the body content.

    Ideas much appreciated!

    #177153
    Trishan1000
    Participant

    Hi,

    I’ve read your post over the past couple of days as I was having the same problem and trying to find a solution after being stuck for weeks without any solutions or replies.
    I’ve finally found a solution that works for me and I hope it works for you.

    Deactivate BP 1.9.1 and delete it from your WP-admin page(I am not sure if you will loose your registered users etc – I didn’t). Go to the following buddy press link
    and download version 1.8.1. Install under your plugins section, activate and test to see if it works.

    Hope I helped, cheers.

    brinkingyellows
    Participant

    Hi @r-a-y. Here are the plugins I am currently using on the site.

    Network Activated:

    Advanced Responsive Video Embedder
    Anti-Splog
    Are You a Human
    bbPress
    bbPress – Report Content
    bbPress Enable TinyMCE Visual Tab
    bbpress Simple View Counts
    BP Profile Search
    BuddyPress Activity Plus – (I did deactivate this after the 1.9.1 update but nothing changed)
    BuddyPress Avatar Bubble
    BuddyPress Follow
    BuddyPress Group Calendar
    BuddyPress Groups Extras
    Buddypress Social
    BuddyPress Toolbar
    BuddyPress Twitter
    Buddypress Xprofile Custom Fields Type
    GD bbPress Toolbox
    Group Forum Crumbs
    rtMedia for WordPress, BuddyPress and bbPress
    User Activity
    WP User Avatar

    —-

    Single Site Actived

    Amazon Product In a Post Plugin
    BuddyMenu
    BuddyPress Notifications Widget
    Really simple Facebook Twitter share buttons

    That’s about all the plugins that I have active that play a heavy part in Buddypress or are loosely connected to it.

    #176312
    sylviaivie
    Participant

    I’m doing this with a wp plug in called Menu Items Visibility Control in conjunction with s2member.

    Once it’s activated, Go to the menu area, click the drop down on the Home menu item name and under visablilty do your conditional.

    Mine looks like this. (! at the beginning means they can’t) So when they are logged in the menu item won’t appear.

    !current_user_can(‘access_s2member_level1’)

    Sorry I don’t know exactly what you would put unless you have s2member

    #175732
    steeleweed
    Participant

    Production site – using Atahualpa 3.7.12 and WP 3.7, various plugins including bbpress, bp sidebar/template.

    Updated to 1.9, all BP pages fail.
    Activity shows text, no links, no Avatars.
    Members shows text for user, no other members, no links, no profile info.
    Register page fails.

    A live site – I will not swap to a ‘default theme’ like Twentythirteen. I have simply Deactivated BP until the problem is resolved.

    Re issues related to themes and plugins, only BP knows in detail what the changes were and which of those changes were likely to manifest these symptoms.

    #175002
    4ella
    Participant

    http://wordpress.stackexchange.com helped me:

    function bp_registrations_today($activated = false) {
        global $wpdb;
    
        $query = "SELECT COUNT(ID) FROM {$wpdb->prefix}users WHERE DATE(user_registered) = CURDATE()";
    
        if ( $activated ) {
            $query .= " AND user_status = 0";
        }
    
        return $wpdb->get_var($query);
    }

    To get the number of users registered today, call the function as

    echo bp_registrations_today();

    To get the number of users registered today with activated accounts, call the function as

    echo bp_registrations_today(true);

    #174494

    In reply to: Wrong Avatar Folder

    WPWally
    Participant

    Sorry, forgot to add the details:

    1. Which version of WordPress are you running?
    3.7.1
    
    2. Did you install WordPress as a directory or subdomain install?
    Directory
    
    3. If a directory install, is it in root or in a subdirectory?
    Root on server / subdirectory on localhost (I have two copies for emergencies like this but this time both are behaving badly)
    
    4. Did you upgrade from a previous version of WordPress? If so, from which version?
    Yes, 3.6.1
    
    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.
    Yes
    
    6. Which version of BP are you running?
    1.8.1
    
    7. Did you upgraded from a previous version of BP? If so, from which version?
    1.8
    
    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
    Yes: AddThis Social Bookmarking Widget / BuddyPress Template Pack / Edit Author Slug / Login With Ajax / Popular Widget / Video Thumbnails (disabled all plugins save for BuddyPress and the behavior continues)
    
    9. Are you using the standard BuddyPress themes or customized themes?
    Customized
    
    10. Have you modified the core files in any way?
    No
    
    11. Do you have any custom functions in bp-custom.php?
    Yes (2 lines - excluding php open and close tags): 
    
    <?php
    add_filter( 'bp_use_wp_admin_bar', '__return_false' );
    define ( 'BP_DISABLE_ADMIN_BAR', true );
    ?>
    
    12. If running bbPress, which version?  Or did your BuddyPress install come with a copy of bbPress built-in?
    Not running bbPress
    
    13. Please provide a list of any errors in your server's log files.
    None
    
    14. Which company provides your hosting?
    nearlyfreespeech.net
    
    15. Is your server running Windows, or if Linux; Apache, nginx or something else?
    Linux: Apache (both localhost and server)
    

    I have also just removed the avatars folder and it does indeed create one as well as the userid folder although that remains blank (no files are placed there) and the same error as my original post appears. Hope that helps in solving this.

    #174223
    danbp
    Participant

    hi @fyreus,

    despite you don’t mention your bp version nore the used theme, deactivate all extra group management plugins and consider this solution: https://codex.buddypress.org/developer/how-to-add-members-to-a-group-via-wp-users-screen/

    By default, BP let you add members to groups from the frontend if you’re friend and at least group admin. And it’s not a good idea to modify this, IMO. 😉

    #174160
    shanebp
    Moderator

    You can avoid the need for activation email by using this code in bp-custom.php

    function bp_disable_validation( $user_id ) {
      global $wpdb;
    
      $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->users SET user_status = 0 WHERE ID = %d", $user_id ) );
    }
    add_action( 'bp_core_signup_user', 'disable_validation' );
    
    add_filter( 'bp_registration_needs_activation', '__return_false', 100 );

    But the next screen will still inject this $title:
    “Check Your Email To Activate Your Account!”

    Even with a template over-ride!

    I think it’s reasonable that if this filter is applied:
    add_filter( ‘bp_registration_needs_activation’, ‘__return_false’ );

    That you shouldn’t need a database operation.
    And the $title should not be injected.

    Currently, the only way I see to change that $title is to hack a core file.
    Hacking core files is NOT recommended.
    That said, see:
    plugins\buddypress\bp-members\bp-members-screens.php and find Line 515.

    [ I’d love to be wrong about all this and hope somebody has an easier approach. ]

    If you’d like to help BP and anyone else trying to solve this problem,
    please submit an enhancement ticket at https://buddypress.trac.wordpress.org/
    Use the same user / pw you use here.

    Now… a question for you… On your site http://causeanddesign.com you have a very nice help tour using overlay boxes. The first box says: “Welcome. Every nonprofit deserves good design and good technology.”

    Did you write a custom script / plugin for this?
    Or find an existing plugin?

    #173378
    saulcoz
    Participant

    Well I have a plugin – except that I can’t be arsed to release it as a plugin at the moment so I’ll just cut&paste the code here.

    2 things:
    1. it doesn’t replace the wp-email-login plugin or the login for hack above – it adds to them by simply forcing the username to be the same a field pulled from the Xprofile.
    2. It’s hardwired to a specific field name in @applegateian’s project. You’ll need to edit the code to use your own field name because, like I say, I haven’t got time to turn it into a proper plugin. When I find the enthusiasm to do it properly I’ll create a plugin settings menu and stuff.

    <?php
    

    /*

    Plugin Name: XProfile to username
    

    Plugin URI: http://
    Description: Created for a specific project, this plugin copies a field from the user's Xprofile totheir username, ensuring first that it is unique by adding a digit to te end

    Version: 0.1
    

    Author: Saul Cozens

    Author URI: http://saulcozens.co.uk/wordpress
    
    */
    
    function xprofile_to_username($xp) {
    

    global $wpdb;

    
    

    $field_id = BP_XProfile_Field::get_id_from_name(‘Name/Company Name’);

    	if(!$field_id || $xp==null) {
    

    return;

    	}
    

    if($field_id == $xp->field_id) { // cover me, I’m going in

    		$new_username=strtolower(preg_replace('/[^\w\d]/','-', $xp->value));
    

    $existing_user_by_that_username=get_user_by(‘login’, $new_username);

    		if($existing_user_by_that_username && ($existing_user_by_that_username->ID !== $xp->user_id )) { // another user already has that login
    

    $i=1;

    			while(get_user_by('login', $new_username."-$i")) {
    

    $i+=1;

    			}
    

    $new_username.=”-$i”;

    		}
    

    $wpdb->update($wpdb->users, array(‘user_login’ => $new_username), array(‘ID’ => $xp->user_id));

    		return;
    

    }

    }
    

    add_action(‘xprofile_data_after_save’,’xprofile_to_username’);

    
    

    ?>

    Just put this is a file called xprofile-to-username.php in a folder called xprofile-to-username, activate it and Bob’s your uncle. Every time the user’s profile gets updated, their username will mirror the xprofile field (with hyphen instead of funny characters and numbers to remove any duplicates).

    Enjoy.

    #173146
    Robert
    Participant

    No, they’re actual users but I’m transferring my Joomla site to WP/BP. So I imported them into WP, installed BP, and they don’t show up as members.

    So, question – when they do login for the first time they’ll become “members” at that point?

    Thanks again!

    #173075
    Hectorius
    Participant

    Hello!

    I have BuddyPress Pending Activations plugin and I’m having issues with the user still been able to log in even though the user is still in pending state. The login its not failing.

    Any help is appreciate it.

    #172814
    bp-help
    Participant

    @nodeadbunnies
    1.) You do realize BP is a WP plugin right? It is not its own entity therefor if the user registers with BP activated, they are also registering with WP.
    2.) By default if a user enters a wrong password they are then redirected to wp-login.php if you want to include the lost password link there may be some login widget plugins that includes that link, other wise you could get that link from wp-login.php and hard code it into your child themes sidebar.php which may not be a good idea until you get a little more experience. Try searching for plugins that will accomplish this before going that route.
    3.) You may want to check the spam folder to see if the activation email went there. If not then check your servers error logs and report back.

    #172686
    asieger
    Participant

    Hi fellows,


    @mercime
    : I deactivated BP and its Plugin and i registered a new user as subscriber but the new user did not get the activation mail too(meanwhile, i tick the box that allows new users to get the credentials), but i (as the administrator) got an email about the newly registered user.

    So, the problem here is not with BP, its has to do with WP itself. Any suggestion or way out in solving this issues?

    I’ll expect your response.

    Regards
    – Samuel

    #172370
    bp-help
    Participant

    @tse11
    Patience please! Deactivate the plugin you was using for redirecting and try this in bp-custom.php https://codex.buddypress.org/plugin-development/bp-custom-php/ :

    
    function bphelp_redirect() {
      if( is_user_logged_in() && is_super_admin && is_home) {
        // redirect to dashboard code
        bp_core_redirect( get_option( 'home' ) . '/wp-admin/' );
      }else {
          if( is_user_loggedin() && !is_super_admin  && is_home) {
        // redirect to activity code
        bp_core_redirect( get_option( 'home' ) . '/activity/' );
          }
       }
    }
    add_action( 'template_redirect', 'bphelp_redirect', 1 );
    
    #171627
    thisisbbc
    Participant

    Here is more information about our installation.

    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?

    All In One SEO Pack
    Version 2.0.3.1 | By Michael Torbert

    Antispam Bee
    Version 2.5.9 | By Sergej Müller

    AntiVirus
    Version 1.3.4 | By Sergej Müller

    bbPress
    Version 2.4 | By The bbPress Community

    Better WordPress Minify
    Version 1.2.2 | By Khang Minh

    Broken Link Checker
    Version 1.8.3 | By Janis Elsts

    BuddyPress
    Version 1.8.1 | By The BuddyPress Community

    Contact Form 7
    Version 3.5.2 | By Takayuki Miyoshi

    Duplicate Post
    Version 2.4.1 | By Enrico Battocchi

    Google Analyticator
    Version 6.4.5 | By Video User Manuals Pty Ltd

    NGFB Open Graph+ Pro
    Version 6.8 | By Jean-Sebastien Morisset

    Revolution Slider
    Version 3.0.7 | By ThemePunch

    Social Login for wordpress
    Version 4.8 | By LoginRadius Team

    TinyMCE Advanced
    Version 3.5.8 | By Andrew Ozz

    W3 Total Cache
    Version 0.9.3 | By Frederick Townes

    Widget Importer & Exporter
    Version 1.0 | By Steven Gliebe

    WordPress Social Share Buttons
    Version 1.1.3 | By Lee Chestnutt

    WP-Memory-Usage
    Version 1.2.1 | By Alex Rabe

    WP Sliding Login | Register Panel
    Version 2.3 | By Kyle Powning @ The Factory

    WP Smush.it
    Version 1.6.5.3 | By WPMU DEV

    9. Are you using the standard BuddyPress themes or customized themes?

    I’m using another theme callet BulletPress from HB-Themes

    10. Have you modified the core files in any way?

    I haven’t modified any BP related files, but I do use a child theme with a custom functions.php

    11. Do you have any custom functions in bp-custom.php?

    No

    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?

    Our theme came with bbPress, see above for version.

    14. Which company provides your hosting?

    PlanetHoster

    #171440
    mirgcire
    Participant

    Hooray!

    I finally created a buddypress installation where strangers can become members. It turns out that you must have “Anyone can register” enabled WHEN YOU ACTIVATE BUDDYPRESS. Just a minor detail which only took me a few days of my undivided attention to discover. Well, actually I was distracted a little my a mysql db corruption which required a complete wp re-install.

    However, even though strangers can now register, they are still not “members”. When I try to add a friend, I am told that the site has no members. My site has two users: the admin, and the stranger. But when I log in as either one, bp/wp consistently claims there are no members.

    If anyone can shed some light on how to become a “member” of my own web site I would much appreciate it. Thanks!

Viewing 25 results - 301 through 325 (of 902 total)
Skip to toolbar