Search Results for 'buddypress'
-
Search Results
-
I am using the following code to add a custom post type to users’ activity streams:
add_filter ( 'bp_blogs_record_post_post_types', 'ecomukti_activity_publish_custom_post_types',1,1 ); function ecomukti_activity_publish_custom_post_types( $post_types ) { $post_types[] = 'product'; return $post_types; } add_filter('bp_blogs_activity_new_post_action', 'ecomukti_cpt_activity_action', 1, 3); function ecomukti_cpt_activity_action( $activity_action, $post, $post_permalink ) { global $bp; if( $post->post_type == 'product' ) { if ( is_multisite() ) $activity_action = sprintf( __( '%1$s created a new campaign, %2$s, on the site %3$s', 'buddypress' ), bp_core_get_userlink( (int) $post->post_author ), '<a href="' . $post_permalink . '">' . $post->post_title . '</a>', '<a href="' . get_blog_option( $blog_id, 'home' ) . '">' . get_blog_option( $blog_id, 'blogname' ) . '</a>' ); else $activity_action = sprintf( __( '%1$s created a new campaign, %2$s', 'buddypress' ), bp_core_get_userlink( (int) $post->post_author ), '<a href="' . $post_permalink . '">' . $post->post_title . '</a>' ); } return $activity_action; }However, I also want this activity to show up in the group loop for all groups the user belongs to. How can I get this to show on the group page?
I have read the following pages, but I haven’t found them helpful:
Add custom filters to loops and enjoy them within your plugin
Hello!
I’m having trouble with getting my content to work when adding a new tab to the profile page. Here’s my code:
function profile_tab_favourites() { global $bp; bp_core_new_nav_item( array( 'name' => __( 'Favourites' ), 'slug' => 'favorites', 'screen_function' => 'favourites_screen', 'position' => 40 ) ); function favourites_screen() { //add title and content here – last is to call the members plugin.php template add_action( 'bp_template_title', 'favourites_title' ); add_action( 'bp_template_content', 'favourites_content' ); bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'buddypress/members/single/plugins' ) ); } function favourites_title() { echo 'Title'; } function favourites_content() { echo 'Content'; } } add_action( 'bp_setup_nav', 'profile_tab_favourites' );Adding the tab works great, but my screen function doesn’t work at all. infact, when I click on my tab I just get 404’d and there’s no content echoing at all.
I have searched and searched for an answer everywhere and I can’t find anyway to figure this out. I would love some advice.
If you need me to supply anything, just let me know!
Thanks!
Hi I just migrated my site to a new server, and everything works fine and all, but not it appears BP-Album is broken, and will no longer let me upload photos or make changes to avatars.
I get this nasty error when ever I log into wordpress admin.
Your sever does not meet the minumum requirements to run Bp-Album, this means the plugin may not function correctly. Please check that you have the required WordPress and BuddyPress versions, as well as up to date versions of PHP, MYSQL and the GDLib.
Server Specs:
PHP 5 suPHP
MySQL 5.5
Wordpress 3.9.1
BuddyPress 2.0.1
Apache 2.2.27Any help would be appreciated, thank you! 🙂
Hi,
I don’t know if this is a BuddyPress bug or something in my own code, but I’ve been struggling with this for a couple of weeks.
I create a new, hidden, group as per usual. Everything good all the way so far.
After this I go to wp-admin to use the “Groups” option page. I can’t seem to find the group anywhere. I try making it a public group (I can manage it because I still have it open in another tab in my browser). Still doesn’t show up.
On this installation I have almost 200 other hidden groups that show up just fine. Does anyone have any idea why this may be?
I’d greatly appreciate a response to this!
Thanks,
TorHello,
I’m using BuddypPress 1.6.4 with WordPress 3.5.1
I want to upgrade my BuddyPress 1.6.4/WordPress 3.5.1 to BuddyPress 2 and WordPress 3.9.1 but cant find any information how to do the upgrade. In the codex there is information about how to upgrade from older versions of BuddyPress to 1.6. http://codex.buddypress.org/getting-started/upgrading-buddypress/ but no info about how to go from there to BuddyPress 2..
Also, there is no info in the plugin page in the admin panel next to the BuddyPress plugin about any new versions.
Anyone with more info about this or experience of upgrading from BuddyPress 1.6 to 2?
Thanks / Marcus
http://www.musiklararportalen.se/Topic: Profile Permissions
Hey guys.
I’m new to buddypress and have found it great to work with on my site as I am starting a paid membership community for business users.
I do have one problem that still hangs over my head. I am trying to restrict some member types from posting activities from their profiles. This will only be available for some users.
Is there a plug-in that I require? Am I missing something in the setting somewhere?
Please help out.
Thanks.Topic: Override a BP class function
BuddyPress version: 2.0.1
Wordpress version: 3.9.1Hi all,
As part of an ongoing project, the wp_bp_friends table for us is of no use as we have our own system in place. That being said, the function bp_add_friend_button(); is regularly used and rather than changing all occurrences of this function to a custom one, we’d like to just override the function. I have noticed bp_get_add_friend_button(); has an apply_filter at the bottom so I can filter it, however filtering doesn’t help as that function still executes “bp_is_friend()” and “bp_is_friend()” tries to access the wp_bp_friends table (which has a completely different structure now)
Is there anyway I can override bp_add_friend_button(); and stop it from running any of the BP based content so we can just generate our own without having to replace the function call all over the project?
Hi,
I installed Buddypress into my website which is a Gabfire Theme and is supposed to handle buddypress…..buddypress friendly.
I am NOT a tech guy but understand basics.
Once it is installed I cannot find a log in or regsister bar/tab at the top of the page for people to sign up.
There are other plug ins that were installed previously. Could that be a problem and if so, what is the productive solution that I can do?
Thank you all.
WordPress 3.9.1, bbPress 2.5.4, BuddyPress 3.0.1
I’m still learning BP and building my site. All my users have been added by Admin and I’m testing, debugging. But when I login as a non-admin user, that user cannot edit their profile. Trying to do so produces this error message:
Permission Denied
Not Found / No Access
The page you are looking for either does not exist, or you do not have the permissions to access it.
Any pointers would be appreciated.