Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 4,126 through 4,150 (of 5,755 total)
  • Author
    Search Results
  • Nahum
    Participant

    @gregfielding I forgot where I found this (maybe bp-tricks)

    put this in your bp-custom

    `//CHECK IF THE ACCT IS CERTAIN ACCT TYPE

    function My_Function ($user_id) {
    global $bp;
    $type_member = xprofile_get_field_data( ‘Color’, $user_id );
    if($type_member == ‘Red’) {
    return true;
    } else {
    return false;
    }
    }`

    Then to display in sidebar
    `
    loggedin_user->id)) : ?>
    Red Sidebar

    Some other Sidebar
    `

    gregfielding
    Participant

    Trying to call the loggedin_user_id, but doing to wrong…

    `loggedin_user->id) && bp_get_profile_field_data(‘field=783’) === “Yes”) : ?>
    sample code
    `

    gregfielding
    Participant

    Here’s the code I’m trying to use in my sidebar:

    `

    sample code

    `

    gregfielding
    Participant

    For example, using if/then statements, if a member’s favorite color is red, they see sidebar A, and if it’s blue, sidebar B.

    I’ve been searching quite a bit and it doesn’t appear that there are buddypress conditional tags for xprofile attributes.

    Any ideas? – Thanks!

    #115874

    I use S2member to monitor my sites membership, it provides hooks and such (not too sure about the terminology) that allow you to display content to certain user roles. I have a user role for companies (experts). I also have a profile field group just for them. It is the last group.

    I have added inline css using last-child selector to hide the menu option to edit this profile group from everyone except members that have a level 2 membership. And since Buddypress will only show profile data if the field has been filled in, it only shows on Experts (level 2 ) users public profiles.

    If this is confusing, let me know and I’ll try to give exact steps for how I accomplished this.

    neontrauma
    Member

    Hi,

    my community is connected to a single blog, a magazin. So there are normal users and those who write articels, they are “authors” (WordPress role).
    I’d like to show a little extra information in the profiles of the authors, such as their ressorts in the magazin. Therefore I created a specific profile field group within the BuddyPress profile and put some fields into it.

    Now I’m looking for a way to show this information.

    There has to be some kind of check whether the user is an author or not – both when showing the profile and also when editing it, for normal users shouldn’t see those fields.

    Does anyone of you have an idea how to solve this?

    Thanks,
    neontrauma

    #22905
    medreadragos
    Member

    Hi, i’ve instaled WP Custom fields search plugin and i don’t know how to tell the plugin where to search. I;ve created users with custom profile and i want to find them with this plugin . What should i do ? Thank you

    dt99jay
    Member

    Hi – would really appreciate the forum’s help with this.

    I’m writing a theme for Buddypress that creates custom profile fields on the fly. The fields I create are in a Field Group called ‘Categories’. I hoped I could use the `xprofile_get_field_group()` function to obtain a list of all the fields currently within the ‘Categories’ Field Group, but (even though ‘Categories’ currently contains two fields) the object returned doesn’t seem to list their IDs – even though it looks as if it should.

    For example, when I run this command:

    `print_r(xprofile_get_field_group(2)); //The ID of the ‘Categories’ group is 2`

    The following is returned (note empty ‘fields’ element):

    `BP_XProfile_Group Object
    (
    [id] => 2
    [name] => Categories
    [description] =>
    [can_delete] => 1
    [fields] =>
    )`

    Any ideas? Many thanks!

    #22850

    I show certain parts of a members profile in the member-header template. Why? Because I want certain items to be visible from any page that shows the member-header.

    I use this to do so:
    “

    This works okay. But it has two problems:
    1) It removes active searchable links from the profile data. I would like the fields to display with the links just like they do in the profile loop.
    2)This method removes all formatting. One of the fields is “Bio”. A user enters their bio and uses paragraph breaks. In the profile loop the paragraph breaks are there. But with the code above it just jumbles all text together into one long text block.

    How can I call only certain profile fields outside of the profile loop and keep both links and formatting?

    -OR–

    How can I create a custom profile loop that only shows certain fields or profile groups? Instead of all of them.

    Thanks

    pcwriter
    Participant

    @gregfielding

    Check out this thread. You can adapt the code provided for xprofile fields by simply replacing the ul class with `table.profile-fields`.
    https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/make-drop-down-menu-links-open-in-new-page/

    There are also several plugins that might get the job done too, but you may have to fiddle with them. Search the wp repo for “Open external links in a new window” for a few examples.

    Magi182
    Participant

    I was able to hack this plugin to accomplish most of what I needed:

    https://wordpress.org/extend/plugins/bp-export-users/

    You have to edit the array in the plugin file to use your buddypress profile fields (you can add or delete), but other than that, pretty slick.

    #115224
    Meini
    Member

    Sorry guys for some reason I don’t get emails sent to me when there is activity in my groups and I haven’t been too active here for a while. I have made a start and produced something usable, but haven’t worked on it for a while, so I would like to make this code available to anyone who is interested to expand on it. I managed to implement a feature to force users to complete mandatory fields in their profile if they haven’t done so.

    Help yourselves… http://www.utechworld.com/files/public/buddypress-utech-user-manager.zip

    Have fun … :)

    #115202
    4ella
    Participant

    Some GROUPS import plugin would be great because the force of the buddypress and similar social network is mainly in Groups , groups represents local business as companies , sport clubs , company divisions , theaters , museums , schools (Groups =classes) . Members represents employees & athletes & students .
    Many local activities , many associations has a list of those clubs & companies & schools in their CSV files , they would use it very nicely with buddypress , then they can use BP powerful forums for their employees , maps , reviews , docs , galleries .
    I have a csv lists of bars , nightclubs from all over the world (200K) , with custom fields like :

    name
    country
    province
    city
    address
    phone
    email
    basic club description
    and one Group profile picture =logo

    which serves for everybody – girls searching for jobs (I am using Docs for explanation info ) , clients searching for reviews , photo galleries , club owners searching for both – girls working there , clients coming there , many BP webmasters are using Groups for similar purposes , many people who doesn’t know buddypress yet and has those huge csv lists would be potentially a new BP users , especially because of that great feature (bulk Groups import plugin).
    Nobody will want to create one group for 5 minutes , they would like to import basic xxx groups to set up basic database and to give an example to the new group admins creators =(club owners as admins) in my case , maybe they would also like to sync it with their excel database in future.
    I understand that BP developers have a lot of work to do , so I don’t ask that kind of code or plugin urgently , but if it is not too difficult (only you know it if it is , because for me 3 lines of simple code seems to be very difficult ) , would be nice to have it for all of us = BP users , if it is a quite difficult take it pls only as e new plugin suggestion .

    #115195
    tonydbaker
    Member

    Did you ever create a wordpress/buddypress plugin for this? I need to limit characters on activity, but I’m not a programmer. I can activate a plugin though! Also, I need to limit characters on a couple of custom profile fields. Thanks and Let me know!

    #115141
    gdeglin
    Member

    Thanks 4ella! Just sent you an email. We don’t sync profile fields yet, but we have some other features that make us more interesting than the other Facebook connect plugins out there.

    #115090
    4ella
    Participant

    very nice avatars , I am using facebook autoconnect premium , I am satisfied with that (except facebook fields support – location , age , language ) , I am also member of buddydev.com where I can use its facebook connect too, but avatars from there changes the size in sidebar and in profile and till now I didn’t have a time to play with css files to change it and to put it in live environment , I like Brajesh plugin more because of facebook fields = buddypress profiles fields sync , feature which autoconnect doesn’t have , do you support that too ? I am using facebook autoconnect a lot , so if you want I can try to test it out for you too . Using custom avatars like I have seen your examples would be great because many people doesn’t want to show their original facebook photos .

    #115087
    4ella
    Participant

    I had the same question 1 month ago here on BP and nobody responded , hope that somebody will respond you because I have a csv file with 20K nightclubs and I would like to create 20K groups where every club will have their forum , review , blog , gallery , wiki =docs . I would like to add there some groups profile custom fields where I should add custom fields to describe every club , but there’s no fully working plugin yet , Groups Extras from @slaffik seems to be left, Groups Frontpage has only a few fields.

    junger
    Participant

    @candy2012 just to clarify, the order of the fields should be

    `

    <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="” />

    `

    It works great!

    jujublee
    Member

    I’m in my “edit profile” page and the only button I see is “base” but when I click on it, nothing happens… the page reloads. How does the info in the fields get saved?

    #114767
    DoctorDR
    Member

    @jpfaraco the following method worked fine for me.

    “

    But the methods discussed in other posts did not, namely;

    “ and “

    Perhaps somebody more knowledgeable than I could explain why, since the first method was recommended several times in the past by @hnla – https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/how-to-show-custom-profile-fields-in-a-template-file/

    lifemylife
    Participant

    hi,
    I am developing a social network for a company using buddypress, I have created a 5 users in a page templates using custom html design like users employee, supplier, manufacturer, add added to pages and created users by same names but they are not showing members in website. can you help me on this also I need a custom profile page having tabs that should appear when user register then filling all the fields in profile.

    which plugin can I use for this any custom plugin

    i_banks
    Member

    Someone please help…this makes absolutely no sense and I can’t solve this alone.

    I know that there has to be an error somewhere beyond me because this

    will display a “duplicate” profile group #2 which is “already” being displayed in the default loop.

    but if I change it to profile_group_id=5 it won’t display that particular group……It reads that the group “exists”, but it doesn’t display the group or the fields…

    I have BP 1.2.8 and WP 3.1

    haungo
    Member

    So, on my user Profile page, it has my name, about me, etc.. .. .. It kind of makes sense to have the name link back to the user profile, but you area already on that user profile, so never mind.. .. it doesn’t make sense. But my REAL concern is that other words or phrases are being turned into links.. links that seem to do a search for that word or something.

    For example:
    The About Me field is describing the user; ” Mr White is an author, historian, and teacher from East Tennessee…”

    and somehow, the words “author” and “historian” are turned into links, but not “teacher” or “East Tennessee”. I don’t understand.
    This is what “author” links to:
    http://my-buddypress-site.com/members/?s=author

    ?s=author Is that a search of some kind?

    I don’t want any of the words to be links.

    I found this, in profile-loop.php:

    
    <table class="profile-fields zebra">
    
    <tr>
    
    <td class="label">
    
    </td>
    
    <td class="data">
    
    </td>
    
    </tr>
    
    </table>
    

    Then tracked down “bp_the_profile_field_value()” in bp-xprofile-templatetags.php :

    
    function bp_the_profile_field_value() {
    echo bp_get_the_profile_field_value();
    }
    function bp_get_the_profile_field_value() {
    global $field;
    
    $field->data->value = bp_unserialize_profile_field( $field->data->value );
    
    return apply_filters( 'bp_get_the_profile_field_value', $field->data->value, $field->type, $field->id );
    }
    

    Which led me to “bp-xprofile-filters.php”, Where I found this:

    
    /**
    * xprofile_sanitize_data_value_before_save ( $field_value, $field_id )
    *
    * Safely runs profile field data through kses and force_balance_tags.
    *
    * <a href='http://buddypress.org/community/members/param/' rel='nofollow'>@param</a> string $field_value
    * <a href='http://buddypress.org/community/members/param/' rel='nofollow'>@param</a> int $field_id
    * @return string
    */
    

    I’m not sure what to make of this, or even if I’m on the right track. Can someone please help with this issue? Thanks in advance!

    I’m not very familiar with php, and this is my first BuddyPress project, and only my third WordPress project.

    -Brandon

    junger
    Participant

    Guys, apparently for the past 2 months or so BP has not been saving any text field (or dropdown, for that matter) custom profile information on my site. I took a peek inside wp_bp_xprofile_data and the only info being stored is the username (and some multi-select custom info).

    All of the custom fields exist (in BP and in the DP) but no data is being populated.

    I’m using a normal reg form for registration that hasn’t been edited over these past two months (see here: http://pastebin.com/LZLUNUmq) so I’m wondering if there are any plugins that are known offenders.

    Do you know of any plugins that prevent this info from being stored? Or any other reason why it wouldn’t be working?

    Thanks.

    #114280
    Bowe
    Participant
Viewing 25 results - 4,126 through 4,150 (of 5,755 total)
Skip to toolbar