ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Disable auto-convert URLs and email addresses into links for custom member fields?

April 08, 2014 12:05pm

Subscribe [1]
  • #1 / Apr 08, 2014 12:05pm

    Azannah

    1 posts

    I have created a custom member field, {Google_Plus_URL}, where a URL like, https://plus.google.com/1051794532082275037724 can be entered.

    In my template, I reference this field as such:

    {if Google_Plus_URL}
    Connect with <a href="http://{Google_Plus_URL}rel=author">{screen_name} on Google+</a>
    {/if}

    The end result is, unexpectedly:

    Connect with <a href="http://a" rel="author">https://plus.google.com/105179240822750377794</a>">Mike Adamick on Google+</a>

    In researching this issue, I come across the “Automatically turn URLs and email addresses into links” options in relation to channels, but there doesn’t appear to be an similar setting for member data. Is is possible to prevent custom member fields from being automatically formatted?

    I’m using EE v2.5.5

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases