Search Results for 'buddypress'
-
Search Results
-
Hey guys !
I am searching since one week for a solution of my problem.
My idea is to create 2 icons in my topbar (no bp-admin-bar, i have an own seperate topbar). I have already create a counter for notification and friends and have a dropdown function.
In the friends dropdown i have input the code from friends-request.php and if you click on the icon there is an dropdown which shows the reqeuest. The problem is that it only shows the reqeust inside the dropdown if you are on a profilpage.
If you hit the notification icon there should be only show new notifications and no friend requests.
At the moment it shows everything.For the counter i use this function:
<?php function bpfr_add_notification_to_page_title( ) { //do not change if the user is not logged in if( ! is_user_logged_in() ) $user_id = get_current_user_id();//logged in user's id $count = bp_notifications_get_unread_notification_count( $user_id ); if( $count > 0 ) $title = sprintf( "You Have %d New Notification(s) - ", $count ); $anzahlNeuigkeiten = $count; echo '<a class="news" data-dropdown="news" aria-controls="autoCloseExample" aria-expanded="false"> <i class="fi-megaphone" ></i></a><span class="update" >'.$anzahlNeuigkeiten.'</span>'; echo '<a style="margin-left:10px;" class="frequest" data-dropdown="friendrequest" aria-controls="autoCloseExample" aria-expanded="false"><i class="fi-torsos"></i></a><span class="update">'; echo bp_friend_get_total_requests_count( bp_loggedin_user_id() ) ; echo '</span>'; } ?>I found already a thread which trys to explain how to fix it ”
How to split out BuddyPress notifications drop down items to their own top level” but there is no content for the dropdown.So my question is . How can I show the requests of friends in the dropdown on every page? And how can filter notifications? It should be like on Facebook, if you hit the friends icon then it shows requests. If you hit the notification icon than it shows news.
Thannk you guys for your help !
Best Regards !
Peter
Topic: Can't get to Dashboard
Hi there,
I have just installed Buddypress onto my wordpress site. When I activated it a white screen with this on it came up:
Fatal error: Call to undefined function wp_style_add_data() in /*****/***/*****/htdocs/trainmacs/wp-content/plugins/buddypress/bp-core/bp-core-cssjs.php on line 61
After that happened I couldn’t get to my dashboard, and after logging in and out again the message above is all that it coming up – so I have basically lost my whole site and I have no idea what to do… I can’t get in to deactivate it, and the site itself is showing only this message – so I can’t even see my homepage…
Can someone help me in some way??
Thanks so much!!
Hello, I want to fetch the current message which is sent by the user and recipient id to whom the message is sent. How can I get this data ?
Any help would be appreciated 🙂
Topic: Creating private section
Hi there,
New to buddypress so I hope this is the right place to post.
I’m building a website for a personal trainer.
He wants the following added to the site:
1: customers can log in to their (private!!) page
2: They have to be able to upload a progress picture every month
3: He must be able to add a document for them every month
4: they should be able to communicate with each other.
5: Interaction between customers is not necessarycan this be done with Buddypress?
Sidenote: I’m using a wordpress theme which supports Buddypress v 2.1.1
Many thanks,
Mathijs
Hi
I change the parent for the Groups page and I get a 404. Reflush permalink change nothing.
I check in BuddyPress settings and the selected Groups page is the right one.
If I put again the Groups page as before, everything works.
Any idea?
ThanksWordPress 4.1
BuddyPress 2.2
Custom Genesis Framework Child Themec / @imath
Since there is no protocol where the plugins will put their icons in and around the status message textarea box in Buddypress or maybe since these are not left to be dealt with any default buddypress theme, the icons ( stuffs you click on to get another form or input method) in and around the textbox atop profile and activity page becomes chaotic.
These plugins are not fancy or personal needbased but very essential for any social net – like Privacy options, Location choice, Image upload etc. So its almost impossible to do without these for any new site which wants its users to be happy.
I have attached a screenshot to show how these icons becomes messy and so very user-and-UI unfriendly. My question is, Is there any easy way or a plugin to get these things into order (like drag-drop or code snippet etc)
Screenshot

There was an older post here that described how to add activity form input to the BP Activity Shortcode plugin. https://buddypress.org/support/topic/add-activity-form-and-loop-on-my-home-page/
This is the functionality I was looking for but that code didn’t seem to work. I searched the BuddyPress v2.2.0 code and found this newer template code.
To add the Activity Form to your feed, insert this code at line 92 of bp-activity-as-shortcode.php
<?php if ( is_user_logged_in() ) { bp_get_template_part( 'activity/post-form' ); } ?>You can get BP Activity Shortcode here.
How to keep a site or some sites outside the scope of “Site Tracking” by Buddypress Activity stream?
I am speaking about WP 4.1 Multisite with BP 2.2 : scenario : some bloggers will like to keep the blog (site) activities hidden or unavialable to the general activity stream.
Topic: Custom Profile menu
After last time no one could help me I try it today in another way.
I have the following code to display a custom menu tab in the profile menu:
function my_bp_nav() { global $bp; bp_core_new_nav_item( array( 'name' => __( 'Contact Athlete', 'buddypress' ), 'slug' => 'contact-athlete', 'position' => 30, 'screen_function' => 'my_contact_athlete_template', ) ); } add_action( 'bp_setup_nav', 'my_bp_nav' ); function my_contact_athlete_template() { bp_get_template_part( 'contact-athlete' ); }What happens: The template ‘contact-athlete.php’ is loaded above the content and under it a 404 page is shown.
What I’d like to achieve:
The ‘contact-athlete.php’ should be loaded within the normal profile template. So everything should look like a normal profile page and inside I would like to call my custom template with a contact form.Any suggestions?
Thanks!How to include “Favorit” button in a post page, for example a media page (eg. rtmedia) or a blog post page ?
I have seen that the plugin “Buddypics” does this
<?php do_action( 'bp_media_before_activity_meta' ); ?> <?php if ( is_user_logged_in() ) : ?> <?php if ( !bp_get_activity_is_favorite() ) : ?> <a>" class="fav" title="<?php _e( 'Mark as Favorite', 'buddypress' ) ?>"><?php _e( 'Favorite', 'buddypress' ) ?></a> <?php else : ?> <a>" class="unfav" title="<?php _e( 'Remove Favorite', 'buddypress' ) ?>"><?php _e( 'Remove Favorite', 'buddypress' ) ?></a> <?php endif; ?> <?php endif;?>Howevr when I do this, for example in, wp-content/plugins/buddypress-media/templates/media/media-single.php I do get the “Favorit” link/button but it is missing something
/activity/favorite//?_wpnonce=f99fe2d956
the above is supposed to be /activity/favorite/x/?_wpnonce=f99fe2d956 where x is something like 6, 7, 8 etcI have looked up in the docs but not finding any solution.
Topic: Change "activity" slug
Hello,
buddypress codex says it should be fairly easy to change the default pages.
https://codex.buddypress.org/themes/bp-custom-php/:Defining custom slugs
Developers may modify the default URL slugs for activity, forums, etc by adding a statement in the bp-custom.php file.// change 'discuss' to whatever you want define( 'BP_FORUMS_SLUG', 'discuss' );I tried putting these in my function.php, but that does not work.
define( 'BP_FORUMS_SLUG', 'discussions' ); define ( 'BP_ACTIVITY_SLUG', 'community' );if I do what is suggested in this tutorial
Slugs
For example, if you are running a sports website with BuddyPress, you could rename the URL slug example.com/members to example.com/players by changing the url of the corresponding component page in the WordPress admin -> pages.I can change the page’s slug , but cannot edit the page anymore.
I am using wp composer / shortcodes to design the activity page and these do not work if the slug is renamed from wp admin >pages. I am not able to add text, nor images to the page.Can anybody help, please?
Thank you.
Hello,
I am newbie at making website. I am making a website that has a buddypress, woocommerce and wc vendors. I edit the buddypress member-header.php for myshop link on my child’s theme and put bp-custom.php on my plugin folder. My problem is that whenever I go to other member’s my account page (where you can see add friend, public message and private message tab), in activity when I click on profile, it goes directly to my profile not to the other member’s profile. How will I fix this? I want to see the other member’s profile not mine. Thank you in advance.