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.

How to correctly use custom member profile field tag?

October 13, 2011 7:27pm

Subscribe [2]
  • #1 / Oct 13, 2011 7:27pm

    Andru Edwards

    331 posts

    I just created a new custom member profile field. The name of the field is googleplus. The code I am using is not working right. Here’s what I have in my template:

    {exp:member:custom_profile_data}
            
             <small>Posted by <a href="http://www.gearlive.com/profile/{username}/" title="{author}">{author}</a> - <a href="http://{googleplus}">Google+</a></small>
             <span class="rel-categories"><strong>Categories:</strong>
              {categories backspace="1"}
              <a href="http://www.gearlive.com/news/category/{category_url_title}">{category_name}</a>,
              {/categories}
             </span>
            
           </div>
    {/exp:member:custom_profile_data}

    Here is the HTML that spits out:

    
             <small>Posted by <a href="http://www.gearlive.com/profile/Andru/" title="Andru Edwards">Andru Edwards</a> - <a ><a >https://plus.google.com/104227734437064715480?rel=author</a>
    ">Google+</a></small>

    I’m baffled as to why the {googleplus} tag, when parsed, adds in an extra “p a href=” - the only content I have in the actual field is https://plus.google.com/104227734437064715480 - no code at all. Where’s the extra stuff coming from?

  • #2 / Oct 14, 2011 10:21am

    Mark Bowen

    12637 posts

    Hi Andru,

    Which version of 1.x is this happening on?

    Did you make sure to set the Text Formatting drop-down to None for that field? Looks like you may have XHTML set instead of None?

    Thanks,

    Mark

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

ExpressionEngine News!

#eecms, #events, #releases