17. Apr. 2005

TXP-Changelog

Änderungen an Textpattern 1.0rc3 (SVN-Version vom 14.04.2005)

Achtung: Die Zeilennummern können nur als Anhaltspunkt dienen, da sich diese durch das Editieren logischerweise ändern! Die angegebenen Zeilennummern entsprechen dem Stand nach dem Editieren.

In textpattern/include/txp_article.php:

blogg.de-Ping nachrüsten (Quelle: Webpropaganda), ab Zeile 246:

if ($ping_weblogsdotcom==1) {
    $wl_client = new IXR_Client('http://rpc.weblogs.com/RPC2');
    $wl_client->query('weblogUpdates.ping', $sitename, 'http://'.$siteurl);
    $wl_client = new IXR_Client('http://xmlrpc.blogg.de');
    $wl_client->query('weblogUpdates.ping', $sitename, 'http://'.$siteurl);
}

In textpattern/lib/classTextile.php:

Unterstützung für zusätzliche Block-Elemente, ab Zeile 421:

function block($text)
    {
    $pre = $php = false;
    //  $find = array('bq', 'h[1-6]', 'fn\d+', 'p');
    $find = array('bq', 'h[1-6]', 'fn\d+', 'p', 'div', 'dt', 'dd', 'li');

Deutsche Anführungszeichen ermöglichen, ab Zeile 755:

$glyph_replace = array(
//  '$1& #8217;$2',        //  single closing
    '$1& #8216;$2',        //  single german closing
//  '& #8216;',            //  single opening
    '& #8218;',            //  single german opening
//  '$1& #8221;',          //  double closing
    '$1& #8220;',          //  double german closing
//  '& #8220;',            //  double opening
    '& #8222;',            //  double german opening

Achtung: Die Dezimal-Codes der Zeichen sind mit einem Leerzeichen nach dem & “escaped”!

In textpattern/publish/comment.php:

Inline-CSS entfernen, ab Zeile 27:

//  $out = n.'<h3 style="margin-top:2em" id="'.gTxt('comment').'">'.$AnnotateInvite.'</h3>'.n;
    $out = n.'<h3 id="'.gTxt('comment').'">'.$AnnotateInvite.'</h3>'.n;

Ab Zeile 120:

//  ?  n.t.'<li id="c'.$discussid.'" style="margin-top:2em">'.$temp.'</li>'
    ?  n.t.'<li id="c'.$discussid.'">'.$temp.'</li>'

Ab Zeile 175:

//  $out = '<form method="post" action="" style="margin-top:2em">';
    $out = '<form method="post" action="" >';

Ab Zeile 180:

//  $textarea = '<textarea name="message" cols="30" rows="12" style="width:300px;height:250px" tabindex="4">'.htmlspecialchars($message).'</textarea>';
    $textarea = '<textarea name="message" cols="30" rows="12" tabindex="4">'.htmlspecialchars($message).'</textarea>';

Textile statt Textile “light” in Kommentaren (Quelle: txp resources), ab Zeile 80:

//  $message = trim(nl2br($textile->TextileThis(strip_tags(deEntBrackets(
//  $message
//  )),1,'',$im,'',(@$txpac['comment_nofollow'] ? 'nofollow' : ''))));
    $message = trim($textile->TextileThis(strip_tags($message),0,'',$im));

Ab Zeile 309:

//  $message2db = doSlash(trim(nl2br($textile->TextileThis(strip_tags(deEntBrackets(
//	 $message
//  )),1,'',$im,'',(@$txpac['comment_nofollow'] ? 'nofollow' : '')))));
    $message2db = addslashes($textile->textileThis($message,0,'',$im));

rel="nofollow" entfernen

Ab Zeile 94:

if ($email && !$web && !$txpac['never_display_email'])
//  $name = '<a href="'.eE('mailto:'.$email).'"'.(@$txpac['comment_nofollow'] ? ' rel="nofollow"' : '').'>'.$name.'</a>';
    $name = '<a href="'.eE('mailto:'.$email).'"'.'>'.$name.'</a>';

Ab Zeile 98:

if ($web)
//  $name = '<a href="http://'.$web.'" title="'.$web.'"'.(@$txpac['comment_nofollow'] ? ' rel="nofollow"' : '').'>'.$name.'</a>';
    $name = '<a href="http://'.$web.'" title="'.$web.'"'.'>'.$name.'</a>';

Kommentarzählung in Feeds entfernen (Quelle: praegnanz.de)

  • In textpattern/publish/atom.php Zeilen 80 bis 83 auskommentieren
  • In textpattern/publish/rss.php Zeilen 75 bis 78 auskommentieren

(Code-Block beginnt mit der Zeile:
if ($txpac['show_comment_count_in_feed']) {)



Anzeige