Skip to:
Content
Pages
Categories
Search
Top
Bottom

Adding New URL or Number xProfile Field Does Not Show On Profiles


  • AfromanJ
    Participant

    @afromanj

    I am trying to add a new xProfile field to be displayed on the user profile pages.

    The two that are not working are URL and Number fields.

    When clicking on profile > edit I can see the HTML is not correct and the new field has not been rendered. This is what the html looks like:

    <div class="editfield field_9 field_facebook optional-field visibility-public field_type_url"><p class="description"></p></div>

    All the other fields are working and have been tested.
    – What am I doing wrong?
    – Is there a work around?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Yes can confirm that there does appear to be an issue, but need to test this further on another install. It seems we aren’t rendering the input control on the profile edit field on the frontend.

    If we can establish it’s definitely a core issue we’ll raise a ticket to get it looked into.

    Those two fields do work fine, I suspect that you are working with an older version of the view & edit templates? The manner in which xprofile fields are looped to be displayed changed so you will need to grab latest versions of these templates from the bp-legacy directory in the core plugin.


    AfromanJ
    Participant

    @afromanj

    Thank you for the quick reply, I will take a look at this later and let you know the out come.


    AfromanJ
    Participant

    @afromanj

    Hey, I could be using the wrong view and edit templates as they do not look the same as the profile pages on buddypress.org.

    I do not have full access to replace files on the server manually, I have updated WordPress and BuddyPress to the latest versions.

    Do I need to manually replace the legacy files on the server with these files?
    https://github.com/buddypress/BuddyPress/tree/master/src/bp-templates/bp-legacy/buddypress

    I thought this would correct itself when the plugin is updated.

    You need to explain just what you’re doing template wise with your site.

    If you have updated to latest BP version then you should have correct templates, unless you have overloaded/copied them to a theme, have you?

    Why haven’t you access to move files around? No cpanel, ftp etc to transfer files to a theme folder?

    Why are you referencing files from the github account – not that you can’t just a bit unusual.
    https://github.com/buddypress/BuddyPress/tree/master/src/bp-templates/bp-legacy/buddypress/members/single/profile
    Is the directory you want, profile-loop and edit templates.


    AfromanJ
    Participant

    @afromanj

    Basically Ive been asked to fix this field problem on someone elses website, Ive just been given access to FTP so can now make changes to the server files.

    They are using a theme called Huddle and have BuddyPress install on the latest version:
    http://themeforest.net/item/huddle-wordpress-buddypress-community-theme/835549

    The theme folder has a members folder in for BuddyPress, which i assumed was the standard for BuddyPress. I have overridden the templates you suggested in /themes/huddle/members/single and the issue is still present.

    I switched to a default WordPress theme to test compatibility and the fields are working like normal. So the issues is with the Huddle theme, now that its using the correct profile-loop and edit templates im not sure what the problem can be?


    AfromanJ
    Participant

    @afromanj

    Right… It looks like its working now, ive just logged out and back in again and the fields are showing correctly. The template overrides must have worked.

    Thank you for your help.

    Glad it’s resolved.

    You might want to consider dropping that theme a note about this or at least check if they have an update to their theme. Themes that state a claim to something like BP support/compatibility have a responsibility to ensure their themes are kept up to date with possible changes in BP releases, BP releases tend not to have too many fundamental changes to template files but they do from time to time and those might be lost if templates overloaded to themes.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Adding New URL or Number xProfile Field Does Not Show On Profiles’ is closed to new replies.
Skip to toolbar