Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 20,276 through 20,300 (of 69,127 total)
  • Author
    Search Results
  • #167286
    @mercime
    Participant
    #167283

    In reply to: too many redirects

    @mercime
    Participant

    @mewrd could be plugin or theme issues. Have you done basic troubleshooting like changing to Twenty Twelve theme and deactivating all plugins except BuddyPress?

    #167282
    @mercime
    Participant

    @reiniggen if you’re on BP Default theme and you’ve deactivated all plugins except BuddyPress, and the issue is still evident, then please post ticket in BP Trac (login with same username and password used here) and include pertinent information about your installation – e.g. single or multisite WP, WP/BP installed in domain root or subsite, etc. Thank you. https://buddypress.trac.wordpress.org/newticket

    #167280
    Henry
    Member

    If you add this to your theme’s functions.php it will basically filter the entire button. You’ll then be free to modify whatever you need:

    //filter group button
    function bp_change_group_button( $button ) {
    
    global $groups_template;
    
    		if ( empty( $group ) )
    			$group =& $groups_template->group;
    
    		if ( !is_user_logged_in() || bp_group_is_user_banned( $group ) )
    			return false;
    
    		// Group creation was not completed or status is unknown
    		if ( !$group->status )
    			return false;
    
    		// Already a member
    		if ( isset( $group->is_member ) && $group->is_member ) {
    
    			// Stop sole admins from abandoning their group
    	 		$group_admins = groups_get_group_admins( $group->id );
    		 	if ( 1 == count( $group_admins ) && $group_admins[0]->user_id == bp_loggedin_user_id() )
    				return false;
    
    			$button = array(
    				'id'                => 'leave_group',
    				'component'         => 'groups',
    				'must_be_logged_in' => true,
    				'block_self'        => false,
    				'wrapper_class'     => 'group-button ' . $group->status,
    				'wrapper_id'        => 'groupbutton-' . $group->id,
    				'link_href'         => wp_nonce_url( bp_get_group_permalink( $group ) . 'leave-group', 'groups_leave_group' ),
    				'link_text'         => __( 'Leave Group', 'buddypress' ),
    				'link_title'        => __( 'Leave Group', 'buddypress' ),
    				'link_class'        => 'group-button leave-group',
    			);
    
    		// Not a member
    		} else {
    
    			// Show different buttons based on group status
    			switch ( $group->status ) {
    				case 'hidden' :
    					return false;
    					break;
    
    				case 'public':
    					$button = array(
    						'id'                => 'join_group',
    						'component'         => 'groups',
    						'must_be_logged_in' => true,
    						'block_self'        => false,
    						'wrapper_class'     => 'group-button ' . $group->status,
    						'wrapper_id'        => 'groupbutton-' . $group->id,
    						'link_href'         => wp_nonce_url( bp_get_group_permalink( $group ) . 'join', 'groups_join_group' ),
    						'link_text'         => __( 'Join Group', 'buddypress' ),
    						'link_title'        => __( 'Join Group', 'buddypress' ),
    						'link_class'        => 'group-button join-group',
    					);
    					break;
    
    				case 'private' :
    
    					// Member has not requested membership yet
    					if ( !bp_group_has_requested_membership( $group ) ) {
    						$button = array(
    							'id'                => 'request_membership',
    							'component'         => 'groups',
    							'must_be_logged_in' => true,
    							'block_self'        => false,
    							'wrapper_class'     => 'group-button ' . $group->status,
    							'wrapper_id'        => 'groupbutton-' . $group->id,
    							'link_href'         => wp_nonce_url( bp_get_group_permalink( $group ) . 'request-membership', 'groups_request_membership' ),
    							'link_text'         => __( 'Request Membership', 'buddypress' ),
    							'link_title'        => __( 'Request Membership', 'buddypress' ),
    							'link_class'        => 'group-button request-membership',
    						);
    
    					// Member has requested membership already
    					} else {
    						$button = array(
    							'id'                => 'membership_requested',
    							'component'         => 'groups',
    							'must_be_logged_in' => true,
    							'block_self'        => false,
    							'wrapper_class'     => 'group-button pending ' . $group->status,
    							'wrapper_id'        => 'groupbutton-' . $group->id,
    							'link_href'         => bp_get_group_permalink( $group ),
    							'link_text'         => __( 'Request Sent', 'buddypress' ),
    							'link_title'        => __( 'Request Sent', 'buddypress' ),
    							'link_class'        => 'group-button pending membership-requested',
    						);
    					}
    
    					break;
    			}
    		}
    
    		return $button;
    
    }
    add_filter( 'bp_get_group_join_button', 'bp_change_group_button' );
    #167279
    Garrett Reiniggen
    Participant

    Once upon a time there was a little bug in BuddyPress…

    #167275
    gcarlos8377
    Participant

    @djpaul

    Thanks for your reply on this post. But actually I didn’t do anything else but to upgrade the version from 1.7 to 1.7.2. Any suggestion on what I should try? I tried to find something to downgrade the version but no success on that.

    Thanks for the support

    #167270
    Paul Wong-Gibbs
    Keymaster

    We didn’t change anything with regards to loading translations in BP 1.7-1.7.2, so something else on your site must have changed.

    #167268
    Paul Wong-Gibbs
    Keymaster

    > But as usual, slightly terrified at the same time, since usually we all know something isn’t going to work after the upgrade.

    I don’t think this is true, especially since the 1.5+ releases. BuddyPress is rock-solid nowadays.

    #167266
    darrenmeehan
    Participant

    @bphelp thanks, I’ve forked your plugin and installed it, will test it out and get back to you once I finish some work.


    @deafnation
    thanks for testing it out! What exactly happened? did anything work? What theme were you using?

    #167264
    deafnation
    Participant

    @darrenmeehan

    The plugin is not working on my end. I need to look into other plugins conflicted or not. Keep it up anyway!

    #167252
    mgrmn
    Participant
    #167250
    mgrmn
    Participant

    Its made in wp-content/plugins/buddypress/bp-groups/bp-groups-template.php starting from line 1766

    Line 1027 /wp-content/plugins/buddypress/bp-groups/bp-groups-screens.php
    Line 21 /wp-content/plugins/buddypress/bp-themes/bp-default/groups/index.php

    #167247

    In reply to: Creating New Plugins

    modemlooper
    Moderator

    You really need to wrap the if class in a function that loads after all plugins just to be on the safe side. The reason it works is because your plugin name is alphabetically after BuddyPress so it loads after but the proper way is to wait until all plugins are loaded and then give the error notice.

    #167244
    Shmoo
    Participant

    I found this video the best I’ve seen this far, because it keeps it very easy to understand.

    It starts with a very basic understanding of what Actions and what Filters do because they maybe sound very overwhelming? when you bump onto them for the first time.
    You don’t wanna know how many bbPress or BuddyPress projects I have deleted because I couldn’t understand what actions are, I knew they where spot that you can Hook into but making it happen and writing some code that finally gets Hooked into an action is a different story.

    Actions DO stuff.
    Filters CHANGE stuff.

    I’ve tried to make my own custom add_action for the first time just to see if I was able to Hook into that ‘ bp_group_header_actions ‘ and it worked.
    Something as simple as this added an empty span tag above the ‘ bp_group_header_actions ‘ code but the only question that still remains how to I get inside the HTML of this action.

    
    add_action ( 'bp_group_header_actions', 'my_stuff', 1 );
    
    function my_stuff() {
    	echo '<span></span>';
    }
    
    

    This empty span tag has to go inside that div before the a href tag.
    actions and filters

    #167243
    bp-help
    Participant

    @darrenmeehan
    Alright, then I will test it out and supply feedback. I have a plugin as well that has been submitted to the repo in the last 4 days that is yet to be approved but I could also use some others testing and supplying feedback. You can get it here: https://github.com/bphelp/private_community_for_bp_lite
    Thanks!

    #167242
    darrenmeehan
    Participant

    Thanks! And yes the Github is the latest version. It’ll be where all development takes place even when the plugin is on the WordPress repo

    #167241
    bp-help
    Participant

    @darrenmeehan
    I would be glad to test it out and give feedback. Is the github repo the most current version you have?

    #167240
    darrenmeehan
    Participant

    I’ve a few options with where to release the plugin, but for now I’d be happy to have a few users test it out to ensure it’s working on a variety of sites. I’ve some other work to do the next while but I’ve some other work to post over to the Github repo. Thanks again!

    #167238
    crashy11
    Participant

    Ah, what can I do, I hope in new version of buddypress there will be option to turn off activity for certain account.

    It could be done with custom post type, but then again you need to integrate some code, because when you make post with custom post type, posts are not showing in category they supposed to show.

    Custom post types doesn’t show in activity stream and that could solve to problem, but then again…

    #167237
    bp-help
    Participant

    @darrenmeehan
    I think if an author abandoned a plugin for several years then they should give you commit access but that is just my opinion. I suppose the only way around it then is to fork it because it is GPL. Why not just call it BuddyPress Like Plus? Either way I think the improvements you made are pretty cool. So thank you for your hard work! πŸ™‚

    #167236
    mgrmn
    Participant

    I hate to tell you this, but there is not a easy way to do what you want to do. And as far as the code, that will echo out ID / USERNAME, and will execute the remove_action function. But that is all it does.

    bp_blogs_record_post function can be found there –> /plugins/buddypress/bp-blogs/bp-blogs-functions.php. However I suggest and of course if you afford it, get a pro to do it for you

    #167235
    darrenmeehan
    Participant

    @bphelp I’ve tried contacting the developer but there was no way of contacting him that worked. I’ve sent off an email to plugins@wordpress.org to discuss getting commit access to the plugin as I feel this would be best for current users of the plugin, as well as give the plugin a better launch pad if I’m honest.

    Thanks for the kind words!

    #167234
    bp-help
    Participant

    @darrenmeehan
    I mean when are you going to fork it and have it on the WordPress repository, or have you gained permission from the original author to overtake the updates? I really would like to see this on the repository! Thanks!

    #167233
    darrenmeehan
    Participant

    Sorry @bphelp I don’t understand what you mean.

    #167232

    In reply to: Creating New Plugins

    bp-help
    Participant

    @modemlooper
    I have tested the plugin:
    https://github.com/bphelp/private_community_for_bp_lite
    As is it works as expected. If BuddyPress is installed and activated then the notice does not appear, however if you try installing the plugin without BuddyPress installed and activated then the notice appears. Can you test it so you will see what I mean because it simply works!

Viewing 25 results - 20,276 through 20,300 (of 69,127 total)
Skip to toolbar