WordPress.org

Forums

Cimy User Extra Fields
[resolved] Text Separator in form (4 posts)

  1. superpotion
    Member
    Posted 3 years ago #

    How can I place a text-separator in the form, e.g a heading-2 title, so that I can group profile fields together under an appropriate heading.

    Or, if I need to leave detailed instructions on how to complete some fields, I should be able to insert a paragraph of text.

    The separator is for display only, and is not part of the form input.

    The field could simply be of type "Separator".

    http://wordpress.org/extend/plugins/cimy-user-extra-fields/

  2. superpotion
    Member
    Posted 3 years ago #

    In the meantime I see that I could use the description field of the item above, but this would need to allow additional html tags, like hr, p, br, ul, ol, li, etc. I have hacked cimy_uef_functions.php with the following:

    global $allowedtags;
    allowedtags["hr"] = array();
    allowedtags["p"]  = array();
    allowedtags["br"] = array();
    allowedtags["ul"] = array();
    allowedtags["ol"] = array();
    allowedtags["li"] = array();
    allowedtags["h2"] = array();

    This is a little bit ugly, but it works.

    The text-separator idea is a better one.

  3. snurk
    Member
    Posted 2 years ago #

    Did you add exactly this at the very top of the file successfully?

    I get an error from this..

    "Parse error: syntax error, unexpected '[' in cimy-user-extra-fields/cimy_uef_functions.php on line 6"

  4. Marco Cimmino
    Member
    Plugin Author

    Posted 2 years ago #

    Once again this is for your own security, you can also consider changing directly:
    /wp-includes/kses.php

    but do it if you know what you are doing.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Cimy User Extra Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.