I am getting tons of spammers registering on my site via buddypress plugin. but i dont want to take the option away of registering because i want people to register. Is there a way to prevent this? any ideas help
Thanks for the explanation @danbp. Ahhhh the Mystery Man ha.
WP is using get_avatar and BP substitute it with his own code for internal purpose.
So if i understand you, WP calls for the user’s Gravatar regardless via get_avatar and Buddypress then just takes it from WP to make it appear on the user profile? Therefore the code add_filter('bp_core_fetch_avatar_no_grav', '__return_true'); only stops the second part of the process where Buddypress requests the user’s Gravatar from WP. That right?
Deactivating Gravatar will also deprive the people who use the service to get their usual picture on your site. It’s not an innocent decision.
Yeah I agree. The reasons I have now for wanting to prevent access to Gravatar is for data/privacy/3rd party website reasons and also slowdown (if the user numbers did reach certain levels). I don’t want to ‘force’ them to upload a profile pic because I want them to give as little or as much to their profile as they feel like (which is why I wouldn’t use the Buddydev force profile pic plugin either).
when i go to view a profile or anything that has to do with buddy press. this appears:
<b>Warning</b>: strstr(): Empty needle in <b>/home3/filmfilm/public_html/wp-content/plugins/buddypress/bp-core/bp-core-filters.php</b> on line <b>641</b>
this appears as the name of my tab. as the <title> when i go to view source. what does this mean and how do i get rid of it?
i am not an expert with HTML so i would need alot of details and explanation of this issue.
i checked this post: https://buddypress.trac.wordpress.org/ticket/6107 but still dont understand
@mcuk,
default menu items (nav or sub-nav) are all written somewhere, by you or the language file. Custom menus are rarely automatically updated. Most are also theme dependant.
Some Codex pages needs heavy revision. Feel free to do so. Volunteers are welcome, as it’s a never ending task.
Participate and Contribute
WordPress use Gravatar like BuddyPress.
When BP is activated, it let’s you manage your avatar from the profile.
WP is using get_avatar and BP substitute it with his own code for internal purpose.
Bp-avatar-suggestion let the site admin add an avatar bunch of pictures where users can choose from instead of uploading their own image. And yes, all avatars (wp/bp) are concerned, even if in fact it is the same thing.
FYI the ‘white figure on grey background’ is called Mystery Man in WP jargon. 😉
Also, Gravatar is an external service and on some config, this can slow down a site. Nothing new, it’s the case for any external service (js, font, cloud, social share, etc)
By using the define, you deactivate the call to external gravatar service, and BP fires a local copy of the mystery man. Deactivating Gravatar will also deprive the people who use the service to get their usual picture on your site. It’s not an innocent decision.
Be aware also that the empty option (in wp default avatar setting) is a blank image (and not an empty space), which is also fired by Gravatar.
World isn’t perfect. 😉
So what appears to be happening is that the Buddybar adopts the slug changes immediately (I’ve just removed the display:none CSS for the main nav tabs on Buddybar to check because I don’t use it).
But the top menu (created via the Menus in WP Dashboard) is where the tabs are disappearing due to the slug changes. Tried with define ( 'BP_MESSAGES_SLUG', 'notes' ); to confirm it wasn’t an isolated effect. All is fine there now though, they just need replacing into the menu via the WP Dash once the slug has been changed and then they appear again.
Are the slugs of subnav tabs changed using the define code too? I haven’t come across it.
Out of interest, have I misunderstood this link where it says the various defines at the bottom are deprecated, or is it just in need of updating? :
Changing Internal Configuration Settings
@fridafric,
plugin is outdated and a support question about how to use it with buddypress is… unanswered.
In the early stage of BuddyPress, countries where included to Core and finally removed around 1.1
Honestly, you have 3 options:
1) wasting time&money to code a plugin or tweaking BuddyPress and a third party plugin (long option).
2) let the user enter his country when asked for (short option).
3) do nothing (optionnal option)
or you can read from here:
https://buddypress.org/support/topic/list-of-countrystatecity/
@mcuk,
- a slug is a human friendly URL. (as of your topic title)
- a tab name or a menu item is just a name, on which applies an URL. (as of your given example)
This means that your tab or menu can be written Cow-Boy and his URL can can be completely different, for example your-site/members/mcuk/amigos/
For consistancy and SEO logic, most prefer the same wording for both.
Related to “friends”, open bp-friends/bp-friends-loader.php and see how it works.
You will discover that
// Define a slug, if necessary
if ( !defined( 'BP_FRIENDS_SLUG' ) )
define( 'BP_FRIENDS_SLUG', $this->id );
is not deprecated.
In other words, to change the slug, you can use from within bp-custom.php
define ( ‘BP_FRIENDS_SLUG’, ‘whatever’ ); whatever should be exclusively alpha numeric, lower case, without any special character or ponctuation.
To modify tabs and menu items, simply use the language file.
Customizing Labels, Messages, and URLs
Hi, this might answer some of your q’s:
BuddyPress Components and Features
Hello there,
I am totally new to BuddyPress, I have done some research but still can’t find all of my answers. So here I go:
1. Is it possible to have the BuddyPress “Home” once logged in look like the one of Facebook or Twitter? Well, so that it shows activities based on the people you follow or are friends with.
2. Is it possible to follow or send a friend request to a Member?
3. Is there a Hashtag System in BuddyPress?
4. Can you tweet or update your Status, if yes can you also add Images or Videos?
5. Can a regular User create a Group?
If you know the answer is yes, can you please tell me how? If you know that any answer is No, do you know any third party Solutions?
Thank you very much.
Hi all,
From what I have read on numerous forum threads and in the codex, the simple code below for changing slugs is now obsolete:
define ( 'BP_FRIENDS_SLUG', 'peeps' ); Deprecated
Changing Internal Configuration Settings
Is there a way (or a way on the way) to enable the changing of slugs? The person in this thread below had to change the core files (which has its obvious downsides).
https://buddypress.org/support/topic/change-group-member-slug/
So is altering the core files to change slugs (in my case the ‘Friends’ slug), the only way to currently change slugs without creating your own pages and loading the screens desired onto them?
To investigate further, I thought it might be worth running the Repair Forums tools (/wp-admin/tools.php?page=bbp-repair). These completed successfully with three exceptions:
“Recalculate the position of each reply” – This spent a long time processing, then gave a 502 Bad Gateway error
“Remap existing users to default forum roles” – The page went blank
“Remove trashed topics from user favorites” – This gave a SQL error the first time and completed the second time.
I wondered if the “Repair BuddyPress Group Forum relationships” option would help. When I ran it I got the message: “Repairing BuddyPress group-forum relationships… Complete! 0 groups updated; 0 forums updated; 0 forum statuses synced.”
After doing all that I created a new topic as a test and again after publishing it I was taken to a different group.
Until today, everything’s been fine, but now whenever I have Buddypress active, the theme customizer just sits there trying to load and never does. It does this on every theme I have installed as long as Buddypress is network active.
I had read that plugins can cause this kind of issue so I went through my list, one by one, and found that it was Buddypress causing this. It started happening seemingly out of the blue.
Any ideas as to how I fix this?
Thanks @henrywright! I’ll stick with add_filter('bp_core_fetch_avatar_no_grav', '__return_true'); then if it’s all I need to stop the Buddypress calls. What is it that WordPress calls for? Are you referring to the default ‘white figure on grey background’? Or does WordPress also check for a Gravatar in similar way to Buddypress. (I don’t currently use Gravatar).
Hi @djsteveb , I came across some of those posts you listed which is actually what got me thinking about it in the first place :). I’m trying to be as transparent as possible on user privacy/data on the site I’m creating. Searched the forums a little further and some of the threads are v old so thought I’d check if the stuff there was still applicable or had been deprecated.
Hi @danbp, thanks for the plugin suggestions. I’ve come across a few Buddydev plugins and will probably use their ‘bp-activity-comment-notifier’ plugin since they aren’t part of Buddypress default currently. Trying to keep plugins to a minimum early on.
With regards to the ‘bp-avatar-suggestions’ plugin (which you appear to have inspired), does that override any WordPress calls Henry mentioned above since you are using your own locally stored images? (similar I guess to the new user Twitter eggs)?
Thanks for the replay @danbp. I’ve gone through everything you’ve suggested and can’t seem to find anything amiss:
When group component is activated, you should have a page assigned to groups. Ensure this page exist, without any content , page template or parent page. Just a page with a title.
I believe I’ve done this – if I go into Settings > BuddyPress > Pages then next to ‘User Groups’ there is a ‘Groups’ page defined and if I click on ‘View’ I see the link works. I’ve also checked the page and confirmed it’s blank and doesn’t have a parent or template.
Don’t forget to allow group forums in bbpress forum settings
I’ve got “Enable Group Forums – Allow BuddyPress Groups to have their own forums” ticked.
and to assign a group forum page, which should not be the existing Group page of BP.
Is this the ‘Group Forums Parent’ setting underneath ‘Enable Group Forums’? If so that is set up and it is not the existing group page.
On front when you create a new group, you create first the group. In one of the creation steps, you can check “allow this group to have a forum”. Then you save this. Once saved, you will see that the group name appeared in the select box. You must save this again to definitely activate a forum to this group. Same can be done by accessing group settings > forum tab.
Resume of creating a group with forum
enter a group name and description, check allow forum. Save. Select bow must contain the new group name. Save again.
These are the steps I have followed to set groups and forums up. I have also gone into all of them and checked they have “Yes I want this group to have a forum” ticked and the correct forum is selected; they all do.
And yet still I keep encountering the problems I described in my first two posts.
define( 'BPLANG', 'pl_PL' );
if ( file_exists( get_template_directory() . '/languages' . '/buddypress-' . BPLANG . '.mo' ) ) {
load_textdomain( 'buddypress', get_template_directory() . '/languages' . '/buddypress-' . BPLANG . '.mo' );
}
Search your theme documentation about CSS modification and how to use a child-theme.
From within the child, you can then modify CSS without loosing your changes after a theme or a BP update.
Read also BuddyPress documentation:
BuddyPress Theme Development
there is no result
that’s because you use a wrong file name.
The language file must be named “buddypress-zn_cn.mo”
If WP site language is set to chinese (general > settings if on a single install), buddypress will aotomagically upload the avaible chinese translation.
Search also this forum if you need more information, they’re many topics related to translation.
Thank you very much for your answers!
last question, i’m download file buddypress-2.2.x-zh-cn.mo and buddypress-2.2.x-zh-cn.po
This translated into Chinese. As they install to the site?
I tried to throw files in – /wp-content/languages/plugins/
but there is no result….
Thank!
Thank you for the information.
BP dev’s already handled this issue.
BuddyPress 2.2.3 – Security Release
Latest updates avaible:
WordPress 4.2 & BuddyPress 2.2.3.1 & bbPress 2.5.7
As usual, you’re invited to update your install as soon a security version is avaible.
hi all i dont know how widespread this is and if it effects anything buddypress related, if this has been posted in the last week or so i apologize as i havent been around, this was just brought to my attention via an email from code canyone where i have a few premium plugins
THE BELOW ARTICLE WAS PUBLISHED ON THE 20TH OF APRIL AT SECURITY ADVISOR
Multiple WordPress Plugins are vulnerable to Cross-site Scripting (XSS) due to the misuse of the add_query_arg() and remove_query_arg() functions. These are popular functions used by developers to modify and add query strings to URLs within WordPress.
The official WordPress Official Documentation (Codex) for these functions was not very clear and misled many plugin developers to use them in an insecure way. The developers assumed that these functions would escape the user input for them, when it does not. This simple detail, caused many of the most popular plugins to be vulnerable to XSS.
To date, this is the list of affected plugins:
Jetpack
WordPress SEO
Google Analytics by Yoast
All In one SEO
Gravity Forms
Multiple Plugins from Easy Digital Downloads
UpdraftPlus
WP-E-Commerce
WPTouch
Download Monitor
Related Posts for WordPress
My Calendar
P3 Profiler
Give
Multiple iThemes products including Builder and Exchange
Broken-Link-Checker
Ninja Forms
this is a link to the article
https://blog.sucuri.net/2015/04/security-advisory-xss-vulnerability-affecting-multiple-wordpress-plugins.html
@arturamirov,
you can translate online from here:
https://translate.wordpress.org/projects/buddypress/2.2.x
BP zn_CN is translated to 46%, Ukrainian is actually not translated.
You can contact the chinese team here
Translation Teams
and the ukrainian here
Домівка
Henry already provided you other information you have to read now.
@caniwigirl,
what happens probably is an ajax issue, due to some missing or old class and/or ID names.
Compare at first your (custom or third party) theme page.php with the one coming with Twenty theme. Compare also js versions of your custom theme to Twenty’s one…
Difficult to say from here. 😉
@bewitchingfiction,
do you have a page called groups in your page admin and is this page showing on BP settings page tab ? Have you pretty permalinks activated ?
If page exist, which is the slug you see ?
If you have several trashed pages, specially if some related to groups, clear the trash definetly.
Handling with themes is much more easy today as a few years back. Many things have been modified and as you probably know, BP is now theme independant, under condition you use a theme respecting WP standarts.
All theme files related to BP are now in bp-templates/bp-legacy/buddypress.
See Codex for more details about how to use it.
Hi,
i suppose you know the word none ?
You must create those pages. 😉
Codex is your friend:
Configure BuddyPress
Thanks @danbp
I’ve just tried it on twenty thirteen (the latest update yesterday) and the groups work perfectly, even for my test user who is a forum participant and contributor for WordPress AND member of two hidden groups. I had tested it previously, but it did’t work on the previous version of the theme. I didn’t even have to deactivate any plugins.
I then tested it with all the themes from 2011-2015 and they all work too.
So… It looks like I need to take this back to my theme developers… Can you please give me so info that I can relay to them so they can get the hidden groups displaying correctly? Or, is it possible to copy the appropriate BuddyyPress files from one of the WordPress themes and put it somewhere in the child theme of the theme I am using? If so… Which ones and where would I find them?
The theme I am using integrates BuddyPress in it, but not in any great detail.