Search Results for 'profile fields'
-
AuthorSearch Results
-
November 10, 2010 at 4:05 am #97926
In 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’ );`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!
-
AuthorSearch Results