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.

Links in Comments

October 24, 2008 5:17pm

Subscribe [2]
  • #1 / Oct 24, 2008 5:17pm

    dmadray

    9 posts

    I’ve got an issue. The problem is occurs when user post a comment in a blog entry, the url link that should link to commenter website links to the authors website instead.

    Right now we removed it so it only links to the blog entry instead but does anyone know how this can be resolved.

    Much thanks.

  • #2 / Oct 24, 2008 5:31pm

    Sue Crocker

    26054 posts

    dmadray, what are you using for your comment code?

    Are you talking about registered users or non-registered users leaving comments?

  • #3 / Oct 24, 2008 5:33pm

    dmadray

    9 posts

    Not sure how to answer the first question but for the second, it happens with non-logged in and logged in users. Doesn’t seem to matter.

    You can check the site here:
    http://labs.depthskins.net

  • #4 / Oct 26, 2008 10:11am

    Robin Sowell

    13255 posts

    Any chance you’re nesting the comments tag inside the weblog tag?  That could cause the above behavior.  If not- can you post the full comments tag- and double check that it isn’t nested inside any other tags?

  • #5 / Oct 29, 2008 2:42am

    dmadray

    9 posts

    Yes, the comment code is inserted inside weblog entry code otherwise it
    doesn’t work, providing below the code snippet, we are using, please check
    and help:

    {exp:weblog:entries weblog="depthskins_blog" paginate="bottom"}
    {embed="site/.header" loc="index" title="{title}”}

    {title}

    Posted by {screen_name} in {categories}{category_name}{if count > 0},{/if} {/categories} on {entry_date
    format="%M %Y"}{if allow_comments} with {comment_total} Comments{/if}

    {body}

    {paginate}
    {if previous_page}
    Previous Article 
    {/if}

    {if next_page}
    Next Article
    {/if}
    {/paginate}


    <h3 class=“comment_header”>{comment_total} Comments Leave a comment</h3>
    {if comment_total > 0}
    <ul id=“comments”>
    {exp:comment:entries sort="asc" limit="20"}
    <li class=”{switch="even|odd"}”>

    {name} {comment_date format="%m/%d/%Y"}

    {comment}
    </li>
    {/exp:comment:entries}
    </ul>
    {/if}
    {/exp:weblog:entries}

  • #6 / Oct 29, 2008 2:45am

    Lisa Wess

    20502 posts

    You will need to move the comment entries tag outside of the weblog entries tag; those are not intended to nest.  When you do that, it should fix the problem.

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

ExpressionEngine News!

#eecms, #events, #releases