Search Results for 'wordpress'
-
Search Results
-
Topic: Change profile photo
Hi,
if I want to change my profile photo by:
Hi Tristan -> profile -> change profile photo
I get the 404 not found page.
“Sorry, but nothing matched your search terms. Please try again with some different keywords. ”
Related URL: http://intranet/members/tristan/profile/change-avatar/
I have deinstalled the buddypress plugin, but that doesn’t work.
WordPress 4.5.3
Buddypress Version 2.6.2Hi,
I’m working on a wordpress website, and using Buddypress. I wanted to add posts notifications and it worked fine, except when I tried to filter them. First you need to know how I want to filter them.
– I’ve a profile field named ‘Field’ which is a dropdown list with 5 options.
– I have also 5 post categories with the exact names of the ‘Field’ values.
– When a post is added, If it has (e.g. A,B,C) categories I want a notification for every user who has his ‘Field’ value is equal to A,B or C.Here is my code:
foreach (users as $user) {
$acc_type = xprofile_get_field_data(‘Field’, $user->ID);
if (in_category($acc_type,$post_id)) {
bp_notifications_add_notification( array(
‘user_id’ => $user->ID,
‘item_id’ => $post_id,
‘component_name’ => ‘custom’,
‘component_action’ => ‘custom_action’,
‘date_notified’ => bp_core_current_time(),
‘is_new’ => 1,
) );
}}
How to hide BuddyPress specific profile tabs from not logged in user
Topic: LearnPress BuddyPress Plugin
I’m currently working on setting up a multisite system and wanted to integrate LearnPress nd BuddyPress by using the LearnPress BuddyPress Plugin. However, something is not working properly and the LearnPress Profile is not reflecting the BuddyPress profile. The LearnPress is synced with the WordPress profile not the BuddyPress profile. I’ve searched on the web to find any information I could and found this article
https://wordpress.org/support/topic/what-type-of-change-it-will-show-in-profile-page?replies=6
It says there is a setting that I must click, but it’s not found. I was wondering if anyone knew of any known issues or any information about this situation. I’m pretty much stuck with where I am until I know something more. I have all the current versions of WP4.5.3 , BP2.6.2 , and LP1.0.8. and Plug in 1.0.
WordPress 4.5.3 running.
BP Press: Version 2.5.10.
WordPress as a directory, it’s in root.
I have some custom functions in a child bp-custom.php.
I’m running bbPress (standalone), Version 2.5.10.
__________So, I’m looking at inserting BP Avatars (which would display the logged in user) with short-code. After some research, I understand BP doesn’t have any native BP short-codes, and you have to therefore make them yourself, granted.
This is how I guess it used to work (back in good old 2011, that is…):
THIS GOES IN THE FUNCTIONS.php:
function logged_in_user_avatar_shortcode() {
if ( is_user_logged_in() ) {
global $current_user;
get_currentuserinfo();
return get_avatar( $current_user->ID );
}
}
add_shortcode(‘logged-in-user-avatar’, ‘logged_in_user_avatar_shortcode’);***And the shortcode to go anywhere in your content is: [logged-in-user-avatar]
———
Any ideas what on what would work now?
Kristian.
Hi there!
I have a child theme in my WordPress and it has the appropiate buddypress folder inside.
I have successfully done a custom buddypress>members>profile-loop.php and buddypress>members>members-loop.php, but I’m struggling to make buddypress>members>single>member-header.php work.
Is there anything wrong with the files’s path?
The changes I do in the file don’t show in the website afterwards.
The original file come from buddypress>bp-themes…What am I doing wrong?
Hello!
I am setting up a new WP multisite for two sites, using different domains for each site. I would like to use BuddyPress on both sites, but share the same BuddyPress instance/data between each site. The two communities will have a lot of overlap, and one site may eventually subsume the other.
Can BuddyPress do this? If so, what configuration do I need to look for?
I found this link, but I am unfamiliar with the terminology. While the steps were clear, I am new and their overall intent was opaque to me.
TIA!
I am trying to add extra fields into my registration form using the following code into the functions.php file in my child theme (One Social). The code should capture the data for woo commerce to use at the checkout.
//Adding Registration fields to the form
add_action( ‘register_form’, ‘adding_custom_registration_fields’ );
function adding_custom_registration_fields( ) {//lets make the field required so that i can show you how to validate it later;
$firstname = empty( $_POST[‘firstname’] ) ? ” : $_POST[‘firstname’];
$lastname = empty( $_POST[‘lastname’] ) ? ” : $_POST[‘lastname’];
?>
<div class=”form-row form-row-wide”>
<label for=”reg_firstname”><?php _e( ‘First Name’, ‘woocommerce’ ) ?><span class=”required”>*</span></label>
<input type=”text” class=”input-text” name=”firstname” id=”reg_firstname” size=”30″ value=”<?php echo esc_attr( $firstname ) ?>” />
</div>
<div class=”form-row form-row-wide”>
<label for=”reg_lastname”><?php _e( ‘Last Name’, ‘woocommerce’ ) ?><span class=”required”>*</span></label>
<input type=”text” class=”input-text” name=”lastname” id=”reg_lastname” size=”30″ value=”<?php echo esc_attr( $lastname ) ?>” />
</div><?php
}//Validation registration form after submission using the filter registration_errors
add_filter( ‘woocommerce_registration_errors’, ‘registration_errors_validation’ );/**
* @param WP_Error $reg_errors
*
* @return WP_Error
*/
function registration_errors_validation( $reg_errors ) {if ( empty( $_POST[‘firstname’] ) || empty( $_POST[‘lastname’] ) ) {
$reg_errors->add( ’empty required fields’, __( ‘Please fill in the required fields.’, ‘woocommerce’ ) );
}return $reg_errors;
}//Updating use meta after registration successful registration
add_action(‘woocommerce_created_customer’,’adding_extra_reg_fields’);function adding_extra_reg_fields($user_id) {
extract($_POST);
update_user_meta($user_id, ‘first_name’, $firstname);
update_user_meta($user_id, ‘last_name’, $lastname);
update_user_meta($user_id, ‘billing_first_name’, $firstname);
update_user_meta($user_id, ‘shipping_first_name’, $firstname);
update_user_meta($user_id, ‘billing_last_name’, $lastname);
update_user_meta($user_id, ‘shipping_last_name’, $lastname);
}The code works fine until Buddypress is activated. The it just reverts to the usual wordpress log in with only the profile fields that are shown in the “Profile Fields” tab on the wordpress dashboard.
I feel like I must be missing something obvious but it is driving me crazy! Any help would be enormously appreciated. Thanks!
I’ve ran into a small dilemma and please keep in mind, I am a novice to PHP and the such.
I am running WordPress 4.5.3 with BuddyPress 2.6.2 with a theme called Kleo 4.0.8. Site is located here: http://www.wecurecruiting.com/beta/
I have multiple member directories: Players, Coaches, Schools. And what I’m looking to do is figure out if there’s a way to setup multiple member pages?
When you go to Settings > BuddyPress > Pages you’re able to select which page is your Members pages that’s to be displayed (for example in your header). Currently, all pages are assigned, however, I would like to be able to have multiple pages be displayed with their corresponding directories. Is there a way to do this?
Hi,
Can know how you deal with incorrect password keyed as it drawn to the wordpress page.
And there is no lost password link to be selected for user.