-
Henry Wright replied to the topic Prohibit create groups with existing name in the forum How-to & Troubleshooting 10 years, 6 months ago
Yes. You can use the
groups_group_before_savehook to check if the name already exists. If so, set the name to and empty string. This will result in theBP_Groups_Group::save()method returningfalse, and no group being created. Note, you’ll probably also want to give the user some kind of useful message to tell them what’s happened. -
Henry Wright replied to the topic groups_get_group in blog 1 from group 2 in the forum How-to & Troubleshooting 10 years, 6 months ago
There are a number of ways to install BuddyPress in your network. Can you describe your set up?
See the Installation in WordPress Multisite article for more info.
-
@mercime updated the Template Hierarchy page, on the BuddyPress Codex 10 years, 6 months 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 […]
-
@mercime updated the Theme Compatibility & Template Files page, on the BuddyPress Codex 10 years, 6 months ago
An explanation of Theme compatibility and its template files
BuddyPress 1.7 heralded a new era in BP development with a vastly improved approach to templating, its aim being to far more closely mirror the […]
-
ericle eri's profile was updated 10 years, 6 months ago
-
Henry Wright replied to the topic Unable to log in in the forum Installing BuddyPress 10 years, 6 months ago
Which WordPress forum are you referring to? Can you give a link?
-
Henry Wright replied to the topic NEW! Buddy Member Stats & BuddyPress Community Stats in the forum Third Party Plugins 10 years, 6 months ago
yep, both are currently pending review on wpās repo
+1 for submitting to the Plugin Directory! Makes them far easier for users to find. š
-
@mercime replied to the topic NEW! Buddy Member Stats & BuddyPress Community Stats in the forum Third Party Plugins 10 years, 6 months ago
Thank you @danbp! Will be checking both out in a little while.
P.S. Will you also be submitting both to the WP Plugin repository? -
@mercime replied to the topic buddy presss pages just wont work in the forum Showcase 10 years, 6 months ago
@iamc0llins
– Could you post the steps you have gone through so far so that we can identify where the roadblock is?
– Did you double check in Settings > BuddyPress – Pages panel whether the names of the page is assigned to the respective component you activated?
– Are you running on WAMP/XAMPP/LAMP or other setup? -
Henry Wright replied to the topic BuddyPress Login in the forum How-to & Troubleshooting 10 years, 6 months ago
-
Brajesh Singh replied to the topic Number of comments on that entry in the forum How-to & Troubleshooting 10 years, 6 months 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 10 years, 6 months 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 10 years, 6 months ago
No problem. Thank you for confirming š
-
Brajesh Singh replied to the topic [Resolved] Change the default avatar in the forum How-to & Troubleshooting 10 years, 6 months 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 10 years, 6 months 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 10 years, 6 months 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 10 years, 6 months ago
No problem. Glad to help š
-
buckyb replied to the topic [Resolved] Hide Custom Tab Only To Account Owner & Admin in the forum How-to & Troubleshooting 10 years, 6 months ago
Thank you so much! Yep it works š
-
Brajesh Singh replied to the topic Dynamically populate xprofile select box in the forum How-to & Troubleshooting 10 years, 6 months 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 10 years, 6 months 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.
- Load More