Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 2,726 through 2,750 (of 5,755 total)
  • Author
    Search Results
  • #165855
    Henry
    Member

    The edit profile fields loop is great if you need all fields that are text inputs to be the same (share the same markup). what if you want text inputs to be different for certain fields? perhaps some fat? some 100% width of the page, some with a green background?

    Anyone ever attempted to remove the loop in edit.php and add HTML for each field manually? I was thinking of giving it a shot, the drawback is when a new field is added via WP Admin – you’d have to manually update edit.php to display the input HTML for the new field you’ve just created.

    Reacton
    Participant

    @mercime I did edit afew of the html files: header, page, index, sidebar, and footer. however I realised I may have worded that wrong, its when I post a comment it says who posted it the time and everything but the actual comment does not appear?

    and if I add a profile field and fill it in it shows the profile feed name in the profile page but not what I typed inside it.

    should I copy the javascript file over to my child theme also?

    Thanks,

    Lloyd

    chriswinch
    Participant

    Thanks for your help.
    Managed to get it working by using the wordpress user id as you mentioned.

    @mercime
    Participant

    @reacton What kind of modifications did you make on your BP Default child theme? Note that if made changes in the HTML markup in the template files of the BP-specific pages, you might also have to copy over and revise the JS files of BP Default theme.

    Reacton
    Participant

    I have created a child theme of the bp-default theme, everything has been linked corectly however for some reason any text which is added to the profile page e.g. if I post a status or if I add a name or address in the progile editor does not appear?

    Cheers for any replies.

    Lloyd.

    #165713
    danbp
    Participant

    You maybe right, and i’m unsure too. The best way to know, is to give a try. But do you absolutely need to ask twice for the user email ?
    Or you could simply name the email fields differently.
    Private mail
    Work mail

    #165707
    danbp
    Participant

    Hi @henrywright-1,

    i guess you can also filter by group profile ID

    <?php if ( bp_has_profile('profile_group_id=2') ) : 
    echo bp_get_profile_field_data( 'field=Email' )
    endif;
    
    if ( bp_has_profile('profile_group_id=45') ) : 
    echo bp_get_profile_field_data( 'field=Email' )
    endif;
    ?>

    https://codex.buddypress.org/developer/developer-docs/loops-reference/the-profile-fields-loop-bp_has_profile/

    #165691
    Henry
    Member

    I have set up a profile group and called it “Work” and within it I have created a field called “Email”. I am displaying the field value in my theme like so

    echo bp_get_profile_field_data( 'field=Email' )

    If I now set up a new profile group called “Home” and have a field in it called “Email”, how can I display the value in my theme without getting a conflict?

    Am I forced to name the fields different under each profile group?

    #165641
    junithorn
    Participant

    Just an FYI to anyone curious, here is the solution:

    <?php do_action( 'bp_before_profile_loop_content' ); ?>
    
    <?php if ( bp_has_profile('hide_empty_fields=0') ) : ?>
    
    	<?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
    
    		<?php if ( bp_profile_group_has_fields() ) : ?>
    
    			<?php do_action( 'bp_before_profile_field_content' ); ?>
    
    			<div class="bp-widget <?php bp_the_profile_group_slug(); ?>">
    
    				<h4><?php bp_the_profile_group_name(); ?></h4>
    
    				<table class="profile-fields">
    
    					<?php while ( bp_profile_fields() ) : bp_the_profile_field('hide_empty_fields=0'); ?>
    
    						<?php if ( bp_field_has_data() ) : ?>
    
    							<tr<?php bp_field_css_class(); ?>>
    
    								<td class="label"><?php bp_the_profile_field_name(); ?></td>
    
    								<td class="data"><?php bp_the_profile_field_value(); ?></td>
    
    							</tr>
    							
    						<?php elseif ( !bp_field_has_data() ) : ?>
    						
    								<tr<?php bp_field_css_class(); ?>>
    
    								<td class="label"><?php bp_the_profile_field_name(); ?></td>
    
    								<td class="data"><?php bp_the_profile_field_value(); ?></td>
    
    							</tr>
    							
    						<?php endif; ?>
    
    						<?php do_action( 'bp_profile_field_item' ); ?>
    
    					<?php endwhile; ?>
    
    				</table>
    			</div>
    
    			<?php do_action( 'bp_after_profile_field_content' ); ?>
    
    		<?php endif; ?>
    
    	<?php endwhile; ?>
    
    	<?php do_action( 'bp_profile_field_buttons' ); ?>
    
    <?php endif; ?>
    
    <?php do_action( 'bp_after_profile_loop_content' ); ?>
    
    #165572
    devrap
    Participant

    I’m having this same issue, but on a newer version of BP (1.7.1). I’ve submitted a ticket to report this bug, https://buddypress.trac.wordpress.org/ticket/5046#ticket. The error doesn’t occur if *all* fields of the extended profile are filled out.

    #165500

    In reply to: email

    @mercime
    Participant
    #165481
    Hiranthi
    Participant

    Last year I’ve written a member management plugin for a client which is working great, there is one thing that’s bugging us though:

    By default a few things are displayed on the overview pages:

    – Name
    – Values of some xprofile fields
    – Groups the user is a member of

    Searching the profiles works great too, but here’s the thing that’s bugging us: the groups aren’t displayed anymore.

    I can’t, for the life of me, figure out why it’s doing this. I’ve set the if statement for the groups-loop to this: if ( bp_has_groups( 'user_id=' . bp_get_member_user_id() . '&type=alphabetical&s=&search_terms=&search_term=&max=100' ) ) but it doesn’t work (notice the empty s, search_terms and search_term).

    I couldn’t find any search-related options for the bp_has_groups function, but it is going wrong there (since they’re displaying fine when you’re just browsing the profiles).

    I also know the bp_get_member_user_id() is working perfectly inside the user-loop, so that shouldn’t be the issue either.

    #165471
    junithorn
    Participant

    Err, sorry I had those two reversed.

    #165469
    junithorn
    Participant

    Hi all, as far as I can tell empty fields should be enabled when I change

    <?php if ( bp_has_profile(‘hide_empty_fields=0’) ) : ?>

    to

    <?php if ( bp_has_profile() ) : ?>

    in profile-loop.php, sadly however the empty profile fields still wont show up.

    #165466
    Kingrammer
    Participant

    some more details if they will help,

    It’s a brand new install of wordpress and buddypress. a multisite install, subdomains.

    The only other plugin is Theme My Login. Custom Community Theme being used at the mo.

    Would someone give me a nudge? Thank you so much to anyone with suggestions. Learning Buddypress and reading through the Ofcom radio broadcasting guides at the same time are pickling my brain!1

    #165433
    Shuji Suzuki
    Participant

    Thanks!
    It indeed was.

    #165432
    modemlooper
    Moderator

    looks like your theme is hard handing your form css. you will need to find the css and edit it.

    #165426
    Kingrammer
    Participant

    Hello all,

    I am building a multisite, with subdomains for the regional variations.

    I would like to display a page, which in addition to the text and images the page will have, it also calls and prints a users details on that page.

    This is a fairly new site, so it would be easy for me to make sure that the author for each page is the same user that I want to have the buddypress profile printed for.

    I really hope this is an easy one – what do I type in the page to pull up a specific users details? I have read alot! I really have and cannot find any bit of copy / pastable code that does this.

    The result i am trying to achieve is that I have a page which I have designed, which displays this fields as well, on the right. A registered user can update their variable details often, and this will update part of the page.

    Thank you very much ,

    Shuji Suzuki
    Participant

    Hi!
    I’ve ran into a minor problem on a clean buddypress install.

    This is how my Editing Profile Groups Fields looks like:
    http://i.imgur.com/9hE0Rjl.png

    How can i solve this?

    modemlooper
    Moderator

    $user_id = get this from WordPress;
    xprofile_get_field_data( $field, $user_id );

    The way you are getting members id is only good on member pages. If you are on a blog post you can get the author id, if you want logged in user id get that.

    chriswinch
    Participant

    Hey,
    I have managed to get my custom user fields / xprofile fields to show but only when im on the profile page. I tried the groups page but they don’t seem to be showing.

    What im trying to do is pull the xprofile fields into the header so that they show site wide.
    Is this possible?

    The code im using is:
    bp-custom.php

    
    <?php 
    function custom_xprofile( $field ) {
    echo bp_custom_get_member_list_xprofile_data( $field );
    }
    
    function bp_custom_get_member_list_xprofile_data( $field ) {
    global $site_members_template;
    return xprofile_get_field_data( $field, $site_members_template->member->id );
    }
    ?>
    

    Template

    
    <?php custom_xprofile('First Name') ?>
    

    I found the above code on this forum, but dont remember what post i found it in.
    Any help would be appreciated.

    #165385

    In reply to: Display Profile Groups

    @mercime
    Participant

    Do you know how to rearrange the order of those groups?

    @ebraxton30 near the bottom of the Extended Profile webpage I linked to above, I’ve listed ways to rearrange profile fields and profile field groups.

    #165376

    In reply to: Display Profile Groups

    ebraxton30
    Participant

    Thank you so much. I was not clear on how it would display, but your example helped me out. I was using Gravity Forms User Registration add-on and those existing entries were not populating or connecting to the fields I had created through the profile group fields. This actually works much better for this particular site.

    Do you know how to rearrange the order of those groups? My profile groups are not in the same order as they are in the admin area.

    #165340

    In reply to: Display Profile Groups

    @mercime
    Participant

    @ebraxton30 Change to Twenty Twelve theme and deactivate all plugins except BuddyPress to test if your installation is working as expected -> https://codex.buddypress.org/user/before-installing/

    Extended Profiles https://codex.buddypress.org/user/buddypress-components-and-features/extended-profiles/

    Example of User Profile page which includes four profile field groups containing many profile fields each. http://testbp.org/members/mercime/profile/public/ Only the “General” profile group shows up during registration. Feel free to register at testbp.org, the official BuddyPress test site.

    #165337
    millo
    Participant

    hi,
    no activate BP template pack plugin. It is new installation.

    General Information

    WordPress Version: 3.5.1
    URL: http://redpublica.loading.es
    Theme Version: 1.2
    Framework Version: 2.1
    PHP Version: 5.4.15

    Installed Plugins

    ajax-event-calendar/ajax-event-calendar.php
    backupwordpress/plugin.php
    bbpress-enable-tinymce-visual-tab/init.php
    bbpress-like-button/bbpress-like.php
    bbpress/bbpress.php
    bp-avatar-suggestions/bp-avatar-suggestions.php
    buddy-bbpress-support-topic/buddy-bbpress-support-topic.php
    buddypress-activity-plus/bpfb.php
    buddypress-followers/loader.php
    buddypress-profile-tabs/bp-profile-tabs.php
    buddypress-twitter/loader.php
    buddypress-xprofile-custom-fields-type/bp-xprofile-custom-fields-type.php
    buddypress/bp-loader.php
    carousel-without-jetpack/jetpack-carousel.php
    contact-form-7/wp-contact-form-7.php
    duplicate-post/duplicate-post.php
    launchpad-by-obox/index.php
    login-with-ajax/login-with-ajax.php
    revslider/revslider.php
    tinymce-advanced/tinymce-advanced.php
    use-google-libraries/use-google-libraries.php
    wordpress-importer/wordpress-importer.php

    Thanks

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