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.

email links with strange characters added in

April 15, 2010 4:20pm

Subscribe [2]
  • #1 / Apr 15, 2010 4:20pm

    pixelmom

    4 posts

    I want to let people email the article author. I am using custom fields, as it is a news paper and the person entering the article into EE and the actual author getting the byline credit are different.

    I am using this code (inside EE weblog tags, of course):

    <div id="stats2" class="clearfloat">Written by {encode=”{email_address}” title={byline}}</div>

    It displays properly, but the mailto link is this:
    â€�[email protected]â€�

    “Automatically turn URLs and email addresses into links?” option is set to “NO”.

    What am I doing wrong?

  • #2 / Apr 15, 2010 4:28pm

    Ingmar

    29245 posts

    Welcome to the forums, pixelmom. First of all, you’re using “fancy” quotes in your code instead of regular ones. Try this:

    <div id="stats2" class="clearfloat">Written by {encode="{email_address}" title={byline}}</div>
  • #3 / Apr 15, 2010 4:32pm

    pixelmom

    4 posts

    Thanks Ingmar! That was it.

  • #4 / Apr 15, 2010 4:33pm

    Ingmar

    29245 posts

    Glad to hear it 😊

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

ExpressionEngine News!

#eecms, #events, #releases