Search Results for 'profile fields'
-
AuthorSearch Results
-
July 27, 2011 at 12:04 am #116983
In reply to: Only members get profiles
christophg
MemberOn this same vein, can I make free members get a different registration form. Lets say with just the “base” profile fields to fill out for my records?
July 26, 2011 at 8:02 pm #116965In reply to: Member search alphabetical order
lpryor
ParticipantYes, the ordering should be on name. But it should search on the other fields, surely? The way it does when you order by recently active, say?
Currently (straight out of the box default theme) it applies the search terms to all the extended profile fields if you order by anything other than alphabetical. If you order by alphabetical, it applies the search terms to the name only.
So if you keep the same search terms, but choose a different ordering, you get different members showing. This is counter intuitive, to say the least.
July 25, 2011 at 8:54 pm #116909In reply to: french date in profile fields
drhoussem
Member???????
July 25, 2011 at 8:53 pm #116908In reply to: french date in profile fields
drhoussem
Memberany replay?
July 13, 2011 at 10:24 pm #116265gregfielding
ParticipantThanks Paul – that works great.
You mean on all fields? I don’t think it would hurt anything…
July 13, 2011 at 10:08 pm #116259gregfielding
Participant@djpaul
That did the trick of adding rel=”me” – but now none of the other profile fields show.July 10, 2011 at 4:36 pm #116085In reply to: Profile fields for specific user roles
neontrauma
MemberHi,
thanks for your reply! I installed that plugin and found it quite confusing. So it did’nt work immediately; I’ll have to spent some time with it this evening.
July 8, 2011 at 10:40 pm #116023In reply to: Is it possible to make some profile fields private?
tnd
MemberAlright, thank you!
July 8, 2011 at 8:50 pm #116012In reply to: Is it possible to make some profile fields private?
danbpfr
ParticipantMaybe this can help ?
https://buddypress.org/community/groups/creating-extending/forum/topic/hide-profile-field/
https://buddypress.org/community/groups/bp-profile-privacy/
http://bp-tricks.com/snippets/displaying-certain-profile-fields-on-your-members-profile-page/also remember that privacy controls don’t apply to Admin. Admin can see everything. Log in as a regular user and then test.
July 8, 2011 at 8:13 pm #116010In reply to: Is it possible to make some profile fields private?
tnd
MemberI hate to bump, but…any ideas?
July 8, 2011 at 8:08 pm #116009Nahum
Participant@gregfielding are you not wanting to use dropdown select for any reason? instead of using checkboxes/radio? Can you have more than one role? If you only need one role per user, why not use dropdown xprofile field and make it required at sign up?
July 8, 2011 at 6:14 pm #116000gregfielding
ParticipantAs a work-around, I wonder if I could use this plugin https://wordpress.org/extend/plugins/buddypress-xprofiles-acl/ to assign roles based on the profile field answer.
Then I could more easily show different sidebars depending on roles.
Not the cleanest way to do it. Has anyone else had trouble with checkboxes?
July 8, 2011 at 4:34 pm #115991gregfielding
Participant@pcwriter @johnjamesjacoby
Yup. Bug is definitely still there. Nice find!July 7, 2011 at 11:28 pm #115954pcwriter
ParticipantOops… forgot the link

https://buddypress.trac.wordpress.org/ticket/2685July 7, 2011 at 11:27 pm #115953pcwriter
ParticipantJust tested the snippet by @nuhammadrid above with a dropdown select and it works perfectly.
I found this old trac ticket (pre 1.2.6) but maybe checkboxes/radio buttons are stilla bit buggy with xprofile_get_field_data
July 7, 2011 at 10:54 pm #115951gregfielding
ParticipantLooks much cleaner, but still isn’t working. I tried using a radio button and that didn’t work either.
What I’m trying to do should be simple

If you are a professional, you get one sidebar. If you are a civilian, you get another. And I’ve got a checkbox on the registration form.
Thanks for all of your help so far you guys…
July 7, 2011 at 10:01 pm #115947Nahum
Participantyet another way to do it, i think…
`<?php
global $bp;
$user_id = $bp->loggedin_user->id;
$type_member = xprofile_get_field_data( ‘Real Estate Industry Professional’, $user_id );?><?php if($type_member == 'Yes')
>
Yes Sidebar
<?php elseif($type_member == 'No')
>
Another Sidebar for this optionSidebar for everyone else
`July 7, 2011 at 9:42 pm #115945Nahum
Participantyea there’s prolly an easier way to go about it. I’ve just copied/pasted/refreshed different combinations til something worked.
I look forward to seeing something simple to use for stuff like this. heheJuly 7, 2011 at 9:36 pm #115944gregfielding
Participant‘if($type_member == ‘Yes’)…`
Either way, even if I create a second function, It isn’t recognizing the profile field.
This seems fishy to me. Is $type_member really the way to call a profile field entry? Or could it be a checkbox issue?
July 7, 2011 at 9:35 pm #115943Nahum
Participantdon’t know what I just did but this seems to work…
`loggedin_user->id) == ‘Yes’) : ?>
Red Sidebar
<?php elseif(is_user_logged_in())
>
Another sidebar
`and you want this to look like this
`//CHECK IF THE ACCT IS CERTAIN ACCT TYPE
function My_Function ($user_id) {
global $bp;
$type_member = xprofile_get_field_data( ‘Real Estate Industry Professional’, $user_id );
if($type_member == ‘Yes’) {
return true;}
}`July 7, 2011 at 9:27 pm #115942Nahum
ParticipantI couldn’t figure out how to display something else…
I guess you could create different functions for each type of field
`loggedin_user->id)) : ?>
Red Sidebarloggedin_user->id)) : ?>
Blue Sidebar
`I wish I knew enough about what all is happening in that piece of code. So that I could make it work the way i proposed. otherwise, there will be a blank sidebar for non logged in users and users who don’t have a xprofile field selected corresponding with those requirements.
July 7, 2011 at 9:18 pm #115941gregfielding
Participant@pcwriter – replacing “Yes” with “1” didn’t work – was that what you meant?
@nahummadrid – yes, that works.July 7, 2011 at 9:14 pm #115940Nahum
Participant`loggedin_user->id)) : ?>
Red Sidebar
`This works though right.
July 7, 2011 at 9:08 pm #115938pcwriter
ParticipantTry using boolean values instead. If you want “Some other sidebar” to display if the box is checked, then the value should be “1”. Worth a try…
July 7, 2011 at 8:59 pm #115936gregfielding
ParticipantThanks @nahummadrid
I think it’s closer but still not working right. It only shows “Some other Sidebar”.
Here’s my code:
`//CHECK IF THE ACCT IS CERTAIN ACCT TYPE
function My_Function ($user_id) {
global $bp;
$type_member = xprofile_get_field_data( ‘Real Estate Industry Professional’, $user_id );
if($type_member == ‘Yes’) {
return true;
} else {
return false;
}
}`I wonder if the issue is that I’m using a checkbox, with the option of “Yes”…
-
AuthorSearch Results