Search Results for 'buddypress'
-
Search Results
-
Topic: Back Up
If I back up Buddypress will it save all of the members details, comments, photos etc, or will it just save the basic template and lose all of the details when restored?
Topic: phpMyAdmin
Hi folks,
So on my site about a year ago i had Buddypress and bbpress installed on my site but recently decided to remove buddypress and keep bbpress. The only issue is that i’m not sure which database tables to delete below! I know that bbpress and buddypress are kinda related so don;t want to mess up bbress.
wp_bp_follow
wp_bp_friends
wp_bp_groups
wp_bp_groups_groupmeta
wp_bp_groups_members
wp_bp_notifications
wp_bp_notifications_meta
wp_bp_xprofile_data
wp_bp_xprofile_fields
wp_bp_xprofile_groups
wp_bp_xprofile_metaHi to all,
I’ve a very simple slice of code thats seem wrong for buddypress’s members list, any help will be very wellcome!$userz = bp_get_member_user_id(); $field='Country'; $country = bp_member_profile_data(array('user_id'=>$userz,'field'=>$field )); $lenght=strlen($country); $type=gettype($country);I even try the before approach like
$country=bp_member_profile_data('field=Country');But in both case
$lenghtis equal to 0, and$typeis null but the field is correctly printed then on the mebers loop with a regularecho. I putgettypejust to check whystrlendoesn’t work! I need it to trim the string to a lenght with substring…I have a post-type which I want to add to the activity stream. I can do this easily with
add_post_type_support( 'events', 'buddypress-activity' );.But I sometimes want to add an activity to specific BuddyPress groups. To do this, I’m using
bp_activity_add(). This works when the add_post_type_support() function call is in place, but I end up with two activities in the main event stream. When I remove the add_post_type_support() function call, I get a 502 Bad Gateway error on trying to add a new post :/Do any of you know how I should work around this?
Thanks :simple_smile:
Hi Folks – It’s come to our attention that the users pages are being indexed by google and are also visible to anyone who is not logged in.
http://shortiedesigns.com/cpn/for-members/find-a-network-member/members/matt_parselle/
I’ve done lots of googling and can’t quite find what I’m looking for.
I need to make sure that everything about the user is private and only logged in members can see.
I tried the below – but it only stopped the activity page – not the profile or forum page. I would love some clues if anyone has any! Thanks
//Add a function to hide buddypress activity page from non-logged in users
/* Prevent logged out users from accessing bp activity page */
function nonreg_visitor_redirect() {
global $bp;
if ( bp_is_activity_component() || bp_is_groups_component() || bp_is_group_forum() || bp_is_members_component() ||bp_is_page( BP_MEMBERS_SLUG ) ) {
if(!is_user_logged_in()) { //just a visitor and not logged in
wp_redirect( get_option(‘siteurl’) . ‘/wp-login.php’ );
}
}
}
add_filter(‘get_header’,’nonreg_visitor_redirect’,1);hi BuddyPress!
I have a question about the profiles created on BuddyPress.. the basic profile, not the extended profile. I have 2 buttons on my profile at http://www.charlottesogn.com titled “Profile” and “View” that you can click, but nothing happens! What are they for? I would like for them to either function, or remove them.
The info you requested:
– the link is http://www.charlottesogn.com
– I confirmed the issue does exist in the Twenty Sixteen theme – the buttons look more like stripes, but they are there, and still don’t do anything.
– I’m using the very latest update of WordPress (v. 4.4.2)
– I’m using BuddyPress v 2.4.3As I mentioned, I would like the buttons to either function, or remove them.
Thanks for your help!
Charlotte
Hi,
i use the newest wordpress Version 4.4.2 and the buddypress Version 2.4.2.
Actually i use the kocka theme from themeforest too. I used this this setup with different Plugins for a Week, and today i got the white screen.
So i turned all Plugin off using FTP. I chanced the theme To Twenty Sixteen, and activate only the redux framework,WP bakery virtual composer and Elite addon for virtual composer. My Website http://www.madeamoto.com worked fine. When i now activate buddypress, i get the white screen.I Tried it many times. With buddypress i geht the bug. Who has an idea what may is the Problem?!
Thank you.
Dennis
BuddyPress has conflict with the EWWW plugin. When I activate EWWW plugin or P3 I became an 500 server Error. What can I do?
I have checked all plugins and found that wenn I deactive the BuddyPress it works.
hi there,
I’m working on my site’s forums, powered by bbpress and buddypress.One thing I dislike is the existance of both Favorites and Subscriptions. perhaps there’s something I don’t understand but it seems reduntant. I can’t even get anything to show up under the Favorites tab of the Activity (tried to favorite a forum topic and then posting as another user, but nothing).
to the point: I want to get rid of Favorites (already did) and only have Subscriptions.
but I’d like the subscriptions’ activity to show up under the user Activity, in a new tab. Yes I know the user can see the subscribed forums in the members page -> Forums -> Subscriptions, but this is just the list and not a waterfall of the posts inside those threads.I’ve seen some posts where people try to add a new activity tab. this one was the clearest one, and I’ve tried following it to no avail. is the information completely outdated now?
the problem is I cannot even get the hook ‘bp_activity_type_tabs’ to do anything. something as basic as this fails to produce anything:
function bn_add_activity_tab() { echo 'hello'; } add_action( 'bp_activity_type_tabs', 'bn_add_activity_tab', 1, 2 );if I understand correctly it should hook itself to the activity type tabs. but it does absolutely nothing.
I tried it in my theme’s functions.php, as well as in a plugin (which I also try to force be loaded after buddypress like this). other things in my plugin work (so I’m sure the plugin is loaded and working)any ideas?
thanks
Topic: Link to users own profile
Hi,
How do I set up Buddypress so that there is a clear link somewhere for the users to go to their own profile for editing etc? I as admin have the wp admin bar on top but regular users dont have this option.
Anyone?
I am having dreadful trouble working out how to add a BuddyPress activity to a specific group.
The bp_activity_add() function does not seem to offer any way to specifically target a single a specific group.
Do any of you know how to do this? Thanks 🙂
Topic: Multisite help – so confused
I just decided to dive into a multisite setup. I would like to run buddypress site-wide and bbpress. Bbpress is on a subdomain, buddypress is in my root. For the life of me I cannot figure this multisite mess out.
I don’t know what should be network enabled or site enabled. If I log into my buddypress account when I try to access my bbpress I am redirected to register for a new account…I would appreciate any help. Thank you.
For latest version of wordpress (4.4.2) and latest version of buddypress (2.4.3). how do i block access for non-logged users to let them see my buddypress pages. (urgent)
thank you!I have created a BP_Group_Extension for a contact form that essentially hooks up the awesome but free Contact-Form-7 plugin and puts a contact form under its own tab on the Group home page.
I want to filter the Contact Form’s php mail() function to change the message recipient to the Group Admins for that particular page. Trouble is I cannot seem to capture these group details from within the add_filter function. Here is my file Contact_Secretary_Extension.php:
<?php /** * The class_exists() check is recommended, to prevent problems during upgrade * or when the Groups component is disabled */ if ( class_exists( 'BP_Group_Extension' ) && class_exists( 'WPCF7') ) : // requires both buddypress group extension and Contact form 7 plugin class Contact_Secretary_Extension extends BP_Group_Extension { /** * Here you can see more customization of the config options */ private $cf7formID = "428"; // form id function __construct() { $args = array( 'slug' => 'contact', 'name' => 'Contact', 'nav_item_position' => 99, 'show_tab' => 'anyone', 'access' => 'anyone' ); parent::init( $args ); } function display( $group_id = NULL ) { // we are going to get group admin details and hook into contact form 7 echo '<div class="panel-body">'; echo '<h3>'.__('Use this form to send the','ccc').' '.bp_get_group_name().' '.__('group secretary a message','ccc').'</h3>'; echo do_shortcode( '[contact-form-7 id="'.$this->cf7formID.'" title="Contact Group Secretary"]' ); echo '</div>'; } } bp_register_group_extension( 'Contact_Secretary_Extension' ); add_filter( 'wpcf7_mail_components', 'ccc_group_mail_components', 10, 2 ); function ccc_group_mail_components( $components, $contactform ) { // literally ripped straight from bp_group_list_admins() but with different output global $groups_template; if ( empty( $group ) ) { $group =& $groups_template->group; } // fetch group admins if 'populate_extras' flag is false if ( empty( $group->args['populate_extras'] ) ) { $query = new BP_Group_Member_Query( array( 'group_id' => $group->id, 'group_role' => 'admin', 'type' => 'first_joined', ) ); if ( ! empty( $query->results ) ) { $group->admins = $query->results; } } if ( ! empty( $group->admins ) ) { $recipients = array(); foreach( (array) $group->admins as $admin ) { $recipients[] = $admin->user_email; } $components['recipient'] = implode(",", $recipients); } else { // append a little alert to subject line so we know admin emails weren‘t found. $components['subject'] = $components['subject']. ' (No group admin found)' ; } // lets tag subject line with group section as well for traceability $components['subject'] = '['.bp_get_group_name().']'.$components['subject']; return $components; } endif;I know the script is running because test emails are getting the (No group admin found) string appended to the subject line, unfortunately it is not going to the correct email address and bp_get_group_name() is returning empty string.
Any tips greatly appreciated thanks.
Peace.
Hi
I’ve scoured the forums looking for a straightforward solution to displaying the user role as part of the BuddyPress profile. There’s a few posts but they are incomplete and now rather old.
Does anyone have a solution? An ideal layout might be to display the role alongside the name or username.
Any help appreciated.
I have a role called ‘testing’ which is just used for testing purposes. I would like to exclude members with that role from the directory and also prevent all content created by ‘testing’ members from appearing in activity feeds, post archives, etc.
I check out this 5yo topic and tried replacing this in the member-loop.php:
<?php while ( bp_members() ) : bp_the_member(); ?>with this
<?php while ( bp_members() ) : bp_the_member(); $user = new WP_User( bp_get_member_user_id() ); if ( $user->roles[0] != ‘subscriber’ ) : ?>That didn’t work. This didn’t work either:
<?php while ( bp_members() ) : bp_the_member(); ?> <?php $wp_user = new WP_User( bp_get_member_user_id() ); if( $wp_user->roles[0] != 'testing' ): ?>I’m at a loss as these are the options I found Googling. What is the correct method?
Topic: Add Group Category & Cities
Hello Guys,
I want to add Group Categories & Cities/location of group where group is location. Like if i create a institute Group then i need to add Institute location in my group.
Please let me know ASAP if its possible with buddypress
Thanks
Dinesh Thakur