Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 20,601 through 20,625 (of 94,567 total)
  • Author
    Search Results
  • aljo1985
    Participant

    Okay so I realised that it would only send the activity to stream when you have the email option checked. I also noticed that upon doing that you post 2 pieces of information into the database that are exactly the same.. Well they are not structured the same but the information holds the same data.

    This is inside bp_groups_groupmeta and bp_activity
    So I have optimized my code to remove duplicate data, well just removed it from posting into groupsmeta really, as it doesn’t need to be in there… Maybe you can optimize your code to post the action in activity only and read from there, rather than have it posted in both. The system is great, don’t get me wrong I am just making suggestions.

    So I have removed one of your functions on remove action and copied it into my own function with edits to that function. I have added 2 extra fields, drop down boxs to be exact.

    Here is my code with a lot of comments as I was trying out many different things, then decided I don’t want it to do that lol. EDIT

    <?php
    // Add custom group fields.
    // Removed the default add activity stream. file /public_html/wp-content/plugins/buddypress/bp-groups/bp-groups-activity.php for reference.
    remove_action( 'groups_details_updated', 'bp_groups_group_details_updated_add_activity' );
    // On group update.
    add_action( 'groups_details_updated', 'group_details_update', 10, 3 );
    // Updated group details.
    // Updated group details.
    function group_details_update( $group_id, $old_group, $notify_members ) {
    	global $bp, $wpdb;
    	// Custom fields.
    	$plain_fields = array(
    		'server',
    		'country'
    		//'activity'
    	);
    	foreach( $plain_fields as $field ) {
    		$key = 'group-' . $field;
    		$metakey = 'h1z1_' . $field;
    		if ( isset( $_POST[$key] ) ) {
    			$value = $_POST[$key];
    			
    			// Do they want the update notification posted on their activity stream?
    			/*if ($value == '1')
    				$post_activity = true;
    			*/
    			//Make sure they selected an item from the required dropdown boxs.
    			if ($value == 'null')
    				return bp_core_add_message( __( 'There was an error updating group details. Please try again.', 'buddypress' ), 'error' );
    			else {
    				// changed1 is empty by default, not declared. If empty, get groupmeta.
    				if (empty($changed))
    					$changed = groups_get_groupmeta( $group_id, $metakey );
    				//if groupmeta(old value) == posted value changed is empty again, so we can check the next custom field to see if that also has the same old value.
    				if ($changed == $value)
    					$changed = '';
    				else
    					groups_update_groupmeta( $group_id, $metakey, $value );
    			}
     		}
    	}
    	// Optional removed checkbox for now.. Might use later
    	/*if ($post_activity == false)
    		return false;
    	*/
    	// Taken from /public_html/wp-content/plugins/buddypress/bp-groups/bp-groups-activity.php
    	// We removed the email notification check so that it will post an activity stream regardless.
    	// Bail if Activity is not active.
    	if ( ! bp_is_active( 'activity' ) )
    		return false;
    
    	if ( ! isset( $old_group->name ) || ! isset( $old_group->description ) )
    		return false;
    
    	// If the admin has opted not to notify members, don't post an activity item either
    	// Removed, I want updated posted if it sends and email or not.
    	/*if ( empty( $notify_members ) ) {
    		return;
    	}*/
    
    	$group = groups_get_group( array(
    		'group_id' => $group_id,
    	) );
    
    	/*
    	 * Store the changed data, which will be used to generate the activity
    	 * action. Since we haven't yet created the activity item, we store the
    	 * old group data in groupmeta, keyed by the timestamp that we'll put
    	 * on the activity item.
    	 */
    	
    	if ( $group->name !== $old_group->name || $group->description !== $old_group->description )
    		$changed = 'changed';
    
    	// If there are no changes, don't post an activity item.
    	if ( empty( $changed ) )
    		return;
    
    	$time = bp_core_current_time();
    	// Don't want a long description of what has been changed inside the details. Also reduces information posted in groupmeta table.
    	//groups_update_groupmeta( $group_id, 'updated_details_' . $time, $changed );
    	
    	// And finally, update groups last activity.. Currently doesn't in standard.
    	groups_update_groupmeta( $group_id, 'last_activity', $time );
    	
    	// Since we have removed the information from meta, we will record it directly into action on activity..
    	// You do not need the same information recorded twice in the database. This needs optimizing. Hence removing update groupmeta..
    	/*
    	$user_link = bp_core_get_userlink( bp_loggedin_user_id() );
    	$group_link = '<a href="' . esc_url( bp_get_group_permalink( $group ) ) . '">' . esc_html( $group->name ) . '</a>';
    	$action = sprintf( __( '%1$s changed the description of the group %2$s from "%3$s" to "%4$s"', 'buddypress' ), $user_link, $group_link, esc_html( $changed['description']['old'] ), esc_html( $changed['description']['new'] ) );
    	*/
    	// Record in activity streams.
    	return groups_record_activity( array(
    		'type'          => 'group_details_updated',
    		'item_id'       => $group_id,
    		'user_id'       => bp_loggedin_user_id(),
    		'recorded_time' => $time,
    	) );
    }

    If there is bugs in any code, I will find them and fix them.. That’s one of the downsides to being a perfectionist..

    I have not fixed the

    A few bugs I have found.

    From the first post yet, but will be doing after I have had my dinner 🙂
    My idea is to have a notification saying that the user has left the group when they leave/kicked/banned/ obviously if its after the 5 minutes mark lol.

    nadodi
    Participant

    We are looking for a group blog option for our BuddyPress + BadgeOS + Commons in a Box site. BuddyPress Groupblog is a great plugin to accomplish that. However, it requires a multisite installation, which is not a very good option given our requirements (see this post in Commons in a Box support forum for a background).

    Does anyone know of or have used any other plugin to get to group blogs without requiring multisite? Any advice to help with our search?

    Thanks in Advance.

    ps: cross-posting on commons in a box support forum, apologies if you come across this twice. 🙂

    Saket Jajodia
    Participant

    WP: 4.1.1
    BP: 2.2.1
    Test site: http://test.d2d.co/
    Browser tested: Chrome, Firefox, Opera, IE
    Browser with issue: Chrome & Opera

    I am facing a similar issue to this one: https://buddypress.org/support/topic/avatar-issue-jump-to-bottom-when-clicked-on-crop-panel/

    As soon as I click on “Crop Your New Profile Photo” canvas in Change Profile Photo tab, that page suddenly jumps to bottom. After that it works fine. It jumps only when selection isn’t on the canvas.

    browserco
    Participant

    Also, I think the link is a plugin. But I read in another topic that it was added to the buddypress core. Anyway, I have no clue and I will be grateful for any help in this regard.

    #236269
    aljo1985
    Participant

    Have you tried the WP members only plugin?
    https://wordpress.org/plugins/buddypress-members-only/

    This will restrict your whole website also to members only.
    If you want to just restrict one part of the website, I can help you build a simple function to do this.

    What does the link look like
    http://www.example.com/groups/blah blah blah ??
    Is that what you are trying to block non mebers access to?

    browserco
    Participant

    Hi everyone, I would like to remove the function that forces activity comments to show as separate entries. It is filling up my activity stream and overshadowing my activity posts. Commenting on another user’s activity post is the core feature of my network, but I think comments should stay where they are posted. I have unchecked the options in BuddyPress settings page to not allow comments from blog post and forum. Also it is not good for privacy as anyone can see all of another user’s comments and replies on their activity feed while viewing that user’s profile. I am using the BP Activity Privacy plugin but it has no affect on comments and replies.

    I am not good with coding but have come up with this code to attempt to remove it:
    // Stop activity loops from showing activity comments as separate entries

    function remove_comment_replies() {
    remove_filter( ‘bp_after_has_activities_parse_args’, ‘ray_bp_display_comments_stream’, 20 );

    add_action( ‘bp_after_has_activities_parse_args’, ‘remove_comment_replies’ );

    It doesn’t work. Any suggestions would be very much appreciated (see link to better understand what I am referring to.) Thank you.

    #236267
    5high
    Participant

    Hi there,

    currently running a new WP install with BP, rtmedia, s2member, bullet proof security and Kleo theme.

    What I’d like to do is just like many others – only allow BP messaging between admin and users – so not user to user.

    I found a possible solution to this in a previous thread here ( https://buddypress.org/support/topic/is-it-possible-only-user-admin-user-private-messages/ ), but needed some more details of the code mentioned. As it’s now closed I had to open a new thread…

    @djpaul mentioned you’d solved it using s2member plugin – can you share how you did this here? Or any extra code and where you put it?

    or if there’s a Bddypress way to do this I’d be keen to know too!

    Many thanks BP forum users 🙂

    #236264
    andantesash
    Participant

    I have the plugin “Buddypress Members Only” and the redirect is just the full link to the registration page “http://www.websitename.com&#8221; and I have Buddypress Page settings set as Registration page the same link as previously mentioned – but when you try to access the locked page unless registered it removes the “www.” hence the constant registration loop

    #236260
    andantesash
    Participant

    Hi,

    I have setup Buddypress, I have blocked all my pages from being accessed unless logged in via Buddypress.

    So when a visitor clicks a page they get redirected to the register page, once all details are filled in it just loops back to the same page with all the details filled in and it won’t register.

    Any suggestions?

    #236257
    ch1n3s3b0y
    Participant

    Hi @henrywright

    I have a quick question. I have included the code from the buddypress registration.php file into a custom page template in my child theme, however it isn’t working as it does within buddypress. Do I need to do something else within my custom template for the buddypress code to work?

    I tried

    global $bp as I thought this would work, but nope.

    #236253
    b2marketing
    Participant

    Hi Community

    I might have misunderstood something but I am trying to change the a single Group homepage by moving home.php to buddypress/groups/single/home.php

    I looked at this from this website:
    /buddypress/groups/single/index.php – If this template file is used in your theme, all group pages will use this template. BP will look to use this if the other three templates mentioned above are not found.

    It mention a index.php file but I could not find that. I could only see the home.php file so that is why I use that file.

    My problem is that when I use the this: buddypress/groups/single/home.php then my group page is all messed up. The li tabs are not styled. Some content disappear like group description.

    Also can anyone tell me why some buddypress code only works if placed in my function.php and not when placed in my bp-custom.php file in the plugin folder? Just really curious.

    Thanks in advance.

    aljo1985
    Participant

    Currently when updating group details, it is not posting in sitewide activity stream or the groups home activity stream.

    I have created a function for adding custom fields to create and edit groups and have currently added, record this to activity stream, for when group details are edited. Isn’t this supposed to be functioning anyway?

    I am a very fast learner and have kinda got used to editing buddypress how I would like to without touching any source files.

    Here is my current code I am using to insert my edits into the groups meta and insert the update into the activity stream.

    add_action( 'groups_group_details_edited', 'group_details_update' );
    function group_details_update( $group_id ) {
    	global $bp, $wpdb;
    	
    	if ( !bp_current_user_can( 'bp_moderate' ) && !groups_is_user_member( bp_loggedin_user_id(), $group_id ))
    		return false;
    	
    	$plain_fields = array(
    		'server',
    		'country'
    	);
    
    	foreach( $plain_fields as $field ) {
    		$key = 'group-' . $field;
    		if ( isset( $_POST[$key] ) ) {
    			$value = $_POST[$key];
    			
    			if ($value == 'null')
    				bp_core_add_message( __( 'There was an error updating group details. Please try again.', 'buddypress' ), 'error' );
    			else
    				groups_update_groupmeta( $group_id, 'h1z1_' . $field, $value );
     		}
    	}
    	
    	// Record this in activity streams
    	$activity_action  = sprintf( __( '%1$s has modified group %2$s', 'buddypress'), bp_core_get_userlink( bp_loggedin_user_id() ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . esc_attr( $bp->groups->current_group->name ) . '</a>' );
    	$activity_content = $content;
     
    	$activity_id = groups_record_activity( array(
    		'user_id' => bp_loggedin_user_id(),
    		'action'  => apply_filters( 'groups_activity_new_update_action',  $activity_action  ),
    		'content' => apply_filters( 'groups_activity_new_update_content', $activity_content ),
    		'type'    => 'group_details_updated',
    		'item_id' => $group_id
    	) );
    
    	groups_update_groupmeta( $group_id, 'last_activity', bp_core_current_time() );
    	do_action( 'bp_groups_posted_update', $content, $user_id, $group_id, $activity_id );
    	
    }

    This works when I edit the details of a group, but no activity is showing when I edit photo or settings.

    I am assuming this is supposed to work out of the box, but doesn’t seem to be.

    A few bugs I have found.
    It posts when a member joins a group, but does nothing when they leave the group, they can keep joining and leaving and it will just post member has joined group multiple times. If the member is still in the group and I remove them from the group as an admin, it will then delete the streams that said the user joined, even if there is multiple it will remove them all.

    If I kick/ban the user, it will remove the streams also. If I unban, it will not post that a member has joined the group again. There are many functionality issues within the groups.

    Are the problems above supposed to work and do work with the latest version of buddypress or do I have to hook bp_groups for each part that is not working as desired to add actions in my functions.php?

    Thanks for reading my long post, hope someone can clear this up.

    #236249
    headliner
    Participant

    I am trying to use buddypress plugin with my wp multisite installation. Plugin works fine but in settings conneccted to main sites registration page. The problem comes when I create another social network it uses that registration page for all subsequent site. The plugin is enabled for the entire network. Can you tell me how to get around this problem?

    shanebp
    Moderator

    If you’re using BP 2.2 +, you should use this approach instead:

    Post Types Activities

    My cpts appear.
    However, comments on them do not appear in the activity stream.

    Perhaps because I didn’t create a component for those cpts – I hope that is not the case.
    Hopefully this ticket will provide an answer.

    #236244
    Henry Wright
    Moderator

    Hi @gidantrip

    Please see 6107

    #236235

    In reply to: mentions not working

    aymanomar85
    Participant

    My problem is solved by deactivate buddypress like plugin then mention working fine.

    #236234
    aymanomar85
    Participant

    Hi all
    When i try to upload any cover image in buddypress site appear this massage
    “Max total images allowed 0 in a cover gallery”
    can any one advice me to fix this problem.

    #236233
    gidantrip
    Participant

    Hello
    I have a problem with SEO Yoast title. In my buddypress page (activity, memeber, etc) title page doesnot appear! I use SEO YOAST plugin and when a disable it it does work correctly.
    What can I do????

    #236232
    peter-hamilton
    Participant

    This might help you, dont know myself but looks like it is adjustable to do what you need.

    Xprofile search

    nkeatign
    Participant

    I’ve found this function that adds posts to the activity stream nicely, however, its just the thumbnail. How would I grab a different size of the featured image (i.e ‘large’)

    https://buddypress.org/support/topic/add-post-featured-image-in-activity-stream/

    aljo1985
    Participant

    Thanks for the info, I am actually new to WordPress and have not looked through all the functions. I have only built custom queries on custom tables on my own website that I am currently developing.
    I have tried wordpress in the past but then switched to other platforms as they was more adequate for my goals.

    But right now I am sticking with wordpress and building a new website :),
    I’m more use to sources and templates, scripting from scratch.

    Out of curiosity, which one is better on performance? A straight up query OR the function above.
    If there is security concerns with using a query, apart from sanitisation which I know and use on every custom table, then that info would be good to know also.

    Thanks.

    Edit, I would like to report a bug in your software, even though you posted this reply I got a notification for a reply in the first topic I made. I had no idea you replied to this other than looking through the latest list of topics.

    Here is a screen shot
    target=”_blank”>https://i.imgur.com/wxSgfsG.png

    Here is the topic in question that I got the notification for which only has 1 reply, but was from other topics.
    https://buddypress.org/support/topic/how-do-i-remove-textarea-resize-without-editing-the-js-script/?action=bbp_mark_read&topic_id=236164&_wpnonce=d849ee20f9#post-236164

    #236227
    somethingelse
    Participant

    ^+1 wow, i totally need this too… DESPERATELY.

    if i had realized just how difficult this was going to be to accomplish,i never would have started this project with buddypress. what is the point of xprofile fields if they are not easily searchable?

    there are so many GREAT things about buddypress, it’s super frustrating that this thing which seems to straightforward is so challenging.

    i have been searching … the “buddypress profile search” plugin is not the answer… it isn’t user friendly enough. I just want one search box – “find a teacher in your city” that will search 4 xprofile fields of all our teachers… ONLY THOSE FOUR FIELDS… and return the results.

    i’ve tried a google site-search tool, too…
    the trouble is that our teachers have bios, and in those bios they often include cities where they have trained, or toured, and we do NOT want those included in the “Find a teacher” results.

    i have Base City, and 3 “additional teaching locations” fields… those, and NAME, are the ONLY fields i want searchable.

    i can pay for help.
    but i figured this would be something simple i could do myself!

    #236224
    IHaveToDoThis
    Participant

    Hello everyone,

    This is my first post and I’ve only been working with BP for about a week, so I am still new to all of this. My issue is that I want to customize my activity wall, add color, borders,change the color of highlighted tabs, and change the title, “Site-Wide Activity”. Pretty simple stuff…or so I thought.

    First, I haven’t found any simple means of changing the title without some hardcore coded. I’ll jump into a .css file with no problems, but .php I am more weary. (I’ve killed a site already trying to create a child theme!) I luckily read in a forum about making changes in Chrome’s inspector tool and it works like a charm! I can fix all the text and text boxes and borders as I want, but the only problem is, these changes are just in the browser, nothing is saved.

    Is there someway I can save my inspector tool work? Or do you know WHERE I can find the correct the .css or .php file to play with these elements? Any guidance on the .css or .php files would be greatly appreciate if they came with a file pathway!! Like I said, I am new to both BP and web design in general and just need to be pointed in the exact correct location.

    Many thanks and good luck to everyone out there!! -GSE

    #236222
    danbp
    Participant

    Hi,

    The pro version of this plugin works with BuddyPress:
    https://wordpress.org/plugins/sp-client-document-manager/

    #236220
    gmxperry
    Participant

    Hey folks,

    So, I’m currently running the latest version of WordPress and Buddypress. The site uses a subdomain but it has its own directory. Everything seems to be working right, except that the titles on my BP pages don’t display my site’s name.

    Every other area of the site works fine, in terms of displaying the name of the page and then the name of the site, except for the BuddyPress pages. Here’s an example:

    http://pro.indylist.net/activity/

    I’ve tried disabling every other plugin, I’ve tried changing to a different theme, but nothing works. I’m capable of modifying code of different parts, so I’m willing to try anything.

    I’ve also searched the site and Google to the best of my ability but haven’t made any progress. Hope someone can help!

Viewing 25 results - 20,601 through 20,625 (of 94,567 total)
Skip to toolbar