Inline Trackback?
Posted: 27 August 2004 08:33 AM   [ Ignore ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1193
Joined  05-15-2004

I started a thread in Feature Requests and I guess that was just the wrong place for this.

When I was using Movable Type I used a plugin that would display basic information about trackbacks on the index page: the blog sending the trackback, and the name of the post linking to “this” one.

Right now I have trackbacks displaying on the combined individual-entry/comment page, but what I really want is a one-line-per-trackback display on the main index page under each post.

I don’t find anything about trackbacks here. Is there anyone who would like to work up a plugin for this?

 Signature 

Being offended by other people’s opinions is retarded.

Profile
 
 
Posted: 27 August 2004 09:17 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23547
Joined  05-20-2002

You’re probably better off going with Lynda’s method.  It’s actually very easy.  First, just create a template where all you put is the trackback stuff you want.  Use the tags, do whatever.  Let’s pretend you put that inside the ‘weblog’ template on a page called ‘tracks’.

Now, on your index page (or whatever multi-entry page you want to show trackbacks on), put:

<?php @include(”{comment_path=weblog/tracks}”);?>

That should be inside the weblog tags and put it where you want the trackbacks to show up.  It works basically like an ‘embed’.

For whatever page you stick that on, you need to go in and change the preferences to allow php and parse on output.  (Done on the ‘template’ page)

That SHOULD do the trick.  Note- I haven’t actually tested it, but the basic idea is solid.  Try it out, if you have problems, post back.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 27 August 2004 01:43 PM   [ Ignore ]   [ # 2 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1193
Joined  05-15-2004

Well, I went to the page where Lynda explains her method and it looks a little more involved than that. I tried it according to her instructions but there seems to be some knowledge about hacking PHP that I haven’t come up with.

I’ll admit, I haven’t tried the simpler way you describe. The worst that can happen is I come back and say it didn’t work.

Stand by.

 Signature 

Being offended by other people’s opinions is retarded.

Profile
 
 
Posted: 27 August 2004 01:51 PM   [ Ignore ]   [ # 3 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1193
Joined  05-15-2004

When I set the template to allow PHP parsing on output, the page doesn’t load at all. There’s an additional tag mentioned on Lynda’s page that she doesn’t explain and I have no idea how to use:

<![CDATA[ ]]>

 Signature 

Being offended by other people’s opinions is retarded.

Profile
 
 
Posted: 27 August 2004 01:54 PM   [ Ignore ]   [ # 4 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1193
Joined  05-15-2004

My question to Lynda was about that tag (see it here) and as I say, I haven’t heard back.

 Signature 

Being offended by other people’s opinions is retarded.

Profile
 
 
Posted: 27 August 2004 02:00 PM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23547
Joined  05-20-2002

Yea, don’t sweat that stuff.  It’s because Lynda is putting it into the rss feed.  Here’s a section from the stock rss 2.0 template:

<content:encoded><![CDATA[{body}]]></content:encoded>
<dc:date>{entry_date format=”%Y-%m-%dT%H:%i:%s%Q”}</dc:date>

What she’s doing (I guess, haven’t delved into it) is inserting trackbacks or whatever into the feed.  Ignore that unless that’s what you are doing.

The logic is pretty simple- the reason comments and trackbacks don’t show on a multi-entry page is because they need a unique id number to tell them which entry to display the comments or trackbacks for.  What Lynda has cleverly done is to use the comment path to add the id number to the ‘embed’, which then tells EE which trackbacks (or comments) to pull out.  That’s really all there is to it.  You’re just basically telling EE to embed weblog/tracks/id# .

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 27 August 2004 05:47 PM   [ Ignore ]   [ # 6 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1193
Joined  05-15-2004

Well, since enabling PHP parsing in output means my blog won’t load (as stated above), this option won’t work for me.

The plugin route still looks best.

 Signature 

Being offended by other people’s opinions is retarded.

Profile
 
 
Posted: 28 August 2004 06:28 PM   [ Ignore ]   [ # 7 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1193
Joined  05-15-2004

I take it back. I did get it working after I posted to the Bug Reports forum and Chris suggested I check my template for bad code. Found some, deleted it, solved the won’t-load problem and thus was able to make Lynda’s method work.

Whew.

 Signature 

Being offended by other people’s opinions is retarded.

Profile
 
 
Posted: 28 August 2004 06:41 PM   [ Ignore ]   [ # 8 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23547
Joined  05-20-2002

Glad you got it working- debugging is always a pain.  You look at the code too long and you just can’t see the syntax error that’s sitting right there!

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65102 Total Logged-in Users: 60
Total Topics: 82263 Total Anonymous Users: 27
Total Replies: 442104 Total Guests: 273
Total Posts: 524367    
Members ( View Memberlist )