Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 2,701 through 2,725 (of 3,608 total)
  • Author
    Search Results
  • #97926

    In reply to: Profile Custom Fields

    LPH2005
    Participant

    We 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).

    #97924

    In reply to: Profile Custom Fields

    teebes
    Participant

    Once the fields are populated by a user, they will show up within their public profile page.

    #97919
    junger
    Participant

    Hi, 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/Gq5Ay5fH

    #97918
    junger
    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.

    #97754
    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.

    #97637
    evanberard
    Participant

    Andrew,

    Yes that’s exactly what I’m talking about :) I’m not really a coder, but I’m sure I can tweak it myself :P Could you send it my way?

    Thanks a million :)

    Evan

    #97636
    Boone Gorges
    Keymaster

    Please 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.

    #97634
    Anonymous User 96400
    Inactive

    There 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.

    #97633
    Andrew Tegenkamp
    Participant

    I 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 :)

    #97532

    In reply to: CSS for member page

    thelandman
    Participant

    You 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.

    Hugo Ashmore
    Participant

    To 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.

    Jill 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,
    Jill

    #97086
    Narada Das
    Participant

    Thanks @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?

    #97048
    Narada Das
    Participant

    Ive 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?

    #96945
    Boone Gorges
    Keymaster

    Try 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’ );`

    Hugo 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.

    zoltok
    Participant

    Hi 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.

    #95782
    ovizii
    Participant

    how 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!

    #95691

    In 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.

    #95550
    Matt Edminster
    Participant

    @djpaul

    You 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.

    #95476
    Roger Coathup
    Participant

    There’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

    Jean-Marc
    Participant

    Sure have you considered the group document plugin? Each Shop Profile could be a group. Install the plugin and see if that can help.

    #95255
    Rose Taylor
    Participant

    @hnla

    Thanks 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.

    #95153
    Hugo Ashmore
    Participant

    @questus5

    Look 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.

    James
    Participant

    thnaks @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!

Viewing 25 results - 2,701 through 2,725 (of 3,608 total)
Skip to toolbar