Search Results for 'profile fields'
-
AuthorSearch Results
-
November 16, 2010 at 10:13 am #98388
grezza
MemberHi beraike22
Thanks for this, unfortunately it doesnt really solve the problem. What this will do is allow users to register to a group on signup.
I want to store metadata in a users profile taken from a pre-populated custom field. So that I can use the same custom field to tag posts and therefore establishing a link between users and posts. So if a user says they are interested in science fiction books, then in theory I could present a list of pages tagged with science fiction can be displayed, etc,.. the dispalying isnt the hard part, its creating the metadata which is consistant throughout posts and users.
Thanks for your help
November 16, 2010 at 4:03 am #98374beraike22
MemberNot sure this will help but I just posted another way to get simular results hereā¦
November 16, 2010 at 3:10 am #98369In reply to: admin-editable-only Profile Fields
Simon Arame
ParticipantI’ve encounter the same requirements for a profile field to be editable only by admin that is non-editable by suscribers.
Someone could eventually commit a small plugin that allows this sort of administrative tagging.Outside of buddypress perspective, I end up using wp_usermeta database table with a call to add_user_meta($user_id, $meta_key, $meta_value [, $unique] ) and when i need the info stored i use get_currentuserinfo()
references :
https://codex.wordpress.org/Function_Reference/add_user_meta
https://codex.wordpress.org/Function_Reference/get_currentuserinfoNovember 16, 2010 at 2:44 am #98368In reply to: Adding xprofile fields
ilyarogov
MemberSure. I called xprofile_insert_field() passing in an array with all of the necessary parameters and when I reloaded the page I got “Fatal error: Call to undefined function xprofile_insert_field()”.
November 15, 2010 at 5:50 pm #98322Michel Fortin
ParticipantJeff, what’s the solution then? Or how do we prevent this in the future? I read the ticket, but I’m at a loss. I’m encountering this problem right now, and I had to go into phpmyadmin to correct all the user_nicename fields to remove the -2 at the end. do we simply ask people not to put spaces in their usernames?
November 15, 2010 at 12:33 pm #98293grezza
MemberIm still struggling to find a suitable solution to this, any ideas?
ThanksNovember 14, 2010 at 11:59 pm #98257In reply to: Adding xprofile fields
Paul Wong-Gibbs
KeymasterCan you elaborate on “it crashed the site”, please?
November 14, 2010 at 7:19 pm #98237In reply to: Adding xprofile fields
ashneetg
MemberHey.. Ilyarogov and I are both work on the same project.
To clarify, we are creating a plugin. We will not be using the back-end as fields would be created dynamically on plugin installation.
Thanks
November 14, 2010 at 7:03 pm #98236In reply to: Adding xprofile fields
Hugo Ashmore
ParticipantAnd why are you not simply using the backend ‘Profile Field Setup’ to add new profiles fields for users to complete, is there some particular requirement you have or is this a plugin you’re writing?
November 11, 2010 at 4:09 am #98008In reply to: BuddyPress Spam
pcwriter
ParticipantHumans always fill out required profile fields.
November 10, 2010 at 4:05 am #97926In reply to: Profile Custom Fields
LPH2005
ParticipantWe should add more to the codex about profiles…. I’m tied up for a few days. If not tackled by Thursday then I’ll add a page with some text and links to questions (with answers).
November 10, 2010 at 4:00 am #97924In reply to: Profile Custom Fields
teebes
ParticipantOnce the fields are populated by a user, they will show up within their public profile page.
November 10, 2010 at 2:01 am #97919In reply to: Bug: Register Still Skips Required Fields
junger
ParticipantHi, I’m still seeing this issue. Not so much on the spam side, but I’ve got a field that is set to be required that isn’t actually required in order to sign up.
It’s in a 2nd group of profile fields, if that matters. Here’s the relevant code, which should be working … but isn’t.
http://pastebin.com/Gq5Ay5fHNovember 10, 2010 at 2:00 am #97918junger
Participant@jvoss — are any of your fields required? If so, are they actually forcing users to fill them out?
I was able to add my 2nd and 3rd profile fields to registration, but the “required” fields can be bypassed without filling them out.
November 8, 2010 at 7:15 pm #97754In reply to: Profile Fields for GROUPS
Andrew Tegenkamp
Participant@EvanBerard ~ I hope this helps, but if not, let me know and I’ll see if I can help some more. The code is certainly not ready for prime-time but does give the ability to add profile fields for groups in Buddypress. You have to know your way around the code a little to understand what is going on though. You can see loader.php @ buddypress-group-fields.php @ http://pastebin.com/DfxwhLXU and compare it to my starting point which is the BP Group Extension API in the BP Codex @ https://codex.buddypress.org/developer-docs/group-extension-api/ to see what I’ve done, which isn’t much, but hopefully it helps you a bit! The ZIP is online for now at http://dl.dropbox.com/u/244479/buddypress-group-fields.zip if you want it but probably won’t keep that up there forever so I wanted to include the code as well.
November 7, 2010 at 1:21 am #97637In reply to: Profile Fields for GROUPS
evanberard
ParticipantAndrew,
Yes that’s exactly what I’m talking about
I’m not really a coder, but I’m sure I can tweak it myself
Could you send it my way?Thanks a million

Evan
November 7, 2010 at 1:14 am #97636In reply to: Disable name change for users
Boone Gorges
KeymasterPlease don’t bump your post more than once per day, especially on the weekend.
The Base button corresponds to the Base profile fields group. There is no easy way to turn this off at this time.
November 7, 2010 at 1:07 am #97634In reply to: Profile Fields for GROUPS
Anonymous User 96400
InactiveThere are hooks in place where form fields can be added and validated. You’d need to code it, though. Or get it coded. Just have a look through the group templates and you can find quite a few. For validation hooks you need to look in bp-groups.php.
November 7, 2010 at 1:06 am #97633In reply to: Profile Fields for GROUPS
Andrew Tegenkamp
ParticipantI don’t know of anything like that at the moment and have poked around a little for it. Just curious, for your application, would it be the same profile fields for each group? Like Facebook groups have Location, Website, etc for each group but it’s the same list for each group I believe. I’ve been messing around with the Group Extension API (https://codex.buddypress.org/developer-docs/group-extension-api/) and have a basic plugin that has a few of these already pre-defined. It is certainly not very dynamic (yet) but if you have a set you need, I could send you that modified to your list, or the code changes from the base API to what I have if you’re interested in coding it yourself. That’s assuming someone else doesn’t come in and show us both a plugin that already does it which would not surprise me either
November 5, 2010 at 7:41 am #97532In reply to: CSS for member page
thelandman
ParticipantYou can use xprofile fields to specify certain CSS values in the users profile. Then you can retrieve the field value in the profile and modify the profile CSS with jquery. Its a bit of a work around but it works for me. Here’s an example:
1. Create an xprofile field and name it ‘Profile Background’
2. Edit your profile in buddypress and insert ‘#000000’
3. Go to wp-content/themes/yourtheme/members/single/member-header.php
4. On the 2nd line, just after “ paste the following code:
`
$(“#wrapper”).css(“background-color”, “”);
`This will modify the profile background color according to what ever value you put in ‘Profile Background’
This is just off the top of my head, I’ll check how I’ve done it once I’m home this evening. I will be writing a plugin for this. The only drawback is the user needs javascript enabled other wise its pointless.
November 3, 2010 at 8:32 am #97324Hugo Ashmore
ParticipantTo go about doing this would require fairly advanced PHP skills and experience with the BP API, it’s not a straightforward task. Not sure if anyone has attempted this, think it’s been discussed or touched upon briefly before
Not sure this does make sense though would it not result in possibly a very bloated xprofield table full of user created one off custom fields.
November 3, 2010 at 5:08 am #97317Jill Lawrence
Participant(bump) Well it’s been about 7 days and I haven’t received a response. I hate to ask because I’m sure everyone’s busy but could someone at least point me in the right direction?
Thanks,
JillNovember 1, 2010 at 1:03 am #97086In reply to: html on profile page? can it be done?
Narada Das
ParticipantThanks @r-a-y – I guess then that I do need TinyMCE to edit the extended profile fields for better security.
Im trying to understand why from the above linked articles it seems to be a problem to activate by plugin. Even Boone has trouble with it! And yet we have TinyMCE in posts and in Eventpress events etc. What is so different with the extended profile fields?
And if this is really a problem without a good solution – is there some way to at least allow BP members to add pictures to their profile page?October 31, 2010 at 9:50 am #97048In reply to: html on profile page? can it be done?
Narada Das
ParticipantIve spent another couple of hours researching this and other than a plugin by Boone here http://teleogistic.net/2009/12/tinymce-in-buddypress/ and here
http://byronbayblog.com/wp-admin/plugin-install.php?tab=plugin-information&plugin=bp-tinymce&TB_iframe=true&width=640&height=471
– which was only in early stages and has no activity for nearly a year –
I cant find any way to allow html or even better tinyMCE to profile fields.I understand there are some security issues but how come
tinymce is enabled for member posts in the main WP admin area,
its also enabled in the Eventpress plugins event posting –
so why cant it be enabled in profile fields???
Surely this is basic functionality – no?October 29, 2010 at 10:04 pm #96945In reply to: Disable name change for users
Boone Gorges
KeymasterTry this on for size. Hackish but functional, until real exclude arguments exist (they’re coming in 1.3, I promise!) Put it in your bp-custom.php
`function bbg_disallow_name_edit( $has_profile ) {
global $profile_template, $bp;if ( ‘edit’ != $bp->current_action || !bp_is_my_profile() )
return $has_profile;foreach( (array)$profile_template->groups as $group_key => $group ) {
foreach( (array)$group->fields as $field_key => $field ) {
if ( $field->name == BP_XPROFILE_FULLNAME_FIELD_NAME ) {
unset( $profile_template->groups[$group_key]->fields[$field_key] );
$profile_template->groups[$group_key]->fields = array_values(
$profile_template->groups[$group_key]->fields );
break 2;
}
}
}return $has_profile;
}
add_filter( ‘bp_has_profile’, ‘bbg_disallow_name_edit’ );` -
AuthorSearch Results