Have you tried the WP members only plugin?
https://wordpress.org/plugins/buddypress-members-only/
This will restrict your whole website also to members only.
If you want to just restrict one part of the website, I can help you build a simple function to do this.
What does the link look like
http://www.example.com/groups/blah blah blah ??
Is that what you are trying to block non mebers access to?
I’m looking for something similar, however I want completely separate forms. I can see how to edit the registration page to only show the fields I need as I customised this to my requirements already. My problem is that I want multiple pages with separate forms on them as this would allow me to code them differently to my needs. When I have put the BP registration form code into a custom wordpress page template, this doesn’t display the form fields as it clearly isn’t recognising the BP specific code within the template.
I’m unsure of where to go with this.
Edit: I can get the form to show up now, but when I submit the form, it just reloads the page without registering the new user.
If you’re using BP 2.2 +, you should use this approach instead:
Post Types Activities
My cpts appear.
However, comments on them do not appear in the activity stream.
Perhaps because I didn’t create a component for those cpts – I hope that is not the case.
Hopefully this ticket will provide an answer.
Hi @nkeatign
Looking at the code snippet in that thread, wp_get_attachment_image_src() is used to get the array of info. The 2nd param is size so you can utilise that to get the large version. For example:
$theimg = wp_get_attachment_image_src( get_post_thumbnail_id( bp_get_activity_secondary_item_id() ), 'large' );
Note: you could also use medium or full if you wanted.
Ref: https://codex.wordpress.org/Function_Reference/wp_get_attachment_image_src
This might help you, dont know myself but looks like it is adjustable to do what you need.
Xprofile search
Thanks for the info, I am actually new to WordPress and have not looked through all the functions. I have only built custom queries on custom tables on my own website that I am currently developing.
I have tried wordpress in the past but then switched to other platforms as they was more adequate for my goals.
But right now I am sticking with wordpress and building a new website :),
I’m more use to sources and templates, scripting from scratch.
Out of curiosity, which one is better on performance? A straight up query OR the function above.
If there is security concerns with using a query, apart from sanitisation which I know and use on every custom table, then that info would be good to know also.
Thanks.
Edit, I would like to report a bug in your software, even though you posted this reply I got a notification for a reply in the first topic I made. I had no idea you replied to this other than looking through the latest list of topics.
Here is a screen shot
target=”_blank”>https://i.imgur.com/wxSgfsG.png
Here is the topic in question that I got the notification for which only has 1 reply, but was from other topics.
https://buddypress.org/support/topic/how-do-i-remove-textarea-resize-without-editing-the-js-script/?action=bbp_mark_read&topic_id=236164&_wpnonce=d849ee20f9#post-236164
Hi,
The pro version of this plugin works with BuddyPress:
https://wordpress.org/plugins/sp-client-document-manager/
Hey folks,
So, I’m currently running the latest version of WordPress and Buddypress. The site uses a subdomain but it has its own directory. Everything seems to be working right, except that the titles on my BP pages don’t display my site’s name.
Every other area of the site works fine, in terms of displaying the name of the page and then the name of the site, except for the BuddyPress pages. Here’s an example:
http://pro.indylist.net/activity/
I’ve tried disabling every other plugin, I’ve tried changing to a different theme, but nothing works. I’m capable of modifying code of different parts, so I’m willing to try anything.
I’ve also searched the site and Google to the best of my ability but haven’t made any progress. Hope someone can help!
@aljo1985
WP provides a function for getting users. No need for custom sql.
https://codex.wordpress.org/Function_Reference/get_users
@xidea
Have you tried
bp_has_members( bp_ajax_querystring( 'members' ) . '&type=newest' )
Members Loop
Just do a select query to the wordpress database. and echo the results.
// Query
global $wpdb;
$rows = $wpdb->get_results("
SELECT id, display_name
FROM " . $wpdb->prefix . "users
ORDER BY id DESC LIMIT 20"
);
// Show 'em...
foreach($rows as $row):
echo $row->display_name;
endforeach;
Just change limit, to how many you want to display and DESC to ASC for order.
Enjoy, my last post!
Hi @landwire
This isn’t possible right now, but it’s a great idea. You should open a feature request on Trac to see what the core developers think.
Hi @joenyland
You will need to use validation. Validation is a way of checking what information is received from the user before it’s saved to the database. This can be achieved via a filter such as bp_signup_validate.
For more info on filter hooks in WordPress and BuddyPress, check out this article:
https://codex.wordpress.org/Plugin_API/Hooks
Spam is an endless plague… and there is no radical solution, but only a set of combination for minimizing it, or at least to slow down that phenomenon..
For example, changing the default wp_ table prefix is a good practice which i would recommand to any site owner touched (or not yet) by spammers.
Even if you already use another prefix, but spammers found your site, you have to modify it again. Sounds a bit stupid, but the gain will be effective for a while.
Other tips are avaible on WP Codex.
In some case, you would prefer to use a plugin. See BuddyPress Registration Option.
But in any case, you have to found your own combination.
Hey guys, Im running with Valenti theme by cube, and basically they set it up so that users have everything they need to configure their profile on the front end. Im wondering if there is a way to hide the tool bar for logged IN users? The tool bar allows these users to get to the wordpress dashboard and it kind of takes away from my websites experience. Any help would be appreciated! thanks.
Firefox > View > Page style > No style – does show the Search box and I could search.
So it is a theme and css issue.
Other search box appears fine on that page.
Did you use mcpeanut’s code with success ?
https://wordpress.org/support/topic/seach-box-for-members-does-not-appear-only-the-button?replies=3 – they have said its a BP thing. But they have not said why the BP thing is not being shown by their theme like other themes.
Please post if you solved this. BTW what is the left side bar widget named “Activity” in your site? Its nice. Thanks.
‘
Oh..so anyone vieweing my site will need to sign into wordpress? I wanted the wordpress backend to remain hidden
And what is the problem ? With or without BuddyPress, you login to WordPress. 🙄
Perhaps reading this will help
Register and Activation Pages
On my member page, there is a search button, but no place to click and type the search.
Members
WordPress 4.1.1
BuddyPress 2.2.1
Hueman 2.2.2 Theme
So I’m using BuddyPress with Truemag. I want to just show a simple username, password login form – I don’t want it to be redirected to the WordPress login.
I’ve put the BuddyPress login menu item in my TrueMag menu – but when I click on it, it asks me to log into WordPress right now
As stated by the plugin decription:
The JavaScript file “refresh.js” will send every 10 seconds an ajax request to wp-load.php to get the new activities.
If you still have trouble after 10 seconds, you preferably ask about this on the plugin support.
Note also that the plugin is compatible up to: 3.8 / 1.8.1 so it may no more work today !
SPQR !
Sorry, info as follows:
Wordpress: 4.1.1
Buddypress: 2.1.1
I’m developing it on localhost, so no website link yet.
bp-languages folder doesn’t exist in BP 2.x
If your WP use hungarian language, when you install BP, the BuddyPress translation comes automatically from translate-wordpress.org into wp-content/languages/plugins/, which contains also by default the askimet translation.
Also, php gettext use the compiled mo format to show a translation. The po file is only used to translate.
Much more about translation in this topic.
Hi
I want to show a customized login form instead of the WordPress login, which is what is currently shown when the default Login menu item is used. Please help.
Best regards
Aditya