Geeklog Article_ex プラグイン

バージョン: 1.0.1

作成者: Yoshinori Tahara - dengen

公開日: 2008.2.6

ライセンス: GPL

概要:

機能:

条件:

この説明のセクション:

1) インストール

インストールには,手動でプラグイン用のディレクトリを作成し,適切なディレクトリへファイルをコピーする必要があります。

以下の説明で,

を表しています。

Step 0 - データベースのバックアップ

Step 1 - アーカイブの展開

Step 2 - 必要なディレクトリの作成

Step 3 - 必要なファイルのコピー

Step 4 - 設定ファイルの編集

$_AEX_CONF['theme_compatibility_info'] = array(
    'WAIproCSS' => 'ProfessionalCSS',
);

Step 5 - Geeklog 本体コードの編集

            else
            {
                $recent_post_anchortag = ' <a href="' . $_CONF['site_url']
                        . '/comment.php?sid=' . $A['sid']
                        . '&amp;pid=0&amp;type=article">' . $LANG01[60] . '</a>';
            }
            $postCommentUrl = $_CONF['site_url'] . '/comment.php?sid='
                            . $A['sid'] . '&amp;pid=0&amp;type=article';
            $article->set_var( 'post_comment_link','<a href="'
                    . $postCommentUrl . '">' . $LANG01[60] . '</a>' );
            $article->set_var( 'lang_post_comment', $LANG01[60] );
            $article->set_var( 'start_post_comment_anchortag',
                               '<a href="' . $postCommentUrl . '">' );
            $article->set_var( 'end_post_comment_anchortag', '</a>' );
        }
            else
            {
// changed by dengen for article_ex plugin ---->
//                $recent_post_anchortag = ' <a href="' . $_CONF['site_url']
//                        . '/comment.php?sid=' . $A['sid']
//                        . '&amp;pid=0&amp;type=article">' . $LANG01[60] . '</a>';
// changed by dengen for article_ex plugin ----|

                $recent_post_anchortag = ' <a href="' . $_CONF['site_url'] . '/'
                        . ((in_array('article_ex', $GLOBALS['_PLUGINS'])
                          && ($GLOBALS['_AEX_CONF']['enable_comment_in_article'])) ? 'article.php' : 'comment.php')
                        . '?sid=' . $A['sid'] . '&amp;pid=0&amp;type=article">' . $LANG01[60] . '</a>';

// changed by dengen for article_ex plugin ----<

            }
// changed by dengen for article_ex plugin ---->
//            $postCommentUrl = $_CONF['site_url'] . '/comment.php?sid='
//                            . $A['sid'] . '&amp;pid=0&amp;type=article';
// changed by dengen for article_ex plugin ----|

            $postCommentUrl = $_CONF['site_url'] . '/'
                            . ((in_array('article_ex', $GLOBALS['_PLUGINS'])
                              && ($GLOBALS['_AEX_CONF']['enable_comment_in_article'])) ? 'article.php' : 'comment.php')
                            .'?sid=' . $A['sid'] . '&amp;pid=0&amp;type=article';

// changed by dengen for article_ex plugin ----<
            $article->set_var( 'post_comment_link','<a href="'
                    . $postCommentUrl . '">' . $LANG01[60] . '</a>' );
            $article->set_var( 'lang_post_comment', $LANG01[60] );
            $article->set_var( 'start_post_comment_anchortag',
                               '<a href="' . $postCommentUrl . '">' );
            $article->set_var( 'end_post_comment_anchortag', '</a>' );
        }

Step 6 - .htaccess ファイルの編集

RewriteEngine on
RewriteRule article.php(.*)$ article_ex/article_ex.php$1

Step 7 - プラグインエディタでインストールの実行

Goto Top

2) アンインストール

Step 0 - データベースのバックアップ

Step 1 - プラグインエディタでアンインストールの実行

Step 2 - .htaccess ファイルの編集

Step 3 - Geeklog 本体コードの編集

Step 4 - ディレクトリの削除

Goto Top

3) 改訂履歴

バージョン 公開日 説明
1.0.1 2008.2.6 修正 <geeklog_dir>/system/lib-story.php を編集するための、置換用コードの間違いを修正しました。
修正 comment_exテーブルのusernameフィールドの有効文字列長が短すぎたので変更しました。
1.0.0 2008.2.3 初期バージョン

Goto Top