Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wp user activate'

Viewing 25 results - 176 through 200 (of 903 total)
  • Author
    Search Results
  • #253181
    fidelleon
    Participant

    “Solution” told here works fine but requires modifying core:

    https://buddypress.org/support/topic/2-5-html-email-styling-not-working/

    The BP Registration Options plugin forces in some way to send the emails using content_plaintext instead of content_html:

    $must_use_wpmail = apply_filters( ‘bp_email_use_wp_mail’, $wp_html_emails || ! $is_default_wpmail );

    It gets set to true so:

    if ( $must_use_wpmail ) {

    […]
    $email->get( ‘content_plaintext’, ‘replace-tokens’ )

    If you visit the “Manage Signups” and send an email to the user (reminding to activate their accout), the mail is 100% HTML w/o touching anything…

    #253006
    danbp
    Participant

    Hi,

    no, that thread doesn’t apply to your case. šŸ˜‰

    this information is inaccessible to administrators as long as the user is ā€œPendingā€.
    That’s wrong !
    You’re partially right, as you have no direct access, but you can go to a pending user profile information in backend.

    How ?
    – click on a approved member name when on the members management page (backend).
    – once on that page, copy the URL and replace the user_id you’ll see in it by the one of the pending member.

    Problem is to get the pending member user_id. It’s not available outside of the wp_users or wp_signup table.

    The link to a pending member on the pending member list looks like:
    ../wp-admin/users.php?page=bp-signups&signup_id=1&action=activate

    On the approved member list, it looks like:
    ../wp-admin/users.php?page=bp-profile-edit&user_id=41&wp_http_referer=%2Fwp-admin%2Fusers.php

    The difference are:
    signup_id=1 – which is not the user_id
    and
    user_id=41 – which is !

    But if you take the second link example and replace 41 by the pending user ID you’ll find in the DB you can access to his information.

    Pretty easy if you have only 1 or 2 users to check. A great hasle if you have dozens.

    Could be a good feature for some BuddyPresser… šŸ™‚

    sharmavishal
    Participant

    When I activate some members they are not added to the members list.

    BP considers activated users when they login to the website. else it doesnt.

    activation emails dont go or goes to spam folder? check this plugin and use it as per your requirements

    https://wordpress.org/plugins/wp-mail-options/

    Also if your email domain is on lets say google apps and you are using the email domain to send mail from your site hosted on a different server you need to add email srv records

    #252540

    In reply to: Blog for users

    danbp
    Participant

    Hi,

    you don’t need a plugin to do that. You have perhaps omited to activate blog creation. Go to your network admin (wp-admin/network/settings.php)

    and select one of these option:
    – Logged in users may register new sites.
    – Both sites and user accounts can be registered.

    Save and you’re done.
    On the Toolbar user menu (top right) you will see a new button called Sites whith a sub-menu Create a site.

    #252291
    Henry Wright
    Moderator

    So on successful login it looks as though Simple Membership’s swpm_login hook runs. With the Simple Membership plugin activated, try adding this to your theme’s functions.php file:

    add_action( 'swpm_login', function( $user, $pass, $remember ) {
        if ( ! $user || is_wp_error( $user ) ) {
            return;
        }
        bp_core_redirect( bp_loggedin_user_domain() );
    } );

    Please note I haven’t tested.

    ds123
    Participant

    thanks for the reply its a themeforest theme called vivacity and here are the plugins i have installed:

    Akismet
    Version 3.1.8 | By Automattic | View details

    Audio player
    Version 2.0.4.1 | By Martin Laine | Visit plugin site

    Auto Post Thumbnail
    Version 3.3.4 | By Aditya Mooley , Tarique Sani | View details

    BuddyPress
    Version 2.5.1 | By The BuddyPress Community | View details

    CloudFlare
    Version 1.3.20 | By Ian Pye, Jerome Chen, James Greene, Simon Moore, David Fritsch, John Wineman

    Dashboard Widget Remover
    Version 1.0 | By Zihad Tarafdar | View details

    Disable wp new user notification
    Version 0.100323 | By Corey Salzano | View details

    Google Analytics by Yoast
    Version 5.4.6 | By Team Yoast | View details

    LayerSlider WP
    Deactivate | Edit
    Version 5.6.2 | By Kreatura Media | Visit plugin site

    Log Report Plugin
    Keeps Stop Spammer logs in CSV file
    Version 1.0 | By Keith P. Graham | Visit plugin site

    Mail From
    Version 1.0.1 | By Andrew Hamilton | View details

    Select SI CAPTCHA Anti-Spam
    Version 2.7.7.7 | By Mike Challis | View details

    Stop Spammers Spam Control
    Version 6.15 | By Keith P. Graham | View details

    Vivacity Plugin
    Version 1.2 | By GhostPool

    WP Maintenance Mode
    Version 2.0.3 | By Designmodo | View details

    WP Super Cache
    Version 1.4.8 | By Automattic | View details

    WP Widget Cache
    Version 0.26 | By Andrew Zhang | Visit plugin site

    WPBakery Visual Composer
    Version 4.9 | By Michael M – WPBakery.com | Visit plugin site

    Yoast SEO

    #251106
    valuser
    Participant

    Would unactivated members not appear as “Pending” in wp-admin/network/users.php and then you can activate or delete them from there ??

    #250700
    danbp
    Participant

    Yep, now it’s clearer. But sorry, I don’t know about a way to get some groups on main site and some others only on a secondary site.

    Group should be intended as members group. And a group is not a site. It is just a bunch of members attached to a group.

    Also, a group is not a blog and that’s why you get on a multisite install several blogs who share the same members, belonging eventually to differents groups. What and wherever the install is on main or seconday blog.

    Members are all in the same DB table and WP doesn’t share them by groups, but by username > blog authors…

    As you already know, BuddyPress comes with a member directory and a group directory. And on a multisite(aka network), a blog directory. But basically, all 3 cases are related to members, not to blog. There is no relation between a blog and a group. You can eventually install a blog into a group (buddypress group blog plugin), but you can’t install a group into a specific blog (outside the one where BP is activated). A group is not a blog.

    On codex it is specified: buddypress root blog (the one you get from WordPress) or buddypress root blog on secondary site.

    In other words, It should go to the secondary site. is not possible.

    But i can be completely wrong. šŸ˜‰

    #250629
    sharmavishal
    Participant

    @djpaul thanks..yes deactivated those plugins..even then it was an issue..i downloaded and uploaded 2.5 version via FTP…then i reverted back to older BP version and did a auto update via the backend and it started working…minus the plugins which were creating an issue…..now only the follow debug logs:

    Notice: bbp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 2.3.) in /opt/www/site.com/wp-includes/functions.php on line 3792

    Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in /opt/www/site.com/wp-includes/functions.php on line 3792

    Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
    __construct()
    instead. in /opt/www/site.com/wp-includes/functions.php on line 3624

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘wp_admin_bar_my_account_xprofile_menu’ not found or invalid function name in /opt/www/site.com/wp-includes/plugin.php on line 601

    #250603
    sharmavishal
    Participant

    updated to stable release form wordpress.org..still the site crashes…plugins clashing were deactivated.. Following from debug logs:

    BBpress:

    bbp_setup_current_user was called incorrectly
    Cannot redeclare bbp_get_component_name()

    Others:

    Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in /opt/www/site.com/wp-includes/functions.php on line 3792

    Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
    __construct()
    instead. in /opt/www/site.com/wp-includes/functions.php on line 3624

    Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
    __construct()
    instead. in /opt/www/site.com/wp-includes/functions.php on line 3624

    Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
    __construct()
    instead. in /opt/www/site.com/wp-includes/functions.php on line 3624

    Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
    __construct()
    instead. in /opt/www/site.com/wp-includes/functions.php on line 3624

    Fatal error: Call to undefined function bp_is_user_inactive() in /opt/www/site.com/wp-content/plugins/buddypress/bp-core/bp-core-caps.php on line 362

    #250535
    IngeB1983
    Participant

    Hi Paul,

    Thank you for responding.

    To answer your questions:

    * How were you customising your activation emails?
    -I was changing lines in the .pot file in PoEdit and generated a new .mo file in order to personalise the activation mail a bit more. (No core files were adjusted or changed)
    -I made a change in the buddypress.min.css file

    * Is your site sending other emails correctly, or are all emails broken? Can you test to be sure?
    I have only sent out activation emails up to this point. To test your question, I have manually added myself as a user and activated the account. Then, I send a confirmation email which it DID send, only the sender was WordPress instead of my site name.

    * Are you running WordPress multisite, or regular WordPress?
    Regular WP. No multisite

    * Do you run any plugins that change wp_mail or affect how emails are delivered? For example, any plugins that send email via Mailchimp, etc?
    Not to my knowledge. I am currently running these plugins:

    – BuddyPress
    – Child Theme Configurator
    – Jquery Updater
    – Members
    – Page Excerpt Widget
    – Rating Widget
    – User Submitted Posts

    All of them were running as well yesterday when it still worked.

    Let me know if you need any more info.

    Inge.

    #250093
    Andrew Tibbetts
    Participant

    Solution:

    There is an action to hook to inside bp_core_activate_signup() that fires right after activating the account ( user clicked the link in the email ), so when the user hits /activate this will fire and reset the user_status to 3 ( 1 is spammer I guess ). Now to figure out the rest…

    Here is the code ( the second function disallows the user from logging in with custom message ):

    add_action( 'bp_core_activated_user', 'custom_bp_core_activated_user' );
    function custom_bp_core_activated_user( $user ) {
    
    	if ( empty( $user ) ) {
    		
    		return false;
    	}
    
    	if ( is_array($user) ) {
    		
    		$user_id = $user['user_id'];
    	}
    	else {
    		
    		$user_id = $user;
    	}
    
    	$member_type = bp_get_member_type($user_id);
    	
    	if ( $member_type == 'member_type_to_manually_activate' ) {
    		
    		global $wpdb;
    		
    		$wpdb->query( $wpdb->prepare( "UPDATE $wpdb->users SET user_status = 3 WHERE ID = %d", $user_id ) );
    	}
    }
    
    add_filter( 'authenticate', 'custom_authenticate', 30 );
    function custom_authenticate( $user ) {
    
    	if ( is_wp_error( $user ) || empty( $user ) ) {
    
    		return $user;
    	}
    
    	if ( 3 == $user->user_status ) {
    
    		$member_type_name = bp_get_member_type($user->ID);
    		$member_type = bp_get_member_type_object($member_type_name);
    		
    		return new WP_Error( 'invalid_username', __( '<strong>ERROR</strong>: All ' . $member_type->labels['name'] . ' accounts require manual confirmation from an admin. You might be contacted soon to verify your identity. You will recieve an email once your account is approved.', 'buddypress' ) );
    	}
    
    	return $user;
    }
    #249167
    Slava Abakumov
    Moderator

    Try visiting this link inside your site /wp-admin/tools.php?page=bp-tools and recalculate members number.
    Also the difference might be in the way plugins are counting – with or without activated users, with or without spam users etc.

    #248911

    In reply to: Error Posting Comments

    Manoj Chacko
    Participant

    I did check the theme before with twenty fifteen and the error was still there, we currently using a studiopress theme. But I checked it again with twenty fifteen and the issue remains.

    1. Which version of WordPress are you running?
    WordPress 4.3.2

    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

    4. Did you upgrade from a previous version of WordPress? If so, from which version?
    Yes, don’t remember which version it was 4.2.* I think

    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?
    BuddyPress 2.4.3.

    7. Did you upgraded from a previous version of BP? If so, from which version?
    yes, I think it was buddypress 2.2.*

    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
    Yes,
    Akismet; BuddyPress; BuddyPress Docs; BuddyPress Group Email Subscription; BuddyPress Sitewide Activity Widget; CustomPress; Google Analytics +
    ImageInject; Jetpack by WordPress.com; More Privacy Options; Multisite Plugin Manager; New Blog Templates; Site Categories; TinyMCE Advanced
    Ultimate Branding; User Role Editor; WordPress Importer; WP Author Slug; WPMU DEV Dashboard; WPMU Ldap Authentication;

    9. Are you using the standard WordPress theme or customized theme?
    Studiopress theme (Tested with twenty 15 as well)

    10. Have you modified the core files in any way?
    No
    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?
    BBpress Version 2.5.8

    13. Please provide a list of any errors in your server’s log files.
    Under the windows event viewer is an error
    “Faulting application name: httpd.exe, version: 2.4.16.0, time stamp: 0x55a22a64
    Faulting module name: php5ts.dll, version: 5.6.12.0, time stamp: 0x55c3b699”
    Happens whenever this error occurs.
    Nothing related within the apache logs That I can see.

    14. Which company provides your hosting?
    University Hosted (Temple University)
    15. Is your server running Windows, or if Linux; Apache, nginx or something else?
    Windows running Xampp

    Mathieu Viet
    Moderator

    @danielmariveles

    Just tested on a fresh install (regular config & multisite one).

    When a user registers from the front-end registration form on both configs, i can’t manage to reproduce your issue.

    first_name/last_name user meta are created
    display_name field in table wp_users is created
    value for the xProfile Name field is created in wp_bp_xprofile_data table

    Title of the page is looking like this FirstName LastName - Site Name for profile’s page.

    So everything works fine for me.

    Are you sure it’s happening when a user registers ?
    Have you tried without any other plugin activated than BuddyPress ?

    #248415
    Paul-tCGs
    Participant

    Well @shanebp, the call to GoDaddy didn’t go so well: they basically wanted to turn on the WP debug log which I’d enabled last two weeks ago.

    In the meantime, with things somewhat stable, we’ve been turning the BuddyPress plugin on and off to add the functionality on the backend or the user profiles on the front end as one need

    Clearly we are having trouble with the Kami theme update, and we’ve emailed the developers for the theme to get them working on that part of the issues we’re having. Yet there are lots of other updates are occurring all the time too, and clearly BuddyPress is the one sticking me in the side.

    When BuddyPress is activated, the WP Dashboard goes white, but functionality of the plugin comes back along with all the data. When BP is deactivated (removed via sftp, actually) the functionality is lost, but the Dashboard comes back to online mode.

    I’m wondering now if there is any better support than these forums.. cuz i can’t see this being more than running blind right now.

    #248293

    In reply to: WordPress User Table

    shanebp
    Moderator

    BuddyPress does not have its own user table.
    If BP is activated, all the users in the WP table are BP users.

    #248165
    Paul-tCGs
    Participant

    thanks @shanebp

    re: your suggestions..

    Turn on wp-debug and then check error logs. < I believe I did this by editing the Wpconfig.php file.. but the debug.log shows file size of zero .. so maybe I did that wrong.

    — — // Enable WP_DEBUG mode
    — — define(‘WP_DEBUG’, true);

    — — // Enable Debug logging to the /wp-content/debug.log file
    — — define(‘WP_DEBUG_LOG’, true);

    — — // Disable display of errors and warnings
    — — define(‘WP_DEBUG_DISPLAY’, false);
    — — @ini_set(‘display_errors’,0);

    — — // Use dev versions of core JS and CSS files
    — — // (only needed if you are modifying these core files)
    — — define(‘SCRIPT_DEBUG’, true);

    — — /* That’s all, stop editing! Happy blogging. */

    Deactivate bbPress and all related plugins. ~ as indicated in my post, did this in several different ways to totally and entirely isolate buddypress as the problem plugin.

    Test with ONLY a WP theme like 2013 and BP ~ perhaps I wasn’t clear, but did this too.. same problem.

    —- —- interesting new note —- —-

    Since the folks at GoDaddy did their memory maximization steps, the error messages have stopped.. but I remembered that when the WP-Admin/Dashboard screen goes white, the site doesn’t. so I added buddypress back in, activated, got the WP-Admin white screen and see that the forums are back up and the user icons are too. so I can’t tweak the interface from the dashboard, but functionality is working slightly.

    #248164
    shanebp
    Moderator

    … a limit to the number of groups & users that BuddyPress can manage; something like 20k users

    There is no limit – provided you have the necessary server resources available.
    There is a difference between total users and # of concurrent users – meaning the # of users that are performing operations at any one time.

    It’s impossible to diag your issue without access to your server.
    Some suggestions:

    • Turn on wp-debug and then check error logs.
    • Deactivate bbPress and all related plugins.
    • Test with ONLY a WP theme like 2013 and BP

    White screens can be tricky to diagnose – but a decent developer can at least narrow down the possible factors.

    #247600
    old account
    Participant

    Error: “You do not have sufficient permissions to access this page.”

    This happens when clicking on ‘Pending’ in Users when BuddyPress is activated only on main site of multisite install but, you can see pending users at /wp-admin/network/users.php?page=bp-signups i.e. network side.


    @imath
    posted a working patch for this issue which is scheduled for BP 4.4 branch (hopefully)
    https://buddypress.trac.wordpress.org/ticket/5977

    Hope this helps.

    #247378
    @mercime
    Participant

    >> Theā€membershipā€ option in the image on the link you posted.

    @functionmunchkin
    The option to ā€œallow users to registerā€ in Network Admin > Settings is the same as the one in a single WP site’s option in Settings > General in that link.

    >> Register goes the the login page and clocking the register link on there goes to page not found.
    You mentioned that “I’ve setup the bp register and activate pg”
    – did you set up BP network-wide or in one subsite? Reference: https://codex.buddypress.org/getting-started/installation-in-wordpress-multisite/
    – have you double-checked that you created the Register and Activate pages in the main site (if network-wide) or in the subsite, then associated the pages in Settings > BuddyPress > Pages?

    #247151
    r-a-y
    Keymaster

    You can ignore this message if you’re using BuddyPress on a production site.

    To turn off debugging notices on production, set WP_DEBUG to false in wp-config.php:
    https://codex.wordpress.org/WP_DEBUG

    This is a notice caused by a plugin that is initializing user info too early. If you want to find out which plugin is causing this, deactivate all your plugins and only activate BuddyPress. Next, activate your plugins one-by-one until you find the culprit.

    #246140
    paragbhagwat
    Participant

    To add more to this… i am writing the method as shown below

    add_filter( ‘bp_core_signup_send_validation_email_message’, ‘RECN_CUSTOM_activation_message’, 10, 3 );

    function RECN_CUSTOM_activation_message( $message, $user_id, $activate_url ) {

    $user = get_userdata( $user_id );
    ….
    ….

    and the $user_id passed is the signup id ….while the WP_USER table does not have data for the signup id…

    #245740
    danbp
    Participant

    shouldn’t BuddyPress create those pages automaticallyyes, but only when it is the first install. As you sed a member plugin previously with a page name member, BP didn’t create one as it already exist. But BP doesn’t check for existing plugins, just for “his” pages.

    Anyway, as you added BP, than reinstalled or reactivate, the page was already registered in the wp_post table, with a post_type of ‘page’ and a post_status of ‘publish’.

    Also, in the WP system, when a page is in the trash, it is not deleted. The page is still in the table, but with a post_status of ‘trash’. To remove it completely you need to delete it permanently. Click on trash and use the appropriate button.

    Now the issue. You have 2 member pages. The one has a slug /member/, the other has a slug /member-2/.
    The one may show in the pages list and the other in the trash. This naming is the internal way used by WP to differenciate 2 pages with a same name. That’s fine, but BP dosn’t know about that, and you can run into trouble because of this. And other plugins also.

    Ensure you have only one page called ‘member’ and clear the trash. And delete completely the other one. Do the same for any other BP page eventually. The principle is to have an unique page name in the pages list and no identical page in trash.

    Yes you have to create these page manually now. By default, each component should have one page assigned. On a standart install, you should have at least:
    members – activity. If activated, group. And depending of the previous status of your WP (before BP installation) a page for activation and registration. If not in BP’s page settings, you have to add them manually.

    Note also that all these pages exist only to give a slug to each component. These page are not ordinary WP pages, but slugs placeholder used internally by WP to connect the components.
    That’s why they should exist, be blank and without any model or template assignation.

    The content is added dynamically by BP for each component with the appropriate template to the current action.

    e.g. the member page. You can name it to what you want. Lets say you called it crew. His slug is /crew/
    When typing your-site.xx/crew/ you will see something related to the member component.

    The member directory is default: your-site/crew/ will show all your members

    Now you want to see a profile. The slug wont change, but only the action.
    Again your-site/crew/ (the default slug, aka page) and the new action: go to the profile of /username/
    Click on a member name and you’re now on his profile: your-site/crew/username
    Now from the profile you want to see that users friends.
    your-site/crew/username/friends

    As you see, you’re always on the same “page”, but with different content depending the context. This context is defined by anything appearing after the slug name.
    This behave is the exact inverse of a traditionnal WP page, intended for so called static contents such as about page or TOS and similar stuff.

    Hope this point is now clear to you.

    #245727
    shanebp
    Moderator

    You need to acquire a basic understanding of WP hooks and filters; how they work and the difference between them. Then it will be obvious why ‘the above assignment’ doesn’t work.

    The only reason william_bp_core_activated_user() has access to $user_id is because it is passed by the hook.

Viewing 25 results - 176 through 200 (of 903 total)
Skip to toolbar