Search Results for 'custom activity page'
-
AuthorSearch Results
-
July 19, 2015 at 9:56 am #241989
In reply to: Duplicate activity/members/groups seperate language
Roger Coathup
ParticipantThe default BuddyPress site setup only supports a single activity, members, groups directory page.
One solution is to create your own custom page templates, and embed the code for the activity, member and group loops in the template. You’d then assign it to your duplicate pages. You can read more about coding your own loops in the documentation section of this site.
You could also look to see if it’s possible to use the language files — dynamically loading the appropriate text domain translations of the BuddyPress text depending which language the user has selected. In this scenario, you’d work with the default ‘single’ page setup.
Perhaps too late for your site (if you’ve gone down the polylang route), but for all our multi language solutions, we go the multisite approach and using the Multilingual Press Pro plugin. It gives a really clean solution. Remember to enable bp multiblog if you switch to this approach.
July 15, 2015 at 3:54 pm #241869In reply to: theoretically, is it possible to do this?
peter-hamilton
Participantsorry, password is: demouser
I hope it shows a bit more then just a bbpress forum thats added,
Took me a long time to add the custom functions, especially the profile pages and activity.July 7, 2015 at 9:12 am #241522Prabin
Participanthi @danbp
Actually, I want to display the “Most Favorited Count” in single activity group page in custom drop-down select option called “Most Agreed”. See Above Images.['type'] == 'featured'
I wanted to compare option value inside the meta_query
<option value="featured"><?php _e( 'Most Agreed' ); ?></option>
I am not sure if it works. can you debug this for me ? or what code i need to add ?
July 7, 2015 at 7:51 am #241516Prabin
Participant@danbp, I have an issue..
I have “Most Agreed” option in single group page. but the query is not returning desired value.
can you look into this?Here’s the Screenshot
and Here’s the code
if( class_exists( 'BP_Group_Extension' ) ) : class bpgmq_feature_group { public function __construct() { $this->setup_hooks(); } private function setup_hooks() { $bp = buddypress(); add_filter( 'bp_ajax_querystring', 'custom_filter_ajax_querystring' , 999, 2 ); // you need to do it for the group directory add_action( 'bp_group_activity_filter_options', array( $this, 'agreed_option' ) ); } public function agreed_option() { ?> <option value="featured"><?php _e( 'Most Agreed' ); ?></option> <?php } } function custom_filter_ajax_querystring( $querystring, $object ) { #var_dump($querystring); if($object != 'activity' ) return $querystring; $defaults = array('type'=>'active','action'=> 'active','scope'=> 'all','page'=>1,'order'=>'DESC'); #exit; /*if( $bpgmq_querystring['type'] != 'featured' ) return $querystring;*/ $bpgmq_querystring = wp_parse_args( $querystring, $defaults ); if( $bpgmq_querystring['type'] == 'featured' ){ $bpgmq_querystring['meta_query'] = array(array('key'=> 'favorite_count','value'=> 1,'type'=> 'numeric','compare' => '>=')); return apply_filters( 'bpgmq_filter_ajax_querystring', $bpgmq_querystring, $querystring ); } var_dump($querystring); } function bpgmq_agreed_group() { if( bp_is_active( 'activity') ) return new bpgmq_feature_group(); } add_action( 'bp_init', 'bpgmq_agreed_group' ); endif;
Thanx in Advance
July 6, 2015 at 8:33 pm #241509In reply to: show entire activity stream – global activity stream
Quinn Goldwin
ParticipantHey Danbp,
Thank you for the quick responses and all your help. I tried playing around with your way but I’m not advanced enough for working with hooks and custom coding just yet.
I did find an easier work around that I just pasted into my bp-custom.php and it did the trick. But for other members trying to do this, you need to have the plugin http://buddydev.com/buddypress/show-buddypress-communitysitewide-activity-on-user-profile/ for this to work.
function bp_change_activity_subnav_default() { if ( bp_is_user_activity() ) { $args = array( 'parent_slug' => 'activity', 'subnav_slug' => 'all-activity' ); bp_core_new_nav_default($args); } } add_action('bp_setup_nav', 'bp_change_activity_subnav_default', 5);
I understand you guys aren’t getting paid for your services but now i’m just struggling on adding a “whats new” post form to the all activity page. Buddy dev had some directions on how to add it but I think its dated cause I couldn’t find the code that we needed to switch out. Is there a simple way to add a whats new post form to the all activity page? It would be awesome if it was simple enough to paste it into bp-custom.php.
Thanks again for everything you guys are great!
June 30, 2015 at 9:43 pm #241307danbp
ParticipantWhich result when you use Twenty Fifteen theme ?
Do you use some custom functions on group page ?Also, as of Codex https://codex.buddypress.org/administrator-guide/groups/
This is a private groupOptions
Group content and activity will only be visible to members of the group.
June 28, 2015 at 5:14 pm #241218In reply to: show entire activity stream – global activity stream
danbp
Participantit goes to my personal activity instead.
It’s intended so ! You’re on a profile page, and any links added directly to buddybar or his subnav is alwways, and only, user related. It’s a contextual menu.
But you can use
bp_member_options_nav
action hook which is on the template.
bp-templates/bp-legacy/buddypress/members/single/home.phpAdd this snippet to bp-custom.php your your child theme functions.php:
function goldwin_custom_setup_nav() { if ( bp_is_active( 'xprofile' ) ) ?> <li><a href="<?php bp_activity_directory_permalink(); ?>"><?php printf ('All Activities'); ?></a></li> <?php } add_action( 'bp_member_options_nav', 'goldwin_custom_setup_nav' );
By default, the hook is placed as latest item of the navbar items. To get as first item, simply move the action at the begin of the list.
Default code looks like this:
<ul> <?php bp_get_displayed_user_nav(); ?> <?php do_action( 'bp_member_options_nav' ); ?> </ul>
that you can chage to:
<ul> <?php do_action( 'bp_member_options_nav' ); ?> <?php bp_get_displayed_user_nav(); ?> </ul>
But you can’t get your custom item as second, or third, or whatever. Only first or latest.
How to use bp-custom, functions.php and child_theme is explained on the codex.
June 19, 2015 at 7:26 am #240869In reply to: Display user Specific profile ?
danbp
ParticipantJune 9, 2015 at 9:32 pm #240512In reply to: Sponsored Ads
danbp
Participantyou can also read the doc and try to modify the activity template to your need.
https://codex.buddypress.org/template-updates-2-1/#activity-filter
and search for similar topics:
https://buddypress.org/support/search/custom+activity+page/June 5, 2015 at 2:02 pm #240278Dono12
ParticipantYes it is related to “Messages > Starred”. There is nothing wrong with the new feature. It’s this function that I found online that’s causing a conflict.
/* ——————————Start BP Post in profile code for function——————– */
function importSomething(){
return include_once ‘bp-custom.php’;
}
add_action( ‘bp_setup_nav’, ‘buddyboss_child_bp_nav_adder’ );
add_action( ‘bp_template_content’, ‘profile_buddyboss_child_loop’ );
bp_core_load_template( apply_filters( ‘bp_core_template_plugin’, ‘members/single/plugins’ ) );function buddyboss_child_bp_nav_adder() {
global $bp;
$post_count = count_user_posts_by_type( $bp->displayed_user->id );
bp_core_new_nav_item(
array(
‘name’ => sprintf( __( ‘Posts <span>%d</span>’, ‘my-poems’ ), $post_count ),
‘slug’ => ‘Articles’,
‘position’ => 250,
‘show_for_displayed_user’ => true,
‘screen_function’ => ‘buddyboss_child_list’,
‘item_css_id’ => ‘articles’,
‘default_subnav_slug’ => ‘public’
));
}
function buddyboss_child_list() {
add_action( ‘bp_template_content’, ‘profile_buddyboss_child_loop’ );
bp_core_load_template( apply_filters( ‘bp_core_template_plugin’, ‘members/single/plugins’ ) );
}
/*——- This is end of the code for above function ———*/
function profile_buddyboss_child_loop() {
$myposts = get_posts( array(
‘posts_per_page’ => -1,
‘author’ => bp_displayed_user_id(),
‘post_type’ => ‘post’
));
if( ! empty($myposts) ) {
foreach($myposts as $post) {
setup_postdata( $post );
if (has_post_thumbnail( $post->ID ) ):
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), ‘sidebar-smallthumbnew’ );
else :
$image[0] = “…/wp-content/themes/Starkers-Child-2/images/vidimage.jpg”;
endif;
echo ‘<li class=”sidebar mostpop post-‘ . $post->ID . ‘”><div id=”postimage”>ID) . ‘”></div><div id=”postinfo”>ID) . ‘”>’ . get_the_title($post->ID) . ‘</div>‘;
}
echo ‘‘;
wp_reset_postdata();
} else { ?>
<div class=”info” id=”message”>
<p><?php bp_displayed_user_fullname(); ?> has No posts.</p>
</div>
<?php }
}
/* This is end of the code for above function */
remove_filter(‘bp_setup_nav’,”);
function count_user_posts_by_type( $userid, $post_type = ‘post’ ) {
global $wpdb;
$where = get_posts_by_author_sql( $post_type, true, $userid, true);
$count = $wpdb->get_var( “SELECT COUNT(*) FROM $wpdb->posts $where” );
return apply_filters( ‘get_usernumposts’, $count, $userid );
}
/* ——————————This is end of the code for post in profile above function——————– */It adds a new button on the user activity page and when the Message-Starred button is clicked it takes the user the lists of post page that the above function creates. How can I stop that fro happening. I really want to keep the starred message function and I don’t want to lose the lists of WordPress post in the user Activity page.
May 26, 2015 at 7:52 am #239695In reply to: Custom Post activity_action output wonky
majecdad
ParticipantFirst, @henrywright, I think you were right, that code was not creating the entry, it was created because I had
add_post_type_support( 'alert', 'buddypress-activity' );
in bp-custom too. Thanks for making me think twice.It’s amazing what you can learn in 12 hours. Not enough, but it’s a start. So I tossed the baby out with the bathwater, and read this about 15 times to get to a partial understanding of it. I am now using this:
// Don't forget to add the 'buddypress-activity' support! add_post_type_support( 'alert', 'buddypress-activity' ); function customize_page_tracking_args() { // Check if the Activity component is active before using it. if ( ! bp_is_active( 'activity' ) ) { return; } bp_activity_set_post_type_tracking_args( 'alert', array( /*'component_id' => buddypress()->blogs->id,*/ 'action_id' => 'new_alert', 'bp_activity_admin_filter' => __( 'Published a new alert', 'buddypress' ), 'bp_activity_front_filter' => __( 'Alerts', 'buddypress' ), 'contexts' => array( 'activity', 'member' ), 'activity_comment' => true, 'bp_activity_new_post' => __( '%1$s posted an important new <a href="%2$s">** Alert **</a>', 'buddypress' ), 'bp_activity_new_post_ms' => __( '%1$s posted a new <a href="%2$s">alert</a>, on the site %3$s', 'buddypress' ), 'position' => 100, ) ); } add_action( 'bp_init', 'customize_page_tracking_args' );
After about 20 different mods, adding and deleting and changing, I got a CPT to take to the activity stream, with the (mostly) modified text I was looking for.
I actually don’t even know what some of the items in the array are, I just changed things until they worked. 🙂 In fact, I had to comment out component id, because I still haven’t figured out what goes there to keep from getting a WSOD.
The only main thing I’d really still like to accomplish is getting the Post Title in the link that is created here:
'%1$s posted an important new <a href="%2$s">** Alert **</a>'
— where it would be like “soandso posted an important new Alert:The Title of the CPT”Any ideas out there?
If this is still not the right/best way to accomplish this, I’m open to suggestion. But I think I am at least stepping in the right direction.
Thanks.
May 19, 2015 at 5:07 pm #239409In reply to: Change "activity" slug
danbp
Participant3 mounth later….
just tested the defines and they’re working ! You have a cote error in above code. 😉Try this:
define( 'BP_ACTIVITY_SLUG', 'activitissima' );
Remind also that BP’s activity page, defined in BP settings, must be empty, without shortcodes, template or page model. Just a title. These pages are dynamic, not static like normal WP pages.
If you need to modifiy it, use a template override.If you still want to understand, please read here:
https://buddypress.org/support/topic/changing-slugs-with-bp-custom-php-no-change/May 19, 2015 at 12:44 pm #239405In reply to: Change "activity" slug
milenushka
Participantthis one is still uresolved.
@danbp (https://buddypress.org/support/topic/custom-activity-slug/)
custom slug change for ACTIVITY does not work for me.To change slugs on the sub nav on a member page add these defines to a file bp-custom.php and place this file in /plugins/bp-custom.php
?
1
2
define( ‘BP_SETTINGS_SLUG’, ‘settings’ );
define( ‘BP_XPROFILE_SLUG’, ‘profile’ );May 15, 2015 at 4:03 pm #239126In reply to: Error When Adding Custom Post Type to Activity Feed
producist
ParticipantI just tried adding the snippets and again and that problem isn’t happening anymore. However, the filter functionality isn’t working…
See Screenshot —
http://postimg.org/image/5ulodg0wz/
Here’s the code I used….
<?php // hacks and mods will go here ok // Don't forget to add the 'buddypress-activity' support! add_post_type_support( 'page', 'buddypress-activity' ); function customize_page_tracking_args() { // Check if the Activity component is active before using it. if ( ! bp_is_active( 'activity' ) ) { return; } bp_activity_set_post_type_tracking_args( 'page', array( 'component_id' => buddypress()->blogs->id, 'action_id' => 'new_blog_page', 'bp_activity_admin_filter' => __( 'Published a new page', 'custom-domain' ), 'bp_activity_front_filter' => __( 'Pages', 'custom-domain' ), 'contexts' => array( 'activity', 'member' ), 'activity_comment' => true, 'bp_activity_new_post' => __( '%1$s posted a new <a href="%2$s">page</a>', 'custom-textdomain' ), 'bp_activity_new_post_ms' => __( '%1$s posted a new <a href="%2$s">page</a>, on the site %3$s', 'custom-textdomain' ), 'position' => 100, ) ); } add_action( 'bp_init', 'customize_page_tracking_args' ); ?>
Is there anything I need to add or change in the above code in order to make PAGES show in the filter area?
May 13, 2015 at 4:28 pm #239042In reply to: Remove friend notifications for all activity page
shanebp
ModeratorYou can place this in your theme/functions.php or in bp-custom.php.
It will stop recording entries for 3 types after you include the function.
You can add othertypes
as desired to the$exclude
array.function steve_dont_save_activity( $activity_object ) { $exclude = array( 'new_avatar', 'updated_profile', 'friendship_created' ); if( in_array( $activity_object->type, $exclude ) ) $activity_object->type = false; } add_action('bp_activity_before_save', 'steve_dont_save_activity', 1, 1 );
To delete existing entries, use the interface here
[yoursite]/wp-admin/admin.php?page=bp-activity
May 12, 2015 at 6:50 pm #238987In reply to: Error When Adding Custom Post Type to Activity Feed
producist
ParticipantI also saw this about multisite installs in the thread you posted:
“On multisite configurations, the post types that are registered on any sub-site will need to be registered on the root site in order to be listed in the Activity dropdown filters. That’s the case for the post and page post types”
The site I’m trying to create a custom post type for is a subsite. I assume the Page Post Type is registered for the root install, so this shouldn’t be causing the problem right?
April 24, 2015 at 9:21 pm #238324In reply to: Avatar does not show outside BuddyPress
danbp
ParticipantPrevious snippet changed all avatars (user, blogs and groups) which is not what you want. Here’s a snippet which works almost correctly, but not to 100%. Give it a try anyway.
It changes the user avatar depending of an xprofile value.
(add to bp-custom.php)
function bpfr_my_new_avatar_url() { global $bp; if( bp_is_user() && ! bp_get_member_user_id() ) { $user_id = bp_displayed_user_id(); } else { $user_id = bp_get_member_user_id(); } if ( is_page( 'activity' ) ) { $user_id = bp_get_activity_user_id(); } $ranking = xprofile_get_field_data ('ranking', $user_id ); if ($ranking == "Top 25") { $url = get_stylesheet_directory_uri() .'/custom_img/25.png'; } if ($ranking == "Top 24") { $url = get_stylesheet_directory_uri() .'/custom_img/24.png'; } return $url; } add_filter( 'bp_core_default_avatar_user', 'bpfr_my_new_avatar_url' );
Create a profile field called “ranking” with 2 options (top 24 & top 25).
Create a folder in your child-theme called “custom_img” and add 2 pictures: 24.png & 25.png (250×250)
If everybody must those avatars, disallow avatar upload in BP settings.
Site default avatar stays as Mystery Man (wp default setting).You have also to get rid of Gravatar, so you must add this to bp-custom.php
add_filter('bp_core_fetch_avatar_no_grav', '__return_true');
The thing who doesn’t work is related to
X & Y are now friends
. Both willhave the same avatar.Can probably by better improved.
danbp
ParticipantHi,
to show only notices (aka updates) on the SWA, try this snippet (place in bp-custom.php)
function make_swa_show_notice_only( $retval ) { if ( bp_is_page( 'activity' ) ) { $retval['action'] = 'activity_update'; } return $retval; } add_filter( 'bp_after_has_activities_parse_args', 'make_swa_show_notice_only' );
Reference: https://codex.buddypress.org/developer/using-bp_parse_args-to-filter-buddypress-template-loops/
April 14, 2015 at 4:47 pm #237873In reply to: [Resolved] Activity stream – show personal activity
shanebp
ModeratorYou want to add a ‘Personal’ option to the ‘Show’ selector on Site Wide Activity?
Try this in your theme/functions.php or in bp-custom.php
function leanne_activity_filter_options() { if ( is_user_logged_in() ) echo '<option value="personal">Personal</option>'; } add_action( 'bp_activity_filter_options', 'leanne_activity_filter_options' ); function leanne_ajax_querystring( $query_string, $object ) { if ( 'activity' != $object ) return $query_string; if ( ! bp_is_activity_directory() ) return $query_string; $query_args = wp_parse_args( $query_string, array() ); $page = $query_args['page']; if( isset( $query_args['action'] ) && $query_args['action'] == 'personal' ) { $query_args = array(); $query_args['page'] = $page; $query_args['user_id'] = bp_loggedin_user_id(); $query_string = http_build_query( $query_args ); } return $query_string; } add_filter( 'bp_ajax_querystring', 'leanne_ajax_querystring', 20, 2 );
April 11, 2015 at 11:32 pm #237717Garydock
ParticipantI’m not sure if this is valuable information. I’ve used firebug to try and locate a file where I can remove this or something and this is all I can see but I don’t know if its related. I just want to remove this warning whatever way possible, everything else seems to all be working ok. activity bp-user my-activity my-account just-me buddypress page page-id-0 page-parent page-template-default logged-in custom-background js woocommerce.
April 11, 2015 at 7:21 pm #237701In reply to: Custom Post Type Support for Activity
aaronkine
ParticipantYes… the post type is registered by another plugin “Wp Job Manager”. I am new at coding so if i find a script and it actually works “i use it” even though there may be a more correct way.
I also have another plugin “The Events Calendar” that has post type of ‘tribe_events’ and i am trying to do the same thing as the Job post type.
I also don’t understand the difference between using “text-domain” and “custom-domain” for the bp_activity_admin_filter ?
I used info from this Topic/Discussion here: https://buddypress.org/support/topic/cant-seem-to-get-bp-2-2s-post-types-activities-working/
Here is my full code in bp-custom for Jobs and Events post types…
//The 'WP Job Manager' post type add_post_type_support( 'job_listing', 'buddypress-activity' ); function customize_page_tracking_args_job() { // Check if the Activity component is active before using it. if ( ! bp_is_active( 'activity' ) ) { return; } bp_activity_set_post_type_tracking_args( 'job_listing', array( 'component_id' => 'activity', 'action_id' => 'new_job_listing', 'bp_activity_admin_filter' => __( 'Published a new Job', 'text-domain' ), 'bp_activity_front_filter' => __( 'Job', 'text-domain' ), 'contexts' => array( 'activity', 'member' ), 'activity_comment' => true, 'bp_activity_new_post' => __( '%1$s posted a new Job: <a href="%2$s">Job</a>', 'text-domain' ), 'bp_activity_new_post_ms' => __( '%1$s posted a new Job: <a href="%2$s">Job</a>, on the site %3$s', 'text-domain' ), 'position' => 100, ) ); } //'The Calednar Events' post type add_action( 'init', 'customize_page_tracking_args_job', 999 ); add_post_type_support( 'tribe_events', 'buddypress-activity' ); function customize_page_tracking_args_event() { // Check if the Activity component is active before using it. if ( ! bp_is_active( 'activity' ) ) { return; } bp_activity_set_post_type_tracking_args( 'tribe_events', array( 'component_id' => 'activity', 'action_id' => 'new_tribe_events', 'bp_activity_admin_filter' => __( 'Published a new Event', 'text-domain' ), 'bp_activity_front_filter' => __( 'Event', 'custom-domain' ), 'contexts' => array( 'activity', 'member' ), 'activity_comment' => true, 'bp_activity_new_post' => __( '%1$s posted an Event: <a href="%2$s">Event</a>', 'custom-domain' ), 'bp_activity_new_post_ms' => __( '%1$s posted an Event: <a href="%2$s">Event</a>, on the site %3$s', 'custom-domain' ), 'position' => 100, ) ); } add_action( 'init', 'customize_page_tracking_args_event', 999 );
April 10, 2015 at 4:24 pm #237624In reply to: Custom Post Type Support for Activity
aaronkine
Participant@imath thanks for the above code which “adds the post type title into the link in replacement”
But i need to change one small thing in that code but i dont know how.
Here is my code in bp-custom.php —
add_post_type_support( 'job_listing', 'buddypress-activity' ); function customize_page_tracking_args_job() { // Check if the Activity component is active before using it. if ( ! bp_is_active( 'activity' ) ) { return; } bp_activity_set_post_type_tracking_args( 'job_listing', array( 'component_id' => 'activity', 'action_id' => 'new_job_listing', 'bp_activity_admin_filter' => __( 'Published a new Job', 'text-domain' ), 'bp_activity_front_filter' => __( 'Job', 'text-domain' ), 'contexts' => array( 'activity', 'member' ), 'activity_comment' => true, 'bp_activity_new_post' => __( '%1$s posted a new Job: <a href="%2$s">Job</a>', 'text-domain' ), 'bp_activity_new_post_ms' => __( '%1$s posted a new Job: <a href="%2$s">Job</a>, on the site %3$s', 'text-domain' ), 'position' => 100, ) ); } add_action( 'init', 'customize_page_tracking_args_job', 999 );
Here is the result…
PathPoint-SSB posted a new Job: Job 5 hours, 53 minutes agoHere is what it looks like after I use your code to insert the Title of the Job
pathpoint posted a new Receptionist/Administrative Assistant 5 hours, 49 minutes agoAs you can see, it changes the Users name and also I cant change this part “posted a new”. I would like it to read “posted a new Job: ”
Any ideas?
Thanks for any insight on this,
AaronApril 8, 2015 at 8:52 am #237459In reply to: link to user's profile (non-template)
danbp
ParticipantHi @andrew55,
add this snippet to bp-custom.php. Now you can use shortcode [profilo] in any blog post, blog comment, page and BP notice. Note that activity walls are stripped, the shortcode will not work/appear there.For bbPress topics and replies, use this plugin. Read the doc, as you’ll have to check user capacity to get it to work for participant.
function bpfr_link_to_profile() { return ' <a href="'. bp_get_loggedin_user_link() .'">View my profile</a>'; } add_shortcode( 'profilo', 'bpfr_link_to_profile' ); add_filter( 'comment_text', 'do_shortcode' );
April 7, 2015 at 10:07 am #237370In reply to: Customizing Buddypress Activity Wall
Roger Coathup
ParticipantChanging these titles isn’t the easiest thing, but BuddyPress does provide 2 ways you can do it. However, hacking core files like bp-activity-loader.php is definitely not one of them. [Never hack core files — have a Google if it’s not obvious to you why you shouldn’t]
Ok the 2 solutions are:
- Use a language / translation file
- Use the template hierarchy
The string “Site-Wide Activity” is translatable — all the strings are. You can implement a language file that translates ‘Site-Wide Activity’ into whatever string you’d like. Have a search for translating BuddyPress strings / POT files / poedit. There’s also a documentation (they call it the Codex) page on it: https://codex.buddypress.org/getting-started/customizing/customizing-labels-messages-and-urls/
The second solution is to use the template hierarchy. If you don’t provide a specific template for your activity directory, BuddyPress will use the page.php file from your theme and ‘inject’ the title “Site-Wide Activity” where page.php makes a call to the_title().
You can override this by implementing your own template — create a file called index-directory.php inside /buddypress/activity in your site’s theme. Copy the basics of page.php into that file, and replace the_title() with your hardcoded title for the page.
You can read more about the template hierarchy here: https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/
Neither solution is simple, you’ll either have to get your head around using poedit, or need some basic PHP coding skills and an understanding of the principles of templates and themes in WordPress. In the future, it would be nice to see a settings panel in wp-admin to configure these basic strings.
[p.s. if you don’t want to use poedit, you could take a look at plugin solutions for string translation, e.g. codestyling localisation]
March 31, 2015 at 5:23 pm #237066In reply to: Activity page template?
IHaveToDoThis
ParticipantHey,
I’m a newcomer to all of this and I can’t answer your overall question, but I can tell you how to change the name “Site-Wide Activity” on the activity page. You go to: wp-content>plugins>buddypress>bp-activity/bp-activity-loader.php and the title is towards the top the in $GLOBAL array. And you can change it from “Site-Wide Activity” to whatever you want.
I’ll be following this tho. I’ve been looking for way to customize my BP wall and make it look not so bland. I hope someone else can help you further!
-
AuthorSearch Results