Search Results for 'private'
-
Search Results
-
Topic: Notifications in Top Menu
For privacy issues I want to hide certain links on profile view.
i use the snippet, mentioned here (see script below):
oneThis works fine with BP related links, but I cannot hide links from CPT like rtMedia and the link of this:
`function bp_postsonprofile() {
add_action( ‘bp_template_content’, ‘profile_screen_posts_show’ );
bp_core_load_template( apply_filters( ‘bp_core_template_plugin’, ‘members/single/plugins’ ) );
}function profile_screen_posts_show() {
$myposts = get_posts( array(
‘posts_per_page’ => -1,
‘author’ => bp_displayed_user_id(),
‘post_type’ => ‘post’
));if( ! empty($myposts) ) {
echo ‘<ul>’;
foreach($myposts as $post) {
setup_postdata( $post );
echo ‘<li><a href=”‘ . get_permalink($post->ID) . ‘”>’ . get_the_title($post->ID) . ‘</a></i>’;
}echo ‘</ul>’;
wp_reset_postdata();
} else {
echo ‘<div class=”info” id=”message”><p>’. bp_displayed_user_fullname() .’ hat keine Beiträge veröffentlicht.</p></div>’;
}
}add_action ( ‘profile_screen_posts_show’ );`
function bpfr_hide_tabs() {
global $bp;
/**
* class_exists() & bp_is_active are recommanded to avoid problems during updates
* or when Component is deactivated
*/if( class_exists( ‘bbPress’ ) || bp_is_active ( ‘groups’ ) ) :
/** here we fix the conditions.
* Are we on a profile page ? | is user site admin ? | is user logged in ?
*/
if ( bp_is_user() && !is_super_admin() && !is_user_logged_in() ) {/* and here we remove our stuff ! */
bp_core_remove_nav_item( ‘activity’ );
bp_core_remove_nav_item( ‘friends’ );
bp_core_remove_nav_item( ‘groups’ );
bp_core_remove_nav_item( ‘posts’ );
bp_core_remove_nav_item( ‘forums’ );
bp_core_remove_nav_item( ‘media’ );
}
endif;
}
add_action( ‘bp_setup_nav’, ‘bpfr_hide_tabs’, 15 );Hi – My activity updates are not displaying properly. Instead of the actual update “Hello World” it will only state the fact “Bob made an update” in all places the update details should display: member profile, group page, sitewide activity page.
I am using:
Wordpress 4.9.1
Theme Kleo by Seventh Queen 4.2.12
Buddypress 2.9.2
Also, BuddyPress Activity Short Code by BuddyDev 1.1.1All my groups are Public Groups (not Private) in case that makes a difference.
I am still in development mode, so not yet launched. My Buddypress was working perfectly until I migrated my site to a different URL and perhaps some code got changed.
Can anyone point me in the right direction to how to get the full activity update details to display everywhere instead of just the statement of the update?
Thank you very much!
Topic: Group Filters
Within Buddypress group the setting allow the group to be public or private! However when the group is public and a member of the group post something, that post goes to activity stream on the front end. I like a code that I can put in my Custom CSS, that would only allow the (Admin of the Group) post to be seen in the overall community stream of activity when the setting is set to public. Members of the group post can only be seen within the group, when set to public.
Regards
I am attempting to display some user data on a single page so members of a group can see all of the members within that group’s info without going into each profile. I have successfully displayed 2 custom fields, but cannot display the user’s email address.
It is a private site, so I cannot link to it. Hopefully this is something minor that I am just missing.
I have found so many scattered suggestions for this type of thing, but nothing has worked.
I have tried all of these types with various field names (email, Email, Email address, Account email, etc.) and nothing displays the email address.<?php echo bp_member_profile_data(‘field=Email’); ?>
<?php echo bp_member_profile_data(‘field=Account email’); ?>
<?php echo xprofile_get_field_data( ‘field=Account email’ ); ?>
<?php echo get_post_meta(get_the_id(), ‘user_email’, true); ?>
<?php echo xprofile_get_field_data( ‘user_email’, get_the_author_id()) ?>
I am updating a copied version in my theme of members.php from /buddypress/members/
Any ideas would be appreciated. Thanks!
BP v2.9.2
WP v4.9.1Topic: Custom Member Profile Fields
I have a (private) corporate intranet that incorporates BuddyPress for Employee Profiles.
Without giving users the ability to edit their own profiles, I would like the Member Profile Pages to display the Profile Photo, User Name (possibly regardless of “Display Name” choice), User Email, User Description (renamed “Position”), and a link to the local job description page for their position.
Is it possible to modify the profile fields from wp-profile.php etc. using bp-custom.php and action hooks? Is there a better way to customize the member profile page template?
Thank you.
I used LH Private BuddyPress to make my BP site quite private. But for logged-in users, it still shows the login page if they try to go to a place directly through a link, and then after login, they will be directed to their activity. That’s not good they will have to go through all the trouble of locating the place again, and if they still use the link while logged in it will redirect to login after, it will still redirect to their activity page. I still want contents restricted to logged-in users.
How can I fix the privacy and redirect issue at once? I don’t want the redirect to I just want them to continue from where they left off after login. If one wants he can just login directly via home page and be directed to activity or something.
Hello,
I am new to Buddypress and this is my first post, I am new to web development also, and my PhP coding is not all that great, my years as a software developer was strictly in a windows environment (vb.net and sql)
I developed my own website and I am using Buddypress as part of my social media for users to connect with each other.
I have spent endless hours researching a fix, and I have not been able to find anything php file that I can edit in File Manager to edit or remove the line of code.
When a user updates an Activity, it updates in three places:
1. The Activity Stream (which is what I want)
2. The Member’s Profile where the Activity tab was (now removed, which is what I want)
3. Under the Member’s profile cover, with that pesky “view link” (which I DO NOT want to show)And the “view link” is a bit buggy also, sometimes when a user clicks on it, it throws a 404 error, sometimes it opens up a blank page, and sometimes it opens up the recent activity that they posted in the Activity Stream.
Also in the members directory I have a button to send the user a private message whether or not they are friends.
When I click on a user name from the member’s directory, it take me to the compose a message like it is suppose to do, and the user name appears , but it does not save the user name in the send to box, do you have a fix for this also?
Thank you very much, a fix to these problems are greatly appreciated.
Naomi