[geeklog-cvs] geeklog-1.3/system lib-plugins.php,1.35,1.36 lib-story.php,1.9,1.10
blaine at iowaoutdoors.org
blaine at iowaoutdoors.org
Tue Sep 7 22:30:48 EDT 2004
Update of /var/cvs/geeklog-1.3/system
In directory www:/tmp/cvs-serv13411/system
Modified Files:
lib-plugins.php lib-story.php
Log Message:
Autotag function update: Removed the Language variable to format the autolink - leave it up to the plugin developer.
Added Plugin API hooks to STORY_renderArticle both for introtext and bodytext
Index: lib-story.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/system/lib-story.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** lib-story.php 5 Sep 2004 08:41:43 -0000 1.9
--- lib-story.php 8 Sep 2004 02:30:45 -0000 1.10
***************
*** 169,172 ****
--- 169,174 ----
. $A['sid'] );
$introtext = stripslashes( $A['introtext'] );
+ $introtext = PLG_replacetags($introtext); // Replace any plugin autolink tags
+
if( $index == 'n' )
{
***************
*** 180,183 ****
--- 182,186 ----
{
$bodytext = stripslashes( $A['bodytext'] );
+ $bodytext = PLG_replacetags($bodytext); // Replace any plugin autolink tags
$article->set_var( 'story_introtext', $introtext . '<br><br>'
. $bodytext );
Index: lib-plugins.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/system/lib-plugins.php,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** lib-plugins.php 6 Sep 2004 00:49:11 -0000 1.35
--- lib-plugins.php 8 Sep 2004 02:30:45 -0000 1.36
***************
*** 870,877 ****
$tag = substr($content,$start_pos,$taglength);
$parms = explode(' ',$tag);
! // $LANG32['32'] used to format Address link - default add brackets like [ here ]
! $label = sprintf( $LANG32['33'] ,str_replace(']','',substr($tag,strlen($parms[0])+1)) );
$parms = explode(':',$parms[0]);
- $fileid = $parms['1'];
$newtag = array (
'module' => $module,
--- 870,875 ----
$tag = substr($content,$start_pos,$taglength);
$parms = explode(' ',$tag);
! $label = str_replace(']','',substr($tag,strlen($parms[0])+1));
$parms = explode(':',$parms[0]);
$newtag = array (
'module' => $module,
***************
*** 879,883 ****
'startpos' => $start_pos,
'length' => $taglength,
! 'parm1' => $fileid,
'parm2' => $label
);
--- 877,881 ----
'startpos' => $start_pos,
'length' => $taglength,
! 'parm1' => $parms['1'],
'parm2' => $label
);
More information about the geeklog-cvs
mailing list