Hi @sandyfischler thanks for the confirmation, there is a very good plugin to redirect author link to his/her profile i am using it on my site as well and it works good for me you can get it from here
No need to change anything just install >>activate>> clear browser cache and check your site in a new incognito window out of your current admin session to see if redirect is working for you,i hope this helps
Thanks
I’m tying to utilize some of the BuddyPress Extended profile field information on a custom area of my site, but it seems as though certain values aren’t being initialized before I try to access them. More specifically:
On my custom php page, I load WordPress with the following:
require_once( WORDPRESS_DIR . '/wp-load.php');
Lots of WordPress functions work great (even BuddyPress functions). But a bit after this require I’m trying to use the following function:
xprofile_get_field_data( $field,$user_id );
The function is accessible, but regrettably it appears as though $bp->profile->table_name_fields is empty…so it can’t search the database for the appropriate field. I end up getting blank results.
What do I need to do in order to have BuddyPress (and even bbPress) load more fully?
Thanks — and Merry Christmas!
Hi @sandyfischler i think this feature is already a part of buddypress just goto dashboard>>settings>>buddypress;>settings tab>>
1)enable buddypress to wordpress profile syncing
2)Allow activity stream commenting on blog and forum posts
3)clear cache of your site and the next time someone will post a blog post it should become visible in activity stream
Thanks
You could check to see if the field exists before creating it.
But that check would happen on every page load.
The best and most efficient method is to create a plugin and write a function that hooks to the
register_activation_hook.
In that function, check to see if the field exists and if not, create it.
Then the function will only run which the plugin is activated.
Best solution is to use BuddyDrive
Hey guys,
After I upgraded the WordPress version to 4.1 of my BP site it’s causing some weird behavior.
Is there an incompatibilty between WP 4.1 and Buddypress cause:
1. it’s duplicating my profile fields. For example: it’s now showing my name field twice..
2. and the order of the groups are changing every time… Weird
Anonymous UserInactive
got, thanks for the heads up. the link on overloads explained much. i’m still a newbie re: WordPress and BuddyPress and find that it’s not always easy to get crucial info out of the documentation unless you already know it exists (or are familiar enough with these systems to know what you might be looking for).
Thanks again
i want to remove some default BP tabs
Re removing the Manage > Delete tab…
You’re referring to the anon function in bp-groups-classes.php ?
add_action( 'groups_admin_tabs', create_function( '$current, $group_slug', etc...
I agree that it’s unclear.
I think that if that function added a css id to the li tag, then we should be able to use the filter in bp_get_options_nav in bp-core-template.
If this makes sense, and you haven’t found a workaround, please open a ticket on trac.
Hey guys,
I’ve just updated my Buddypress site to WordPress 4.1 and just found out that I cannot add new Field Groups.
Need a fix pls.
ThX!
hi @trkr,
the function you’re looking for is bp_group_admin_tabs in bp-groups-template.php
More details about group admin tabs (new in 2.1) here
Use the Group Extension API to build your menu.
Group Extension API
Have you tried setting your WordPress homepage to your Register page? This can be done via your WP admin area
WordPress 4.0, BuddyPress 2.1.1
I’m trying to create a page template for the Activity Stream page.
I created it the standard WordPress way, selected it in the page editor but BuddyPress defaults to page.php.
I then created page.php in themes/mytheme/buddypress/activity/ but it still defaults to the page.php in the root of my theme. Furthermore any templates I create in this location do not appear under Edit Page.
Any help is much appreciated!
I am not a coder, but I’m looking for a snippet that can do this:
Add Function: Change Admin Bar Login and Register Links
if user is logged out
Remove WordPress/buddypress admin bar Login and Register links
Add New Login and Register Links
New Login Link: <a data-reveal-id="tmpl_reg_login_container" href="javascript:void(0);" onclick="tmpl_login_frm();">New Login Link</a>
New Register Link: <a data-reveal-id="tmpl_reg_login_container" href="javascript:void(0);" onclick="tmpl_registretion_frm();">New Register Link</a>
if user is logged in don't do any of the above (i.e.) show their buddypress username and hide register links, etc...
Does anyone know how to make this happen in code that I can drop into functions.php or bp-custom.php
@wadsworth4
I also have another plugin that I was told on the plugins forum that it worked on multisite called “Private BP Pages.” However I never actually tested it myself on BP with multisite. I just got that info from some of the users of the plugin. I used to offer it on the WordPress repo up to about 3 months ago but I have since removed it. But to answer your question “Yes” it is possible to create a members-only community with the latest BP and WP multisite by creating a plugin or using a function in bp-custom.php using hooks etc. That way your not hacking BP and if you update BP you won’t lose your changes.
Have you tried this plugin?
Hi
No doubt this has been covered before, but I couldn’t find anything specific with a quick search.
I’m building a WordPress / bbPress/ BuddyPress site and just got thinking about images uploaded from users, can it be added to the posting of a status and / how should I handle these? For example, in forums that I use, you mostly have to link them from somewhere like flickr.
Sorry if this is a daft question, brain is a little fried today!
Thank you
Best thing I did to limit spam bot users is adding the free wordpress plugin “good question” – but change the defaults questions and answers.
I also reccomend si captcha plugin, and limit login attempts.
I always change the default settings on limit login attempts to be more strict than default.
I also add whitelist ip plugin for limit login attempts so I don’t lock myself out – lol.
This is the code I added at line 278 in /wp-content/plugins/buddypress-activity-plus/lib/class_bpfb_binder.php to create the action. The credit for this code is @Juanma in WordPress.org forum. (couldn’t find the original thread). In this case I’m creating an action for images upload.
function ajax_update_activity_contents () {
$bpfb_code = $activity = '';
$aid = 0;
$codec = new BpfbCodec;
if (@$_POST['data']['bpfb_photos']) {
$images = $this->move_images($_POST['data']['bpfb_photos']);
$bpfb_code = $codec->create_images_tag($images);
$type = 'bpfb_share_wall_photos';
}
$bpfb_code = apply_filters('bpfb_code_before_save', $bpfb_code);
// All done creating tags. Now, save the code
$gid = (int)@$_POST['group_id'];
if ($bpfb_code) {
global $bp;
$content = @$_POST['content'] . "\n" . $bpfb_code;
$content = apply_filters('bp_activity_post_update_content', $content);
$user_id = $bp->loggedin_user->id;
$userlink = bp_core_get_userlink( $user_id );
$author = bp_core_get_userlink( $author_id );
$activity_url = bp_activity_get_permalink( $item_id );
$aid = $gid ?
groups_post_update(array('conte nt' => $content, 'group_id' => $gid)) :
bp_activity_add(
array(
'action' => apply_filters( 'activity_update', sprintf( __( '%s shared a link', 'buddypress' ), $userlink ), $user_id ),
'content' => $content,
'component' => 'activity',
'type' => $type,
'user_id' => $user_id
)
);
if ($aid) {
ob_start();
if ( bp_has_activities ( 'include=' . $aid ) ) {
while ( bp_activities() ) {
bp_the_activity();
if (function_exists('bp_locate_template')) bp_locate_template( array( 'activity/entry.php' ), true );
else locate_template( array( 'activity/entry.php' ), true );
}
}
$activity = ob_get_clean();
}
header('Content-type: application/json');
echo json_encode(array(
'code' => $bpfb_code,
'id' => $aid,
'activity' => $activity,
));
exit();
}
}
And this is the code that works for activity stream. It shows just the activities with this action, but when you click the ‘load more’ button it loads the regular stream.
<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&action=bpfb_share_wall_photos') ) : ?>
I should’ve explained more. In the WordPress admin panel, If you click Users-Profile Fields, the profile field created and placed into the member-header.php file doesn’t show at all.
Here’s a tutorial I followed: http://code.tutsplus.com/articles/developing-buddypress-themes-part-3-buddypress-15-member-pages-the-overall-user-experience–wp-21856
The code:
<?php
$favorite_spot = bp_get_profile_field_data( 'field=Favorite Camping Spot' ) ;
echo '<p class="profile-fields">My Favorite Camping Spot: ' .$favorite_spot. '</p>';
$necessary_item = bp_get_profile_field_data( 'field=One Necessary Item' ) ;
echo '<p class="profile-fields">My One Necessary Item: ' .$necessary_item. '</p>';
?>
In my site to upload youtube videos in activity I’m using https://wordpress.org/plugins/buddypress-activity-plus/ I have modified the code, so the user could select video category. I have add 2 new columns in activity mysql table “video_category” and “video_subcategory”. That works just fine.
The problem is that now I want to make activity feed searchable via categories and subcategories that I used.
To filter activity feed I used this code in function.php
if ($_POST['select_name'] === 'category_name') {
(bp_has_activities( bp_ajax_querystring( 'activity' ).'&search_terms=category_name' ) );
}
It looks like that ( bp_ajax_querystring( ‘activity’ ).’&search_terms=category_name’ ) search only in mysql Activity table “content” column. But I want to search from my new columns “video_category” and “video_subcategory”. Because when i tried to add video category name in ‘content’ search is working just fine, but I want to search not in content column, but from my new ones.
Any ideas how could I achieve that?
I am still trying to figure out how to mad buddypress so the group title becomes the page title and the broup description becomes the meta name =description thing.
I pointed out what some people have suggested here: https://buddypress.org/support/topic/groups-title-meta-description-duplicate-blank/
But no one has suggested what is best practices, or if any of those solution work.
I see that wp 4.1 has a new feature:
<title> tags in themes
add_theme_support( ‘title-tag’ ) tells WordPress to handle the complexities of document titles.
Would this make it easier to put something somewhere where buddypress can make a page title and meta description, or make it easier for admins to add some code to fix or something?
Perhaps next buddypress will make this a default fix with this new wordpress title thing, and give an option for group admins to adjust page title / meta name description?
Hi, thats happenning to me and its annoying, any idea what could it be?
Wordpress 4.0.1 and bp 2.1.1
Please, don’t mention a user without a link to what you’re speaking about.
There is no specific donation plugin for BP so far i know. You can of course try some of the existing for WordPress, but i’ve no idea if one of them integrates well.
Maybe an alternative solution with myCred, who is adapted to BuddyPress and has such a feature.
Home