-
Brajesh Singh replied to the topic Plugin directory pagination broken in the forum Miscellaneous 9 years, 9 months ago
Hi,
the problem is that currently the pagination links are broken.
for example if you put the page number manually like this
https://buddypress.org/extend/plugins/?ppage=5
It will work. After the second page, the pagination is broken .I am not sure if the moderators, developers are aware.
-
Brajesh Singh replied to the topic Where's the javascript that expands whats-new-content? in the forum How-to & Troubleshooting 9 years, 9 months ago
Hi @number_6,
Just wanted to post that it is easily doable with a small snippet of js.Please put this code in your js file.
jQuery('#whats-new').off('focus');
jQuery('#whats-new').off('blur');
Please put this inside the document ready section for your theme’s js file( or please do let me know if you want me to provide the complete…[Read more]
-
Brajesh Singh replied to the topic [Resolved] How do display wordpress email in buddypress profile? in the forum How-to & Troubleshooting 9 years, 9 months ago
Hi,
It is easy to do that.
Here is a function, you can put it in your bp-custom.php or your theme’s functions.php
function devb_show_displayed_user_email() {if( ! bp_is_user() )
return ;$user_email = bp_get_displayed_user_email();
echo "<a href='mailto:{$user_email}'>{$user_email}</a>";
}And you can call it on the user profile…[Read more]
-
Brajesh Singh replied to the topic Activity Stream Homepage Compatibility Issues in the forum Third Party Plugins 9 years, 9 months ago
Hi,
It is a bug with BuddyPress and there is still an open ticket for the purpose.
You can see the details herehttps://buddypress.trac.wordpress.org/ticket/5087
and here
https://buddypress.trac.wordpress.org/ticket/5643At the moment, there does not seem to be a solution. The problem is that query variable ‘s’ is used for Normal WordPress…[Read more]
-
Brajesh Singh replied to the topic How to Add Member Images to on Profile Page in the forum Installing BuddyPress 9 years, 9 months ago
hi @mcpeanut,
Thank you.
I actually made a mistake by including the lighbox hurriedly. I am updating to have an option to disable it.I have tested it on a few themes and it seems to have conflicts on couple of themes bacuse of my use of theme specific activity instead of supplying with the plugin.
I am looking on to improve it and I saw your…[Read more]
-
Brajesh Singh replied to the topic How to Add Member Images to on Profile Page in the forum Installing BuddyPress 9 years, 9 months ago
Hi @dio1987,
Can you please provide a screenshot of what exactly you are looking for?
MediaPress does provides the uploading/album(or gallery) etc.
If you can explain, I can put the code for you 🙂 -
Brajesh Singh replied to the topic How to Add Member Images to on Profile Page in the forum Installing BuddyPress 9 years, 9 months ago
Hi @dio1987,
Can you please provide a screenshot of what exactly you are looking for?
MediaPress does provides the uploading/album(or gallery) etc.
If you can explain, I can put the code for you 🙂 -
Brajesh Singh replied to the topic [Resolved] How To Get Notification Count? (Code)? in the forum How-to & Troubleshooting 9 years, 9 months ago
You are most welcome 🙂
Have a great day! -
Brajesh Singh replied to the topic in profile hide notifications and settings in the forum How-to & Troubleshooting 9 years, 9 months ago
Hi Fan,
Do you mean removing the tabs in user profile ?
If yes, Please visit Dashboard->Settings->BuddyPress then click on the components tab.
there you can disable the Notifications and settings component.If you are using WordPress multisite, you can find the BuddyPress settings under NetworkAdmin->Settings->BuddyPress
Hope that helps.
-
Brajesh Singh replied to the topic [Resolved] How To Get Notification Count? (Code)? in the forum How-to & Troubleshooting 9 years, 9 months ago
Hi Chaitanya,
Try this code.
function bpfr_add_notification_to_page_title( $title, $original_title, $sep ) {
//do not change if the user is not logged in
if( ! is_user_logged_in() )
return $title;$user_id = get_current_user_id();//logged in user's id
$count = bp_notifications_get_unread_notification_count( $user_id );
if( $count…[Read more]
-
Brajesh Singh replied to the topic Leave and Join a Group button via shortcode to use in pages in the forum How-to & Troubleshooting 10 years, 7 months ago
Do you want the join and leave button depending on the currently logged in user ina single shortcode or 2 different shortcode. I am not sure, so here is the code that will give you join button for any group
[Read more]
add_shortcode( 'group-join', 'devb_group_join_btn' );
function devb_group_join_btn( $atts = '', $content = null ){
if(… -
Brajesh Singh replied to the topic [Resolved] How to activate existing WP users as BP members effectively? in the forum How-to & Troubleshooting 11 years, 4 months ago
Hi Peter,
The user does not need to login. You just need to add a user meta ‘last_activity’ for each user and they will appear on your member directory. -
Brajesh Singh replied to the topic Limit number of users and groups in the forum How-to & Troubleshooting 11 years, 4 months ago
Hi Ben,
What I am doing with the Limit Members Per group plugin is as follows:-1. Give Site Admins options to set a limit and then allow him to give the Group admins flexibility to choose the number.
2. If the option to allow groups admins select their own limit is enabled, It will use specific settings per group otherwise the global…[Read more] -
Brajesh Singh replied to the topic [Resolved] Conditional check for activate page in the forum How-to & Troubleshooting 11 years, 5 months ago
Hi Henry,
As Hugo linked, the function does not uses exit. You might use ‘bp_core_redirect’ though, which does not require you to put exit after it. -
Brajesh Singh replied to the topic Im Multisite , Remove SITES Fields from Profile Nav in the forum How-to & Troubleshooting 11 years, 5 months ago
If you guys mean the the sites from the navigation, then you can use the following code in either your theme’s functions.php or bp-custom.php
function bpdev_remove_blogs_nav(){
global $bp;bp_core_remove_nav_item($bp->blogs->id);//
}
add_action('wp_loaded','bpdev_remove_blogs_nav');
Hope that helps. -
Brajesh Singh replied to the topic [Resolved] Conditional check for activate page in the forum How-to & Troubleshooting 11 years, 5 months ago
Hi Henry,
That code works. All you are missing is an exit statement.
here is the code I modified for you
//redirect logged-in users away from activate page
function bp_redirect_activate_to_profile() {
global $bp;if ( is_user_logged_in() && bp_is_activation_page() ) {
wp_redirect( $bp->loggedin_user->domain );…[Read more] -
Brajesh Singh replied to the topic [Resolved] Conditional check for activate page in the forum How-to & Troubleshooting 11 years, 5 months ago
If you are checking for BuddyPress activation page, you can use any of the following
if( bp_is_activation_page() ) {
//do something
}
or
if ( bp_is_current_component( 'activate' ) ){//do something
}
hope that helps. -
Brajesh Singh replied to the topic Best way to limit friend requests to avoid spam in the forum How-to & Troubleshooting 11 years, 5 months ago
@bphelp thanks Ben for the heads up.
@sooskriszta
You are right about the use case. It is not suitable for spammers protection and neither suitable for normal sites.I built it specifically for membership based sites where they wanted to limit the no. of friends and charge for increasing the limit(I had got that specific requirement from a client…[Read more]
-
Brajesh Singh replied to the topic BuddyPress Notification in the forum Showcase 11 years, 8 months ago
@webwarriorwng
I am the author of that plugin. Can you please tell me the problem you are faccing.I will appreciate a little detail about your BuddyPress/WordPress version and theme you are using?
-
Brajesh Singh replied to the topic How to split out BuddyPress notifications drop down items to their own top level in the forum Installing BuddyPress 11 years, 8 months ago
Do you want it to be hooked to the main menu of the bp-default theme when a user is logged in ?
- Load More
@sbrajesh
Active 1 year ago