WordPress.org

Forums

Buddypress Xprofile Custom Fields Type
[resolved] BuddyPress 2.0 (22 posts)

  1. sharmavishal
    Member
    Posted 1 year ago #

    Hi

    Was testing your plugin with BuddyPress 2.0 and find one issue. On the user profile (BP frontend) the user sees 2 fields/boxes. ex. Birthdate field shows age and date boxes both. Acceptance field shows value (1) and a tick box. Can you kindly check this?

    Maybe this is because of the following change in BP

    There’s a brand new API for registering xprofile field types, and our own field types have been completely rewritten to use it.

    https://buddypress.trac.wordpress.org/ticket/5220

    Thanks once again for this great plugin.

    https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/

  2. donmik
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    I've already tested buddypress 2.0 beta version with my plugin and I don't see the bugs you are talking about. When I'm on profile page of a member, I can see only the age or only the birthdate. When I'm on the edit profile form, all is working good too...

    Can you send me maybe screenshots to see what you are viewing?

  3. sharmavishal
    Member
    Posted 1 year ago #

    Sorry Donmik

    Was a mistake from my side. not working with buddyboss theme. its working absolutely fine with BP default theme...sorry once again...

  4. donmik
    Member
    Plugin Author

    Posted 1 year ago #

    No problem! But I can't try it because buddyboss is a premium theme. Check the default buddypress theme and compare the templates between the two themes maybe you can see what buddyboss is missing...

  5. csimpson
    Member
    Posted 1 year ago #

    Hi there, I also have this problem. I have the d.o.b field and also the color field active as user fields. On the edit profile page when logged in for some reason each entry is also being duplicated with a text field. If you leave these fields blank, you cannot save details on the edit page unless you complete them with something.

    theme - http://www.gavick.com/wordpress-themes/m-social,135.html‎ BUT same issues on twenty 13/14.

    image - http://www.eambitions.net/issue.jpg
    buddypress 2.0

    screenshot 1 - ok in profile fields display, not duplictaed
    screenshot 2 - ok profile view when logged in
    screenshot 3 - wrong on profile edit, fields suddenly duplciated
    screenshot 4 - wrong in admin panel investigating user, duplicating field and not displaying date of d.o.b

    Please help, and awesome plugin! Thank you

  6. sharmavishal
    Member
    Posted 1 year ago #

    Its a theme issue...try with bp default and it works fine..the theme needs xprofile visibility fields as mentioned on home page of this plugin

  7. csimpson
    Member
    Posted 1 year ago #

    any idea of where to put the code in BB 2.0? seems a different layout as the locations you mention, dont exist. regards Craig

  8. sharmavishal
    Member
    Posted 1 year ago #

    You meant BP 2.0 right? No idea ..basically as the plugin author says the theme should support it

  9. donmik
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    In the faq, I explain what hook you need to have in your theme. If you don't find the edit.php or register.php you need to search in your theme the files responsible of displaying edit profile form and registration form.

  10. sharmavishal
    Member
    Posted 1 year ago #

    Hi donmik meant no disrespect. What I meant I just shifted to a theme which supports your plugin. Cause I had to use your plugin at any cost

  11. donmik
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, I know there is no disrespect. Don't worry. I can't help if it's a premium theme, I only can help if the theme is free... So if it's a premium theme, I think you need to find the files or give me as much info as you can...

  12. csimpson
    Member
    Posted 1 year ago #

    Hi sharmavishal.

    May i ask which theme you used in the end? Was it a free one? Id like to use a theme which should work so i can tell whether the problem is the theme or not.

    Donmik, i tried this but with no luck: -
    If you can add this support, you should copy edit.php file from wp-content/plugins/buddypress/bp-themes/bp-default/members/single/profile directory into Msocial/buddypress/members/single/profile directory (you should create these directories) and in this overriden file add this line of code.

    <?php
    /**
     * BuddyPress - Users Profile
     *
     * @package BuddyPress
     * @subpackage bp-default
     */
    
    ?>
    <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    	<ul>
    		<?php bp_get_options_nav(); ?>
    	</ul>
    </div><!-- .item-list-tabs -->
    
    <?php do_action( 'bp_before_profile_content' ); ?>
    
    <div class="profile" role="main">
    	<?php do_action ( 'bp_custom_profile_edit_fields_pre_visibility' ); ?>
    
    	<?php
    		// Profile Edit
    		<?php do_action ( 'bp_custom_profile_edit_fields_pre_visibility' ); ?>
    		if ( bp_is_current_action( 'edit' ) )
    			locate_template( array( 'members/single/profile/edit.php' ), true );
    		// Change Avatar
    		elseif ( bp_is_current_action( 'change-avatar' ) )
    			locate_template( array( 'members/single/profile/change-avatar.php' ), true );
    		// Display XProfile
    		elseif ( bp_is_active( 'xprofile' ) )
    			locate_template( array( 'members/single/profile/profile-loop.php' ), true );
    		// Display WordPress profile (fallback)
    		else
    		locate_template( array( 'members/single/profile/profile-wp.php' ), true );
    	?>
    </div><!-- .profile -->
    <?php do_action( 'bp_after_profile_content' ); ?>
  13. csimpson
    Member
    Posted 1 year ago #

    the buddypress default theme is also not currently available as it is being redeveloped since the changes beyond 1.7

  14. csimpson
    Member
    Posted 1 year ago #

    and sorry to be a pain, but myself and sharmavishal have both said that we do see the fields but they are being duplicated. Therefor does this mean that our current themes do support xprofile fields...

    Also I have just found the line that you detail to edit here:
    wp-content/plugins/buddypress/bp-themes/bp-default/members/single/profile/edit.php

    and it is on the edit page where i see the duplication as per my screenshots mention, which can be seen again here:
    http://www.eambitions.net/issue.jpg

    any help, much appreciated.
    Thanks Craig

  15. csimpson
    Member
    Posted 1 year ago #

    ah i can see you have this issue on another thread now as well and having buddypress investigate - I guess my only point is to mention that i am using a buddypress made theme.

    regards Craig

  16. sharmavishal
    Member
    Posted 1 year ago #

    BP default theme

  17. donmik
    Member
    Plugin Author

    Posted 1 year ago #

    https://buddypress.trac.wordpress.org/ticket/5589#comment:10

    You can apply this patch and the issue should be resolved.

  18. sharmavishal
    Member
    Posted 1 year ago #

    I updated to 2.0.1 I still find issues with birth date and numeric field which I use for mobile number. Check box acceptance field works fine now

    Thanks for your time

  19. donmik
    Member
    Plugin Author

    Posted 1 year ago #

    Can you explain what issues exactly?

  20. csimpson
    Member
    Posted 1 year ago #

    ok, so it seems that the front end now works a treat after applying new buddypress patch, but the admin area now has issues and is also not working correctly with plugin "BP Profile Search".

    In the admin area, viewing profile of a user with an age set on front end, this field is now just displayed as the "age" drop down field with blank dates - no selection. So you cant tell the age or even the DOB of a user in admin area.

    Also, this plugin tied in perfectly previously with "BP Profile Search" but now when viewing the search field options it now just says "Your HTML code for the birthdate field type goes here" - instead of showing a range search option to include on your search.

    please help.. best wishes craig

  21. donmik
    Member
    Plugin Author

    Posted 1 year ago #

    I'm already in contact with creator of BP Profile Search. The author made some changes in the BP Profile Search, so I will need to probably update my plugin to restore compatibility between plugins but this may take a while so I'm sorry but you need to be patient...

  22. csimpson
    Member
    Posted 1 year ago #

    ok thats good news and thank you for reply. I assume you are also aware of my note on admin area issue as well then. regards Craig

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Buddypress Xprofile Custom Fields Type
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.