Search Results for 'wp user activate'
-
AuthorSearch Results
-
October 7, 2015 at 1:51 am #245165
In reply to: Admin Bar not showing up
mrjarbenne
ParticipantHave you attempted to deactivate all of your plugins as well to see if there is a culprit there? Usually Adminbar issues crop up if the
<?php wp_footer(); ?>tag is missing. Usually this is a theme thing, but on occasion a poorly coded plugin can create a similar error. Given that the issue seems to be role-based, that might indicate it’s a plugin trying to do some funky things based on user-role.October 3, 2015 at 10:11 pm #245039In reply to: Cannot Deactivate BuddyPress
bkf0
ParticipantI ran into the same or similar issue. From my debug logs it appears to be an issue when login with ajax is also an active plugin…these are the two errors that repeat endlessly until there’s a server timeout:
[03-Oct-2015 22:00:33 UTC] PHP Warning: current() expects parameter 1 to be array, null given in /var/www/html/_wp/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php on line 223 [03-Oct-2015 22:00:33 UTC] PHP Stack trace: [03-Oct-2015 22:00:33 UTC] PHP 1. {main}() /var/www/html/_wp/wp-admin/plugins.php:0 [03-Oct-2015 22:00:33 UTC] PHP 2. require_once() /var/www/html/_wp/wp-admin/plugins.php:10 [03-Oct-2015 22:00:33 UTC] PHP 3. require_once() /var/www/html/_wp/wp-admin/admin.php:31 [03-Oct-2015 22:00:33 UTC] PHP 4. require_once() /var/www/html/_wp/wp-load.php:37 [03-Oct-2015 22:00:33 UTC] PHP 5. require_once() /var/www/html/_wp/wp-config.php:106 [03-Oct-2015 22:00:33 UTC] PHP 6. do_action() /var/www/html/_wp/wp-settings.php:353 [03-Oct-2015 22:00:33 UTC] PHP 7. call_user_func_array() /var/www/html/_wp/wp-includes/plugin.php:503 [03-Oct-2015 22:00:33 UTC] PHP 8. LoginWithAjax::init() /var/www/html/_wp/wp-includes/plugin.php:503 [03-Oct-2015 22:00:33 UTC] PHP 9. LoginWithAjax::getRegisterLink() /var/www/html/_wp/wp-content/plugins/login-with-ajax/login-with-ajax.php:91 [03-Oct-2015 22:00:33 UTC] PHP 10. bp_get_signup_page() /var/www/html/_wp/wp-content/plugins/login-with-ajax/login-with-ajax.php:270 [03-Oct-2015 22:00:33 UTC] PHP 11. bp_has_custom_signup_page() /var/www/html/_wp/wp-content/plugins/buddypress/bp-members/bp-members-template.php:1902 [03-Oct-2015 22:00:33 UTC] PHP 12. bp_locate_template() /var/www/html/_wp/wp-content/plugins/buddypress/bp-members/bp-members-template.php:1885 [03-Oct-2015 22:00:33 UTC] PHP 13. bp_get_template_stack() /var/www/html/_wp/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php:90 [03-Oct-2015 22:00:33 UTC] PHP 14. current() /var/www/html/_wp/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php:223 [03-Oct-2015 22:00:33 UTC] PHP Warning: next() expects parameter 1 to be array, null given in /var/www/html/_wp/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php on line 229 [03-Oct-2015 22:00:33 UTC] PHP Stack trace: [03-Oct-2015 22:00:33 UTC] PHP 1. {main}() /var/www/html/_wp/wp-admin/plugins.php:0 [03-Oct-2015 22:00:33 UTC] PHP 2. require_once() /var/www/html/_wp/wp-admin/plugins.php:10 [03-Oct-2015 22:00:33 UTC] PHP 3. require_once() /var/www/html/_wp/wp-admin/admin.php:31 [03-Oct-2015 22:00:33 UTC] PHP 4. require_once() /var/www/html/_wp/wp-load.php:37 [03-Oct-2015 22:00:33 UTC] PHP 5. require_once() /var/www/html/_wp/wp-config.php:106 [03-Oct-2015 22:00:33 UTC] PHP 6. do_action() /var/www/html/_wp/wp-settings.php:353 [03-Oct-2015 22:00:33 UTC] PHP 7. call_user_func_array() /var/www/html/_wp/wp-includes/plugin.php:503 [03-Oct-2015 22:00:33 UTC] PHP 8. LoginWithAjax::init() /var/www/html/_wp/wp-includes/plugin.php:503 [03-Oct-2015 22:00:33 UTC] PHP 9. LoginWithAjax::getRegisterLink() /var/www/html/_wp/wp-content/plugins/login-with-ajax/login-with-ajax.php:91 [03-Oct-2015 22:00:33 UTC] PHP 10. bp_get_signup_page() /var/www/html/_wp/wp-content/plugins/login-with-ajax/login-with-ajax.php:270 [03-Oct-2015 22:00:33 UTC] PHP 11. bp_has_custom_signup_page() /var/www/html/_wp/wp-content/plugins/buddypress/bp-members/bp-members-template.php:1902 [03-Oct-2015 22:00:33 UTC] PHP 12. bp_locate_template() /var/www/html/_wp/wp-content/plugins/buddypress/bp-members/bp-members-template.php:1885 [03-Oct-2015 22:00:33 UTC] PHP 13. bp_get_template_stack() /var/www/html/_wp/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php:90 [03-Oct-2015 22:00:33 UTC] PHP 14. next() /var/www/html/_wp/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php:229Simple fix is to deactivate login with ajax, then deactivate buddypress, then activate login with ajax.
This error might also present itself with other plugins/themes that have custom signup pages.
October 2, 2015 at 6:24 pm #245021In reply to: How to get an ID of a user who was just activated?
William
ParticipantYou’re a GENIUS @shanebp!
It seems to be working fine except that I’m getting these errors:
Warning: Missing argument 1 for william_bp_core_activated_user() in /…/two/wp-content/plugins/The Kick/TheKick.php on line 24
Warning: Missing argument 2 for william_bp_core_activated_user() in /…/two/wp-content/plugins/The Kick/TheKick.php on line 24
Warning: Missing argument 3 for william_bp_core_activated_user() in /…/two/wp-content/plugins/The Kick/TheKick.php on line 24
Any ideas on how to fix these @shanebp?
September 21, 2015 at 11:37 pm #244656DanielEngelhardt
ParticipantYes it worked for me, thanks again. Here is the snippet which i am using in my
functions.php:add_action('bp_core_activated_user', 'bp_custom_registration_role',10 , 3); function bp_custom_registration_role($user_id, $key, $user) { $userdata = array(); $userdata['ID'] = $user_id; $userdata['role'] = xprofile_get_field_data('Ich bin', $user_id); if ($userdata['role'] == 'Dienstleister') { $userdata['role'] = 'dienstleister'; } elseif ($userdata['role'] == 'Kunde') { $userdata['role'] = 'kunde'; } //only allow if user role is my_role if (($userdata['role'] == "dienstleister") or ($userdata['role'] == "kunde")) { wp_update_user($userdata); } }September 11, 2015 at 8:35 pm #244304danbp
ParticipantI’m wondering what is a username for you.
WP register only a user by username (aka pseudonym), email and password. BP add a Name field in which you can add anything: username, first or lastname. In the user table, there is also display_name, wich is the combination of first and last name from a WP user profile, before BuddyPress was installed or if you allow your users to enter the dashboard, and they start to play with their profile settings. IMHO, it’s better they haven’t that access when BP is activated. 👮
When on the members directory, you (connected or not) can search a member by using his username.
If you use WP’s site search from toolbar or the search widget (same thing), it doesn’t work, as members are not post types… 👣
For now, i’m unsure what you want to fetch. Do you mean display_name ?
All search forms available in BP are contextualized, as @henrywright expected.
A BP class can be extended, a core function with a filter can be extended. You simply add your own to it.
In other cases, like forbp_core_action_search_sitefunction (in bp-core-classes.php)
there is an action and a filter. Wow. 💪You can rewrite the whole function and use the action hook or only change a part of it by using the filter.
remove_action( 'bp_init', 'bp_core_action_search_site', 7 ); function my_custom_core_action_search_site() { bla bla bla.... } add_action( 'bp_init', 'my_custom_core_action_search_site', 7 );or
add_filter( 'filter_name', function_name');Theorie here:
https://buddypress.org/support/topic/how-to-override-core-function/But before hacking to deep, read here:
Maybe you could find some interesting things about
includeorsearch_temsoptions. 👀If all this is too much for you, consider this plugin:
https://wordpress.org/plugins/buddypress-global-search/
@prabin04, @henrywright
🚧 i’m really not an expert in matter of BP search, but thank you for your consideration.September 4, 2015 at 6:04 pm #244054In reply to: User Activation link isn’t working for Admin
Ingram_AV_98
ParticipantCool, awesome, wicked.
As with everything BuddyPress over the last four months I figured it out myself.If anybody cares or is intrigued, I pulled out the “signup_id” from the wp_signups table and created a link with that, of the form:
<?php //== Setup variable for use in the activation email body. $user = get_userdata( $user_id ); //== Get the signup_id for a user global $wpdb; $signup_id = $wpdb->get_var( "SELECT signup_id FROM wp_signups WHERE user_login = '" . $user->user_login . "' LIMIT 1" ); $user_path = "users.php?page=bp-signups&signup_id=" . $signup_id . "&action=activate"; $activate_user = admin_url( $user_path ); ?>This link is a part of the filter for the activation email body, whilst the email itself was also filtered to be sent to the site admin instead of the user.
If anybody is interested I’m happy to share the full solution which involved filtering the activation email recipient, email subject and email body, whilst giving the admin a link to activate the user and then sending a confirmation email to the user once they’ve been authorised.
August 28, 2015 at 8:59 am #243760ctuxboy
ParticipantHello,
– I activate the original WP twentyfifteen-theme, and i see no errors in the developer console (Chrome browser)
Is this an issue? Have more people this?
Can i adding manually the private button links?This are the installed plugins:
– All In One WP Security
– Black Studio TinyMCE Widget
– Bowe Codes
– BP Registration Options
– Bp Stickers
– BuddyPress Members only
– BuddyPress
– Child Theme Configurator
– Contact Form 7
– Duplicator
– Events Manager
– FB like notification for buddypress
– Loco Translate
– Page Builder by SiteOrigin
– Peter’s Login Redirect
– Really Simple CAPTCHA
– SiteOrigin Widgets Bundle
– User Switching (deactivated for the moment!)
– WP StatisticsThe strange thing is that all the buttons showing correctly in the user profiles when nothing a friend.
(sorry for my bad english!)
August 22, 2015 at 8:11 am #243489In reply to: [Resolved] Add group redirects to 404 error!
danbp
ParticipantYou’re welcome !
To all readers, Codex reminder when getting 404, missing BP pages, not found errors after setup or upgrade ! 😉
Pages are automatically generated for the BuddyPress components you enabled in the components settings using the default slugs based on the name of each component activated. Make sure that activated components have corresponding pages assigned to each in this panel.
Directories
Associate a WordPress Page with each BuddyPress component directory.- Activity Streams (if activated)
- User Groups (if activated)
- Members > this is core and can’t be removed/modified
Registration
Associate WordPress Pages with the following BuddyPress Registration pages.
- Register
- Activate
Note: registration is not a BuddyPress component but part of WP core.
When you allow user registration, you have to add manually these pages.August 22, 2015 at 8:09 am #243488danbp
ParticipantTo all readers, Codex reminder when getting 404, missing BP pages, not found errors after setup or upgrade ! 😉
Pages are automatically generated for the BuddyPress components you enabled in the components settings using the default slugs based on the name of each component activated. Make sure that activated components have corresponding pages assigned to each in this panel.
Directories
Associate a WordPress Page with each BuddyPress component directory.- Activity Streams (if activated)
- User Groups (if activated)
- Members > this is core and can’t be removed/modified
Registration
Associate WordPress Pages with the following BuddyPress Registration pages.
- Register
- Activate
Note: registration is not a BuddyPress component but part of WP core.
When you allow user registration, you have to add manually these pages.August 16, 2015 at 3:13 am #243249In reply to: My accaunt in menu or header
danbp
ParticipantHowdy [username] is part of WordPress Toolbar. When BP is activated, it add a sub-menu to this menu.
If you want it elswhere, it’s not really possible as the BP part of it was written to go to the admin_bar only.
To get a similar menu, you simply add buddypress menu to your theme main menu (explained on above codex link). But this menu will be static and you cant get same details.
Another solution is to recode that menu, so you can add it with a filter function to wp_nav_menu, which handles the main menu or the header menu.
To do this, you can use a new Walker Class extention or the existing filter. Possibly also some other ways to do this, but i don’t know them.
To remove the Howdy menu and the attached BuddyPress Profile sub menu from the Toolbar, you can use this snippet (in functions.php or bp-custom.php):
function bpfr_remove_my_account_menu() { global $wp_admin_bar; $wp_admin_bar->remove_menu('my-account'); } add_action( 'wp_before_admin_bar_render', 'bpfr_remove_my_account_menu' );Codex References
https://codex.wordpress.org/Function_Reference/wp_nav_menu
https://codex.wordpress.org/Navigation_MenusAugust 13, 2015 at 5:07 pm #243158In reply to: New User Notification Email to Admin
michaelpfaff
ParticipantI figured this out by cobbling together some code. Just copy this into a new .php file, upload to /plugins and activate. You’ll need to change ‘Referrer’ to whatever profile field you have instead.
<?php /* Plugin Name: Custom New User Email Description: Changes the copy in the email sent out to new users */ // Redefine user notification function if ( !function_exists('wp_new_user_notification') ) { function wp_new_user_notification( $user_id, $plaintext_pass = '' ) { $user = get_userdata( $user_id ); // The blogname option is escaped with esc_html on the way into the database in sanitize_option // we want to reverse this for the plain text arena of emails. $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES); // find the profile field for referrer $field1 = xprofile_get_field_data( 'Referrer', $user_id ); $message = sprintf(__('New user registration on your site %s:'), $blogname) . "\r\n\r\n"; $message .= sprintf(__('Username: %s'), $user->user_login) . "\r\n\r\n"; $message .= sprintf(__('E-mail: %s'), $user->user_email) . "\r\n\r\n"; $message .= sprintf(__('Referrer: %s'), $field1) . "\r\n"; @wp_mail(get_option('admin_email'), sprintf(__('[%s] New User Registration'), $blogname), $message); if ( empty($plaintext_pass) ) return; $message = sprintf(__('Username: %s'), $user->user_login) . "\r\n"; $message .= sprintf(__('Password: %s'), $plaintext_pass) . "\r\n"; $message .= wp_login_url() . "\r\n"; wp_mail($user->user_email, sprintf(__('[%s] Your username and password'), $blogname), $message); } } ?>August 13, 2015 at 9:07 am #243118In reply to: Profile Pic upload failure
danbp
ParticipantI was running WP and BBPress… and user where handled as forum user by bbPress. Now you use BP and bbpress aside.
Deactivate bbpress and make sure you have only one member page (and no one in trash too). Sync BP profiles with WP – all this can be done in BP settings. Check that all is working correctly, then reactivate bbPress.Now if it still doesn’t work, sorry for you, but there is no result without effort. You have an issue and we’re trying to debug it.
I presume you have no local install where you could test previously from prod site ?
Keep Twenty Twelve active and deactivate all plugins, as the issue may come from a js conflict which we have to isolate at first.
If you use some mu-plugin or custom functions in bp-custom.php, think to remove them temporary.
August 13, 2015 at 8:51 am #243116danbp
ParticipantI can confirm that Raindrops theme is working correctly with BP and taht the admin bar is showing up to logged in users.
Deactivate and delete the admin bar plugin. Remove also any custom code you have added in the past concerning the toolbar. The idea is to revert back to a fully standard WP install.
If this doesn’t work, you have to go to your db and check the wp_options table for the toolbar setting.
Search for option_namehide-loggedout-adminbarwhere value must contain1.August 13, 2015 at 12:19 am #243104In reply to: Profile Pic upload failure
AdventureRidingNZ
ParticipantThanks for that. I’ve tried it under Twenty Twelve with the same result but not with all other plugins deactivated yet as there’s a lot of them.
The profile path just happened like that when I installed BuddyPress. I was running WP and BBPress for a while and the members URL was /members/username. When I installed BuddyPress later it changed to /members/members-2/username as part of the BP install. I didn’t actively do anything to make it like that and thought that much have been standard.
July 28, 2015 at 5:11 pm #242506In reply to: Can’t register user through front end
@mercime
Participant> then click on ‘Complete Signup’ button but nothing happens and no users are created in the backend.
@startershut Click on wp-admin menu Users and click on BP’s Pending link on screen then activate the user you just created. https://codex.buddypress.org/administrator-guide/pending-users-admin-screen/Here’s how regular member registration works: https://codex.buddypress.org/member-guide/registration/
July 21, 2015 at 2:11 am #242066In reply to: Buddypress on multisite
djsteveb
Participant@mattfl850 – I run a few multi-sites and a few bp sites – and after reading your first post I still don’t understand what you have as a setup and what you are trying to accomplish.
I have awp multi-site with bp activated in maindomain dot com – the profiles and social layers are all based in the main root – if someone wants to create a “blog” aka “site” then their site becomes “usersiteOne dot maindomain dot com” – so each of their blogs (sites) are on a subdomain.
Of course it is possible to swap that so they appear as maindomain dot com / usersiteOne
All the groups and activity and such is run through the main root level..
are you trying to get each user to have their own buddypress layer layer – with their own groups and such that is completely separated from the others?
July 18, 2015 at 6:06 am #241959In reply to: buddypress and multisite. Having troubles
djsteveb
Participant@aju29 – If I were you I would make a zip file backup of all your files (through cpanel or whatever) – then export your database (follow the instructions in the wordpress.org for exporting backups – (you’ll need to go into phpmyadmin -> export – advanced – check “add drop table” – export)
check your server error log to see if there is anything in there that would give a clue when you get the ““insufficient permission to view this page” error.
Check to make sure you have “pretty permalinks” set properly.
IF you deactivate all plugins, and switch to default theme, and things do not work right at that point – something is wrong.. could be your server setup, could be you forget to add the line needed for multi-site to work properly.. go back and re-trace steps..
Then I would start fresh, delete everything and install a totally fresh WP –
Of course you could do this in a different folder or something.. but you need to get wp multi-site and buddypress working with default theme before mucking it up with other plugins and themes.. once you establish that the basics work with your server and setup – then start adding the other stuff one by one to see if something breaks it.
Someone else may have an idea of what your trouble is and chime in – I don’t know your exact setup and what your exact issues are when you are trying to do what exactly – I am just another BP user, not a wp / bp dev / guru by any means.
July 13, 2015 at 7:01 pm #241823In reply to: using action bp_core_signup_after_activate
Randy Hicks
ParticipantFurther investigation shows that the following added to functions.php will run if the “activate” button is clicked from the wp-admin by an existing admin. It will not run from the activate link in the user activation-email.
I must be looking for a different action.
The goal is to login the user and redirect them after they have clicked the activate link from the activation-email.
add_action( 'bp_core_signup_after_activate', 'bp_autologin_on_activation', 1 ); function bp_autologin_on_activation( $signup_ids ) { print_r($signup_ids); die('bp_autologin_on_activation'); }July 9, 2015 at 6:40 am #241615In reply to: How to show Biographical Info in members profile?
danbp
Participantto add a profile field like biography to profiles, you have to activate xprofile component in BP settings.
This and much more is all explained on the Codex.
it just showing membername|sitename This is not a issue, but intended so by default.
membername|sitename is the page title when on a member profile
members|sitename is the page title when on the member directory – where “members” is the title you give to the member page. BP create automatically this page and use “members” as title at first install, but you can modify it.Aside, you’re using admin as user name. I strongly recommend you to change this.
https://codex.wordpress.org/Hardening_WordPress
http://www.wpbeginner.com/wp-tutorials/how-to-change-your-wordpress-username/July 8, 2015 at 6:08 pm #241593Christian Kramer
ParticipantI activated the debug mode in wp-config, but no warnings or notices. (The page was loaded normally, without any debug mode hints and it looks like a site with deactivated debug mode.)
All caches are cleared. I deactivated the WP Super Cache plugin.
I cleared the browser cache completely.The result: no access to pending users.
In the Network Admin user setting I see one pending user, but I cannot delete him. The same result after clicking “delete” (or “activate”): No access.
July 8, 2015 at 4:13 pm #241588danbp
ParticipantDo you see warnings or notices when you activate debug mode in wp-config ?
Do you use a cache ? Yes ? So clear it.
Also, clear your brwoser history. In many cases, permission deny is a session error, which comes up when you try to login with two different usernames with two different role. (admin vs. subscriber zum beispiel)
July 2, 2015 at 6:55 am #241378In reply to: Friend Requests Disabled
danbp
ParticipantHi @mdesouza,
There is no switch for that. But each user can allow/disallow some email notice from within his profile.
your-site/members/USERNAME/settings/notifications/1) you have to activate Friends Connection and Notification component.
2) Activate pretty permalinks or re save the present settings. Allways good to do after updates or heavy modifications or plugin (+/-) managementTest also the behave with one of WP’s default theme if you use a third party theme.
June 25, 2015 at 11:22 pm #241118In reply to: Activation link doesn’t work
danbp
Participanthi @nnc24,
you have to read and to debug. As first test, activate 2015 theme and deactivate any plugin but BP. Put debug mode on true in wp-config during your test.
Some related topics:
https://buddypress.org/support/topic/user-activation-issue/
https://buddypress.org/support/topic/new-user-registration-problem-invalid-activation-key/June 13, 2015 at 4:40 pm #240673laloptk
ParticipantI tried that @henrywright, but no luck. I’m activating test accounts from WP backend manually, maybe that has something to do with the code not adding members to groups. I don’t know if there’s a difference for ‘bp_core_activated_user’ if the admin activates the account from backend or if the member activates the account from their e-mail.
Right now I can’t send e-mails from my localhost and can’t test if activating by e-mail works.
June 9, 2015 at 9:20 pm #240509shaquana_folks
ParticipantOh okay, so since it’s working from your end, maybe you can help me. Any suggestions on what I can do or should do to get it to work on my end? I’m still running into the same issue of the users not being created, even while I’m still on the Twenty Fifteen theme with only the BuddyPress plug in (now at the 2.3.1 version), the bbPress plug in (now at the 2.5.7 version) and the W3 Total Cache (still at the 0.9.4.1 version) activated. Also, I went and checked the back end again from my hosting plan provider (as well as talked to a representative of my hosting plan service over the phone) and he noticed that there was actually a lot of errors listed for my sites link. The only thing is that the representative said all the other errors listed have been resolved because he doesn’t see any other error messages on those that are listed in the error log. The only one he still sees on there (and I just realized this as well) was this message:
PHP Warning: strstr(): Empty needle in /hermes/bosweb26d/b246/ipg.sjfgraphixcom/myloopnetwork/wp-content/plugins/buddypress/bp-core/bp-core-filters.php on line 781
Could this be the reason why the registration page is still not working? Because I never did any changes to that bp-core-filters.php file, I’ve only been working on the post pages and customizing my website theme that I wanted to use from before (which was the Magnus WordPress Theme). But as I was saying before, even though I’m still currently on the Twenty Fifteen theme, I’m still having issues. Please let me know what else I need to do to resolve this. My hosting plan server is iPage (which uses NGINX), running a 5.0 PHP version. I hope this additional information helps out.
-
AuthorSearch Results