Save files.
Search Results for 'buddypress'
-
Search Results
-
Topic: API Request
I would like to request a change that would allow me to create a plugin that expands on the extended profile fields.
Where:
Near the end of thesave()function in/bp-xprofile/bp-xprofile-classes.phpWhat:
Change the following line:
do_action_ref_array( 'xprofile_field_after_save', array( &$this ) );
to:
do_action_ref_array( 'xprofile_field_after_save', array( &$this, $field_id ) );Alternatively, you could set
$this->id = $field_idafter an INSERT. That way the I can still access the ID field without needing to alter the behavior of thexprofile_field_after_saveaction.This would allow me to write out a field in my custom table that references the newly saved profile field.
Thank you for your time and the great BuddyPress system!
JosephEDIT: For some reason I can’t reply to my topic (white screen so I am guessing there is a fatal error).
Thanks Paul, I will post there. A multiple insert is not an issue as this function only updates or inserts a single row. Here is the current code:
function save() { global $wpdb, $bp; $this->name = apply_filters( 'xprofile_group_name_before_save', $this->name, $this->id ); $this->description = apply_filters( 'xprofile_group_description_before_save', $this->description, $this->id ); do_action_ref_array( 'xprofile_group_before_save', array( &$this ) ); if ( $this->id ) $sql = $wpdb->prepare( "UPDATE {$bp->profile->table_name_groups} SET name = %s, description = %s WHERE id = %d", $this->name, $this->description, $this->id ); else $sql = $wpdb->prepare( "INSERT INTO {$bp->profile->table_name_groups} (name, description, can_delete) VALUES (%s, %s, 1)", $this->name, $this->description ); if ( is_wp_error( $wpdb->query( $sql ) ) ) return false; do_action_ref_array( 'xprofile_group_after_save', array( &$this ) ); if ( $this->id ) return $this->id; else return $wpdb->insert_id; }I will be using Buddypress to create courses. Each group will be a course. These will be set to private, but I read in the Codex “In a private group or a hidden group, members have all the same privileges as members in a public group. Additionally, being a member of a private group means that you get to see who else is a member of the group, and that you’re able to send invites to other users.”
How can I set it so that members of the group cannot invite other users?Topic: Buddypress menus
I am activating BuddyPress in localhost using Xampp. When I try to activate it i get the following fatal error:
Warning: require(/Applications/XAMPP/xamppfiles/htdocs/social/wp-content/plugins/buddypress/bp-core/bp-core-wpabstraction.php) [function.require]: failed to open stream: No such file or directory in /Applications/XAMPP/xamppfiles/htdocs/social/wp-content/plugins/budypress/bp-loader.php on line 68
How can I fixed?


Hi everyone,
I am working on getting all the bugs out of the buddypress forum I am building before I open it up to the public. I have built a child theme for the buddypress default theme.
One of the problems is commenting and favoriting activity posts. When I click “comment” the page refreshes and there is no change to the activity post.
When I try to “favorite” a post, I just get a 404.
In the BuddyPress settings page I have checked “No” to the option “Disable activity stream commenting on blog and forum posts?”
Any ideas what is going on here?
Thanks