2007|01|02|
2006|01|02|03|04|05|06|07|08|09|10|11|12|
2005|01|02|03|04|05|06|07|08|09|10|11|12|
2004|02|08|10|11|12|
«IISでNP_Cacheを導入しよう。 06年05月アニメ・特撮レンタル表。
0604262256
NP_Trackback1.23bj7++++ (R2)のトラックバックもを短く華麗に美しくしよう!!。

…タイトルは妥協。

[ 参照ページ ]
Trackback URLをすっきり短くする - Nucleusだとか
NP_TrackBack v1.23bj7++++ (R.2) - NP_cles()

NP_Trackback1.23bj7++++ (R2)のトラックバックを
Nucleusだとかさん参考に短く華麗に美しくしましゃう。

前:[ http://go.gogo.tc/action.php?action=plugin&name=TrackBack&tb_id=824]

後:[ http://go.gogo.tc/trackback.php?id=824]
なカンジに。

まず、action.phpがあるディレクトリにtrackback.phpという名前で置いて、
<?php
/*
        Trackback Ping Receiver
        by yu (http://nucleus.datoka.jp/)
 */

$CONF = array();
include('./config.php');        // common functions

$pluginName = 'TrackBack';
// only continue when the plugin is really installed
if (!$manager->pluginInstalled('NP_' . $pluginName))
        exit;

$plugin =& $manager->getPlugin('NP_' . $pluginName);
if (!$plugin) exit;

if ( requestVar('id') ) $_REQUEST['tb_id'] = requestVar('id');
else if ( requestVar('entry_id') ) $_REQUEST['tb_id'] = requestVar('entry_id');

$plugin->handlePingXML();
?>

次にNP_Trackback1.23bj7++++ (R2)の中身をいじります。

813行目〜822行目
function getTrackBackUrl($itemid) {
        global $CONF;
        $isAcceptPing = ( $this->getItemOption(intval($itemid), 'ItemAcceptPing') == 'yes' ) ? '1' : NULL ;
        if( $isAcceptPing )
        return $CONF['ActionURL'] . '?action=plugin&name=TrackBack&tb_id='.$itemid;
        else    
                return 'Sorry, no trackback pings are accepted.';
        //$baseurl = preg_replace('{^(.+)/action.php}', '$1/', $CONF['ActionURL']); 
        //return $baseurl.'trackback.php?id=' .$itemid;
}



function getTrackBackUrl($itemid) {
        global $CONF;
        $baseurl = preg_replace('{^(.+)/action.php}', '$1/', $CONF['ActionURL']);
        $isAcceptPing = ( $this->getItemOption(intval($itemid), 'ItemAcceptPing') == 'yes' ) ? '1' : NULL ;
        if( $isAcceptPing )
        return $baseurl.'trackback.php?id=' .$itemid;
        else    
               return 'Sorry, no trackback pings are accepted.';
        //$baseurl = preg_replace('{^(.+)/action.php}', '$1/', $CONF['ActionURL']); 
        //return $baseurl.'trackback.php?id=' .$itemid;
}
と書き換えます。

はい!終了!!お疲れ様!!!
あとは、36行目〜48行目辺りのhtmlをいじって、見栄えのよいようにして下さい。

yuさんホントアリガトー。
Trackback URL
TBはページを開いて伍秒待ってから。※スパム避けです。
DISALLOWED (TrackBack) DISALLOWED (TrackBack)

Comment
コメントを頂けるとやる気が出ます。※たぶん。


:
:




Warning: mb_convert_encoding() [function.mb-convert-encoding]: Unable to detect character encoding in c:\www\go.gogo.tc\nucleus\plugins\NP_NewsfeedEX.php on line 127

Warning: mb_convert_encoding() [function.mb-convert-encoding]: Unable to detect character encoding in c:\www\go.gogo.tc\nucleus\plugins\NP_NewsfeedEX.php on line 141

Warning: mb_convert_encoding() [function.mb-convert-encoding]: Unable to detect character encoding in c:\www\go.gogo.tc\nucleus\plugins\NP_NewsfeedEX.php on line 148

Warning: mb_convert_encoding() [function.mb-convert-encoding]: Unable to detect character encoding in c:\www\go.gogo.tc\nucleus\plugins\NP_NewsfeedEX.php on line 141

Warning: mb_convert_encoding() [function.mb-convert-encoding]: Unable to detect character encoding in c:\www\go.gogo.tc\nucleus\plugins\NP_NewsfeedEX.php on line 148

Warning: mb_convert_encoding() [function.mb-convert-encoding]: Unable to detect character encoding in c:\www\go.gogo.tc\nucleus\plugins\NP_NewsfeedEX.php on line 141

Warning: mb_convert_encoding() [function.mb-convert-encoding]: Unable to detect character encoding in c:\www\go.gogo.tc\nucleus\plugins\NP_NewsfeedEX.php on line 148

Warning: mb_convert_encoding() [function.mb-convert-encoding]: Unable to detect character encoding in c:\www\go.gogo.tc\nucleus\plugins\NP_NewsfeedEX.php on line 141

Warning: mb_convert_encoding() [function.mb-convert-encoding]: Unable to detect character encoding in c:\www\go.gogo.tc\nucleus\plugins\NP_NewsfeedEX.php on line 148

Warning: mb_convert_encoding() [function.mb-convert-encoding]: Unable to detect character encoding in c:\www\go.gogo.tc\nucleus\plugins\NP_NewsfeedEX.php on line 141

Warning: mb_convert_encoding() [function.mb-convert-encoding]: Unable to detect character encoding in c:\www\go.gogo.tc\nucleus\plugins\NP_NewsfeedEX.php on line 148

Warning: mb_convert_encoding() [function.mb-convert-encoding]: Unable to detect character encoding in c:\www\go.gogo.tc\nucleus\plugins\NP_NewsfeedEX.php on line 127

Warning: mb_convert_encoding() [function.mb-convert-encoding]: Unable to detect character encoding in c:\www\go.gogo.tc\nucleus\plugins\NP_NewsfeedEX.php on line 141

Warning: mb_convert_encoding() [function.mb-convert-encoding]: Unable to detect character encoding in c:\www\go.gogo.tc\nucleus\plugins\NP_NewsfeedEX.php on line 148

Warning: mb_convert_encoding() [function.mb-convert-encoding]: Unable to detect character encoding in c:\www\go.gogo.tc\nucleus\plugins\NP_NewsfeedEX.php on line 141

Warning: mb_convert_encoding() [function.mb-convert-encoding]: Unable to detect character encoding in c:\www\go.gogo.tc\nucleus\plugins\NP_NewsfeedEX.php on line 148

Warning: mb_convert_encoding() [function.mb-convert-encoding]: Unable to detect character encoding in c:\www\go.gogo.tc\nucleus\plugins\NP_NewsfeedEX.php on line 141

Warning: mb_convert_encoding() [function.mb-convert-encoding]: Unable to detect character encoding in c:\www\go.gogo.tc\nucleus\plugins\NP_NewsfeedEX.php on line 148

Warning: mb_convert_encoding() [function.mb-convert-encoding]: Unable to detect character encoding in c:\www\go.gogo.tc\nucleus\plugins\NP_NewsfeedEX.php on line 141

Warning: mb_convert_encoding() [function.mb-convert-encoding]: Unable to detect character encoding in c:\www\go.gogo.tc\nucleus\plugins\NP_NewsfeedEX.php on line 148

Warning: mb_convert_encoding() [function.mb-convert-encoding]: Unable to detect character encoding in c:\www\go.gogo.tc\nucleus\plugins\NP_NewsfeedEX.php on line 141

Warning: mb_convert_encoding() [function.mb-convert-encoding]: Unable to detect character encoding in c:\www\go.gogo.tc\nucleus\plugins\NP_NewsfeedEX.php on line 148