[geeklog-cvs] geeklog-1.3/system lib-story.php,1.22,1.23
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Sun Feb 20 05:07:35 EST 2005
- Previous message (by thread): [geeklog-cvs] geeklog-1.3/language english.php,1.143,1.144 english_utf-8.php,1.21,1.22 german.php,1.118,1.119 german_formal.php,1.38,1.39 german_utf-8.php,1.18,1.19
- Next message (by thread): [geeklog-cvs] Geeklog-2/sql create.sql,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/cvs/geeklog-1.3/system
In directory www:/tmp/cvs-serv19855/system
Modified Files:
lib-story.php
Log Message:
A first attempt to make the number of trackbacks available for display on the index page; Also now includes the full story text in the trackback editor.
Index: lib-story.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/system/lib-story.php,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** lib-story.php 6 Feb 2005 10:57:48 -0000 1.22
--- lib-story.php 20 Feb 2005 10:07:33 -0000 1.23
***************
*** 279,282 ****
--- 279,302 ----
}
+ if( $_CONF['trackback_enabled'] || $_CONF['pingback_enabled'] )
+ {
+ $num_trackbacks = DB_count( $_TABLES['trackback'],
+ array( 'sid', 'type' ), array( $A['sid'], 'article' ));
+ $trackbacksUrl = COM_buildUrl( $_CONF['site_url']
+ . '/article.php?story=' . $A['sid'] ) . '#trackback';
+ $article->set_var( 'trackbacks_url', $trackbacksUrl );
+ $article->set_var( 'trackbacks_text', $num_trackbacks . ' '
+ . $LANG_TRB['trackbacks'] );
+ $article->set_var( 'trackbacks_count', $num_trackbacks );
+ $article->set_var( 'lang_trackbacks', $LANG_TRB['trackbacks'] );
+
+ if( $num_trackbacks > 0 )
+ {
+ $article->set_var( 'start_trackbacks_anchortag', '<a href="'
+ . $trackbacksUrl . '">' );
+ $article->set_var( 'end_trackbacks_anchortag', '</a>' );
+ }
+ }
+
if( $_CONF['hideemailicon'] == 1 )
{
***************
*** 565,569 ****
break;
case 'excerpt':
! $retval[] = trim (stripslashes ($A['introtext']));
break;
case 'feed':
--- 585,590 ----
break;
case 'excerpt':
! $retval[] = trim (stripslashes ($A['introtext']) . "\n\n"
! . stripslashes ($A['bodytext']));
break;
case 'feed':
- Previous message (by thread): [geeklog-cvs] geeklog-1.3/language english.php,1.143,1.144 english_utf-8.php,1.21,1.22 german.php,1.118,1.119 german_formal.php,1.38,1.39 german_utf-8.php,1.18,1.19
- Next message (by thread): [geeklog-cvs] Geeklog-2/sql create.sql,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the geeklog-cvs
mailing list