Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 4,526 through 4,550 (of 5,755 total)
  • Author
    Search Results
  • #15673
    James
    Participant

    hnla said 11 hours, 56 minutes ago:

    To 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’;

    Nirok
    Participant

    Hi all i’m creating a website at the moment using buddypress as a way of shop keepers to look after there shop profiles and allows for easy addition and deletion wehn shops change… I’m just wanting to know if there is a way to add an uploading function to the custom fields to allow files to be shown in a particular part of there profile when they upload a file…. I’m wanting this to allow users to upload a dinner menu for there shop, usually a pdf file… is this possible at the moment? I’ve used custom fields to add phone numbers etc etc, would be cool if it was possible to add an uploading area here aswell….

    Any ideas would be much appreciated….

    Thanks

    #94517
    Hugo Ashmore
    Participant

    To 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’;

    #94516
    Hugo Ashmore
    Participant

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

    #94512
    James
    Participant

    hi @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.

    #94490
    Hugo Ashmore
    Participant

    Edit// 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 posts

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

    #94387
    Natasha
    Participant

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

    #94361
    islandcastaway
    Participant
    islandcastaway
    Participant

    I’m trying to add the extra user_meta fields from a users WordPress profile to the BuddyPress profile loop.

    get_usermeta(‘aim’); and get_the_author_meta(‘aim’ ); are not working.

    Welp!

    #94344
    Anton
    Participant

    Thanks @nit3watch

    Will test it out tonight. Did you ever release a plugin where you can add more profile fields to groups such as address, website, etc?

    #94318
    Roger Coathup
    Participant

    @arxpoetica –

    I don’t know if you found any code in the meantime, but in case you haven’t:

    The basic function to insert a new profile field is: xprofile_insert_field()

    And, to populate a field use: xprofile_set_field_data()

    They are defined in bp-xprofile.php

    #94317
    Roger Coathup
    Participant

    @slashnata – no entiendo tu pregunta exactamente

    #94270
    Natasha
    Participant

    Hello Roger, at the company where I work are asking me to do a development similar to your questions …. and you develop something?, suddenly you develop a plugin?

    Thank you very much!!!

    Matt Edminster
    Participant

    There has been some talk about finding a way to create lists of users that be used to organize the buddypress directory.

    In my case, I’m using buddypress to create a combined intranet and socialweb for our non-profit organization. I have been looking for a way to assign members to various lists within the organization in order to set them apart from network partners, supporters and fans and to assign permissions and filter content in a way that paralells but doesn’t overwrite their wp permissions.

    I’ve cobbled together a temporary solution using the BuddyPress xProfiles ACL plugin but I’m hoping somebody out there can make something a little more robust. What I do is create an extended profile field or fields and group them apart from the default fields. The plugin now allows me to make these profiles editable by only certain user-roles. In my case, I set them to admin only. In this way, I can manually add filters to my directory to list only members I’ve identified with a particular field.

    Now, what I think would be really great is a plugin that takes this a bit further in these ways:
    1. Allows individual xprofile fields to be set as admin-write-only (no need to group them)
    2. Automatically creates a role for admin-only fields so that permissions can be granted
    3. Gives the option to create filters for the activity stream and members components

    Conceptually it seems like it ought to be possible. Wondering if any of the bp gurus out there can give feedback on whether this would work with bp code? Would anyone be interested in taking this on? I’d be willing to front some seed money.

    #94164

    In reply to: BuddyPress Spam

    Pisanojm
    Participant

    I’m using:

    Si Capthca
    BuddyPress Humanity Plugin
    BP Signup Xtra (with required birthdate and checkbox)
    Extra Profile Fields that require text input.
    Bad Behavior with HTTP:BL enabled…

    I’ve not noticed any spam logins yet…. knock on wood/cross fingers.

    #94149
    LPH2005
    Participant

    Writing from ignorance but should the Field Name start with the capital letter P?

    `bp_member_profile_data( ‘field=Province’ )`

    jamesparkin
    Participant

    I know this is a repeat thread, but it seems like I cant get things to work, I have default bp theme and plugin.

    So I want to add custom fields into the members-loop.php for example to display city,province under name. I have the code but it doesnt work. Only a blank space, do I have to add anything to the functions.php or something. I can get CIMY EUF to work but I want to be able to use the built in fields instead.

    thank you in advanced

    bp_member_profile_data(‘field=province’); <


    what I added

    athira
    Participant

    Hi guys,
    I need to use Å Ä Ö in the name of my profield fields but when I want to fetch the data using
    ‘bp_member_profile_data’, it cannot read the fields with å ä ö.
    Any ideas? I’ve tried using the ‘& a ring;’ etc but it doesnt help.

    #94005
    Ashwani
    Participant

    I have found ans to first question also. I have hooked my function to ‘bp_after_profile_field_content’, so now all new fields I can display before ‘Save’.

    Still working on 3rd question.

    Regards,
    Ashwani

    #15514
    Ashwani
    Participant

    Hi Friends,

    I have recently started plugin development for Buddypress. I have fair knowledge of PHP and understand basics of Plugin development. Please can you help me with certain queries below:

    1. I understand using action hooks I can call my own function, but how can say that call my function after or before the action hook. e.g. I want to display new fields / text in User profile page so I’m attaching my function in action hook ‘xprofile_template_loop_end’, but this writes all the fields and ‘Save’ button and then calls my function so my fields/text comes after ‘Save’ button. Am I using correct hook? Or there should be different way?
    2. How can I know in my function (to take appropriate action) the current selected option by user. e.g. action hook ‘xprofile_template_loop_end’ can be called in display and edit profile, how can I know in my function that it is edit or just display?
    3. How can I add new fields on a page and database thru plugin and not manually editing the page?

    Appreciate your help.

    thanks & regards,
    Ashwani

    jarvo1980
    Member

    Ooops sorry “ AND “
    Both to no avail..

    Oddly, this does work for one of my other custom fields though:
    `<?php
    $account_type= xprofile_get_field_data( ‘Account Type’,bp_get_member_user_id());
    if ($account_type== ‘Standard’) {
    echo ‘standard’;
    } else {
    echo ‘premium’;
    };
    ?>`
    Most confusing!!

    #15499
    Ashwani
    Participant

    Hi Friends,

    I have recently started plugin development for Buddypress. I have fair knowledge of PHP and understand basics of Plugin development. Please can you help me with certain queries below:

    1. Can you give me any link to good ebook for Buddypress plugin development?
    2. I understand using action hooks I can call my own function, but how can say that call my function after or before the action hook. e.g. I want to display new fields / text in User profile page so I’m attaching my function in action hook ‘xprofile_template_loop_end’, but this writes all the fields and ‘Save’ button and then calls my function so my fields/text comes after ‘Save’ button.
    3. How can I know in my function (to take appropriate action) the current selected option by user. e.g. action hook ‘xprofile_template_loop_end’ can be called in display and edit profile, how can I know in my function that it is edit or just display?
    4. How can I add new fields on a page and database thru plugin and not manually editing the page?

    Appreciate your help.

    thanks & regards,
    Ashwani

    #93861
    Ehegwer
    Participant

    Not to hijack, but I saw this and thought someone might have some suggestions for adding profile updates to the activity feed. (I’ve got custom fields, and want a notification to show up in the feed, when updated).

    #15420
    James
    Participant

    hi,

    is there any existing CSS (inside BP), which allows to modify layout of custom profile fields/table (I mean layout of page “Profile” of every member).
    Let’s say, if I create field/text box “Location” and user fill it in with 3 words, BP makes two rows, what is not understandable, because there are hundreds of px to the right side + word location and … are in different levels. I just want some nice rows with aligned text.

    thank you!!!

    #15409
    LPH2005
    Participant

    There are three teachers using http://www.thechembook.com now and students are claiming they get confused with links to the different teacher’s handouts. It would be best to create dynamic links based on the instructor. When students register they choose the instructor via radio buttons.

    Is there sample code for choosing content based on profile fields?

    Since there are three teachers, is it best to use something besides an if statement?

    Thank you for any guidance.

    Update
    It would be something like this (which doesn’t work)

    `

    `

Viewing 25 results - 4,526 through 4,550 (of 5,755 total)
Skip to toolbar