E-mail
パスワード
次回から自動ログインする
パスワード紛失
新規登録
ホーム
|
新着情報
|
研究室
|
掲示板
|
ぶろぐ
|
Wiki
|
お問合せ
|
アルバム
|
リンク
|
サイトマップ
|
|
一覧
検索
最新
ヘルプ
ページへ戻る
履歴
リンク元
印刷
inc/xwords_d3com
をテンプレートにして作成
xpwiki
:inc/xwords_d3com をテンプレートにして作成
開始行:
*xwordsモジュールで、d3コメント統合
** 概要
以前より、[[Xwordsモジュール>http://www.kanpyo.net/xoopsc...
+ D3コメントクラスは、公開専用です。 一応、こんな風に...
&ref(xwords_d3com_class.gif,mw:240,mh:240);
+ コメント統合先のd3forumディレクトリ名・フォーラムid値...
こうすることで、複数サイトを共有化している場合でも、携...
**手順と方法
テンプレートだけでなく、ソースの変更も必要ですので、細か...
なお、個別のアップロードも編集も面倒、という人のために、X...
|&ref(xwords046b_diff.zip);|d3forum-0.85~|
|&ref(xwords046a2_diff.zip);|d3forum-0.84以前|
|(09/03/21:d3forum-0.85に合わせて管理画面での設定項目追加...
|(08/08/31:xwordsD3commentContent.class.php を変更)|
***D3commentクラス
D3commentクラスは、下記ファイルをダウンロード後、「xwor...
|&ref(xwordsD3commentContent.class_1.php);|d3forum-0.85~|
|&ref(xwordsD3commentContent.class_0.php);|d3forum-0.84以...
|(09/03/21:config変数の変更)|
|(08/08/31:用語の属性(html,smiley,xcodes,br)を引いてサ...
当然ながら、d3forumの方にコメント統合用に掲示板を追加し...
xwords::xwordsD3commentContent
と記載します。(最初の「xwords」の部分は、インストールディ...
なお、&font(Red){d3forumは0.83a以降のバージョンが必須};...
***Xwordsソースの変更
(以下、&font(Red){ver-a2までの情報};です。 ver-b以降...
3つのソースファイルに手を入れます。 こんな方法で良い...
****xoops_version.php
「xoops_version.php」を編集し、管理画面にmodule_config...
下記の388~402行目を追記します。
#code(php,379-){{
$cf++;
$modversion['config'][$cf]['name'] = 'blocksperpage';
$modversion['config'][$cf]['title'] = "_MI_{$MYDIRNAME}_B...
$modversion['config'][$cf]['description'] = "_MI_{$MYDIRN...
$modversion['config'][$cf]['formtype'] = 'select';
$modversion['config'][$cf]['valuetype'] = 'int';
$modversion['config'][$cf]['default'] = 5;
$modversion['config'][$cf]['options'] = array( '0' => 0,'...
$cf++;
$modversion['config'][$cf]['name'] = 'com_agent';
$modversion['config'][$cf]['title'] = "_MI_{$MYDIRNAME}_C...
$modversion['config'][$cf]['description'] = "_MI_XWORDS_C...
$modversion['config'][$cf]['formtype'] = 'textbox';
$modversion['config'][$cf]['valuetype'] = 'text';
$modversion['config'][$cf]['default'] = '';
$cf++;
$modversion['config'][$cf]['name'] = 'com_agent_forumid';
$modversion['config'][$cf]['title'] = "_MI_{$MYDIRNAME}_C...
$modversion['config'][$cf]['description'] = "_MI_XWORDS_C...
$modversion['config'][$cf]['formtype'] = 'textbox';
$modversion['config'][$cf]['valuetype'] = 'int';
$modversion['config'][$cf]['default'] = 0;
// On Install
if( ! empty( $_POST['fct'] ) && ! empty( $_POST['op'] ) &...
{
include XOOPS_ROOT_PATH . "/modules/{$mydirname}/include...
}
}}
****languages/japanese/modinfo.php
「modinfo.php」を編集し、上の作業で追加した管理画面の項...
以下の158~162行目を追記します。
#code(php,150-){{
//Names of Blocks and Block information
define("_MI_{$MYDIRNAME}_ENTRIESNEW", "新着ブロック");
define("_MI_{$MYDIRNAME}_ENTRIESTOP", "人気ブロック");
define("_MI_{$MYDIRNAME}_RANDOMTERM", "ランダムブロック");
define("_MI_{$MYDIRNAME}_TERMINITIAL", "頭文字ブロック");
//define("_MI_{$MYDIRNAME}_NOTUJIS", "MYSQLの環境が defau...
define("_MI_{$MYDIRNAME}_COM_AGENT","コメントシステムの設...
define("_MI_{$MYDIRNAME}_COM_AGENTDSC","d3forumのコメント...
define("_MI_{$MYDIRNAME}_COM_AGENTID","コメントのforum_id...
define("_MI_{$MYDIRNAME}_COM_AGENTIDDSC","コメント統合を...
?>
}}
****header.php
「header.php」に、下記のように56~65行目を追記しま...
module_config設定項目を、smarty変数でテンプレートに渡す...
#code(php,54-){{
$myts = & XwordsTextSanitizer::getInstance();
// モジュールID // added by naao
$module_handler =& xoops_gethandler('module');
$this_module =& $module_handler->getByDirname($my...
$mid = $this_module->getVar('mid');
// モジュールconfig // added by naao
$config_handler =& xoops_gethandler("config");
$mod_config = $config_handler->getConfigsByCat(0,...
$xoopsTpl->assign("moduleConfig", $mod_config);
?>
}}
***テンプレートの編集
続いて、テンプレートを1つ、Altsysなどで編集します。
****xwords_entry.html
「xwords_entry.html」の、105~125行目 を以下のよ...
#code(html,105-){{
<{if $moduleConfig.com_agent}>
<{d3comment mydirname='xwords' id=$thisterm.id subject=...
<{else}>
<{* comment nav block *}>
<{if $commentsnav}>
<div style="clear:both;margin:0.1em 0em;padding:0em;">
<fieldset class="item" style="border:1px solid #778;m...
<legend class="itemHead"><{$lang_comment}></legend>
<div style="margin:1em 0em;padding:0em;text-align:c...
<{$commentsnav}>
<{$lang_notice}>
<!-- start comments loop -->
<{if $comment_mode == "flat"}>
<{include file="db:system_comments_flat.html"}>
<{elseif $comment_mode == "thread"}>
<{include file="db:system_comments_thread.html"}>
<{elseif $comment_mode == "nest"}>
<{include file="db:system_comments_nest.html"}>
<{/if}>
<!-- end comments loop -->
</div>
</fieldset>
</div>
<{/if}>
<{/if}>
}}
***モバイル用テンプレート
モバイルテンプハウスで、[[作成・公開中:http://www.mc8.j...
**インストールと設定
xoops管理画面の「モジュールの管理」で、''&font(Maroon){...
&ref(xwords_config.gif,mw:240,mh:240);
ここで、
+コメントシステムの設定 : d3forumのコメント統合機能を...
+コメントのforum_id : コメント統合を選択した場合、統合...
これらを設定すれば完了です。(この編集を行うまでは、xoops...
**その他
***関連情報
- [[minidiary+D3コメント統合へのお知恵を:http://www.xugj...
- [[D3comment統合と、コメント元のイベント通知:http://www....
- [[元ソース(D3commentクラス):http://www.mc8.jp/X//module...
***ライセンス
-xwordsソース、d3forumソース、xugj_blockソース:GPL
終了行:
*xwordsモジュールで、d3コメント統合
** 概要
以前より、[[Xwordsモジュール>http://www.kanpyo.net/xoopsc...
+ D3コメントクラスは、公開専用です。 一応、こんな風に...
&ref(xwords_d3com_class.gif,mw:240,mh:240);
+ コメント統合先のd3forumディレクトリ名・フォーラムid値...
こうすることで、複数サイトを共有化している場合でも、携...
**手順と方法
テンプレートだけでなく、ソースの変更も必要ですので、細か...
なお、個別のアップロードも編集も面倒、という人のために、X...
|&ref(xwords046b_diff.zip);|d3forum-0.85~|
|&ref(xwords046a2_diff.zip);|d3forum-0.84以前|
|(09/03/21:d3forum-0.85に合わせて管理画面での設定項目追加...
|(08/08/31:xwordsD3commentContent.class.php を変更)|
***D3commentクラス
D3commentクラスは、下記ファイルをダウンロード後、「xwor...
|&ref(xwordsD3commentContent.class_1.php);|d3forum-0.85~|
|&ref(xwordsD3commentContent.class_0.php);|d3forum-0.84以...
|(09/03/21:config変数の変更)|
|(08/08/31:用語の属性(html,smiley,xcodes,br)を引いてサ...
当然ながら、d3forumの方にコメント統合用に掲示板を追加し...
xwords::xwordsD3commentContent
と記載します。(最初の「xwords」の部分は、インストールディ...
なお、&font(Red){d3forumは0.83a以降のバージョンが必須};...
***Xwordsソースの変更
(以下、&font(Red){ver-a2までの情報};です。 ver-b以降...
3つのソースファイルに手を入れます。 こんな方法で良い...
****xoops_version.php
「xoops_version.php」を編集し、管理画面にmodule_config...
下記の388~402行目を追記します。
#code(php,379-){{
$cf++;
$modversion['config'][$cf]['name'] = 'blocksperpage';
$modversion['config'][$cf]['title'] = "_MI_{$MYDIRNAME}_B...
$modversion['config'][$cf]['description'] = "_MI_{$MYDIRN...
$modversion['config'][$cf]['formtype'] = 'select';
$modversion['config'][$cf]['valuetype'] = 'int';
$modversion['config'][$cf]['default'] = 5;
$modversion['config'][$cf]['options'] = array( '0' => 0,'...
$cf++;
$modversion['config'][$cf]['name'] = 'com_agent';
$modversion['config'][$cf]['title'] = "_MI_{$MYDIRNAME}_C...
$modversion['config'][$cf]['description'] = "_MI_XWORDS_C...
$modversion['config'][$cf]['formtype'] = 'textbox';
$modversion['config'][$cf]['valuetype'] = 'text';
$modversion['config'][$cf]['default'] = '';
$cf++;
$modversion['config'][$cf]['name'] = 'com_agent_forumid';
$modversion['config'][$cf]['title'] = "_MI_{$MYDIRNAME}_C...
$modversion['config'][$cf]['description'] = "_MI_XWORDS_C...
$modversion['config'][$cf]['formtype'] = 'textbox';
$modversion['config'][$cf]['valuetype'] = 'int';
$modversion['config'][$cf]['default'] = 0;
// On Install
if( ! empty( $_POST['fct'] ) && ! empty( $_POST['op'] ) &...
{
include XOOPS_ROOT_PATH . "/modules/{$mydirname}/include...
}
}}
****languages/japanese/modinfo.php
「modinfo.php」を編集し、上の作業で追加した管理画面の項...
以下の158~162行目を追記します。
#code(php,150-){{
//Names of Blocks and Block information
define("_MI_{$MYDIRNAME}_ENTRIESNEW", "新着ブロック");
define("_MI_{$MYDIRNAME}_ENTRIESTOP", "人気ブロック");
define("_MI_{$MYDIRNAME}_RANDOMTERM", "ランダムブロック");
define("_MI_{$MYDIRNAME}_TERMINITIAL", "頭文字ブロック");
//define("_MI_{$MYDIRNAME}_NOTUJIS", "MYSQLの環境が defau...
define("_MI_{$MYDIRNAME}_COM_AGENT","コメントシステムの設...
define("_MI_{$MYDIRNAME}_COM_AGENTDSC","d3forumのコメント...
define("_MI_{$MYDIRNAME}_COM_AGENTID","コメントのforum_id...
define("_MI_{$MYDIRNAME}_COM_AGENTIDDSC","コメント統合を...
?>
}}
****header.php
「header.php」に、下記のように56~65行目を追記しま...
module_config設定項目を、smarty変数でテンプレートに渡す...
#code(php,54-){{
$myts = & XwordsTextSanitizer::getInstance();
// モジュールID // added by naao
$module_handler =& xoops_gethandler('module');
$this_module =& $module_handler->getByDirname($my...
$mid = $this_module->getVar('mid');
// モジュールconfig // added by naao
$config_handler =& xoops_gethandler("config");
$mod_config = $config_handler->getConfigsByCat(0,...
$xoopsTpl->assign("moduleConfig", $mod_config);
?>
}}
***テンプレートの編集
続いて、テンプレートを1つ、Altsysなどで編集します。
****xwords_entry.html
「xwords_entry.html」の、105~125行目 を以下のよ...
#code(html,105-){{
<{if $moduleConfig.com_agent}>
<{d3comment mydirname='xwords' id=$thisterm.id subject=...
<{else}>
<{* comment nav block *}>
<{if $commentsnav}>
<div style="clear:both;margin:0.1em 0em;padding:0em;">
<fieldset class="item" style="border:1px solid #778;m...
<legend class="itemHead"><{$lang_comment}></legend>
<div style="margin:1em 0em;padding:0em;text-align:c...
<{$commentsnav}>
<{$lang_notice}>
<!-- start comments loop -->
<{if $comment_mode == "flat"}>
<{include file="db:system_comments_flat.html"}>
<{elseif $comment_mode == "thread"}>
<{include file="db:system_comments_thread.html"}>
<{elseif $comment_mode == "nest"}>
<{include file="db:system_comments_nest.html"}>
<{/if}>
<!-- end comments loop -->
</div>
</fieldset>
</div>
<{/if}>
<{/if}>
}}
***モバイル用テンプレート
モバイルテンプハウスで、[[作成・公開中:http://www.mc8.j...
**インストールと設定
xoops管理画面の「モジュールの管理」で、''&font(Maroon){...
&ref(xwords_config.gif,mw:240,mh:240);
ここで、
+コメントシステムの設定 : d3forumのコメント統合機能を...
+コメントのforum_id : コメント統合を選択した場合、統合...
これらを設定すれば完了です。(この編集を行うまでは、xoops...
**その他
***関連情報
- [[minidiary+D3コメント統合へのお知恵を:http://www.xugj...
- [[D3comment統合と、コメント元のイベント通知:http://www....
- [[元ソース(D3commentクラス):http://www.mc8.jp/X//module...
***ライセンス
-xwordsソース、d3forumソース、xugj_blockソース:GPL
ページ名:
ぺージ情報
ぺージ名 :
inc/xwords_d3com
ページ別名 :
未設定
ページ作成 :
なーお
閲覧可
グループ :
すべての訪問者
ユーザー :
すべての訪問者
編集可
グループ :
なし
ユーザー :
なし
Counter: 0, today: 0, yesterday: 0
Go Page Top
Powered by
XOOPS Cube
2.2 © 2001-2012
XOOPS Cube Project
, theme design by
BCOOL
ログイン
ユーザ名:
パスワード:
IDとパスワードを記憶
パスワード紛失
新規登録
メインメニュー
ホーム
なーお'nぶろぐ
フォーラム
なーお'n研究室
xpwiki
最新ページ一覧
全ページ一覧
ヘルプ
新着情報
マイアルバム
ラン記録
大会リスト
シューズリスト
画像マネージャ
マイフレンド
WEBリンク集