I found the solution to changing the title here – https://buddypress.org/support/topic/customizing-buddypress-activity-wall/#post-237312 – but now none of my posts are showing… What did I do wrong? Is there another file I have to change?
OR
You can enter the pages in the buddypress settings page and then you can match to your pages…
The file is here:
buddypress\bp-templates\bp-legacy\buddypress\members\register.php
The recommended approach to changing any template is to create a template overload and make your changes in that file.
I am trying to set up BuddyPress to create an activity stream. I am getting this error: Activate and Register Pages do not exist. The “repair” button does not add the pages. I tried changing to Twenty twelve, and deactivating all the plug ins. In general settings, “anyone can register” is allowed. Nothing helps. I am using GoDaddy, with a managed wordpress account. I don’t know how to code.
Any suggestions for how I can manually create these pages and get this working? I tried reading all the other threads, and following whatever directions I could, but I haven’t fixed the problem.
Thank you so much for your help.
running wordpress 4.1.1, buddypress 2.2.1. website: thewriterintheworld.com
Hi,
I want to change the register page. Register page is operating, but i want to change the form style on the register page. For ex. Username’s box has 25px height, but i want to change 30px…
I search the register page’s source code in the buddypress plugin’s folder, but i’m not finding the source code.
Please help me…
Thanks bro, had a look at that plug in but it hasn’t been updated since 2013 and isn’t compatible with my version of WordPress.
Sounds like a great plug-in though, if it works (haha).
Hope you get it fixed.
Still gonna try to do with without a plug-in though as i’ve done all the legwork manually already, just need to stop buddypress from enqueuing the original files (or at very least dequeue them in my functions.php). Just can’t find the functions in BP that are loading them originally.
Hey guys,
I’m going through and changing the text displayed by buddypress by creating custom PO & MO files as described here – https://codex.buddypress.org/getting-started/customizing/customizing-labels-messages-and-urls/
It’s all working great but I’ve stumbled upon something strange.
For some reason I can’t change the following string :
%1$s posted an update in the group %2$s
No matter what I set in the translation field :
%1$s posted in the group %2$s
….it always displays the original text :
username posted an update in the group groupname
I’ve checked to make sure it’s not repeating anywhere else in the MO file but, nope, there is only one instance of this string.
Any suggestions as to why I can’t translate this particular string?
Brilliant! It worked a treat, and I used the ‘user_register’ as suggested. So for anyone else looking for this solution, this is the code i used to turn some on and some off by default on new user registration:
add_action( 'user_register', 'bpdev_set_email_notifications_preference');
function bpdev_set_email_notifications_preference( $user_id ) {
//I am putting some notifications to no by default and the common ones to yes to enable it.
//ref. https://bp-tricks.com/snippets/changing-default-buddypress-notifications-settings and BP forum
$settings_keys = array(
'notification_activity_new_mention' => 'yes',
'notification_activity_new_reply' => 'yes',
'notification_friends_friendship_request' => 'no',
'notification_friends_friendship_accepted' => 'no',
'notification_groups_invite' => 'no',
'notification_groups_group_updated' => 'no',
'notification_groups_admin_promotion' => 'no',
'notification_groups_membership_request' => 'no',
'notification_messages_new_message' => 'yes',
);
foreach( $settings_keys as $setting => $preference ) {
bp_update_user_meta( $user_id, $setting, $preference );
}
}
and this went in my child theme functions.php file.
Hooray! Thanks so much again – it will make a big different to our users experience.
Cheers 🙂
I have been using buddypress for a while, just as a community application. I would want to take it a bit further by having it run a music sharing community (Social Music & Entertainment Network) – I would want to make my site a platform where emerging artistes can upload their music, have fans listen and have a chart influenced by this listen.
Where fans can log on and listen to tracks from the website, rate if possible.
With a chance for bloggers to get embed code for their platform.
I am trying out a bunch of plug-ins, getting there slowly but would appreciation pointers, opinions, advice incl. guidelines from friends and fellow Buddypressers on here.
I would have a ‘Team’ page on the site where friends who help in realising this – even if just suggesting a plug-in, theme, basic coding et al would be credited as contributing founders – with their profile/blurb on the ‘Team’ page.
That said, I am very new to ‘expanding’ buddypress and what I am trying to achieve is something like – http://www.upbeatapp.com/ (where artistes can upload their songs themselves for streaming and download/buy, fans can listen on the site, bloggers can gete embed code, run a chart from listens and downloads and of course – editorials and a platform that is mobile compatible)
Hi to all, im searching a way to make a single group page the homepage of my site make with BuddyPress. I have a Multisite installation, and WordPress and BuddyPress are updated. In fact, the Group pages do not appear on the selection “static page” in the option at the back end, so, for this, i have tried more solution like embedding code, manipolated function.php of my theme for made custom post and theme for make this selectionable, but it’s very difficult and seems that there is no solution…or i can’t made it possible. There is any clear solution for my problem?
It can be a real pain when combining js scripts so i feel you, i have not yet tried to combine the js files used within buddypress, although i have done this many times with other js files with mixed results, its a case of trial and error manually combining js files, i will probably be trying to do all this myself within my latest buddypress install when the time comes, i would recommend trying a plugin called minqueue to help you combine files as i have used this myself on previous built sites with great results but i have found an issue recently that i posted in the support forum for the plugin which you can read here https://wordpress.org/support/topic/works-at-first-then-logging-out-and-back-in-stops-it-working?replies=1
maybe you could try it and see if it works for you without the problems i described then i know it wasn’t just my install and config causing it.
The beauty of this plugin is that it lets you see exactly what scripts are loaded on a per page basis via the front end of your site and if you hover over the said scripts it will let you also know the dependencies of each script, then you can add different scripts to be combined in a queue on the backend, the dev has not responded to my support yet there so im still unsure if its my install that is causing the problem, try it and follow the steps i raised in the support and see if it does the same for you.
I have posted in the new favorites plugin support asking if the dev could possibly consider adding native support for buddypress here, i suggest others add to it and the dev may respond positively and look into it, who knows… maybe worth a shot https://wordpress.org/support/topic/buddypress-92?replies=1#post-6781081
When I installed BP, I unfortunately had user registration disabled in settings (cuz of bot spammers – I have no content FFS and I’m already getting spammed.)
Anyways, what do I need to do to fix this now? I’ve created the pages and associated them in the buddypress settings –> pages tab, but they still are completely blank. The other 3 pages all work (members, activity, groups.)
I also realized, I do not have a registration folder in buddypress. I believe this is required? I tried uninstalling, then deleting all the bp_ tables from the database, and then re-installing BP with “allow anyone to register” checked; but alas no dice. 🙁
Still no page content for the two pages, still no folders in the buddypress directory.
Side note: I’ve created the bp-custom.php and placed it in the plugins directory, but it’s still empty.
I’m quite the noob. Please help.
Hey guys,
I’ve put the content of all of the following separate JS files….
confirm.min.js
widget-members.min.js
jquery-query.min.js
jquery-cookie.min.js
jquery-scroll-to.min.js
buddypress.js
…into one singular file called buddypress.js in mytheme/js/ to help minimize http requests.
But how do I stop Buddypress from still loading all of the original separate files?
I’m assuming it’s something to do with :
remove_action('bp_enqueue_scripts');
But i’m not sure how to use this in my functions.php, and also, will this stop loading the bp css files? Because I still want them to load as normal.
Create template overloads of these two pages:
buddypress\bp-templates\bp-legacy\buddypress\members\members-loop.php
buddypress\bp-templates\bp-legacy\buddypress\members\index.php
In the first, change
if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) :
to
if ( bp_has_members( bp_ajax_querystring( 'members' ) '&per_page=1000') ) :
In the second, delete the div that starts with:
<div class="item-list-tabs" id="subnav" role="navigation">
On both tabs, my favicon shows fine, however, in firefox it shows http://sitename, instead of just site’s name, and in chrome it shows my sites name beginning with lower cap.
Where in buddypress do I change that so i can specify exactly what to show there?
I would like to create a page for user registration and another page for editing the profile with more options, where the user will register with few fields and APPOs log it will complete your profile. I saw that there is many plugins for it, but we are using the BuddyPress and we have a custom Theme and when we use the plugin it overwrites the official theme.
Follow this Link (https://pippinsplugins.com/creating-custom-front-end-registration-and-login-forms/) to be able to make a plugin itself and did as mandated by the example but not overwritten the default BuddyPress login.
I’ve been analyzing this (https://buddypress.org/support/topic/custom-login-page-in-buddypress/) post too, but I’m still unable to run, some can help me? What am I doing wrong following the exeplos I mentioned above?
Thank. I did added custom menu item. But i try load custom template when open ,y custom page on member profile. I use this code
function bp_gf_ua_profile_nav_add()
{
bp_core_new_nav_item(
array(
'name' => __('Email preferences', 'buddypress'),
'slug' => 'email-preferences',
'position' => 3,
'show_for_displayed_user' => true,
'screen_function' => 'bp_gf_ua_profile_load_template',
'item_css_id' => 'all-conversations'
)
);
}
function mb_show_posts2() {
echo "Test Text";
}
function bp_gf_ua_profile_load_template()
{
add_action( 'bp_template_content', 'mb_show_posts2' );
bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/email-preferences/preferences' ));
}
add_action( 'bp_setup_nav', 'bp_gf_ua_profile_nav_add' );
But always display memeber-loop template. What i doing wrong?
Thanks!
The above plugin has no sync with buddypress activity stream.
It also does not show who has favorited a post (compare Jetpack Likes)
Thanks for the news.
I am also suffering from this issue.
@modemlooper it was posted in support forum / github of almost all Like and similar plugins long long ago by many users. No response.
Buddypress core via trac was also requested / issue submitted to make the “Favorit” logical like comments – if you can comment both ways, favorit should also be like that. Isn’t it ? But this has been indefinitely postponed.
Jetpack Like team was requested because they have the “power and punch” – but there also nothing happened.
True – only Buddypics does Favoriting both ways.
Hello, Buddypress community. I have an issue I can’t seem to find the answer to.
On this link, you’ll see my profile: http://rapforthemoment.com/emcees/admin/profile/
The title colors for Base, Affiliate Program, and myCRED are all yellow. No matter what code I put in it won’t change. I want #cc0200 but can’t seem to get it to alter.
Please assist me if possible. Thank you in advance for all your work and input!
-Jeff
ok, in the end I used this to solve the problem, as I ran into issues when trying to save an array of arrays with the bp functions. Just in case someone is looking for this as well:
First: I stripped the slashes before saving serialized data to the DB with a filter
Second: I had to copy/create a different xprofile_get_field_data() function, as it would not get complex serialized values (array of arrays). Single arrays it works ok, but not nested arrays. Basically I had to remove all those filters that were called during xprofile_get_field_data().
It’s hacky, but I tried many options. This seems to be the one that worked in the end.
/**
* Fetches profile data for a specific field for the user.
*
* When the field value is serialized, this function unserializes and filters
* each item in the array.
*
* @package BuddyPress Core
* @param mixed $field The ID of the field, or the $name of the field.
* @param int $user_id The ID of the user
* @param string $multi_format How should array data be returned? 'comma' if you want a
* comma-separated string; 'array' if you want an array
* @uses BP_XProfile_ProfileData::get_value_byid() Fetches the value based on the params passed.
* @return mixed The profile field data.
*/
function lw_xprofile_get_field_data( $field, $user_id = 0, $multi_format = 'array' ) {
if ( empty( $user_id ) ) {
$user_id = bp_displayed_user_id();
}
if ( empty( $user_id ) ) {
return false;
}
if ( is_numeric( $field ) ) {
$field_id = $field;
} else {
$field_id = xprofile_get_field_id_from_name( $field );
}
//d($field_id, 'The field ID ><><><><><>><>>>>>>>_+++++++++++++');
if ( empty( $field_id ) ) {
return false;
}
$values = maybe_unserialize( BP_XProfile_ProfileData::get_value_byid( $field_id, $user_id ) );
//d($values, 'The values <><><>>><><><><><><><><>><');
return $values;
}
add_filter( 'xprofile_filtered_data_value_before_save', 'lw_strip_slashes_before_db', 10, 3);
function lw_strip_slashes_before_db($filtered_value, $value, $data_obj ) {
//d($filtered_value, '$filtered_value');
//d($value, '$value');
//d($data_obj, '$data_obj');
if ( is_serialized($value) ) {
$filtered_value = stripslashes($filtered_value);
}
return $filtered_value;
}
Thanks for the clarification, although I’m still a little lost.
Upon further research, the only BuddyPress actions I really need are:
1. created activity wall update in profile
2. created activity wall comment in profile
I’ve been digging through the myCred plugin files, and have found these:
1. bp_activity_posted_update
2. bp_activity_comment_posted
Just to clarify, these are the action hooks used in BuddyPress for when a user posts an activity update or activity comment? Thanks for any insights.