Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 2,726 through 2,750 (of 3,608 total)
  • Author
    Search Results
  • islandcastaway
    Participant

    Figured it out .

    global $bp;
    echo get_usermeta( $bp->displayed_user->id, ‘aim’);

    islandcastaway
    Participant

    Can anyone point me in the right direction please?

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

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

    #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

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

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

    Roger Coathup
    Participant

    @rossagrant

    It’s not possible with the current profile implementation to have structured fields made up of several component parts (they’d be useful though!).

    As a workaround – you could group them together in their own profile group – and then it would require some rework of the edit / view profile templates to present the profile as you want it.

    #93465
    Maciej Skrzetuski
    Participant

    Yes, /httpdocs/wp-content/plugins/buddypress/bp-forums/bbpress and all the *.php files exist.

    I use the default buddypress theme. I don’t use any plugins besides buddypress. My httpdocs is chmod 777 for installation. BP has written the following into .htaccess:

    # BEGIN WordPress

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    # END WordPress

    bb-config.php has the same config for database as wp-config.php.

    I have following tables in my db.

    wp_bp_activity 0 MyISAM 1.0 KB Creation: Sep 26, 2010 at 02:28 PM
    Last update: Sep 26, 2010 at 02:28 PM
    wp_bp_activity_meta 0 MyISAM 1.0 KB Creation: Sep 26, 2010 at 02:28 PM
    Last update: Sep 26, 2010 at 02:28 PM
    wp_bp_friends 0 MyISAM 1.0 KB Creation: Sep 26, 2010 at 02:28 PM
    Last update: Sep 26, 2010 at 02:28 PM
    wp_bp_groups 1 MyISAM 4.1 KB Creation: Sep 26, 2010 at 02:28 PM
    Last update: Sep 26, 2010 at 02:30 PM
    wp_bp_groups_groupmeta 2 MyISAM 7.1 KB Creation: Sep 26, 2010 at 02:28 PM
    Last update: Sep 26, 2010 at 02:30 PM
    wp_bp_groups_members 1 MyISAM 8.1 KB Creation: Sep 26, 2010 at 02:28 PM
    Last update: Sep 26, 2010 at 02:30 PM
    wp_bp_messages_messages 0 MyISAM 1.0 KB Creation: Sep 26, 2010 at 02:28 PM
    Last update: Sep 26, 2010 at 02:28 PM
    wp_bp_messages_notices 0 MyISAM 1.0 KB Creation: Sep 26, 2010 at 02:28 PM
    Last update: Sep 26, 2010 at 02:28 PM
    wp_bp_messages_recipients 0 MyISAM 1.0 KB Creation: Sep 26, 2010 at 02:28 PM
    Last update: Sep 26, 2010 at 02:28 PM
    wp_bp_notifications 0 MyISAM 1.0 KB Creation: Sep 26, 2010 at 02:28 PM
    Last update: Sep 26, 2010 at 02:28 PM
    wp_bp_xprofile_data 1 MyISAM 4.0 KB Creation: Sep 26, 2010 at 02:28 PM
    Last update: Sep 26, 2010 at 02:28 PM
    wp_bp_xprofile_fields 1 MyISAM 7.0 KB Creation: Sep 26, 2010 at 02:28 PM
    Last update: Sep 26, 2010 at 02:28 PM
    wp_bp_xprofile_groups 1 MyISAM 3.0 KB Creation: Sep 26, 2010 at 02:28 PM
    Last update: Sep 26, 2010 at 02:28 PM
    wp_commentmeta 0 MyISAM 1.0 KB Creation: Sep 26, 2010 at 02:25 PM
    Last update: Sep 26, 2010 at 02:25 PM
    wp_comments 1 MyISAM 7.2 KB Creation: Sep 26, 2010 at 02:25 PM
    Last update: Sep 26, 2010 at 02:25 PM
    wp_links 7 MyISAM 3.5 KB Creation: Sep 26, 2010 at 02:25 PM
    Last update: Sep 26, 2010 at 02:25 PM
    wp_options 155 MyISAM 344.3 KB Creation: Sep 26, 2010 at 02:25 PM
    Last update: Sep 26, 2010 at 02:29 PM
    wp_postmeta 1 MyISAM 7.1 KB Creation: Sep 26, 2010 at 02:25 PM
    Last update: Sep 26, 2010 at 02:25 PM
    wp_posts 3 MyISAM 8.7 KB Creation: Sep 26, 2010 at 02:25 PM
    Last update: Sep 26, 2010 at 02:25 PM
    wp_terms 2 MyISAM 8.1 KB Creation: Sep 26, 2010 at 02:25 PM
    Last update: Sep 26, 2010 at 02:25 PM
    wp_term_relationships 8 MyISAM 3.2 KB Creation: Sep 26, 2010 at 02:25 PM
    Last update: Sep 26, 2010 at 02:25 PM
    wp_term_taxonomy 2 MyISAM 4.1 KB Creation: Sep 26, 2010 at 02:25 PM
    Last update: Sep 26, 2010 at 02:25 PM
    wp_usermeta 15 MyISAM 7.6 KB Creation: Sep 26, 2010 at 02:25 PM
    Last update: Sep 26, 2010 at 02:29 PM
    wp_users

    Is it a problem if you are running BuddyPress in a subdomain like http://sub.domain.pl?

    #93435
    zanzaboonda
    Participant

    Okay, so what if I’m looking to do the exact opposite? What if I want to specify which fields are always clickable? I’d like to be have members’ locations always clickable.

    Any thoughts?

    Thanks and best wishes,
    Kristen

    #93428
    Colton
    Participant

    So I’ve created the profile fields. How do I go about creating a directory template with a custom members loop that checks for the blog fields and displays them?

    #93415
    Roger Coathup
    Participant

    1 solution: Add profile fields for them to enter their blog details, create your directory template with a custom members loop that checks for the blog fields and displays them. This may be inefficient for a sparse databse with lots of members

    #93282
    Roger Coathup
    Participant

    p.s. your profile pages exist, so it’s just the menu / nav bar that’s missing: e.g. http://lumosnorge.no/members/kristin/profile

    Once you’ve fixed that problem – your site looks good – you should add your site to the gallery group on here

    #93281
    Roger Coathup
    Participant

    @lumosnorge

    Hej Christine – the code is in the default theme, in the file: bp-default/members/single/home.php

    Did you create a child theme, or edit your changes directly over the default theme?

    Note: you shouldn’t edit the default theme directly – as you will run into problems when you upgrade BuddyPress.

    Have a search in Docs on here for details of creating a child theme.

    Anyway, the section of code (from the default theme) that creates the nav bar is:
    `

    `

    It goes between the item-header and item-body blocks.

    You need Harry and Hermione helping you write the code!

    #93271

    Oh, that explains the trouble. Any idea where I can get that code? I’m just a beginner at this and don’t know much about coding yet, but I’m eager to learn.

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