Search Results for 'wp user activate'
-
AuthorSearch Results
-
June 9, 2015 at 5:36 pm #240496
shaquana_folks
ParticipantHello @henrywright, was just trying to reach you for a follow up as to why my registration page is still not working, because 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) and the W3 Total Cache (still at the 0.9.4.1 version) activated. Also, I went and checked the backend from my hosting plan provider (as well as talked to a representative of my hosting plan service) and noticed that there was a lot of errors listed for my sites, including the myloopnetwork.com link). The representative I spoke to said that all the other errors listed have been resolved because he said he doesn’t see any other error messages on those that are listed in the error log. The only one he said 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. 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.
June 7, 2015 at 7:23 pm #240412In reply to: Username displaying as ‘@Admin’ on profile
Teratoma
ParticipantThanks for your time gentlemen.
I activated 2010 and disabled every plugin but BP, BBP and Wordfence. 17 total, about half of which were BP-related. The issue persists.
My members-header.php file is unmodified (it contains the code that @danbp mentioned).
It is worth mentioning again – that the URL for this user profile is http://www.rickey-rat.com/members/admin/ – even though the “nicename” tag displays properly all over the site, it seems to fail in the URL and header.
Also, I’m repeating myself in stating that there is not and has never been a user or login called “admin”. “Antrodius” – fictional as he may be – uses “Antrodius” to log in. He is the WP admin. AGAIN – the only use of “admin” is his role on the site.
So this reveals a more important issue. I know not to use “Admin” as a log-in. Wordfence shows me how many brute-force attempts are made trying that. What this condition is doing is revealing the username of the admin account.
June 4, 2015 at 1:54 am #240156In reply to: End User Blog
mrjarbenne
ParticipantMS integrates wonderfully with BuddyPress. When network activated on a Multisite, activity from across the network is recorded on the users Profile. Just be sure to check Site Tracking under Settings/Buddypress once you network activate BuddyPress (https://cloudup.com/i_-p1kJGUwd). Once upon a time, BP was ONLY compatible with Multisite: you couldn’t run it on a single WP install.
Note that this will give your users the ability to have their own blogs. This is separate from the ability to post from the front end. For this you would need to make a theme like P2 your network default. http://premium.wpmudev.org/blog/how-to-set-the-default-theme-for-wordpress-multisite/
May 26, 2015 at 3:34 pm #239705In reply to: BuddyPress menus not working properly
Dado
ParticipantWhich version of WP / BP are you using?
What happens if you deactivate (UserPro a 3rd party user profile plugin)?
May 26, 2015 at 12:37 pm #239702In reply to: Join button for non-members
Hugo Ashmore
ParticipantYes you need to be registered before you can join groups, joining a group means needing to add the person as a member ID which they can only have if a WP registered user.
There are plugins though that can do things like auto join groups on registration but to a pre-selected set of groups, if you wanted the user to be able to pre-select a group at registration you would need to write a small function to store a choice as user_meta or similar and recall that when the user activated their account.
On a side note if you’re working up a child theme based on twentyfifteen it would be a good idea to be running a copy of BP trunk as we will introduce a new series of stylesheets for the WP Twenty* themes which may affect what your styling.
May 17, 2015 at 10:59 am #239176Hugo Ashmore
ParticipantYou need to do some basic research on things like ‘Backing Up’, there are many approaches and solutions out there, from VaultPress service, to backup plugins, to your webhost provided services or cpanel/plesk type site/user account backups.
The same advice applies for deactivating plugins when you can’t access the admin, rename the plugin directories. That media plugin must have downloaded and installed otherwise it wouldn’t have thrown the error. Deactivate all plugins, update WP and establish that works as expected then re-activate or download a new copy of BP, as you’re so far behind in BP versions you will need to perform stepped upgrades to get to the latest stable version. Check the BP Codex for advice on this aspect.
May 12, 2015 at 3:29 pm #238982In reply to: Not able to create group from user groups tab
danbp
Participanthi @buendiadas,
first of, you have to activate this feature in BP settings
wp-admin/admin.php?page=bp-settingsSecond, create a group button is only avaible (by default) on the group directory and on the usermenu Groups > create a group (top right under Howdy).
Now, where do you want such extra button exactly ?
May 2, 2015 at 11:40 pm #238635danbp
ParticipantAny other idea? Yes !
Use bbP Signature instead. This plugin has a filtrable function where you can easely add custom fields near signature.Activate the plugin. Create a field called signature and add this snippet to bp-custom.php
function my_bbp_reply_content_append_user_signature( $content = '', $reply_id = 0, $args = array() ) { // Default arguments $defaults = array( 'separator' => '<hr />', 'before' => '<div class="bbp-reply-signature">', 'after' => '</div>' ); $r = wp_parse_args( $args, $defaults ); extract( $r ); // Verify topic id, get author id, and potential signature $reply_id = bbp_get_reply_id ( $reply_id ); $user_id = bbp_get_reply_author_id( $reply_id ); if(function_exists('bp_has_groups')) { $signature = xprofile_get_field_data( 'Signature', $user_id ); // here we add our custom fields $wowi = '<br>'. xprofile_get_field_data( 'Industry', $user_id ); $wowt = '<br>'. xprofile_get_field_data( 'Type', $user_id ); } else { $signature = bbp_get_user_signature ( $user_id ); } // If signature exists, adjust the content accordingly if ( !empty( $signature ) ) $content = $content . $separator . $before . $signature . $wowi . $wowt . $after; return apply_filters( 'my_bbp_reply_content_append_signature', $content, $reply_id, $separator ); } if ( !is_admin() ) { remove_filter( 'bbp_get_reply_content', 'bbp_reply_content_append_user_signature', 1, 2 ); add_filter( 'bbp_get_reply_content', 'my_bbp_reply_content_append_user_signature', 1, 2 ); }May 1, 2015 at 9:15 pm #238617notpoppy
ParticipantThanks for your help so far. I’ve made a start on your suggestions:
What is your complaining users role on forums ?
Forum role: Participant
(WP role: Subscriber)Deactivate bbPress, resave your permalinks (should be other than default),
I’ve done this (I just went into /wp-admin/options-permalink.php and hit ‘save changes’, I’m already using ‘Day and name’).
reactivate and relaunch the repair tool
I’ve done this.
As before, “Recalculate the position of each reply” took a long time to complete (several minutes) and eventually gave a 502 Bad Gateway error. I tried again and got a 504 Gateway Time-out. I was feeling stubborn so I ran it once or twice more until finally I got “Recalculating reply menu order … Complete!”
The remaining repair options all completed quickly until I got to the final one, “Remap existing users to default forum roles”. Each time I run this it pauses for a short while, then gives me a white screen. I tried this half-a-dozen times with the same result every time.
I’ll press on with the other steps when I have more time. In the meantime it would be useful if anyone can suggest why I keep getting a white screen when I run “Remap existing users to default forum roles” and whether that might be related to my problems?
April 30, 2015 at 6:04 pm #238582In reply to: Activity Feed not showing new members
Mathieu Viet
ModeratorWell, i think they are complicating their task.
It seems to me that to be sure BuddyPress will do all what it needs to do, you simply need to use :
do_action( 'bp_core_activated_user', $user_id );eg:
function on_user_registration( $user_id, $userdata, $form_id ) { $this->update_user_data( $user_id, $form_id ); do_action( 'bp_core_activated_user', $user_id ); }Because we hook to this action to :
– clear the member count cache
– create the ‘new_member’ activity
– Sync WP/BP profile if the xProfile component is activeIf that doesn’t fix the issue. A BuddyPress plugin should always launch itself hooking ‘bp_include’ to be sure every active BuddyPress parts are loaded.
So instead of
add_action( 'plugins_loaded', 'wpuf_bp_init' );
the plugin developer can tryadd_action( 'bp_include', 'wpuf_bp_init' );April 27, 2015 at 5:49 pm #238465In reply to: Remove Everything Gravatar
danbp
ParticipantWordPress use Gravatar like BuddyPress.
When BP is activated, it let’s you manage your avatar from the profile.WP is using get_avatar and BP substitute it with his own code for internal purpose.
Bp-avatar-suggestion let the site admin add an avatar bunch of pictures where users can choose from instead of uploading their own image. And yes, all avatars (wp/bp) are concerned, even if in fact it is the same thing.
FYI the ‘white figure on grey background’ is called Mystery Man in WP jargon. 😉
Also, Gravatar is an external service and on some config, this can slow down a site. Nothing new, it’s the case for any external service (js, font, cloud, social share, etc)
By using the define, you deactivate the call to external gravatar service, and BP fires a local copy of the mystery man. Deactivating Gravatar will also deprive the people who use the service to get their usual picture on your site. It’s not an innocent decision.
Be aware also that the empty option (in wp default avatar setting) is a blank image (and not an empty space), which is also fired by Gravatar.
World isn’t perfect. 😉
April 20, 2015 at 12:26 pm #238098In reply to: Members loop doesn’t show new members
danbp
ParticipantThnak you.
Have you a test site or a local install where you can make some test ?https://buddypress.org/support/topic/when-asking-for-support-2/
I tried to change role and other fields in new members, but nothing happened.
On a single regular install, all BuddyPress members have the default role you assigned to new users in WP settings > general. There is nothing to change at this level when they don’t show up on member’s directory.
If you need some fake BuddyPress users and content, i suggest you to use BuddyPress Default Data, which is great to control if anything is working correctly.
Deactivate your theme and all other plugins except BP and use Twenty Fifteen while testing.
Activate also wp_debug in wp-config, and see if you get somme php errors.April 14, 2015 at 1:22 pm #237865In reply to: Set user role on registration so can upload files
danbp
ParticipantBuddyPress doesn’t handle the Media Library.
BuddyPress doesn’t handle registration.It’s a bad practice to allow users to upload something to your site until they’re not fully registered. When a user register, WP considers this new account as pending. As long as the user hasn’t activate his account with the activation key, he can only visit the site.
As you installed BuddyPress, i suggest you use your site à la BuddyPress.
If you want your members be able to upload files, use BuddyDrive. Each user can upload files from within his profile page and can share them on different levels (public, private, friends only). And much better as the Media Library default behave, each document belong to his user. BuddyDrive attributes a folder to each user who upload a document.This is much simplier, well integrated and efficient in a members community as strugling with custom code (and potential errors and security issues).
April 14, 2015 at 12:08 am #237847In reply to: Warning of Buddypress
rohi222
ParticipantI haven’t got the answer of my initial query of <b>Warning</b>: strstr(): Empty needle in <b>../wp-content/plugins/buddypress/bp-core/bp-core-filters.php</b> on line <b>641</b><br />
Please help me out with this.
As far as the register link is concerned it looks the same as it has been shown on the demo when I activate the admin bar for non-logged in user it is having login and registration option out of which only login works and clicking on register link doesn’t have any effect.
April 10, 2015 at 11:41 am #237607In reply to: Setting User Role During Custom Registration
ch1n3s3b0y
ParticipantOk, I have this working! For anyone else struggling with this, these are the steps I took:
1. I created a custom registration form ( I needed more than one form for my setup) using the tutorial from Brajesh Singh http://buddydev.com/buddypress/show-buddypress-user-registration-form-everywhere-buddypress-site/
2. I added a hidden input field to my form:
<input type="hidden" name="user_type" id="user_type" value="your_role" />3. I added a user_meta during the registration to store the role for later use during the activation process:
function store_user_role($user_id) { $user_type = $_POST['user_type']; $user_role = $user_type; switch($user_role) { case "your_role": add_user_meta( $user_id, '_member_role', 'yourrole'); break; case "my_role": add_user_meta( $user_id, '_member_role', 'myrole'); break; default: add_user_meta( $user_id, '_member_role', 'defaultrole'); } } add_action( 'bp_core_signup_user', 'store_user_role', 20, 1);4. Then during the activation process you check to see which user role is stored in the user_meta, and assign that as the actual WP user role:
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; $key = '_member_role'; $single = 'true'; $userRole = get_user_meta( $user_id, $key, $single ); if ($userRole == 'yourrole') $userdata['role'] = 'yourrole'; if ($userRole == 'myrole') $userdata['role'] = 'myrole'; if (($userdata['role'] == "yourrole") or ($userdata['role'] == "myrole")) wp_update_user($userdata); }That’s it. I used a few different examples from these support forums so credit goes out to those who got this stuff working in the first place. Hope this helps someone else.
April 8, 2015 at 1:36 pm #237482In reply to: [Resolved] Only display custom field if not empty
danbp
ParticipantYou just need an existing user_id.
He an example where you get a field value to add in a custom action in one of your template.
function bpfr_field( $custom_field ) { global $bp; // is xprofile component active ? if ( bp_is_active( 'xprofile' ) ) // fetch the user_id $current_user = wp_get_current_user(); $current_user_id = $current_user->ID; // fetch the data $custom_field = xprofile_get_field_data('42', $current_user_id); // 42 is a field ID // show the data echo '<div class="authorinfo">'. $custom_field . '</div>'; } add_action( 'myfield', 'bpfr_field', 1 );Then, add this at the appropriate place in your template
<?php do_action( 'myfield'); ?>Another example, which you can add at the begin of a custom function.
global $bp; // Check if the Activity component is active before using it. if ( ! bp_is_active( 'activity' ) ) { return; } if( bp_is_user() && ! bp_get_member_user_id() ) { $user_id = 'displayed: '. bp_displayed_user_id(); } else { $user_id = 'get_member_user: '. bp_get_member_user_id(); } // your stuf hereNote that both examples use global $bp, a check for active component with a different usage for a same result: if not active, the function will do nothing. This allows you to deactivate a component without throwing a warning or a php failure despite the function is in your theme, bp-cutom or plugin.
April 1, 2015 at 11:53 am #237097In reply to: Page Not Found Permalinks Issue
mrgiblets
ParticipantI think permalink settings are refreshed automatically when activating / deactivating any plug-in in WP.
Sometimes this doesn’t work properly and you have to do it manually, you’ve probably experienced that at some point?
I’d personally start by picking a dead time of night when there are unlikely to be any (or at least not many) users on the site and start by deactivating the following one by one :
Akismet All in One SEO Pack bbP private groups Contact Form 7 DP Pro Event Calendar Link LibraryIf I had to take a random shot in the dark guess on what is causing problems I’d put my money on Akismet & AIO SEO Pack. I very much doubt that these plug-ins are causing the issues by themselves, but one of the others is probably conflicting with them.
Disabling each of these in turn will at least give you a starting point to debug from if things start working again when they are deactivated.
March 31, 2015 at 1:10 pm #237011In reply to: Buddypress virgin – very confused and lack of docs!
mcpeanut
Participant@mrgiblets HI, I was the same as you when i first came to these forums nearly 2 years back, although i had website developing experience i found buddypress just as confusing, the best way to learn is to get stuck into it in my opinion, there are quite alot of good reads regarding things you may need to achieve in these forums, you should also read through these pages here https://codex.buddypress.org/
When typing a message using “@” the dropdown list that pops up as soon as your start typing should only show names of the current users friends. What happens if you have 10,000+ users on your site? That’s going to get annoying for the users really fast. At very least there should be an option in the backend to activate this functionality.
I tend to agree with this 100 percent, i have mentioned (ironic lol) this before in these forums, you should really have an option to either have @mentions for either sitewide or friends only.
LIKE button. I wasn’t that surprised that something like this wasn’t installed as standard, but as this is an integral part of social interaction these days I was shocked after spending days trying to find a plug-in that works with the current version and have only managed to find one that works but is shaky at best. There are lots of “no longer available” plug-ins and bits of code and hacks out there but again – removed or deleted when you try to view them. From what I gather this seems to be something that developers have had real problems implementing. I can’t even find a single premium LIKE button plug-in out there! Surely it’s time to have this feature as standard?
I believe from what ive read from the dev’s talking about this but i cannot remember the link to give you, that they are working on this via the already built in favorites button, they are trying to adapt it to a kind of liking system but their main concern seemed to be scalability and are working on a way to reduce the queries and database hits this could potentially have an effect with.
A clean current install of BP doesn’t include a BP theme. I have read that you have removed this and tried to implement it with any standard WP theme but that doesn’t help new users when trying to figure out what BP is capable of. Despite formatting issues many of the things it can do simply aren’t that obvious with a default WP theme. Surely it should at least give you the option to install a standard BP theme from theme manager?
They decided to stop support for the default theme and i would advise you to really search for a newer theme anyhows seeing as buddypress integrates with most themes flawlessly now.
March 29, 2015 at 11:56 pm #236909In reply to: Username vs Real Name
danbp
Participantthese fields are required by the system.
WP ask for username, password and email. When BP is activated, he uses WP’s name option Public Name so he can rely to WP. This field called Name is the only one which is required by BP for that reason.When you visit dashboard > users > your profile, you have a tabed page with profile options (the original WP user manager) and Extended profile (which belongs to BP) where you can edit your profile. On WP’s tab you see login, first name, last name and public displayed name. On BP’s tab there is only Name, which reflects what is in first and or last name.
In wp_users table, you have user_login, user_nicename and display_name
user_login and user_nicename have the same content
display_name contains first and/or last name (if exist from a previous WP install, before BP installation).Depending what and where something needs a name to work (avatar, comment, notice, activity, etc), one or the other name option is fired.
If you don’t need/want real names on front end, you can use this plugin:
https://wordpress.org/plugins/buddypress-usernames-only/March 29, 2015 at 10:21 pm #236899In reply to: Missing users and redirection issue on user profiles
danbp
Participantyou’ll have to check your settings conciensiously.
First, deactivate bbpress and BuddyPress. Launch WP alone, just in case of.Activate BuddyPress and review the settings. Each activated component should have his own page, without any content. Activate permalinks and use any option except “default”.
Sync BP and WP users in BP settings.As BP component you need at least Messages and i recommend you Extended Profiles for better UX.
Now go to dashboard > tools and repair BP. Back to front and see how BP works. Test messaging.
Activate bbPress and read here before starting to set it up.
After bbP settings, return to dashboard > Tools and repair the Forum
Cross finger that the sky doesn’t fall over your head. Buddy, you’re done ! 😉
March 23, 2015 at 8:12 pm #236452In reply to: Registration page not working (tried EVERYTHING!)
danbp
ParticipantActivate wp_debug (set to TRUE) in the wp-config file. This can give you a lot of information about conflict and/or errors.
Is MAMP configured correctly ?
https://codex.wordpress.org/Installing_WordPress_Locally_on_Your_Mac_With_MAMPCan you correctly register a user from the back-end ?
March 22, 2015 at 2:18 am #236370In reply to: [Resolved] BP Reinstall Messing with Multisite
@mercime
Participant@lehn6 For clarity, let’s go over some points you made above.
>> I have a multisite network set up and had Buddypress installed on http://www.example.com/subsite1, as in that subsite was where the BP install was placed
So do you have something like this in your wp-config.php:
define ( 'BP_ROOT_BLOG', $blog_id );where$blog_idis a the ID number of your subsite>> UserPro plugin was added and network activated, then subsite1 was improperly deleted
Do you mean subsite1 was deleted by you or developer? How was it deleted? Do you have a database backup of your site before subsite1 was deleted?
>> looking to install BP to the main site and network activate. When I go to do that I find that as soon as I network activate BP the network admin dash and the main site dash are basically the same, where it says I am in the main site dash but none of the pages or posts are displayed.
How are the network admin dashboard and main site dashboard the same? Do you mean you have no access anymore to the Network Admin menus? https://codex.wordpress.org/File:dashboard.png vs https://codex.wordpress.org/File:superadmin-options.png Can you post a screenshot?
March 21, 2015 at 5:32 pm #236324In reply to: Bussdypress title and SEO Yoast problem
djsteveb
ParticipantI wish I could… but things are really screwey right now from what I can tell. If you read the 6107 linked info you would see that there are essentially three different code bases / thingys going on right now that are all producing different title results – see this spreadhseet: https://docs.google.com/spreadsheets/d/1ww95Q184EAHG0ztI9MtkdjpA2pALnMY0L-R7FA6QqGc/edit?pli=1#gid=0
I had some code cobbled together to make everything “work” as I needed to fix most of the buddypress titles – but that was with buddypress 2.1.1 and Yoast 1.7.2 – now it seems that updating to 2.2 and 174 my custom cobbled code gets broken..
so now I have an updated site, and updated plugin from yaost.. but if I activate the yaost plugin it overrides my custom page title and meta description settings (from the code I have added in mu-plugins folder) – for now I have disabled yaost, which has brought back my custom code to add titles and descriptions to many bp pages! But now that yoast is turned off, I have lost the custom titles and descriptions for the main pages of the web site – meh.
Ash and Vladislav from premium.wpmudev.org came up with this code to wrap to fix my issues as it were before the latest yoast updates:
(hmm.. I tried posting the code, and I get “Error your reply cannot be created at this time” – stupid bp.org – I think the word seks is offensive along with alt seks lifestyles here – anyway – you can probably see the code without being a member / loggin in here anyways:
http://premium.wpmudev.org/forums/topic/bp-meta-tite-description-for-groups-and-members-pages#post-806736Some of that is hard coded instead of how it could be done (there is stuff in the codex about another method of calling “field’ => ‘age’, ‘user_id’ => $user_id))” stuff…. and there is not php tag at opening to make it plugin..
March 18, 2015 at 8:24 am #236182In reply to: Users are Automatically Activated
angslycke
ParticipantHi!
I recently upgraded my site with a new theme (BuddyBoss Boss. theme) and am running WP 4.1.1 and upgraded from BuddyPress 1.9.2 to 2.2.1.
I have a setup where I redirect the activation e-mail to the site admin to be able to manually control new members and verify their information before activating them and letting them log in. This is a cruical function for my site since it’s a private network.
After the upgrade I noticed that some spam users were automatically activated and able to log in without my manual activation. The users are automatically activated, the same issue as @RussAdams is experiencing. I’ve tried deactivating a few plugins (BuddyPress Pending Activations, BuddyPress Auto Group Join) but this issue persists. In BuddyPress 1.9.2, everything was working as expected.
Browser sessions doesn’t seem to be the issue since clearly people on other computers have been able to create accounts which were automatically activated as well.
This is a very serious issue for my site since I no longer have the control over new users and spam users can log in after activating. Did you get this sorted out?
March 9, 2015 at 11:03 am #235707In reply to: Create an account refreshes without doing anything
JulieBorgeot
Participant@henrywright Thank you for your answer.
I tried to test what I had on 1&1 and registration works. It confirmed that MAMP is the one causing the problem.
I think I found where the problem is : it’s all about emails. The email that should be sent for activation can’t be sent so nothing happens and the registration fails.
MAMP (and other web hosts) doesn’t support sending email. I tried to find a solution to it with no luck until now :
– first, by getting MAMP Pro free trial, where you’re supposed to be able to configure PostFix to be able to send emails but I couldn’t figure out how to set it up properly and couldn’t find anything useful on the internet to do so. This http://blog-en.mamp.info/2009/09/how-to-sending-emails-with-mamp-pro.html did NOT help. If anyone knows how to make that work I’d love to see how.
– Then I tried that http://www.wpbeginner.com/plugins/how-to-receive-wordpress-emails-from-localhost/, and I do receive the test email, but it doesn’t fix my BuddyPress problem.I am not sure how to work on BuddyPress without being able to register a user.
An example of what I’m working on : I want to add a long form in a tab in people’s profile page, which then generates a graphic element, a map (that will be part of their profile).I could either :
– bypass the code that is used to send the email for activation and activate the users manually as an admin.
– go to the database and enter the new user manually.
I’ll try to bypass the sending of the email first.Please let me know if there is an easier way to work on what I intend to program.
Also, if anyone knows how to set up MAMP to support sending emails, I’m interested !
-
AuthorSearch Results