Search Results for 'profile fields'
-
AuthorSearch Results
-
November 7, 2010 at 1:06 am #97633
In 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’ );`October 29, 2010 at 12:03 pm #96896Hugo Ashmore
Participant@rogercoathup hmm yes like the sound of personalised content, in fact like the sound of that a great deal. think I was struggling to fit the profile checkboxes in to the equation despite having played around with using profile fields to, in some manner, confer extra meta data on members but penny finally dropped, and I’m wondering whether this can be taken further.
@tak5haka It’s a really nice idea, I had played with profile fields to see how effective it was to use radio button choices and/or checkboxes to use in profile checks to control display actions. Completely agree on personalisation of data, stickiness etc.
October 27, 2010 at 3:32 pm #96712zoltok
ParticipantHi Chouf1,
Perhaps you’ve misunderstood. Accented fields are not a problem to create or use if you’re using the basic template – my problems only arose when I tried to call those fields and use them conditionally in the members loop in a customized theme. So, for example , that would be equivalent to displaying the results from your “Champ supplémentaire n° 4 bis ” on this page: http://bp-fr.net/members/. I haven’t touched the core code, the modifications are in my theme files.
If you have an alternative solution though, please feel free to share it.
October 21, 2010 at 12:22 am #95782In reply to: buddypress and wordpress bio / description merge
ovizii
Participanthow does the synchronization work?
I’d love to get a plugin to match certai nfields against certain other fields win wp profile and bp profile!October 20, 2010 at 10:07 am #95691In reply to: Extended user profile?
Roger Coathup
Participant@boonebgorges released a plugin to control which fields are auto linked – have a search for that.
You can also turn them all off by removing the appropriate filter (do this in your functions.php or bp-custom.php). I can’t remember the filter off the top of my head – have a search on these forums – it’s been covered plenty of times.
October 19, 2010 at 7:24 am #95550In reply to: Multiple user types – possible?
Matt Edminster
ParticipantYou once mentioned having a proprietary solution for user lists using xprofile fields.
In redesigning my organization’s website I need to 1. display certain users (organization members in various departments) in a directory and 2. limit certain kinds of content creation to these lists (group creation only for organization members). We still want the site open to the public and use it to recruit new staff so I can’t just close down registration. Also, I can’t use wp roles because write permissions don’t line up with our organizational groupings (eg, some organization directors will be contributors while others are editors).
I’d be interested to know what you’ve come up with and would be willing to purchase it if it meets our needs and fits our budget.
October 18, 2010 at 2:51 pm #95476In reply to: How can I make a company listing Directory?
Roger Coathup
ParticipantThere’s no off the shelf plugin for this, but it is possible to develop a solution (a lot more than a workaround!):
You could either do this by having a profile type for businesses, or developing a solution around custom posts / custom fields.
You’ll then have to build your own custom listing directory – not too hard! The BP profile directory already has a built in search that you could adapt / use directly.
We are building similar in a number of current BuddyPress client projects – and Poolie has also developed a very nice listings site based on BuddyPress: http://plazaa.de
October 17, 2010 at 3:18 am #95367Jean-Marc
ParticipantSure have you considered the group document plugin? Each Shop Profile could be a group. Install the plugin and see if that can help.
October 15, 2010 at 2:50 pm #95255In reply to: Multiple registration pages
Rose Taylor
ParticipantThanks for the help. I understand how to create additional groups and fields. In there it says only fields added to the base group or ID=1 will be displayed on the registration page. Looking at Dorothy’s page it looks like she has multiple groups in there. I wanted to do the same. I don’t see a way of creating a group under that base group.
I could create all of the fields under the base group but this will cause display issues under the profile. I want certain info to display in a certain order (company and contact information). Code in register.php only calls one group. Not proficient in php enough to change it to call one or more by ID. Obviously the base group is 1. Can change this to any other but need to add multiple. i.e. group 1 and 3. Any ideas would help me a lot.
<?php if ( function_exists( 'bp_has_profile' ) ) : if ( bp_has_profile( 'profile_group_id=1' ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?
missing closing at the end i know
Do you know also why all of the information in a profile display as a link? Please see http://marketplace.questus5.com for more information. Thanks in advance for any help.October 14, 2010 at 1:21 pm #95153In reply to: Multiple registration pages
Hugo Ashmore
ParticipantLook at your bp admin section, you will see the custom profile link you use that to create new groups and fields, as long as a new group is created under the ‘Base’ level then it will appear on the registration page.
@dorothysulzmann
As a workaround I would move the three type selections labeled ‘Fan off’? to just after the primary details and use the tree types as just that to confer a user type to each member but also run a simple jQuery show/hide on the further groups so all are hidden and then a check is performed to catch the radio selection and the appropriate group revealed with perhaps a ‘none’ control selection default.The proper approach would be to complete a section and then pass the form control fields in a session or buffer to the next view to complete further sections but with BP that will likely start to get complicated, as techguy says there is no quick easy way to do this but with client side scripting it wouldn’t be that difficult.
October 13, 2010 at 10:31 am #95039James
Participantthnaks @boonebgorges ,
somehow first place where I get mistake is your mentioned `if` before `bp_has_profile`
taking all together I got this code for profile-loop.php :`
<?php
$field_id = xprofile_get_field_id_from_name( ‘Account Type’ );
$field = xprofile_get_field( $field_id );
$value = $field->data->value;if ( bp_the_profile_group_name() == ‘Account Type’ && $value == ‘Selection 1’ ) {
(if ( bp_has_profile( ‘profile_group_id=1,4’ ) ) ?><div class="bp-widget “>
<tr>
}
`
does this code make any sense for anyone?
Am I correct, that even if I will get this code to work, it still returns only one selection of radio button?thank you!
October 11, 2010 at 5:56 pm #94855islandcastaway
ParticipantFigured it out .
global $bp;
echo get_usermeta( $bp->displayed_user->id, ‘aim’);October 9, 2010 at 5:36 pm #94687islandcastaway
ParticipantCan anyone point me in the right direction please?
October 7, 2010 at 7:20 pm #94517In reply to: problem with custom field radio button
Hugo Ashmore
ParticipantTo get you started create three new profile fields for users to complete, probably radio button choices, the users will select one of these at signup? make the selection obligatory.
Now in the members profile loop you will use a simple check to determine which field has been returned or selected by the user and display whatever particular elements you want for that selection.
The code used here is not the type you want, in a profile loop it’s easier as you can run checks using something like:
if(bp_get_member_profile_data( ‘field=account type’ ) == ‘special’) :
‘ Do stuff based on the type above’;October 7, 2010 at 7:11 pm #94516In reply to: problem with custom field radio button
Hugo Ashmore
Participantmaybe you could write full code?
here are several topics on this question, but as I see, those who have done it do not want to share their result.
@janismo please take care not to come across as treating this support forum as though it was a service with some sort of obligation on the part of the members to write code for people
If you look around you will see that many of the experienced BP developers spend a great deal of their time helping out non coders with a great deal of code.
Not including this thread where I didn’t really end up having to help to any real degree I have responded on two other threads today about profile fields, along with other threads I have read or participated in I know that the answers you seek are available. Sometimes you have to piece together bits of the jigsaw to start with, then show us how far you have got and the problems you might be having and we’ll help out further; of course also someone may come along and just write what you want

I only know what I do about the profile fields and manipulating them from needing to do so myself then reading a few posts but other than that I sat down and started coding and worked it out the hard way.
October 7, 2010 at 6:15 pm #94512In reply to: problem with custom field radio button
James
Participanthi @jarvo1980 ,
could you please tell whether is it possible to use your approach/code to make 3 types of account and each of them would lead to different custom profile fields?
probably, this is exactly what you want to do, maybe you could write full code?thank you!
P.S. there are several topics on this question, but as I see, those who have done it do not want to share their result.
one of them:
https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/can-you-run-multiple-profile-loops-in-singleprofile-loop-php/If someone knows how to, please share. I’m sure, a lot of people would love to use it.
October 7, 2010 at 2:58 pm #94490In reply to: problem with custom field radio button
Hugo Ashmore
ParticipantEdit// just saw your last post- not sure how that slipped past
so you are using xprofile field data and so yes your first example won’t work I think you’re on the right track now and it is easier if in a members loop. There was a post earlier today discussing this. Have a search back about 20 odd postsThen we would need to know the mechanism you’re using to pass that variable around I guess.
When you say “select account type” what exactly do you mean, is this a snippet of custom code you have written or are you using the custom profile fields to create new profile fields? If new profile fields ( the best way I would have thought ) then you are taking the wrong approach to fetching those fields back.
October 6, 2010 at 5:59 pm #94387In reply to: dynamically create new sets of profile fields
Natasha
ParticipantThank you very much for responding so fast!
The company wants to develop with different profiles, for example for people in human resources, technology, etc. for different areas of the company.
I’m looking at the function you gave me. My question was if suddenly you had already somewhat developed because i have little experience in PHP.
Thank you very much.
October 6, 2010 at 3:25 pm #94361In reply to: Display email on profilepage
islandcastaway
ParticipantI am also looking for info on passing user_meta to the profile page. Let’s keep in touch.
-
AuthorSearch Results