Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1:/tmp/cvs-serv6317
Modified Files:
comment.php
Log Message:
Added direct link, to an entry, in the trackback dialog - To avoid any confusion
Index: comment.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/comment.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- comment.php 24 May 2003 19:16:15 -0000 1.8
+++ comment.php 18 Jun 2003 14:52:38 -0000 1.9
@@ -57,9 +57,17 @@
if (!isset($serendipity['POST']['comment'])) {
if ($serendipity['GET']['type'] == "trackbacks") {
echo '<div class="serendipity_commentsTitle">Trackbacks</div><br />';
- echo '<b>Trackback URI for this entry:<br />'.str_repeat(" ",7);
+ echo '<b>Trackback specific URI for this entry:<br />'.str_repeat(" ",7);
$tbu = $serendipity['baseURL']."comment.php?type=trackback&entry_id=".$serendipity['GET']['entry_id'];
echo '<a href="'.$tbu.'">'.$tbu.'</a><p />';
+ echo '<b>Direct link to this entry:<br />'.str_repeat(" ",7);
+ $query = "SELECT title FROM {$serendipity['dbPrefix']}entries WHERE id = ". $serendipity['GET']['entry_id'];
+ $entry = serendipity_db_query($query);
+ $entry = $serendipity['baseURL']
+ . "archives/"
+ . $serendipity['GET']['entry_id']
+ . "_".serendipity_makeFilename($entry[0]['title']).".html";
+ echo '<a href="'. $entry .'">'. $entry .'</a>';
serendipity_printTrackbacks(serendipity_fetchTrackbacks($id));
} else {
?>
|