Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 8,851 through 8,875 (of 69,046 total)
  • Author
    Search Results
  • #260922
    modemlooper
    Moderator

    define( 'BP_GROUPS_DEFAULT_EXTENSION', 'members' );

    change members to the slug of the extension and then that tab will load when you click a link to a group.

    more configurations here https://codex.buddypress.org/getting-started/customizing/changing-internal-configuration-settings/

    #260921
    modemlooper
    Moderator
    #260919
    modemlooper
    Moderator

    Under Settings in the admin click BuddyPress. Then the tab Pages and re associate the page to the component.

    #260914
    talvasconcelos
    Participant

    Hi, thread_id is from the buddypress. When a message is going for save bp checks if there’s a thread id, if not it’s because that is the first message.

    Anyway, i got it to kind of work. Used some info from the other thread. I use the add_filter() to check if the user has a membership and if not, take out the button. Also i was forgeting to include the file with the Paid membership function. Here’s the code:

    add_filter( 'bp_get_send_message_button', function( $array ) {
        if ( pmpro_hasMembershipLevel('Premium') ) {
            return $array;
        } else {
            return '';
        }
    } );

    If you have any recommendations for this i’ll be glad to follow.

    #260905
    Venutius
    Moderator

    This has got to be plugin conflict or theme related issue since avatar and cover image uploads work when BuddyPress is running standalone. I’d try deactivating all other plugins and if that does not work then switching to the 2016 theme to check

    #260892
    Masoud
    Participant

    hi.
    i am using latest versions of both wordpress and buddypress.and working on a food website.
    in this website , i wanted to allow only authors to post activity updates .
    (because it will be much easier for users to track their favorite chef recipes in the activity page.)
    so i’ve hide the ” personal ” submenu of activity tab : Activity > Personal (where people can post updates)
    with the help of following code in bp-custom.php :

    function bpfr_hide_tabs() {
    global $bp;
    if ( bp_is_user() && ( !current_user_can(author) || !current_user_can(administrator) ) ) {		
     bp_core_remove_subnav_item($bp->activity->slug, 'just-me');	}
    }
    add_action( 'bp_setup_nav', 'bpfr_hide_tabs', 15 );

    but now when i go to my profile (as a subscriber)
    i will see a 404 page.
    i’ve searched a lot and i noticed that , now that i’ve removed the default activity stream tab , i have to point it to another tab. so when a user profile is loading (or if a user clicks on activity tab),
    instead of default activity> personal . it load activity > mentions / OR / favorites / OR / … (some other submenu than personal )

    so my question is:

    how can i change the default activity stream tab
    from
    Activity > Personal
    To
    Activity > Mentions – Or to – Activity > Favorites – …

    thanks a lot for any help.

    #260888
    Venutius
    Moderator

    You could try something like this, only it’s not been updated in a while, not tried it myself https://wordpress.org/plugins/buddypress-login-redirect/

    #260884
    danbp
    Participant

    Well, you now have to control your child theme and custom functions (if any).
    Seems that changes made in BP 2.7, 2.7.1 and 2.7.2 won’t apply to your case.

    Read also here.

    And if it doesn’t help, go to kleo support and ask there.

    #260862
    worsin
    Participant

    Oh and its important to note that none of the tools for buddypress work to fix this issue.

    #260856
    claudiosinopoli
    Participant

    Dear danbp,
    first of all tank you for killing the discussion with your silence.
    Almost two months ago I asked you for help, without success.

    After a while I realized that I can perform a supposedly so simple task myself.
    I’m writing now to inform other people that want the “create a group” button in the single member’s “groups” page or somewhere else in a buddypress template page.

    After reading some buddypress documentation I replicated in my child theme the buddypress templates and css folders structure.

    Looking into the group-related php files I noticed that the function for the button “create a group” is called bp_groups_directory_group_filter.

    The “groups” page for the single member is generate by the file located in the following folder in my child theme: my_child_theme/buddypress/members/single/groups.php

    It is starting with the following code

    <?php
    /**
     * BuddyPress - Users Groups
     *
     * @package BuddyPress
     * @subpackage bp-legacy
     */
    
    ?>
    <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    	<ul>
    		<?php if ( bp_is_my_profile() ) bp_get_options_nav(); ?>
    		
    		<?php if ( !bp_is_current_action( 'invites' ) ) : ?>
    
    			<li id="groups-order-select" class="last filter">
    
    				<label for="groups-order-by"><?php _e( 'Order by:', 'buddypress' ); ?></label>
    				<select id="groups-order-by">
    					<option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>

    It’s enough to add the line
    <?php do_action( 'bp_groups_directory_group_filter' ); ?>
    after line 12
    <?php if ( bp_is_my_profile() ) bp_get_options_nav(); ?>
    and you do the trick.

    Now in the single member’s “groups” page there will be the following buttons:
    Memberships | Invitations | Create a group

    In the same way you can add this button to any other template page, taking care that the function it’s placed in the right position in the code.

    Thank you again danbp: your silence was not very professional but perhaps stimulating in order to take initiative, learn something and solve a problem by myself.

    #260855
    maccast
    Participant

    Just so this is complete. Here’s the code updated for BuddyPress 2.6 or later.

    
    function add_settings_subnav_tab() {
    
        //reorder messages tabs
        buddypress()->members->nav->edit_nav( array(
            'position' => 10,
        ), 'compose', 'messages' );
    
        buddypress()->members->nav->edit_nav( array(
            'position' => 11,
        ), 'inbox', 'messages' );
    
        buddypress()->members->nav->edit_nav( array(
            'position' => 12,
        ), 'sentbox', 'messages' );
    
         buddypress()->members->nav->edit_nav( array(
            'position' => 20,
        ), 'starred', 'messages' );
    
    }
     
    add_action( 'bp_setup_nav', 'add_settings_subnav_tab', 100 );
    
    #260832
    danbp
    Participant

    Hi @maccast,

    thank you for the tutorial and sharing your trick, but there is a little problem !

    bp_options_nav is deprecated since 2.6 – you can verify by enabling wp-debug in wp-config.php or by reading the doc.

    Get the right navigation solutions available for BP 2.6+ here:

    Navigation API

    #260830

    In reply to: Emailing all users

    Venutius
    Moderator
    #260824

    Hey @danbp

    I just thought I’d jump in here real quick, as I think this will be beneficial to everyone in the thread including @Tranny.

    And even if you would be a genius coder creator of an extra super original spam shield, you could be sure to became target #1 of all spammers, because in this case, you would represent the absolute challenger of all code breakers !

    We are that “genius coder creator of an extra super original spam shield” that you speak of. 🙂

    There is no miraculous plugin or trick to stop them.

    Ahh, but there is.

    It’s real, and it’s even called WP-SpamShield. LOL…you can’t make this stuff up. 🙂

    Check it out on WPorg. It’s been out for about two and a half years, and is forked from another plugin we developed almost a decade ago. It works perfectly and automatically on BuddyPress, bbPress, and pretty much everything else. You can also feel free to check out the plugin documentation here.

    …And for the record, we definitely are a huge target of spammers. 🙂

    dealing with spammers is a long run work, to not say a never ending work.

    True story!

    – Scott

    #260816
    MatrixMedia
    Participant

    to exclude some categories I have tried this:

    function exclude_category_slugs_from_activity_stream( $new_status, $old_status, $post ) {
    
    	// Only record published posts
    	if ( 'publish' !== $new_status ) {
    		return;
    	}
    
    	// Don't record edits (publish -> publish)
    	if ( 'publish' === $old_status ) {
    		return;
    	}
    
    	// add in any categories to exclue from activity stream, separated by commas, no spaces
    	$category_slugs_to_exclude = "news,new,News,service,Service";
    
    	// create the array that contains the category ids to exclude
    	$ids_to_exclude = array();
    	// create new array by splitting category slugs by comma
    	$category_slug_array = split( ",", $category_slugs_to_exclude );
    	// iterate over category_slug_array
    	foreach ( $category_slug_array as $category ) {
    		// get the category id based on the slug
    		$idObj = get_category_by_slug( $category );
    		$id = $idObj->term_id;
    		// push the category id onto the exclude array
    		array_push ( $ids_to_exclude, $id );
    	}
    
    	// get the post's categories
    	$categories = get_the_category( $post->ID );
    	$in = false;
    
    	// check if the post has any categories, do nothing if not
    	if( count($categories) > 0 ) {
    		// iterate over categories
    		foreach ( $categories as $category ) {
    			// check if any excluded category exists within post's categories
    			if( in_array( $category->cat_ID, $ids_to_exclude) )
    				$in = true;
    		}
    	}
    
    	// Don't record posts from filtered categories
    	if( $in )
    		return;
    
    	return bp_activity_post_type_publish( $post->ID, $post );
    }
    
    add_action( 'bp_init', 'bp_blogs_catch_filtered_published_post' );
    
    function bp_blogs_catch_filtered_published_post() {
    	if ( bp_is_active( 'blogs' ) ) {
    		remove_action( 'transition_post_status', 'bp_activity_catch_transition_post_type_status', 10 );
    		add_action( 'transition_post_status', 'exclude_category_slugs_from_activity_stream', 10, 3 );
    	}
    }

    I found here: https://premium.wpmudev.org/forums/topic/exclude-auto-blog-posts-from-buddypress-activity-stream

    of course I changed the deprecated functions:
    bp_blogs_record_post -> bp_activity_post_type_publish
    bp_blogs_catch_transition_post_status -> bp_activity_catch_transition_post_type_status

    but nothing … not working … HELP!!!

    #260809
    Henry Wright
    Moderator

    Great plugin; but the online status only display on the blog site

    Thanks! As I mentioned it’s a WordPress plugin so you will need to adapt it for use with BuddyPress. It shouldn’t be too difficult to do because BuddyPress members and WordPress users are the same.

    #260808
    danbp
    Participant

    HI,

    BP use the same pagination system as WordPress. Here a tutorial to get this to work for WP

    And here a list of “pagination” related functions:
    http://hookr.io/plugins/buddypress/#index=a&search=pagination

    #260806
    danbp
    Participant

    Hi,

    you have to try with a twenty theme, to ensure that it is not the theme who generate an issue.
    And if it still occurs, you have to ask for help on mycred support. We can’t help you much with third party plugin or themes “who need BuddyPress”.

    In this particular case, is your theme updated for BP 2.7 ?
    Check first yourself and ask evtl. on the theme support

    Template Updates 2.7

    #260805
    swiftblack
    Participant

    Great plugin; but the online status only display on the blog site… but what i want, is to have have it displayed on both blog and buddypress or better still buddypress only….

    Thanks for your help …really appreciated …

    Hope you can share more ideas @henrywright

    #260802
    r-a-y
    Keymaster

    @adjunkten – The defer%20onload is a sign that you might be using a plugin to do something to all WordPress javascript enqueued files.

    Because if you remove the defer line, the JS file is valid:
    http://historielaerer.dk/wp-content/plugins/buddypress/bp-core/js/vendor/moment-js/locale/da.min.js

    Are you using such a plugin? If so, disable it and see if that fixes your problem.

    #260797
    Henry Wright
    Moderator

    Hi @swiftblack

    Take a look at my plugin Here: https://github.com/henrywright/here

    I use the WordPress Transients API to output a user’s online status. You could easily adapt it for use with BuddyPress.

    #260777
    Jo Waltham
    Participant
    #260776
    Jo Waltham
    Participant

    Thank you Henry, I’ve changed that.

    I’ve put my full code on github
    https://github.com/calliaweb/Moderate-Buddypress-xProfile-Changes/
    but I’ll start another thread here asking for feedback on that.

    #260771
    Lars Henriksen
    Participant

    I noticed this message when inspecting css :

    http://historielaerer.dk/wp-content/plugins/buddypress/bp-core/js/vendor/moment-js/locale/da.min.js’%20defer%20onload=&#8217;?ver=2.7.2
    Failed to load resource: the server responded with a status of 404 (Not Found)

    #260763
    @mercime
    Participant

    @wasanajones Thank you for the report 🙂 We will be removing that information from our readme.txt https://buddypress.trac.wordpress.org/ticket/7328

Viewing 25 results - 8,851 through 8,875 (of 69,046 total)
Skip to toolbar