Hey,
Thank you for the response!
I’m using this theme:
http://themeforest.net/item/keronchong-band-music-event-woocommerce-theme/6461791?WT.oss_phrase=&WT.oss_rank=1&WT.z_author=Tokokoo&WT.ac=search_list&ref=GCSkye
As for plugins, I have quite a few installed. If I disable all of them other than woocommerce and buddypress, the avatars have the same issue. The issue is solved by removing buddypress.
The avatars are broken everywhere (blog posts, woocommerce product reviews, admin panel) but on the buddypress profile page.
Edit:
I should mention, the theme developer has mentioned they did not do any work with making the theme compatible with buddypress. If there is something that needs to be done, please let me know. This is my first time using buddypress on a theme that wasn’t made to support it.
Hello everyone!
I would like to add a dropdown menu during the creation of groups.
I have found this code that works perfectly:
<?php
/*
Plugin Name: Favorite Color
Plugin URI: http://MyWebsite.com
Description: Let Groups Pick their favorite Color
Version: 1.0
Requires at least: 3.3
Tested up to: 3.3.1
License: GPL3
Author: Your Name
Author URI: http://YourCoolWebsite.com
*/
function bp_group_meta_init() {
function custom_field($meta_key='') {
//get current group id and load meta_key value if passed. If not pass it blank
return groups_get_groupmeta( bp_get_group_id(), $meta_key) ;
}
//code if using seperate files require( dirname( __FILE__ ) . '/buddypress-group-meta.php' );
// This function is our custom field's form that is called in create a group and when editing group details
function group_header_fields_markup() {
global $bp, $wpdb;?>
<label for="favorite-color">My Favorite Color</label>
<input id="favorite-color" type="text" name="favorite-color" value="<?php echo custom_field('favorite-color'); ?>" />
<br>
<?php }
// This saves the custom group meta โ props to Boone for the function
// Where $plain_fields = array.. you may add additional fields, eg
// $plain_fields = array(
// 'field-one',
// 'field-two'
// );
function group_header_fields_save( $group_id ) {
global $bp, $wpdb;
$plain_fields = array(
'favorite-color'
);
foreach( $plain_fields as $field ) {
$key = $field;
if ( isset( $_POST[$key] ) ) {
$value = $_POST[$key];
groups_update_groupmeta( $group_id, $field, $value );
}
}
}
add_filter( 'groups_custom_group_fields_editable', 'group_header_fields_markup' );
add_action( 'groups_group_details_edited', 'group_header_fields_save' );
add_action( 'groups_created_group', 'group_header_fields_save' );
// Show the custom field in the group header
function show_field_in_header( ) {
echo "<p> My favorite color is:" . custom_field('favorite-color') . "</p>";
}
add_action('bp_group_header_meta' , 'show_field_in_header') ;
}
add_action( 'bp_include', 'bp_group_meta_init' );
/* If you have code that does not need BuddyPress to run, then add it here. */
?>
The only thing is that I dont know much about php, and I can’t seem to change the <input id=”favorite-color” type=”text” name=”favorite-color” value=”<?php echo custom_field(‘favorite-color’); ?>” /> into a drop down menu where the value would be sent.
Could someone please give me some advice?
Many thanks!
So
Hey @chatty24, thanks. Buddypress actually added this functionality to the latest update (activity mentions) but It would be great to have a more convenient bbpress forums mentioning system.
But I donโt understand how BuddyPress understand that
It does because it’s written to understand that. WP knows what type of theme is in operation, a main parent ‘ template’ or a theme acknowledging another theme as the template source thus labelling it a child theme; WP provides that information to anything that cares to ask. BP performs a series of simple checks, it looks to see what type of theme in operatio, it checks various hardcoded directory names to see if they exist either in a parent theme or in a child theme and if they contain BP template files, if they exist and do have BP templates then those are used in preference to the original BP ones. It’s not that complex a process but you do need to understand the basic principles of template hierarchy which is a WP construct.
You can only ever have two themes max a parent and one containing ‘some’ copied files or additional files coded. WP always loads the child theme up checks anything in functions.php then looks at the parent theme and loads that themes templates and functions.php unless it has found a necessary template already in the child.
Okay, specific question… In the global.js for BuddyPress we find…
`/* Textarea focus */
jq(‘#whats-new’).focus( function(){
jq(“#whats-new-options”).animate({
height:’40px’
});
jq(“form#whats-new-form textarea”).animate({
height:’50px’
});
jq(“#aw-whats-new-submit”).prop(“disabled”, false);
var $whats_new_form = jq(“form#whats-new-form”);
if ( $whats_new_form.hasClass(“submitted”) ) {
$whats_new_form.removeClass(“submitted”);
}
});
What I’m concerned with is the animations on the textarea. I wish to disable them via another jQuery script or some other method ( so as not to alter the BuddyPress files themselves ). I’ve tried duplicating the code in my site’s global.js and modifying them with .stop(), .stop(true), .clearQueue(), and the like with no resolve. Is there a way to accomplish this? I don’t want the effect at all nor the resize. Leave my textarea alone! Also, I don’t want to set min-height as it disables the script I have running to autosize the textarea when it’s being used.
I’m feeling so noob ‘-‘
Anyways, let me know if I get it…So I knew childtheme had the purpose of “protecting” the theme updates. But I don’t understand how BuddyPress understand that. I mean if I paste a new pages.php in childtheme it will just change all templates of both themes or just the theme of the BP community?
If this last its right. I have just to create a subfolder /buddypress/ in my CHILDtheme and copy all the content of /plugins/buddypress to that subfolder?
*Of course, considering that already have a functions.php and style.css for the childtheme.
What I thought would be easy has been very frustrating.
I have buddypress installed and have created groups. I have create forums and linked the groups to the forums.
My goal is to create a site where if a person is a member of a group they can see that group’s activity and posts. Only see their groups (not others)
1. I cannot link directly to a members group forum.
2. Forum topics are showing up in a different groups list of topics.
HELP ๐
I already have an childtheme(blank and useless) of my own parent theme, but my question is for the buddypress theme. How can I connect him with the BP plugin? What the BP updates means to this childtheme? o.O
Hi,
I installed recently buddypress and set up the register the field … i see that the Name field create also the name and last name in the normal profile. Now i want that that continue happening but i want that people can chose for example only for friends and the another field that i created “Visible Name” this name is used for example in the member list or when they post something so that the name only appear in their perfil and to shears use their Visible name, what can i do to do this ?
Better a child theme and to start, read here first:
https://codex.wordpress.org/Child_Themes
and once you understood how it works, you can read again
https://codex.buddypress.org/themes/building-a-buddypress-child-theme/
and search on the forum for topics related to theme. ๐
Well I deactivated all my plugins (with the exception of the buddypress plugin) and then tried to create and new account as a user and it worked. No white screen.
So then I thought id activate my plugins one at a time and see at what point would I get the white screen again after submitting the sign up page. Well I didn’t. All my plugins are back to being active again and I can still sign up as a new user. Not sure if it has to do with the order in which plugins are installed and activated or what but it seems to work now.
I mean, I already saw a lot of people saying that u can just edit the default(most in bp-templates/bp-legacy/buddypress/members/single) but also I hear people saying that I lost a lot of things when the BP update.
So, what’s true? Simple edits is valid or better an new child theme?
*If child theme, where start?(https://codex.buddypress.org/themes/building-a-buddypress-child-theme/ this page is a little confuse…)
Hi,
I’m looking after some moderation tools for buddypress, some of the most promising are abandon. Does anyone have any tip?
1. be able to flag content so it’s easier to get rid of spammers
Sure you can change that link as well as content of confirmation email by adding the following code in you function.php;
add_filter( 'bp_core_signup_send_validation_email_message', 'custom_buddypress_activation_message', 10, 3 );
function custom_buddypress_activation_message( $message, $user_id, $activate_url ) {
$user = get_userdata( $user_id );
$activate_url = 'http://www.domain.de'; // change this link to what ever you want.
return "Hi $user->user_login,
Thanks for registering! To complete the activation of your account please click the following link:
$activate_url
Thanks,
Jesin";
}
For more details you can visit the following link;
http://jesin.tk/custom-buddypress-activation-email/
Try deactivating all plugins and then check if this issue still continues.
Explanation:
Mostly it happens if some plugin is interfering in registration process because the way BuddyPress registers a user is a bit different then what happens in WordPress by default for which usually plugins are designed.
Hello. I am creating a buddypress community (latest version of WP and BB) and want certain fields of the extended profile fields to be non-editable by members (like first name, surname, membership number etc).
How can this be dong?
I’ve got the woocommerce 2.2.7, buddypress 2.1.1 and wordpress 4.0.
Once I enable buddypress, the avatars on the woocommerce product page display like this:
<img srauthor-img="" c="LINKTOIMAGE" class="avatar user-1-avatar avatar-60 photo" width="60" height="60" alt="NAME">
For some reason, its adding author-image=”” inbetween src. Anyone know why or how to fix this?
Im using WordPress 4.0 running MesoColumn theme with BuddyPress 2.1.1 and have “Anyone can register” enabled.
Ive been working on a web site for about a month or so and im now testing out some of the BuddyPress functions before I start telling everyone about the site. The first thing i tested was registering for an account with my site so i could see how things might work as a user. I clicked register and it took me to the page that i had indicated in the BuddyPress page settings just fine. I then filled in the information in the fields that are generated by BuddyPress. After i click the button to submit my information the page went white and still had the same link as the registration page in the URL address box. I checked the “Manage Signups” area in my dashboard and there was no pending accounts. Any ideas as to what i could be doing wrong or might not have set up correctly?
Where are you running your code?
Try it in a plugin or in bp-custom.php
Try this code.
Create a template overload of one or more of the files found here:
\buddypress\bp-templates\bp-legacy\buddypress\members\single\
I have installed buddypress and bbpress both in my website http://dreamhomeguide.in where users can create topics on different forums. Now when admin replies any topic other users can easily check the profile page of admin. Is there any way by which I can hide the profile page of admin from other users?