Search Results for 'profile fields'
-
AuthorSearch Results
-
May 25, 2010 at 2:54 am #79548
In reply to: Hide some profile fields
mrjarbenne
ParticipantHere’s that plugin I was referring to: https://buddypress.org/community/groups/bp-profile-privacy/
May 24, 2010 at 10:48 pm #79522In reply to: Extended Profile Fields Tag Cloud
Tim Bowen
ParticipantAnybody have a good idea how to make this happen?
May 23, 2010 at 5:29 pm #79347rich! @ etiviti
ParticipantBP can’t fill every feature gap nor everyone’s wishes – why plugins are created. Sure this can be easily done with bypassing some of the xprofile data (or create your own fields) and hook into the wp_usermeta first/last name. (even though xprofile is syncing that data)
May 23, 2010 at 3:18 pm #79336peterverkooijen
Participant@thelandman, in my solution I use javascript to generate the username from the weird semi-optional xprofile fullname field, hide the username field on the form, use the email login plugin so members don’t need the username to log in, add more custom code to synchronize the fullname and the fullname-derived username to all the various similar fields in the database, etc. It’s messy, but somewhat workable.
The point is that it should not be that hard. Using full names, Firstname Lastname, should be part of the core. Seeing that none of this is fixed in 1.2+ and probably will never be fixed, I have no plans to upgrade to newer versions of Buddypress and will continue developing my version as a fork, more suited for professional and business use. If anyone is interested in working with me on that, please contact me directly.
May 23, 2010 at 2:49 am #79263In reply to: Hide some profile fields
mrjarbenne
ParticipantI use a Profile Privacy plugin created by http://www.jfarthing.com/. Sadly, the link to the plugin in my dashboard comes up 404 in the wp repositorty, and I can’t seem to find reference to it on his site. That said, the plugin allows for you to manage who can see certain fields in the profile (everyone, friends, user). When profile fields are set to “user” only the user and the site admin can view the info. Perhaps an attempt to contact jfarthing will met results. Good luck.
May 22, 2010 at 8:45 pm #79237In reply to: Extended Profile Fields Tag Cloud
Psyber
ParticipantI would use this, cool idea.
May 22, 2010 at 4:52 pm #79208In reply to: Hide some profile fields
nickmy
Participantplease its important
May 21, 2010 at 4:48 pm #79090In reply to: Issues with adding a new profile field group!
Hugo Ashmore
ParticipantNot sure it will be that simple you may have to loop out the whole section in other words replicate the code that the line refers to but changing the id for the newly copied code so you then had all groups being displayed.
To be honest unless there is real compelling reason for a new group of fields I would simply add the new field to the ‘Base’ group. If it’s important for registration I think it’s better added to the base group and set to ‘required’.
May 20, 2010 at 4:55 pm #78996In reply to: Saving Selection Field Issue
acreifi
ParticipantThe problem:
multiselectboxfields cannot be saved by trying to save profile of a user.the errror-message:
“There was a problem updating some of your profile information, please try again.”is still present in buddypress 1.2.3 and wordpress 2.9.2
I need this function for releasing a webside !!!!!
May 20, 2010 at 1:57 pm #78975Boone Gorges
KeymasterHi @pollyplummer. You have basically got the right idea, but there are a few problems.
First, your check for usermeta is not formatted correctly. See https://codex.wordpress.org/Function_Reference/get_usermeta for get_usermeta syntax. In any case, get_usermeta gets stuff from the wp_usermeta table, and I used it as an example in my code to give you a sense of the kind of check you’d want to do. But that’ll only work if you’re checking against a piece of data that is stored using update_usermeta. BP xprofile fields are not. If the “114” information is stored in a bp xprofile field, you will probably have to do some magic with xprofile_get_field() to get it to work. The following will check for a field called “Type” and check to see if the current user’s Type value is 114:
$field_id = xprofile_get_field_id_from_name( 'Type' );
$field = xprofile_get_field( $field_id );
$value = $field->data->value;if ( bp_the_profile_group_name() == 'awesome' && $value == '114' ) {
There’s probably a slicker way to do this, but it works. Again, this is only relevant if you’re storing the salient data in the xprofile tables.The second problem is that you don’t want to repeat the bp_has_profile etc stuff inside of the if statement. If you want to feed a profile_group_id argument to bp_has_profile, you should do it in the initial loop.
Then make sure that you include the markup inside of the conditional if statement. In edit.php, that means everything, including the
May 19, 2010 at 5:21 pm #78875Boone Gorges
KeymasterMay 19, 2010 at 5:19 pm #78873rich! @ etiviti
Participantnot ideal… but may help for the time being (at least get to the buddypress profile page to perform the edits)
this will add a ‘view bp’ link to the buddypress profile when viewing the user list within the dashboard
http://blog.etiviti.com/2010/02/add-a-view-buddypress-profile-link-in-wp-admin-users/May 19, 2010 at 5:12 pm #78872In reply to: How to manage users & their extended profiles?
mazen
Member@boonebgorges thanks for your response and plugin link, in terms of functionality it is almost exactly what I need, only:
– Need it to manage users instead of groups
– Need it to show their full profile fields (including xprofile)
– Need options to deactivate(very important) or delete users
– Need function to export list to excel sheetMay 18, 2010 at 11:34 pm #78794Boone Gorges
KeymasterInside of the while( bp_profile_groups() ) loop for each member, check to see if bp_the_profile_group_name() is one that should be displayed to that particular user. In other words, put the template markup inside of a big conditional:
if ( bp_the_profile_group_name() == 'awesome' && get_usermeta( $bp->loggedin_user->id, 'awesome_user' ) ) {
// Show the profile fields in the 'awesome' group only for those users with the usermeta 'awesome_user'
}
Do that for each user type and each profile field group. Only the right stuff will be displayed; groups not meeting the criteria will be hidden.
May 18, 2010 at 9:55 pm #78776Paul Wong-Gibbs
Keymaster@bofw Ah, there you are. Was wondering when I’d find your username on here.
Sarah – are you trying to hide particular fields, or field groups, on the ‘edit profile’ page?
May 17, 2010 at 4:08 am #78461In reply to: BP 1.2 : problem with bp_profile_group_has_fields()
John James Jacoby
Keymaster@grosbouff For the purpose of your plugin, bp_profile_group_has_fields gets in the way. The purpose of bp_profile_group_has_fields in the default theme, is that it will skip over any group of fields that have no values filled in when inside the profile loop.
I think what you want to use is bp_field_has_data().
I also don’t think that this is a bug. All of those functions are doing exactly what is expected.
Can you explain in more detail what you need these functions to do?
May 16, 2010 at 9:23 pm #78400In reply to: How to add special custom field into the profile?
JohnnyPea
ParticipantI was hoping I could add fields(as I can to standard WP profiles through edit_user_profile/show_user_profile hook) and store the values to the bb xprofile tables without modifying the core files.
Could you suggest the way how can I add the usermeta fields into bb profile Public and Edit pages and store the values to the standard usermeta table when I hit “Save Changes” button?
May 16, 2010 at 10:39 am #78353In reply to: buddypress.org: Location in the profiles
Philipp
ParticipantHi!
It seems to work great. But I still have problems to integrate it into the profile_loop.php.
It tried it with a table and without….?! I just want to show it on the right side of the profilefields.
And is it possible to use it with two cobinated profilefields?Thanks a lot for your help and greetings from Jerusalem!
Philipp
May 15, 2010 at 8:08 pm #78321Arx Poetica
ParticipantFound it! I love it when I answer my own questions. ;p There’s a whole commented-out section in the members-loop.php section that details how to do it. Lovely!
May 15, 2010 at 6:57 pm #78314Arx Poetica
Participantugh, it didn’t insert my code… let me try that again…
bp_profile_field_data(‘field=Biography’);
May 15, 2010 at 1:28 pm #78289In reply to: How to add special custom field into the profile?
Boone Gorges
KeymasterWithout a lot of custom coding, I don’t think you’re going to be able to make this work with xprofile fields. Those fields can only store data when they have been defined in the wp_bp_xprofile_fields table, but if they’re dynamically generated, that’ll be hard to do. It might be more straightforward to save the data as usermeta.
I guess I’m assuming that you want to save the field data in the bp database tables. Or are you just hoping to display the checkboxes on the profile page, and have them handled by another script?
In either case, as long as you can add fields to the profile page (which you could do either by hardcoding or hooking to the edit screen at bp_after_profile_field_content), you should be able to grab the $_POST data after xprofile edits are saved (at xprofile_screen_edit_profile) and then do whatever you want with it.
May 14, 2010 at 9:17 pm #78221In reply to: How does “Current Location” work in Profile Fields?
Psyber
ParticipantI would like to know as well.
May 14, 2010 at 8:23 am #78120In reply to: What do your spam signups look like?
Nick Watson
Participant@stwc and everyone else.
I’ve been experiencing problems with spammers constantly, I would get about 11 a day, (at the minimum). I’ve tried several things, reCaptcha, email activation, email domain blocking, etc etc and nothing seemed to help with the bot spammers.
All they were doing was creating users with a few profile fields filled out, so there was no big issue, it was just annoying seeing so many fake users on the site.
So all I did out of the suggestions here was enter the code provided for the .htaccess file :
# BEGIN ANTISPAMBLOG REGISTRATION
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .yourbpsignupslug*
RewriteCond %{HTTP_REFERER} !.*yourhomedomain.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) http://die-spammers.com/ [R=301,L]
# END ANTISPAMBLOG REGISTRATIONAnd it seemed to have worked. For the signup slug, I used wp-signup.php. And so far, for about a day and a half now I’ve only found 1 bot spammer. Drastically reduced, but not quite fixed.
But we’ll see. I’ll post back if there is any change, or after a few days of no spammers.
May 13, 2010 at 6:00 pm #78036In reply to: Group members not showing up
Kent
ParticipantI was also having this problem in clean installs of WP 2.9.2 + BP 1.2.3. I finally tracked the cause down to this: https://trac.buddypress.org/changeset/2882/trunk. Basically there’s a defect in the script that inserts the initial row into the xprofile fields table (wp_bp_xprofile_fields). A workaround (if you have SQL access) is to run these 2 statements:
ALTER TABLE wp_bp_xprofile_fields modify order_by varchar(15) not null default ”;
INSERT INTO wp_bp_xprofile_fields (id, group_id, parent_id, type, name, description, is_required, can_delete)
VALUES (1, 1, 0, ‘textbox’, ‘Name’, ”, 1, 0);After I executed those statements, it shows my group members.
Note that the changeset also added a default for order_by, so I’m guessing that caused problems as well.May 13, 2010 at 9:52 am #77960In reply to: some members’ profile data display incorrectly!
fox3man
MemberVery confuse now! I got three more members sign in last 15 minutes. They came from SPAIN with same IP address, also strange input in home town and interest fields. I just go over the member list, these strangers are not just from TEXAS, they came from FLORIDA, NETHERLANDS, GEORGIA, SLOVAKIA, NIGERIA and CANADA.
-
AuthorSearch Results