Viewing 7 replies - 1 through 7 (of 7 total)
  • Can you add some more detail to your question? I’m not sure what you’re asking.

    Thread Starter qasimbiz

    (@qasimbiz)

    inside the ultimate member-> forms -> profile form -> i have added shortcode.
    what I want is user can update this shortcode field.

    Thread Starter qasimbiz

    (@qasimbiz)

    I know that user is not eligible to update shortcode input but it’s my requirement I want this feature, if it’s possible to enable from code please help me. Thanks

    I guess I’m still not following. What do you mean by “updating a shortcode”? Shortcodes are a server-side thing that you use to hook functions provided by plugins when you are editing a page. They would never be exposed to the user. Only the output of them would be. So I’m failing to see what a user would update.

    Thread Starter qasimbiz

    (@qasimbiz)

    hello sir please check the following link:- https://snipboard.io/oZsaLh.jpg
    this shortcode field that I want user can update from his profile. Thanks

    Thread Starter qasimbiz

    (@qasimbiz)

    on frontend user is already eligible to create an own booking calendar from the admin panel. and every booking calendar has a shortcode.
    I want the user to edit the shortcode input according to his on requirement the same way how he can edit the other fields.

    Ahhhh. Okay. You don’t want to use the shortcode option for the field name then. The shortcode option in the field list is a display-only field, and it executes the shortcode that you put in it. It’s basically the same thing as the ‘Content Block’ field, except that it’s just for a shortcode. You stick a shortcode there, and it runs that shortcode in that spot for everyone, just like you had put it in a page.

    You’ll probably want to use a plain text field for that. If you want it displayed on their profile (as the actual calendar and not just the text of the shortcode), you’ll probably need to write some code to do a custom display for that field, but some caveats:

    Shortcodes are not meant to be user-editable, and it’s dangerous to allow them to put their own shortcodes in a user-editable field, because they could put in a shortcode that goes to something other than a calendar and expose private backend information depending on what plugins you have installed. It would be better to allow them to specify arguments for it, and have your custom display code always run that specific shortcode just with their arguments.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Font user can’t update shotcode’ is closed to new replies.