Search Results for 'buddypress'
-
Search Results
-
Topic: Plugin
Are there free plugin on this site for download for buddypress?
Hi guys, I created a custom notification that is added when an user receive a like on a custom post type.
All good unitl now, but I noticed that if the post receive 2 likes, from 2 different users, the user receive only the first notification and not the second one.
Any help would be really appreciated.
//Component declaration if(!function_exists('my_custom_register_wiki_notification')) { function my_custom_register_wiki_notification() { // Register component manually into buddypress() singleton buddypress()->my_custom_wiki = new stdClass; // Add notification callback function buddypress()->my_custom_wiki->notification_callback = 'my_custom_wiki_like_format_notifications'; // Now register components into active components array buddypress()->active_components['my_custom_wiki'] = 1; } }; //Notification format declaration if(!function_exists('my_custom_wiki_like_format_notifications')) { function my_custom_wiki_like_format_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) { // New custom notifications if ( 'my_custom_wiki_like' === $action ) { $wiki_post = get_post( $item_id ); $post_title = get_the_title( $item_id ); $custom_title = sprintf( esc_html__( 'Your post "%1$s" received a like', 'my_custom' ), $post_title ); $custom_text = sprintf( esc_html__( 'Your post "%1$s" received a like', 'my_custom' ), $post_title ); $custom_link = get_permalink( $item_id ); // WordPress Toolbar if ( 'string' === $format ) { $return = apply_filters( 'my_custom_wiki_like_format', '<a href="' . esc_url( $custom_link ) . '" title="' . esc_attr( $custom_title ) . '">' . esc_html( $custom_text ) . '</a>', $custom_text, $custom_link ); // Deprecated BuddyBar } else { $return = apply_filters( 'my_custom_wiki_like_format', array( 'text' => $custom_text, 'link' => $custom_link ), $custom_link, (int) $total_items, $custom_text, $custom_title ); } return $return; } return $action; } } //Function that add the notification when like is triggered function my_custom_add_like() { //... //... if(my_custom_is_wiki_like_notification_enabled()) { bp_notifications_add_notification( array( 'user_id' => $post_object->post_author, 'item_id' => $post_id, 'secondary_item_id' => get_current_user_id(), 'component_name' => 'my_custom_wiki', 'component_action' => 'my_custom_wiki_like', 'date_notified' => bp_core_current_time(), 'is_new' => 1, ) ); } }Topic: 2 sites, shared userbase?
Help!
We are trying to build our sites, currently, I have multisite and I guess a network (still trying to wrap my head around this). We have buddypress and bbpress on the secondary forum site. Here’s what we’re looking to accomplish:
2 sites, main shop/site, forum
Both have different domains-single sign-on
-same user credentials
-potential social integration with facebookUsers can buy our products from main site, post about them on forum from same name, etc.
Sounds simple, but we are having the hardest time!!
Is this possible? If so, how do we achieve this? I have scoured the internet looking for answers and am having no such luck.
Also, is it possible to have login without the WordPress page? Would like this as seamless as possible.
Topic: Registration Form Issue…
Hi,
It should be simple but I need help to solve it urgently. How can I convert back to buddypress registration page to original wordpress registration page?
I do not want to use only buddypresss registration page, I want to keep the rest but I couldn’t find any way to revert it back to default wordpres version.
Thanks in advance.
Hello! I’m trying to get a buddypress going and have a question about profile fields. So, in the Profile Fields we can choose let members set the visibility of certain fields. However when I’m testing out searches, I’m finding that member profiles are still coming up when I search for terms that I know are in hidden or limited fields.
For Example: I have a location field that members are allowed to set the visibility of. I edited my admin profile so that it says I’m in Boston and set it so that only I can see this info. (autolink is also disabled)
When I view the admin profile as a logged out user or as my logged into Participant account, Boston is not listen anywhere. But, when I got to “Members” and search for the term “Boston”, that admin profile pops up as a result despite that field being set to “only me”. The Location is still not visible when I (as a logged out or logged in participant) actually view the profile, but I feel like something set to “only me” shouldn’t be coming up in search results at all!
Is there a way to set it so that these terms in these hidden or partially hidden DON’T come up in general or all members search results? Or is there a plug in that can handle this?
(apologies if this as been asked and answered somewhere I ran a few topic and plug0in searched but didn’t find anything.)
Hi,
all BuddyPress pages are displaying correctly. I can click on other profiles, the registration page, etc. Those are working. But if I click on My Account, or I log into another account I’ve created on a different PC, same thing happens. I see nothing.
Any help would be much appreciated.
Thanks
Hi!
First of all thanks for the amazing work you are doing..
In my buddypress installation I’ve a rating associated to each member (each member can rate each other) and I would like to add “rating” to the “order by” option of the member page.Now I can do it with a widget that orders members with the function I report below. But I would like to add the possibility to order members by rating in the “order by” option.
I’ve seen the topic https://buddypress.org/support/topic/adding-new-order-by-on-members-loop/ trying to adapt it to my case, but the order by rating option do not work properly.
It is possible to adapt that solution (or another working) to my case?
Thanks in advance.function prorevs_users_by_rating($limit) { global $wpdb; if (current_user_can('administrator')): $users = $wpdb->get_results( $wpdb->prepare( "SELECT a.ID as id, a.user_login AS name, a.display_name AS displayname, AVG(star) AS rating, COUNT(star) AS reviews FROM {$wpdb->prefix}users AS a LEFT JOIN {$wpdb->prefix}bp_activity AS b ON a.ID = b.usercheck WHERE (b.is_activated is null or b.is_activated=1) GROUP BY id ORDER BY rating DESC LIMIT %d", $limit ) ); else: $users = $wpdb->get_results( $wpdb->prepare( "SELECT a.ID as id, a.user_login AS name, a.display_name AS displayname, AVG(star) AS rating, COUNT(star) AS reviews FROM {$wpdb->prefix}users AS a LEFT JOIN {$wpdb->prefix}bp_activity AS b ON a.ID = b.usercheck WHERE (b.is_activated is null or b.is_activated=1) GROUP BY id ORDER BY rating DESC LIMIT %d", $limit ) ); endif; return prorevs_print_users($users); } function prorevs_users_by_rating_shortcode($atts) { extract(shortcode_atts(array('limit' => 10), $atts)); return prorevs_users_by_rating($limit); }Hello,
In BuddyPress activity page, there are some tabs like “All Friends”, “Groups”, “Favorites”, “Mentions” etc. I would like to change those text to others, like without “Favorites” I like to show “Likes” or “Loves”.Now, one way is to copy BuddyPress themes activity directory to WP Theme directory and modify there directly. But is there anyway to create an action/hook in theme’s functions.php and change those text without copying + editing BP theme activity layouts.
NOTE: using updated WP and BP.
Regards