`
<?php
/*
Template Name: Who is online
*/
?>
<?php
get_header();
if ( bp_has_members(‘type=online&per_page=30’)) : ?>
-
<a href="”>
<?php
$image_status=””;
if(is_user_online(bp_get_member_user_id())){
//$user_info = get_userdata($postcontent);
$image_status= ‘
‘;
}
else {$image_status= ‘
‘;}
echo $image_status;
?>
<a href="”>
–
<?php
/***
* If you want to show specific profile fields here you can,
* but it’ll add an extra query for each member in the loop
* (only one regadless of the number of fields you show):
*
* bp_member_profile_data( ‘field=the field name’ );
*/
?>
`
The devil is in the detail if asking for help, please provide it initially rather than us having to ask for it!
== I set up a membership setup page with custom fields? ==
Is this via a plugin or did you mean the fields you added in BuddyPress > Profile Fields?
What do you mean by “none of the info she input in the fields is available”? Doesn’t show up when you open up her profile page? What theme are you using?
BP/WP versions? What theme are you using? What plugins are activated in your installation?
I set up a membership setup page with custom fields? The member set up her account but none of the info she input in the fields is available. Where did it go?
okay, I gave up trying to do this from WordPress, and now have a custom field via Buddypress custom fields – but the field is editable by the user, I’d like it to be editable only by admins – is this possible?
Thanks.
Thank you very much, @shanebp
Works perfectly.
You are a savior 
You want to not show profile fields on the profile pages for non-members ?
Try this – it should not show profile fields for users who are not logged-in
In /your-theme/members/single/profile/profile-loop.php
At the very top, replace this:
`
`
with this:
`
`
At the very bottom, replace this:
`
`
with this
`
`
Sure, it solves the problem, but for web site like our, people need to browse it as anonymous and then decide whether to register or not.
Closed web sites are for closed communities, and we are widely open community 
Wouldn’t locking the whole community to unregistered users solve this? You leave profiles open and then just stop anonymous users from looking?
Thank you for the advise, @neiloughton.
I know that the plugin can restrict from all and allow only friends, but best for our web site is to show information to all registered users and hide it from anonymous and bots
People are searching in our web site for o-negative blood donors and after they register, they should be able to see the information without becoming friends.
It is a matter of urgency and the minutes count.
I know the plugin which you suggest, but that doesn’t work with our type of community.
Hello,
Within that plugin you can set it (without having to modify the plugin) to just to friends, private or public, this is done from within the plugin page within wordpress, this then allows the user to chose on the front end.
I might also suggest,
http://bp-tutorials.de/2010/09/private-buddypress
This plugin makes your whole install private to non logged in users, thus creating another layer of privacy.
I hope this helps somewhat.
Hi everybody,
I’m in love with and I use BouddyPres from quite a long time on two web sites, and only two days ago I noticed that my profile fields are visible even to anonymous on both of the web sites.
Isn’t BoddyPress hiding by default those fields from non logged-in users?
I’m using last versions of WordPress (3.3.1) and BuddyPress (1.5.5).
onegative.org is on windows server,
bulgarians.co.za is on Apache.
I managed to modify @modemlooper “BuddyPress Profile Privacy” plugin, to hide the fields on onegative.org from everyone, but that is not good.
Can someone advise on the problem or help me to modify the above plugin, so it hides the fields only from anonymous until BuddyPress 1.6 is out with the new profile fields feature.
Thank You!
>You cannot use PHP in the button url field, only HTML.
You mean the onClick parameter?
Why not? Something like
`
global $bp;
$this_url = $bp->loggedin_user->domain . ‘profile/edit/group/1’;
<input type=button onClick="location.href=''” value=’edit profile’>
`
I prefer to use this approach
`
<a id="some-other-value" href="” title=””>
`
If you want to include a nonce, it’s a bit more complicated.
Hey VeeBee and karmatosed
Just to update – I made a page template and copied and pasted the contents from register.php into the template file, nothing showed up, then i changed put this on top of the template file:
`<?php
global $bp;
if(empty($bp->signup->step))
$bp->signup->step=’request-details’;
?>`
as mentioned here http://buddydev.com/forums/topic/move-registration-to-index-page#post-4235
and the form shows up but the profile field with Name does not, and after inputing data into the fields that do show up and hitting Complete Sign Up just redirects me to the same page.
Here is the page : http://lcfacademy.com/registeree/
I found this plugin to also be helpful, particularly at identifying the field names very clearly.
https://wordpress.org/extend/plugins/navayan-csv-export/
Simply install, go to tools, find the wp_bp_xprofile_data and wp_bp_xprofile_fields and export.
Actually with that info you can do quite a bit. But I think the profile fields is a great reference to complete the code array( above.
Warm regards,
BJ
Hello,
Im trying to redirect to a persons profile via the url section. But this throws an error…. Here is what i want to use;
http://mysite.com/members/%%current_user_login%%/profile/edit/group/1
Any ideas?
Hi @mercime, thanks! I will try that tonight!
The profile labels and data are rendered in table rows. You could copy over the profile-loop.php file to your child theme folder /themes/childtheme/members/single/profile/profile-loop.php and change the table/rows/columns into divs/spans etc.
Hi guys,
Buddypress is amazing given its features and clean look. Just what I was looking for.
I am using the extended profiles extensively *no punt intended*
But I require some rearrangement of the fields.
Presently, the fields are arranged as Labels on the left and the details on the right aka table format.
Name : text text text
Age: text text text
About Me: text text text
Is there anyway to make the labels on top of each detail?
Name :
text text text
Age:
text text text
About Me:
text text text
I have some fields that will have long text and with label on the left and content on the right, it just doesn’t cut it.
Any help will be appreciated! 
Is there any reason why you can’t have both/all fields on the initial signup and let the user choose which they complete? Fields required to display on registration need to go in the ‘Base’ group.
it is possible to make 2 different registration pages with different feilds on each of them, such as 1 for individuals where there must be name, address etc and one for firms where there is room for vat number and what kind of work you are doing? I can see that you can create a new group inside prosile feilds but I can not get group 2 until the registration site
best regards Bent C
@aces
I do not want to completely turn this off. Instead, I want to disable this only for specific profile fields. How can I do that?