Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 651 through 675 (of 3,593 total)
  • Author
    Search Results
  • #262992
    stunley
    Participant

    Hi Shane. Like so? This still disables the site.

    function tiquality_add_custom_field() {
    
    	if ( bp_is_active( 'xprofile' ) ) :
    
    ?>
    	<div class="bp-widget <?php bp_the_profile_group_slug(); ?>">
    		<table class="profile-fields">
    			<tr class="my_mail">
    
    				<td class="label">Contact me</td>
    
    				<td class="data"><a href="mailto:<?php bp_displayed_user_email(); ?>"><?php bp_displayed_user_email(); ?></a></td>
    
    			</tr>
    		</table>
    	</div>
    <?php 
    
    	endif; 
     
    }
    add_action('bp_profile_field_buttons', 'tiquality_add_custom_field');
    #262968
    psmorrow
    Participant

    I found this:

    post

    which adds xprofile fields to member directory, but I can’t seem to get this working for the group members directory.

    #262702
    danbp
    Participant

    Also by default, a field description can only be filled by a site admin, not by suscribers or visitors. But it is to you to know what is harmfull or not when you customize something in your site.

    If you are the only one allowed to create xprofile fields, i doubt that you will voluntary introduce malicious code into your field description… In this case it is certainly harmfull to allow yourself some html tags. 😉

    #262570

    In reply to: phone number or email

    danbp
    Participant

    Hi @froshdimeji,

    the registration process is part of WordPress. Check on the codex or on the wp forum, but i doubt that a phone number can be used instead of an email. Perhaps it can be added to the mandatory username, password and email fields. But sorry, i have never heard about such.

    Note that BP allows you to add fields to the register page, but these fields will never be part of the registration itself. So even if you add an xprofile phone type field, it won’t be considered (as first) as mandatory for registration.

    #262226

    In reply to: Problem With Pages

    danbp
    Participant

    Hi,

    BP pages are not ordinary WP pages. BP use the page system to assign a permanent slug, while content stays dynamic. Usual WP pages are static.

    BP pages must be unique. This means also without assigned template, model and of course, should be a slug to a page, and not a sub-page. These page are not intended to be published and exist only for internal use. You don’t need to build a menu for register and activation. Normally, these items come up, depending the context (theme, plugins, widgets) and/or the user status.

    Related to “activation” and “register” and most of BP components, you need to declare a “page” for each, despite the fact that BP will only use them to insert a template. Registration will receive xprofile fields which are added to the existing WP registration form.
    And another template for the Activation stuff, depending the context: activation key, success message and so on.

    #262210
    danbp
    Participant

    If you create a field group called Business Details, you simply add as many fields you want!
    Let’s say, you want that users can fill about 5 companies or society. In this case, you need to create a field for each input, in other words 5 fields. And if you need more details for each, you add the fields you need, one by one:

    Business 1: [___]

    Address 1: [___]

    Office 1 hours: [___]

    Business 2: [___]

    Address 2: [___]

    Office 2 hours: [___]

    Or if you use a lot of details, you group each businness separately.

    For better clarity of the default profile details output, when you have a lot of information to display, is to use this very handy plugin: buddypress-profile-tabs

    #262165

    In reply to: Forms from Buddypress

    danbp
    Participant

    BuddyPress comes with his own form on xprofile component.

    In 99% of cases, you haven’t to use an external form plugin. For the remaining 1%, you need good php knowledge to accomplish some custom work.

    Everything you need to know about xprofile fields is explained here:

    User Extended Profiles

    #262072
    danbp
    Participant

    Hi @darrenllrgmailcom, @adjunkten,

    i had the same issue with a custom theme: fields didn’t wrap properly on small screens…
    To solve it, i simply copied the concerned form rules from Twenty Sixteen into my child theme css and all went OK after that.

    The 2016 rules of the register page:

    #buddypress #signup_form.standard-form #profile-details-section,
    #buddypress #signup_form.standard-form #basic-details-section,
    #buddypress #signup_form.standard-form #blog-details-section {
    	float: none;
    	width: 100%;
    }
    
    @media screen and (min-width: 38.75em) {
    	#buddypress #signup_form.standard-form #profile-details-section,
    	#buddypress #signup_form.standard-form #basic-details-section,
    	#buddypress #signup_form.standard-form #blog-details-section {
    		width: 48%;
    	}
    }
    
    @media screen and (min-width: 38.75em) {
    	#buddypress #signup_form.standard-form #profile-details-section {
    		float: right;
    	}
    	#buddypress #signup_form.standard-form #basic-details-section {
    		float: left;
    	}
    }
    #261863
    tergra
    Participant

    Found the source of the issue. I had put the field (First name (Base)) in another group of fields, because it only makes the registration process longer and doesn’t bring anything valuable to the site. But when yo do so, it breaks the registration process for some reason. It no longers makes the required verifications.. I’m now implementing the solution of changing is_required described here by ModemLooper : https://buddypress.trac.wordpress.org/ticket/5373?cversion=0&cnum_hist=3
    It seems to work, I only have a issue with the css (I put a big div with display none before xprofile fields and I’m closing it at the end, just before the submit button, but it puts the submit button on the right as if the xprofile field was there, weirdly/

    Buddypress should really have that in core as this required Xprofile field is really not user-friendly AT ALL. 😉

    Thanks everyone ! 🙂

    #261790
    danbp
    Participant

    Is “xprofile component” the feature exposed in “Settings > BuddyPress” named “Extended Profiles” (at the very top of the config page)? (It probably is, but I just want to be sure, thanks.)

    Yes it is !

    it is possible […] to effect the change of either the email or password fields?

    Yes it is ! from here: your-site.abc/members/USERNAME/settings/ – the link can be found under the top right usermenu on wp’s toolbar: username > settings > general OR/AND on the buddymenu, when you’re on your profile: Settings ! And that’s it !

    null

    For all other BP related questions, please read through the codex, i really have no time to (re)write all explanations. Sorry, hope you uderstand.

    Jay
    Participant

    Thanks for the background info about WP, @danbp. It certainly is interesting to see how the little old single-user blog platform called “WordPress” has mushroomed into the gargantuan that it is today, following the old adage, “Man expands to fill the available space.”

    Obviously I’m a bit of a noobie to WordPress (I’ll admit, so feel free to flame away ;)), but I’d like to ask about your reference to the clause “When BP is activated, and if you use the xprofile component…” I am a bit confused about “the xprofile component” and was wondering if you can help me understand it a bit better.

    Is “xprofile component” the feature exposed in “Settings > BuddyPress” named “Extended Profiles” (at the very top of the config page)? (It probably is, but I just want to be sure, thanks.)

    I am fully cognizant of the fact that one can preclude access to the WP Dashboard in a number ways, including by Role, etc., and I plan to do that. However, that causes me to provide exposure to the standard WP Profile fields (or as many of thsoe fields that I want to expose, that is) so that the user can modify them. This includes the critical email and password fields.

    Relating to this situation, you didn’t quite address my key question as to whether it is possible (without serious WP core hacking — something I would NEVER do, btw) to effect the change of either the email or password fields?

    Now listen, I realize that probably sounds like a shameless noobie question, but it really begs the question of whether modifying the email/password fields outside of the WP dashboard is considered “bad form” in some way.

    Thanks in advance for your advice and insights.

    #261756
    danbp
    Participant

    Hi,

    BuddyPress use templates to show his stuff.
    The registration is part of WP and BP’s xprofile component add only some additionnal fields to the original register form.

    If you open a template file you will see a lot of code and many lines starting by do_action( ‘something’ );

    These files are all stored in bp-templates/bp-legacy/buddypress/

    Now you have already the where and the what. here’s the how.

    To show some text on the register page you have two options:
    1) altering the whole template file bp-templates/bp-legacy/buddypress/members/register.php
    2) add what you want by using an action hook

    The second method is the fasted and the easiest. You just need to write a function and you’re done.

    
    function valeriemanne() {
       echo 'Here i am !';
    }
    add_action( 'bp_before_register_page', 'valeriemanne' );

    Add this to your child theme functions.php file or into bp-custom.php

    WordPress codex references
    add_action
    Child theme

    #261686

    In reply to: show random profile

    mrblade
    Participant

    Hi! Thank you for your answer!
    But I need a page showing the profile (and not a list) of a random user.
    I was thinking of using the standard loop with type = random and limit of one. And use the filter fields, as described here
    is this the correct way?

    #261513
    shanebp
    Moderator

    Did you see this?
    https://buddypress.org/support/topic/how-to-view-pending-signup-profile-fields/

    For a single field, follow the directions in the code.

    #261504
    fleminglabs
    Participant

    Is there any progress on this?

    My client needs people to input a product number to sign up for the website.

    There are lots of “pending” users but I cannot see the custom Profile fields to review what the new user has put in.

    There is no other way of looking at that?

    The clients needs to be able to do it and lots of them, the url trick will be too hard.

    #261497
    Lars Henriksen
    Participant

    One solution might be to simply display the xprofile fields, that you want to be searcable in the member directory.
    Then you can simply use the member search form to search for xprofile content.

    My members have a field with ‘school’ http://historielaerer.dk/medlemmer/

    This snippet adds two profile fields to the members loop – add the code to your bp-custom.php:

    <?php
    function add_info_to_members_loop() {
        $field_content = bp_get_member_profile_data( 'field=(Xprofile Field name)' );
        if( $field_content != false )
          echo "(label for xprofile field content): " . $field_content;
        $field_content = bp_get_member_profile_data( 'field=(Xprofile field name #2' );
        if( $field_content != false )
          echo "<br/>" . $field_content;
    }
    add_action( 'bp_directory_members_item', 'add_info_to_members_loop' );
    
    ?>

    Just an idea.

    Kind regards, Lars

    #261479

    In reply to: bbp-register layout

    Venutius
    Moderator

    The basic layout of the items on the right side of the registration screen can be affected by moving the fields around in Dashboard>>User>>Profile Fields.

    You can drag and drop them and that will affect the order that they are displayed.

    An alternative might be to install BP Better Registration, which creates a different type of registration process.

    You might benefit from visiting my website http://buddyuser.com It’s aimed at newbies looking to get the most out of BuddyPress.

    #261447
    shanebp
    Moderator
    #261403

    In reply to: Profile Page and Bio

    Venutius
    Moderator

    Hi there,

    You might like to check out my page on setting up users

    http://buddyuser.com/setting-up-site-members-with-buddypress

    This includes details of adding additional profile fields to the users profile. Also check out the section “Installing BP” in my site, I’m sure it will give you a lot of useful information.

    #261285

    In reply to: User WYSIWYG Editor

    Venutius
    Moderator

    For profile fields you can enable a rich text editor with http://buddyuser.com/plugin-review-buddypress-xprofile-rich-text-field

    matt2006
    Participant

    Hi @danbp
    thanks for your Tipp.

    he problem is, that BP Auto Group Join lets me add users to groups only by “Member Types” not by vustom xProfile fields.

    Is there anyone here, who could customize the plugin for us?

    The intended data flow would be:
    Input via Gravity Forms -> Gravity Forms User Registration Add-On adds a new user with certain xProfile information -> Modified “BP Auto Group Join” adds new user to certain BP groups.

    Thanks for helping!
    Matt

    For your information:
    I manage this project for a Non-Profit-Organsation called “Economy for the common good”, which stives for a new economic system. He have associations all over Europe which are recognised as charitable.
    Please see here for more Info:
    https://en.wikipedia.org/wiki/Economy_for_the_Common_Good
    https://old.ecogood.org/en

    #260970
    davehakkens
    Participant

    OK, we got it to work in a different way. Special thanks to @coffeywebdev for the help.
    For those interested:

    This snippet is used in the functions.php to get the locations from the profile fields and show the flag image.

    function dh_get_flag_by_location($country){
      if($country <> '' && !empty($country)){
      $country_filename = get_stylesheet_directory_uri() . '/img/flags/' . sanitize_file_name($country) . '.png';
      $country_path = get_stylesheet_directory() . '/img/flags/' . sanitize_file_name($country). '.png';    
         if(file_exists($country_path)){
           $html = '<img src="' . $country_filename . '"/>';
         } else {
           $html = $country;
           echo '<!--' . get_stylesheet_directory_uri() . '/img/flags/' . sanitize_file_name($country) . '-->';
        }
      echo $html;
      }
    }

    Then we needed to change 2 templates to show this flag image in
    the Bbpress forum replies and on the buddypress members page. So we added the code necessary to show the flag
    bbpress/loop-single-reply.php
    <div id="country" style="float:left;margin-right:.5em;"> <?php $user = get_userdata( bbp_get_reply_author_id() ); $country = xprofile_get_field_data( 42, $user->ID ); dh_get_flag_by_location($country); ?></div>

    buddypress/members/members-loop.php
    <div class="member-location"> <?php $country = bp_get_member_profile_data('field=Location'); dh_get_flag_by_location($country); ?></div>

    #260810
    Venutius
    Moderator

    It could be, difficult to answer since you have not given a great deal of detail on what features you want. You can create multiple extra profile fields which are searchable, you can use a plugin like BP Profile Search to enable all sections of the profile to be searchable, and of course BP supports public and private forums.

    #260598
    davehakkens
    Participant

    What do you mean with standalone version @danbp? I use a bbpress and buddypress plugin. I figured this is more for Buddypress since it has to do with buddpress profile fields.

    Anyway thanks for the code, looks good! But it doesn’t seem to work after adding it into the functions.php. I haven’t got experience using filters so can’t seem to find the problem..

    #260429
    danbp
    Participant

    Hi @davidself1001,

    i think BP Profile Tabs is a plugin to create “nice looking tabs using the jQuery UI”, it is not the xprofile component !

    xprofile fileds and field groups (the tabs) management is located at
    dashboard > users > profile fields. What you see on that screen is normally what you have in the DB.
    Once you created fields and field groups in xprofile, you will see the group tabs in the plugin.

Viewing 25 results - 651 through 675 (of 3,593 total)
Skip to toolbar