From: shane <sh...@lo...> - 2003-09-29 11:33:47
|
I saw this Net::TrackBack module http://search.cpan.org/author/TIMA/Net-TrackBack-0.21/TrackBack.pm so I was looking at it, and got curious. If you were to, for instance, pullup index.pl to modify it to put a trackback link into each story's data structure, ie: ################################################################# # pass it how many, and what. sub displayStories { .... while ($story = shift @$stories) { ... if ($user->{seclev} >= 100) { push @links, [ "$constants->{rootdir}/admin.pl?op=edit&sid=$story->{sid}", 'Edit' ]; } # I added sid so that you could set up replies from the front page -Brian $tmpreturn .= slashDisplay('storylink', { links => \@links, sid => $story->{sid}, }, { Return => 1}); $return .= $tmpreturn; my $trackback = new Net::TrackBack; et all, per their example code. My question is this - which URL would you use for a story's trackback? the article.pl?sid= ... ? the .shtml? Which url should a trackback system for Slash use? After looking at this Net::TrackBack, I don't think it would be a great fit for Slash. But, after looking at it's code, I think I understand how the trackbacks are supposed to work. I thought I'd whipup a quick hack to do it, until I realized there are 2 links for every story, really. Thanks, Shane |