PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Allowable tags affected by log-in status

  1. Hi:

    I'm using the filter below in my functions.php file to allow tags in my fields. It works fine if a user is logged in. But it reverts to disallowing certain tags and tag attributes again when a user is not logged in. I need it to always allow all tags and attributes, regardless of the user's logged-in status.

    How do I do this?

    add_filter("gform_allowable_tags_12", "allow_basic_tags");
    function allow_basic_tags($allowable_tags){
    return true;
    }

    Posted 12 years ago on Saturday June 2, 2012 | Permalink
  2. There's a related recent support request that was passed on to a "priority ticket" (in case that's relevant):

    http://www.gravityhelp.com/forums/topic/passing-html-via-hidden-value-field#post-58907

    Posted 12 years ago on Saturday June 2, 2012 | Permalink
  3. FYI: I just upgraded to a developer's license. Will appreciate the added support level. Thx.

    Posted 12 years ago on Saturday June 2, 2012 | Permalink
  4. FYI: I've created a priority support request for this.

    Posted 12 years ago on Saturday June 2, 2012 | Permalink
  5. I keep thinking about this (probably because I need to get this to work)...

    It seems that GF, when it comes to the submission of HTML, even when relaxing its guard via gform_allowable_tag, is still more restrictive with non-logged-in users than with logged-in users. Basically, I need it to loosen up totally when it comes to HTML, including with non-logged-in users.

    Thanks.

    Posted 12 years ago on Saturday June 2, 2012 | Permalink
  6. Please take a look at the screenshot at http://cpix.org/2012-06-03_15-24-09.snagproj.png

    The HTML code pointed at by the red arrow will be submitted just fine when a user is logged in. But It gets stripped out for users who are not logged in.

    I need it to get dumped into the post also for users who are not logged in.

    Thank you.

    Posted 12 years ago on Sunday June 3, 2012 | Permalink
  7. Hi, just checking in....

    Posted 12 years ago on Monday June 4, 2012 | Permalink
  8. David Peralty

    As far as I know, allowable_tags doesn't hook into WordPress permissions/logged-in or out status, so something else might be causing your issue.

    Are you using the latest Gravity Forms and WordPress? Are you hooking into anything else in terms of Gravity Forms in your functions.php file?

    Posted 12 years ago on Monday June 4, 2012 | Permalink
  9. I've noticed this behavior even without any GF hooks or filters in my functions.php file.

    Posted 12 years ago on Monday June 4, 2012 | Permalink
  10. I am closing this ticket as a Priority Support ticket was opened for this request. Just so other users are aware, I believe this issue is related to WordPress Multi-Site. It locks down what tags can be used in posts/etc. and only allows admins to use certain tags. This is to prevent scripts, etc. from being used maliciously. So this issue is a WordPress core issue related to what is permitted in post content.

    Posted 12 years ago on Monday June 4, 2012 | Permalink

This topic has been resolved and has been closed to new replies.