Skip to:
Content
Pages
Categories
Search
Top
Bottom

Creating a new profile -“field type”


  • triplebit
    Participant

    @triplebit

    I need to add to the members profile fields a special field – a kind of an Edit Box. This Edit Box should have the functionality of WordPress standard page/post editor.
    Out of the box Buddypress supports text Box or Multi-Line Text Area but this is not enouph for my client needs.
    I saw somewhere that “Advanced Custom Fields” plugin can do the job.
    Dose anyone can sho me how please? or maybe attach a link to an example/tutorial?
    Regards
    I. lesher

Viewing 9 replies - 1 through 9 (of 9 total)

  • danbp
    Participant

    @danbp

    BP’s xProfile component is not intended to be used as text editor, like the one you use to publish posts.

    So far i know, ACF plugin doesn’t handle xprofile fields. But you can use it on Group component.

    More about ACF


    1a-spielwiese
    Participant

    @1a-spielwiese

    “BP’s xProfile component is not intended to be used as text editor, like the one you use to publish posts.”

    However, if someone decides to have xProfile-fields like ‘Favorite Books’ or ‘Favorite Movies’ it would be nice, if the users could style the

    • titels in italics
    • and the authors respec. directors in regular.

    As well ul- and li-tags for lists like, ‘favourite bands’ or ‘favorite dishes’ would be nice.


    danbp
    Participant

    @danbp

    @1a-spielwiese

    Maybe nice, but it’s a commonly admited bad idea to let users style your site.
    If you want italics for some field title, you can do that by CSS.

    As stated by Boone for BP 2.1
    Extra CSS classes have been added to Profile Field visibility field elements, allowing greater CSS customization.

    For more indeep customization, consider this plugin (thought needs a good coding level)


    triplebit
    Participant

    @triplebit

    Thank you all,
    As ACF doesn’t do the job,
    is there any other way to add an edit box to the fields profile as my client wants?
    Thanks in advance
    I. Lesher


    danbp
    Participant

    @danbp

    No, not without heavy core hacking. You have to find another solution for the edit part. Probably “near” profiles, but not “on” profiles.

    Some hints here.


    1a-spielwiese
    Participant

    @1a-spielwiese

    @danbp / https://buddypress.org/support/topic/creating-a-new-profile-field-type/#post-198965:

    ‘Maybe nice, but it’s a commonly admited bad idea to let users style your site.’

    As I alreday said elsewhere, I would prefer anyway to place the profiles within the subdomain-blogs and not in root-blog.

    Then it would be not “style my site” (by my users), but “style their [my users] own site” (by themselves).

    ‘If you want italics for some field title’

    No, what I imagined what not a field title, rather a book or movie title, e.g.:

    Favorite movie [= Field title]

    Mädchen in Uniform by Leontine Sagan [= user content within that field]

    Favorite Book [= Field title]

    Tractatus Logico-Philosophicus by Ludwig Wittgenstein [= user content within that field]


    danbp
    Participant

    @danbp

    Don’t ask if you don’t understand the answers.

    Writing Tractatus Logico-Philosophicus in italic is a choice which i won’t discuss…

    There is no text editor for form fields. This doesn’t exist. Or give the url if you know one.

    The only way to get this in italic is to use CSS. Punkt.


    1a-spielwiese
    Participant

    @1a-spielwiese

    ‘Don’t ask if you don’t understand the answers.’

    Don’t answer, if you do not understood the question (request)!

    ‘There is no text editor for form fields. This doesn’t exist. Or give the url if you know one.’


    @triplebit
    and me know this! But we want to have it (in future times).

    Best

    🙂


    1a-spielwiese
    Participant

    @1a-spielwiese

    @triplebit:

    Now there is such text editor for form / profile fields:

    https://buddypress.org/support/topic/new-plugin-xprofile-rich-text-field/

    Thank you @needle (Christian Wach) for writing and @danbp for information.

    PS.:

    I just installed and activated the plugin, and my user ‘Fan Eins’ used it, for writing the word ‘Keine’ in italics:

    http://1a-spielwiese.de/members/fan1/

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Creating a new profile -“field type”’ is closed to new replies.
Skip to toolbar