EllisLab text mark
Advanced Search
     
Trackback producing error?
Posted: 13 August 2008 05:53 PM
Avatar
Joined: 2007-05-23
61 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}
                
<img src="{site_url}assets/siteimages/icons/no-gravatar.png" alt="Author">
                <
cite><a rel="external nofollow" href="{url}">{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}
                
<img src="{site_url}assets/siteimages/icons/no-gravatar.png" alt="Author">
                <
cite><a rel="external nofollow" href="{trackback_url}">&laquo;{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

 Signature 

jameswhittaker.com
refreshingapps.com

EE : Flex : Flash : AIR : AJAX : PHP : RoR

 
Posted: 14 August 2008 08:08 AM   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2007-05-23
61 posts

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

 Signature 

jameswhittaker.com
refreshingapps.com

EE : Flex : Flash : AIR : AJAX : PHP : RoR

 
Posted: 14 August 2008 06:51 PM   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2002-04-29
26055 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..

 
Posted: 15 August 2008 05:52 AM   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2007-05-23
61 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!

 Signature 

jameswhittaker.com
refreshingapps.com

EE : Flex : Flash : AIR : AJAX : PHP : RoR

 
Posted: 15 August 2008 10:51 AM   [ # 4 ]   [ Rating: 0 ]
Avatar
Joined: 2002-04-29
26055 posts

HowTo Work with Trackbacks

First stab at an article.

 
Posted: 15 August 2008 11:57 AM   [ # 5 ]   [ Rating: 0 ]
Avatar
Joined: 2007-05-23
61 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

 Signature 

jameswhittaker.com
refreshingapps.com

EE : Flex : Flash : AIR : AJAX : PHP : RoR

 
Posted: 15 August 2008 12:22 PM   [ # 6 ]   [ Rating: 0 ]
Avatar
Joined: 2002-04-29
26055 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