Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 16,951 through 16,975 (of 68,985 total)
  • Author
    Search Results
  • #181309
    xuanling
    Participant

    Hi All

    Thank you for sharing. When I wanna try to install “BuddyPress Restrict Group Creation”, I saw this note on top of the page

    “This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.”

    Hopefully this plugin still useful.

    Other than Buddy Press, not sure if anyone of you try any other plugin that come with Group Control function?

    Hope to hear from you soon. Thank you

    #181298
    r-a-y
    Keymaster

    I usually test on the Twenty Twelve theme as it’s nice and clean. You can basically use any decent WordPress theme for the most part.

    If BuddyPress doesn’t work with a certain theme, let us know.

    #181297

    In reply to: Buddypress roles

    oyegigi
    Participant

    Hey all. I am new to BuddyPress and am working on building an LMS to accompany in-person classes. I am hitting a bit of a wall though on trying to create the following scenario.

    • I am trying to figure out how I can create different roles that can create certain number of groups.
    • For instance, user role “package 1” can create up to 5 groups; user role “package 2” can create up to 10 groups, etc.

    Does anyone have any suggestions on how I can go about doing this?

    I tried doing a combination of Members with Restrict Group Creation but I need to restrict group creation based on roles, not capabilities.

    I am willing to pay for a custom plugin as well if that’s the direction I need to go in. Any suggestions would be really helpful!

    Thanks.

    #181286

    Private BuddyPress by Dennis Morhardt works an absolute treat for me.

    sharmavishal
    Participant

    Maybe you can refer this

    Groups Loop

    #181277
    sharmavishal
    Participant

    The pleasure is all mine..indeed an honor to be interacting with you.

    Just did a fresh install of Buddypress and stil the same issue remains…

    http://domain.com/username/settings/profile/ is blank with the BP default theme…

    strangely the above page works with buddyboss theme..anyway to debug this?

    Also i dont see “delete account” in the settings menu in the wp-admin bar in BP 2.0

    thanks once again

    #181261
    jerryskate
    Participant

    Here´s an example. I wrote a post on my main site that have buddypress installed as a plugin, and it shows up on my other site in the network that is integrated buddy press theme.

    If i click at the my name, jerry, it points to the site where i made the post, http://abovebasics.com/members/jroc/, instead of http://abovebasics.com/community/members/jroc/. Stuff i do at the sub site, works as it should, but not the activity from the main site.

    Is it possible to fox this?

    Thanks for the help!

    #181255
    DJsix
    Participant

    So, that’s it? Nobody has a solution? Does BuddyPress only work correctly with two themes?

    #181247
    r-a-y
    Keymaster

    Thanks for testing, sharmavishal.

    I’ve created a ticket here with a potential fix for the first two things:
    https://buddypress.trac.wordpress.org/ticket/5537

    I can’t duplicate the third issue.

    godavid33
    Participant

    Wow, so I’m dumb (or at least not as good at googling as I once thought). So, the best most efficient way to do this is using buddypress query filters. No need to add a new tab. Here is the code I ended up with (by editing activity-loop.php)

    
    	$friends = friends_get_friend_user_ids( bp_loggedin_user_id() );
    	$friends[] = bp_loggedin_user_id();
    	$friends_and_me = implode( ',', (array) $friends );
    	$friends_and_me =  '&user_id=' . $friends_and_me;
    ?>
    <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ).$friends_and_me.'&sort=DESC') ) : ?>
    

    Activity Loop

    much simpler and don’t have to worry about functions breaking. Subsequently, I believe if for some reason this solution doesn’t work for you and you prefer one of the earlier ones I suggested, then check out https://codex.buddypress.org/developer/loops-reference/the-activity-stream-loop/#adding-commenting-support as to fixing/supporting commenting

    #181243
    godavid33
    Participant

    This is claimed as fixed, though I am using the most updated version of buddypress and still having the same problem. Do I have to pull from the trunk to get the truly most updated version or do y’all push it to the wordpress plugin repo?

    #181242
    elaborate
    Participant

    Thanks for the tip, tajenli.

    Anyone reading this might also be interested in the following ticket on trac: #2062

    #181241

    In reply to: Sidebar Removal

    Boone Gorges
    Keymaster

    Here’s more on how BP’s template hierarchy works. This is what you’re tapping into. https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/

    #181236
    sharmavishal
    Participant
    #181229
    jerryskate
    Participant

    Doesn’t seems to work. I use an integrated buddypress theme (sweet date), and i i don’t have a bp-custom.php but a functions.php in the child theme for modification. Tried to create a bp-custom.php anyways, but it didn’t pick up any of my other custom snippets, so i ruled that one out. Any other suggestions?

    Thanks for the help!

    #181216
    modemlooper
    Moderator

    in

    bp-templates/bp-legacy/buddypress/members/single/member-header.php

    remove

    <?php if ( bp_is_active( 'activity' ) ) : ?>
    
    	<div id="latest-update">
    
    		<?php bp_activity_latest_update( bp_displayed_user_id() ); ?>
    
    	</div>
    
    <?php endif; ?>
    Boone Gorges
    Keymaster

    It looks like the $group_id is not passed along to the display() method in the same way as it is to the other display methods. That means you’ll need to implement your own technique to get that value. Try this:

    function display() {
        $group_id = bp_get_current_group_id();
        $setting = groups_get_groupmeta( $group_id, 'whatever' );
        var_dump( $setting );
    }

    I do think that you *ought* to be able to get the $group_id inside of display() like you can in settings_screen() etc. I’ve opened a ticket for that, which we’ll fix for 2.1. https://buddypress.trac.wordpress.org/ticket/5533#ticket

    #181197
    Henry Wright
    Moderator

    Hi @vikashwordpress

    I just want to know that where is the actual add_action(…) and the function for this action is written, i have searched lot of files in buddypress but could not get it? can any one help ?

    Which tag are you referring to? You mention do_action(“…”) in your question but this doesn’t tell us the tag. Perhaps see here for info on the do_action hook: https://codex.wordpress.org/Function_Reference/do_action

    #181193
    Asynaptic
    Participant

    a couple of things:

    • here’s the codex page for customizing the permalink for members or any other component like it:
      https://buddypress.org/2009/05/customizable-slugs-in-buddypress/
    • while it may not be buddypress’s fault if there was a conflict with a plugin (cubepoints), I would suggest considering moving from cubepoints to myCRED which has a newer code base, support and extensive documentation (mycred.me)

    maybe someone else can chime in on the activity update ‘bug’ that you mentioned

    streetcoder
    Participant

    really interesting, not working, I tried in two buddypress site to rid of the confusion. But no effect at all.

    #181183
    DJsix
    Participant

    Still doesn’t work.

    I have searched through at least 100 themes, and I’ve found two that show comments to people who aren’t logged in: x2 and Custom Community. Both of these themes appear to be made by the same person, and I really don’t care for either of these themes.

    I would like to use Twenty Fourteen, and I have not been able to find anyone using this theme, who is also having this problem.

    Also, the plugin BuddyPress Sitewide Activity shows all comments to people who are not logged in, but I don’t want that in my sidebar, and it doesn’t solve the groups problem.

    If it is a problem with WordPress being in a subfolder, what would allow these two themes and the plugin to still work?

    #181172

    What you’re asking for is something we used to call “Multiblog Mode” back in the day. It’s not a popular configuration, because it’s usually pretty confusing to users.

    You can enable it a few different ways:

    • define( 'BP_ENABLE_MULTIBLOG', true ); in your wp-config.php
    • add_filter( 'bp_is_multiblog_mode', '__return_true' ); in an mu-plugin

    There’s not a ton of documentation about multiblog, but it will make BuddyPress behave like you’re looking for it to.

    #181157
    @mercime
    Participant
    godavid33
    Participant

    I believe the above doesn’t work correctly because I am adding the new content as a subnav which by default tried to inherit the parent template (correct me if I’m wrong).

    Here is what I came up with (this all goes in functions.php), it still needs fine tuning and testing (for example I broke pagination and commenting):

    
    function my_test_setup_nav() {
            global $bp;
           
            $parent_slug = 'wall';
            $child_slug = 'all';
    //name, slug, screen, position, default subnav
            bp_core_new_nav_item( array( 'name' => __( 'test' ), 'slug' => $parent_slug, 'screen_function' => 'my_profile_page_function_to_show_screen', 'position' => 40, 'default_subnav_slug' => 'test_sub' ) );
    }
    
    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() {
    	global $activities_template;
    
    	$personal_activites = array();
    	$friends_activites = array();
    	$group_activites = array();
    	
    	//Get friends Loop
    	do_action( 'bp_before_activity_loop' );
    	if ( bp_has_activities( bp_ajax_querystring( 'activity' )."&scope=friends") ) :
    		$friends_activites = $activities_template->activities;
    	endif;
    	do_action( 'bp_after_activity_loop' ); 
    	
    	//Get personal Loop
    	do_action( 'bp_before_activity_loop' );
    	if ( bp_has_activities( bp_ajax_querystring( 'activity' )."&scope=just-me") ) :
    		$personal_activites = $activities_template->activities; 
    	endif;
    	do_action( 'bp_after_activity_loop' ); 
    	
    	//Get groups Loop
    	do_action( 'bp_before_activity_loop' );
    	if ( bp_has_activities( bp_ajax_querystring( 'activity' )."&scope=groups") ) :
    		$group_activites = $activities_template->activities; 
    	endif;
    	do_action( 'bp_after_activity_loop' ); 
    	
    	do_action( 'bp_before_member_activity_post_form' );
    		bp_get_template_part( 'activity/post-form' );
    	do_action( 'bp_after_member_activity_post_form' );	
    	
    	$activities_template->activities = array_merge($personal_activites,$group_activites,$friends_activites);
    	quickSort( $activities_template->activities );
    
    ?>
    	<?php do_action( 'bp_before_activity_loop' ); ?>
    
    		<?php /* Show pagination if JS is not enabled, since the "Load More" link will do nothing */ ?>
    		<noscript>
    			<div class="pagination">
    				<div class="pag-count"><?php bp_activity_pagination_count(); ?></div>
    				<div class="pagination-links"><?php bp_activity_pagination_links(); ?></div>
    			</div>
    		</noscript>
    
    		<?php if ( empty( $_POST['page'] ) ) : ?>
    
    			<ul id="activity-stream" class="activity-list item-list">
    
    		<?php endif; ?>
    
    		<?php while ( bp_activities() ) : bp_the_activity(); ?>
    
    			<?php bp_get_template_part( 'activity/entry' ); ?>
    
    		<?php endwhile; ?>
    
    		<?php if ( bp_activity_has_more_items() ) : ?>
    
    			<li class="load-more">
    				<a href="#more"><?php _e( 'Load More', 'buddypress' ); ?></a>
    			</li>
    
    		<?php endif; ?>
    
    		<?php if ( empty( $_POST['page'] ) ) : ?>
    
    			</ul>
    
    		<?php endif; ?>
    
    	<?php do_action( 'bp_after_activity_loop' ); ?>
    
    	<form action="" name="activity-loop-form" id="activity-loop-form" method="post">
    
    		<?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ); ?>
    
    	</form>
    <?php	
    }     
    
    add_action( 'bp_setup_nav', 'my_test_setup_nav' );
    
    // Non-recurive Quicksort for an array of Person objects
    // adapted from http://www.algorithmist.com/index.php/Quicksort_non-recursive.php
    function quickSort( &$array )
    {
    	$cur = 1;
    	$stack[1]['l'] = 0;
    	$stack[1]['r'] = count($array)-1;
    
    	do{
    		$l = $stack[$cur]['l'];
    		$r = $stack[$cur]['r'];
    		$cur--;
    
    		do{
    			$i = $l;
    			$j = $r;
    			$tmp = $array[(int)( ($l+$r)/2 )];
    
    			// partion the array in two parts.
    			// left from $tmp are with smaller values,
    			// right from $tmp are with bigger ones
    			do{
    				while( strtotime($array[$i]->date_recorded) > strtotime($tmp->date_recorded) )
    					$i++;
    
    				while( strtotime($tmp->date_recorded) > strtotime($array[$j]->date_recorded) )
    					$j--;
    
    				// swap elements from the two sides
    				if( $i <= $j){
    					$w = $array[$i];
    					$array[$i] = $array[$j];
    					$array[$j] = $w;
    
    					$i++;
    					$j--;
    				}
    
    			}while( $i <= $j );
    
    			if( $i < $r ){
    				$cur++;
    				$stack[$cur]['l'] = $i;
    				$stack[$cur]['r'] = $r;
    			}
    			$r = $j;
    
    		}while( $l < $r );
    
    	}while( $cur != 0 );
    
    }
    

    I’m sure there is a more elegant and seamless way to do it, and I will try to figure out exactly what that is. I’ll probably end up making templates for this to try and have cleaner code and stop the ajax bugs I created.

    But for now, congratulations, you now have an aggregate news feed.

    #181137
    donalconlon
    Participant

    I am having the exact same issue. BP 1.9.2. xProfiles seemed to be working, but now I’m getting to a blank groups page similar to other users. I have removed BuddyPress and re-added, but no fix. This has totally hosed my site. How can I get it fixed?

Viewing 25 results - 16,951 through 16,975 (of 68,985 total)
Skip to toolbar