Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 16,551 through 16,575 (of 94,565 total)
  • Author
    Search Results
  • #249502
    KeefyBoy
    Participant

    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?

    #249496
    Thakksy
    Participant

    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_meta

    #249495
    _natty_
    Participant

    Hi 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 $lenght is equal to 0, and $type is null but the field is correctly printed then on the mebers loop with a regular echo. I put gettype just to check why strlen doesn’t work! I need it to trim the string to a lenght with substring…

    #249491
    Ryan Hellyer
    Participant

    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:

    Sofia Woods
    Participant

    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);

    #249487
    Chosker
    Participant

    thanks for the followup. guess I was looking at the wrong activity page! (I know about the global activity page, nor do I want it anyway)
    also nvm about the accepted_args param, wrong copy-paste

    I tried what you suggested and once I made my new subnav menu item into the template overload, quickly reached a blank point where I’d have no idea how to actually make the content (I tried following the trail to how the other Activity subnav links do it but couldnt find where its done)

    but now knowing that what I want is a subnav, a further search found me this valuable post.
    with the provided code I was able to add a new subnav into the member page > activity by using the bp_core_new_subnav_item function

    feels like im getting close (and in a more convenient way), and with the provided code it seems like I should already have a dummy page but instead when I click my new subnav item I get a 404 error page 🙁

    would you know why the new page isn’t getting generated?
    this is my code atm:

    function my_test_setup_nav() {
    	global $bp;
    
    	/* Add the subnav items to the profile */
    	// name, slug, parent_url, parent slug, screen function
    	bp_core_new_subnav_item( array( 'name' => __( 'Subscriptions' ), 'slug' => 'subscriptions', 'parent_url' => $bp->displayed_user->domain . 'activity/', 'parent_slug' => 'activity', 'screen_function' => 'my_profile_page_function_to_show_screen' ) );
    
    	function my_profile_page_function_to_show_screen() {
    		//add title and content here - last is to call the members plugin.php template
    		add_action( 'bp_template_title', 'my_profile_page_function_to_show_screen_title' );
    		add_action( 'bp_template_content', 'my_profile_page_function_to_show_screen_content' );
    		bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    	}
    	function my_profile_page_function_to_show_screen_title() {
    		echo 'something';
    	}
    	function my_profile_page_function_to_show_screen_content() { 
    		echo 'weee content';
    	}
    }
    add_action( 'bp_setup_nav', 'my_test_setup_nav' );

    thanks again 🙂

    #249484
    CJBatson
    Participant

    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.3

    As I mentioned, I would like the buttons to either function, or remove them.

    Thanks for your help!

    Charlotte

    dennition
    Participant

    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

    #249479
    selenii
    Participant

    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.

    #249477
    Chosker
    Participant

    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

    #249476
    joym
    Participant

    Hi @mrjarbenne could you help me with my setup? I have both buddypress and bbpress enabled for the network. I have bbpress setup on my main site and bbpress setup on my subdomain. Should the members have capabilities site-wide? I would think so. Yet when I try to access the forums page I am redirected to the buddypress registration page.

    I don’t have any experience with multisites and most of what I read just confuses me. Any help would be appreciated. Thank you.

    #249472
    terjemk
    Participant

    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?

    #249467
    Ryan Hellyer
    Participant

    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.

    bp_activity_add()

    Do any of you know how to do this? Thanks 🙂

    #249455
    joym
    Participant

    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.

    Lord Rikam
    Participant

    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!

    twobyte
    Participant

    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.

    #249435
    dlongm01
    Participant

    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.

    shanebp
    Moderator

    Same file you used for your code.

    You can also use bp_parse_args. It’s probably more appropriate given that you want to affect various templates.

    echoleaf
    Participant

    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?

    #249407
    Alonsotron
    Participant

    I’ve gone ahead and integrated s2member and it seems to be doing a fine job of restricting page access’ based on assigned user access-levels. Very easy to configure, and integrates with BuddyPress very well.

    #249406

    In reply to: PUBLIC MESSAGE

    Slava Abakumov
    Moderator

    That’s the problem with the theme template files (if it redefines BuddyPress templates) or css/js. To make sure that this is with you theme – try to activate via customizer any other theme (like 2015 or 2016), Post button should be on its place.

    You can also investigate the source code of your page to make sure that it has a button #aw-whats-new-submit.

    I think you have problems with js, check console of your browser. Something in buddypress.js might be the reason.

    #249398
    Slava Abakumov
    Moderator
    #249399

    In reply to: BP 2.4 Group Home Page

    valuser
    Participant

    Forgot to mention that I created front.php files and placed them in /wp-content/themes/my-theme/buddypress/groups/single/ folder (copies at http://pastebin.com/DD3GrQp8)

    These are reproduced faithfully on the Home tab of each group and the Activity tab appears to the right.

    All good – just was wondering (if i haven’t already messed up) whether front end editing is a current option or is even contemplated.

    #249397
    Slava Abakumov
    Moderator

    I checked the code – it won’t decrease number of queries. All the data for labels are taken from a global variable, which is set when all fields are populated. So you won’t decrease server load by removing labels.

    So you can do that via CSS. There is no other simple solution for that (I’m assuming you are on a BuddyPress 2.4.x). Editing template file won’t help you because of the way the code is structured.

    #249388
    DineshThakur
    Participant

    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

Viewing 25 results - 16,551 through 16,575 (of 94,565 total)
Skip to toolbar