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.

Trackback producing error?

August 13, 2008 5:53pm

Subscribe [2]
  • #1 / Aug 13, 2008 5:53pm

    aftershock

    46 posts

    I have trackback code on my site but when a trackback gets posted I get an error above the trackback code. I’m not sure what it is related too any ideas?

    You can see it live on the site at http://refreshingapps.com/showcase/app/bbc_olympics_widget/

    The code behind is:

    <ol id="entryComments">
                
                {exp:comment:entries weblog="showcase"}            
                {if no_results}
                <li>No comments posted yet, <a href="#form-add">be the first.</a></li>                
                {/if}
                    
                {if author_id == entry_author_id}
                <li id="comment-{count}" class="author-comment">
                {if:else}
                <li id="comment-{count}">
                {/if}            
                {if comments}
                    {site_url}assets/siteimages/icons/no-gravatar.png
                    <cite><a href="http://{url}%22rel=%22external" rel="external nofollow">{author}</a></cite> 
                    <span class="comment-meta">
                    said on    {comment_date format='%F %d%S %Y'} at {comment_date format='%g.%i %a'}
                    </span>
                    {comment}
                {/if}
                 
                {if trackbacks}
                    {site_url}assets/siteimages/icons/no-gravatar.png
                    <cite><a href="http://{trackback_url}%22rel=%22external" rel="external nofollow">«{title}</a></cite> 
                    <span class="comment-meta">
                    said on    {trackback_date format='%F %d%S %Y'} at {trackback_date format='%g.%i %a'}
                    </span>
                    {content}            
                {/if}
                </li>
                {/exp:comment:entries}
                </ol>

    I must be missing something, it only happens with Trackbacks not comments.

    Thanks in advance

    Mod Edit: Moved to the Technical Support Forum

  • #2 / Aug 14, 2008 8:08am

    aftershock

    46 posts

    no ideas anyone, I can’t see anything wrong with the code.

  • #3 / Aug 14, 2008 6:51pm

    Sue Crocker

    26054 posts

    Hi, aftershock.

    Trackbacks can be a bit quirky if you’re not used to working with them.

    Part of the problem is the link to your trackback.

    It should be something like this:

    http://example.com/index.php/site/trackbacks/2/

    where site is your template group, trackbacks is the template, and 2 is the entry_id for the entry.

    You don’t specify a template group in your code..

  • #4 / Aug 15, 2008 5:52am

    aftershock

    46 posts

    I’m just using the standard trackback tag:

    {exp:trackback:url}

    I have used the c.(JavaScript must be enabled to view this email address) on EE docs.

    When clicked it says:

    1 Incomplete Information

    .

    I guess I’m not setup correctly but the docs are rubbish and don’t explain how to set it up or what to do to test a trackback.

    Help!

  • #5 / Aug 15, 2008 10:51am

    Sue Crocker

    26054 posts

    HowTo Work with Trackbacks

    First stab at an article.

  • #6 / Aug 15, 2008 11:57am

    aftershock

    46 posts

    Thanks Sue,

    One thing I’m still not clear on with this is the seperate Trackbacks template. This template seems to be displaying the trackbacks in a list. I want the trackbacks to be displayed inline with the comments on the single article page.

    Also why is the trackback URL in a form input?

    thanks again

  • #7 / Aug 15, 2008 12:22pm

    Sue Crocker

    26054 posts

    This template is what came with EE. It has two purposes - to give you the link to use when sending a track back, and to display what trackbacks have happened.

    You can certainly put the code in the single entry page for comments. I just used the stock templates as a starting place.

    The trackback url doesn’t *have* to be in a form imput. On my sheblogs.com site I bolded it and took it out of a form.

    Example

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

ExpressionEngine News!

#eecms, #events, #releases