Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 2,676 through 2,700 (of 3,593 total)
  • Author
    Search Results
  • #98388
    grezza
    Member

    Hi 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

    #98374
    beraike22
    Member

    Not sure this will help but I just posted another way to get simular results here…

    https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/different-profiles-for-different-user-types/

    #98369
    Simon Arame
    Participant

    I’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_currentuserinfo

    #98368

    In reply to: Adding xprofile fields

    ilyarogov
    Member

    Sure. 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()”.

    #98322
    Michel Fortin
    Participant

    Jeff, 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?

    #98293
    grezza
    Member

    Im still struggling to find a suitable solution to this, any ideas?
    Thanks

    #98257

    In reply to: Adding xprofile fields

    Paul Wong-Gibbs
    Keymaster

    Can you elaborate on “it crashed the site”, please?

    #98237

    In reply to: Adding xprofile fields

    ashneetg
    Member

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

    #98236

    In reply to: Adding xprofile fields

    Hugo Ashmore
    Participant

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

    #98008

    In reply to: BuddyPress Spam

    pcwriter
    Participant

    Humans always fill out required profile fields. :-)

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

Viewing 25 results - 2,676 through 2,700 (of 3,593 total)
Skip to toolbar