-
Brajesh Singh replied to the topic How to get the value of a profile field of specific profile field group? in the forum How-to & Troubleshooting 8 years, 12 months ago
Hi George,
No, There is no API function to fetch field group id from field group name and you will need to write your own sql query for the purpose.Also, In your example you have passed the profile_group_id to the bp_get_profile_field_data. Please note, it does not take that as a valid argument. It only accepts user_id and field. group id is not…[Read more]
-
Brajesh Singh updated the Template Hierarchy page, on the BuddyPress Codex 9 years ago
A detailed look at theme compatibilities template hierarchy
BuddyPress 1.7 introduced universal theme compatibility making it easier for WordPress theme designers to work with BuddyPress.What this means is if […]
-
Brajesh Singh replied to the topic Number of comments on that entry in the forum How-to & Troubleshooting 9 years ago
Hi,
You need to override this js function
bp_legacy_theme_hide_comments(
There are many ways to do it. You can either put the following code in your theme’s js file
function bp_legacy_theme_hide_comments() {
var comments_divs = jq('div.activity-comments'),
parent_li, comment_lis, comment_count;var max_show = 2;
if (…[Read more]
-
Brajesh Singh replied to the topic The name feild at registration in the forum How-to & Troubleshooting 9 years ago
Hi,
Since I got this same question in my email today. Assuming that it was you or a coincidence, I will post the code here as well for everyone else.1. BuddyPress Needs the field_1, so you can not delete it. That gives us a solution, we can hide it using css/js and set it’s value to the value of username.
There are two possible approaches.
The…[Read more] -
Brajesh Singh replied to the topic [Resolved] Change the default avatar in the forum How-to & Troubleshooting 9 years ago
No problem. Thank you for confirming 🙂
-
Brajesh Singh replied to the topic [Resolved] Change the default avatar in the forum How-to & Troubleshooting 9 years ago
Hi,
No problem. The bbPress encodes the code.It is always better to avoid the code in email and copy paste from forum itself.Is the issue fixed now?
-
Brajesh Singh replied to the topic [Resolved] Change the default avatar in the forum How-to & Troubleshooting 9 years ago
Hi,
sorry about the trouble. Please make sure that you put that line in php block. Either before the closing ‘?>’ or after the ‘<?php’ tag. -
Brajesh Singh replied to the topic [Resolved] Change the default avatar in the forum How-to & Troubleshooting 9 years ago
For that purpose, please put the following line too in your bp-custom.php
add_filter( 'bp_core_fetch_avatar_no_grav', '__return_true' );That forces BuddyPress to avoid using gravatar and use local avatars for default(when no avatar is uploaded).
Hope that helps
-
Brajesh Singh replied to the topic [Resolved] Hide Custom Tab Only To Account Owner & Admin in the forum How-to & Troubleshooting 9 years ago
No problem. Glad to help 🙂
-
Brajesh Singh replied to the topic Dynamically populate xprofile select box in the forum How-to & Troubleshooting 9 years ago
Hi Daryll,
Your best bet is creating a new xprofile field type and extend select filed type.It is a code I had written around a year ago for some client, but this may point you into the direction. It is for country list.
https://gist.github.com/sbrajesh/5b3f4fd44c9c91b3ed3e
All you need to do is extend the select field and override 3…[Read more]
-
Brajesh Singh replied to the topic [Resolved] Hide Custom Tab Only To Account Owner & Admin in the forum How-to & Troubleshooting 9 years ago
Hi @buckybeever,
You need to change one linechange this
'show_for_displayed_user' => true,to this
'show_for_displayed_user' => bp_is_my_profile() || is_super_admin(),That will do it. Hope it helps.
-
Brajesh Singh replied to the topic Auto login and redirect to activity page on activation in the forum How-to & Troubleshooting 9 years, 6 months ago
Sorry if I am late here.
I just tested the plugin today with BuddyPress 2.2.3.1 and It is working. I have updated a new version too that cleans it a little bit.Hope that helps.
-
Brajesh Singh replied to the topic [Resolved] How do display wordpress email in buddypress profile? in the forum How-to & Troubleshooting 9 years, 6 months ago
Hi,
Is your theme BuddyPress compatible, if yes, Please check if there is ‘members/single/member-header.php or buddypress/members/single/member-header.phpIf yes, you can put the code anywhere in that file. If your theme does not have this file, It can be added via ‘bp_member_header_actions’ too like this
[Read more]
add_action('bp_member_header_actions',… -
Brajesh Singh replied to the topic Notification in the forum How-to & Troubleshooting 9 years, 9 months ago
Hi Christian,
no problem. If you decide to not use it again, you can use my plugin BuddyPress notification widget in that case.About the notice plugin,
I will write the code tonight and put on github and link here.
Thanks
Brajesh -
Brajesh Singh replied to the topic Notification in the forum How-to & Troubleshooting 9 years, 9 months ago
Hi Christian,
in case of limited no. of trusted users, we can add the capability ‘bp_moderate’. Still, I will say it is a flawed approach and insecure. Please do not try that.Can you please let me the answers of the following questions and may be I can put some code:-
1. By notice, do you want to show the users who created this notice?
2. I…[Read more] -
Brajesh Singh replied to the topic Notification in the forum How-to & Troubleshooting 9 years, 9 months ago
Hi Christian,
in case of limited no. of trusted users, we can add the capability ‘bp_moderate’. Still, I will say it is a flawed approach and insecure. Please do not try that.Can you please let me the answers of the following questions and may be I can put some code:-
1. By notice, do you want to show the users who created this notice?
2. I…[Read more] -
Brajesh Singh replied to the topic Notification in the forum How-to & Troubleshooting 9 years, 9 months ago
Hi Christian,
If you want to allow it for all users using the inbuilt notice my not be the best option as it needs bp_moderate capability and I will strongly recommend against giving everyone the ‘bp_moderate’ capability.If you are comfortable with the code, I will suggest look at the bp-messages component and check now the notices are handled.…[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,
You are right about creating a home.php or front-page file and putting the content from activity/index.phpHere are a couple of things that I may suggest to improve it.
Since you are using the code (which is part of bp-legacy template and most theme include that), you activity/index.php does not have header/footer.
The easy way is.
1. copy…[Read more] -
Brajesh Singh replied to the topic Notification in the forum How-to & Troubleshooting 9 years, 9 months ago
Hi Christian,
There is one functionality in BuddyPress that allows it. You can see the feature as site wide notice(Mark a message as notice).The problem is currently, only a user with the capability ‘bp_moderate’ can send the notice. Do you want to allow this notification feature for all users or just selected few?
-
Brajesh Singh replied to the topic Plugin directory pagination broken in the forum Miscellaneous 9 years, 9 months ago
Thank you for the ticket @mercime 🙂
- Load More
@sbrajesh
Active 1 year ago