ページへ戻る
印刷
inc/yd_d3com
をテンプレートにして作成 ::
なーおんWEB
xpwiki
:inc/yd_d3com をテンプレートにして作成
開始行:
*minidiaryモジュールで、d3コメント統合
**概要
以前より、[[minidiaryモジュール:http://www.yamareco.com/w...
+ D3コメントクラスは、公開専用です。 一応、こんな風に表...
&ref(yd_d3com_class.gif,mw:200,mh:200);
但し、現状では閲覧権限に連動していません。。 :-( ToDo...
+ コメント統合先のd3forumディレクトリ名・フォーラムid値...
こうすることで、複数サイトを共有化している場合でも、携...
+ コメント一覧ブロックは、xugj_blockで実装しています。([...
が、残念なことに、「表示中の執筆者へのコメントを絞り込...
&br;
**手順と方法
テンプレートだけでなく、ソースの変更も必要ですので、細か...
なお、個別のアップロードも編集も面倒、という人のために、m...
|&ref(minidiary014a2_diff.zip);&br;(08/08/30訂正版:&br;y...
***xugj_blockの準備
xugj_blockを使います。 入手は[[こちら:http://xoops.pea...
解説は[[こちら:http://xfield.info/modules/tautech/conte...
***D3commentクラス
D3commentクラスは、下記ファイルをダウンロード後、「mini...
|&ref(minidiaryD3commentContent.class.php);|
当然ながら、d3forumの方にコメント統合用に掲示板を追加し...
minidiary::minidiaryD3commentContent::
と記載します。
なお、&font(Red){d3forumは0.83a以降のバージョンが必須};...
***minidiaryソースの変更
4つのソースファイルに手を入れます。 こんな方法で良い...
****xoops_version.php
「xoops_version.php」を編集し、管理画面にmodule_config...
下記の103~119行目を追記します。
#code(php,94-){{
$modversion['config'][] = array(
'name' => 'xsns_dirname' ,
'title' => '_MI_XSNS_DIRNAME' ,
'description' => '_MI_XSNS_DIRNAMEDESC' ,
'formtype' => 'textbox',
'valuetype' => 'text',
'default' => ''
);
$modversion['config'][] = array(
'name' => 'com_agent' ,
'title' => '_MI_COM_AGENT' ,
'description' => '_MI_COM_AGENTDSC' ,
'formtype' => 'textbox',
'valuetype' => 'text',
'default' => ''
);
$modversion['config'][]= array(
'name' => 'com_agent_forumid',
'title' => '_MI_COM_AGENTID',
'description' => '_MI_COM_AGENTIDDSC',
'formtype' => 'textbox',
'valuetype' => 'int',
'default' => '0'
);
$modversion['config'][] = array(
'name' => 'use_simplecomment' ,
}}
****languages/japanese/modinfo.php
「modinfo.php」を編集し、上の作業で追加した管理画面の項...
以下の49~53行目を追記します。
#code(php,46-){{
define("_MI_XSNS_DIRNAME","xsnsのディレクトリ名");
define("_MI_XSNS_DIRNAMEDESC","xsnsのディレクトリ名を変更...
define("_MI_COM_AGENT","コメントシステムの設定");
define("_MI_COM_AGENTDSC","d3forumのコメント統合機能を使...
define("_MI_COM_AGENTID","コメントのforum_id");
define("_MI_COM_AGENTIDDSC","コメント統合を選択した場合、...
define("_MI_USE_SIMPLECOMMENT","コメントの表示モード");
}}
****header.php
「header.php」に、下記のように6~15行目を追記します。
module_config設定項目を、smarty変数でテンプレートに渡す...
#code(php,1-){{
<?php
// 定義ファイルのインクルード
include '../../mainfile.php';
include XOOPS_ROOT_PATH.'/modules/minidiary/functions.php';
// モジュールID // added by naao
$module_handler =& xoops_gethandler('module');
$this_module =& $module_handler->getByDirname('minidiar...
$mid = $this_module->getVar('mid');
// モジュールconfig // added by naao
$config_handler =& xoops_gethandler("config");
$yd_config = $config_handler->getConfigsByCat(0, $mid);
$xoopsTpl->assign("yd_moduleConfig", $yd_config);
?>
}}
****blocks/b_diarylist.php
「b_diarylist.php」に、下記のように171~174行目を...
ブロック表示のd3コメント統合のために必要です。
#code(php,166-){{
$block[$j]['other']=1;
$j++;
$i++;
}
// モジュールconfig // added by naao
$config_handler =& xoops_gethandler("config");
$yd_config = $config_handler->getConfigsByCat(0, $mid);
$block[0]['yd_moduleConfig']=$yd_config;
return $block;
}
?>
}}
***テンプレートの編集
続いて、テンプレートを5つ、Altsysなどで編集します。
**** b_diarylist.html
「b_diarylist.html」の、30~49行目 を編集します。
#code(html,29-){{
<tr><td colspan=2><{$block[num2].diary}>
<{if $block[num2].com_num > 0}>
<br />
<a href="<{$xoops_url}>/modules/minidiary/detail.php?bid...
<img src="<{$xoops_url}>/modules/minidiary/images/commen...
<{if $block[num2].newcom > 0}>
<img src="<{$xoops_url}>/modules/minidiary/images/new....
[<{$block[num2].newcom_y}>年<{$block[num2].newcom_m}>...
<{/if}>
<{/if}>
</td></tr>
}}
↓ 以下のように変更。
#code(html,29-){{
<tr><td colspan=2><{$block[num2].diary}>
<{if $block.0.yd_moduleConfig.com_agent}>
<br />
<{d3comment mode="count" var="comcount" mydirname='mini...
<{if $comcount}>
<a href="<{$xoops_url}>/modules/minidiary/detail.ph...
<img src="<{$xoops_url}>/modules/minidiary/images/c...
<{/if}>
<{else}>
<{if $block[num2].com_num > 0}>
<br />
<a href="<{$xoops_url}>/modules/minidiary/detail.php?bid...
<img src="<{$xoops_url}>/modules/minidiary/images/commen...
<{if $block[num2].newcom > 0}>
<img src="<{$xoops_url}>/modules/minidiary/images/new....
[<{$block[num2].newcom_y}>年<{$block[num2].newcom_m}>...
<{/if}>
<{/if}>
<{/if}>
</td></tr>
}}
****yd_detail.html
「yd_detail.html」の、82~124行目 を編集します。
#code(html,81-){{
<{if $yd_use_simplecomment == 0}>
<{$commentsnav}>
<center><{$lang_notice}></center>
<{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}>
<{else}>
<!-- start comment area -->
<{if $comments.0.id >0}>
<a name="viewcomment"></a>
<table class="outer"><tr><th>
コメント
</th></tr><tr><td>
<div style="margin: 1px; padding: 1px;">
<!-- start comments loop -->
<{include file="db:system_comments_flat.html"}>
<!-- end comments loop -->
</div>
</td></tr></table>
<br />
<{/if}>
<!-- start comment form -->
<table class="outer"><tr><th>
コメントを書く
</th></tr><tr><td>
<{if $xoops_isuser==1}>
<{$yr_comment_form}>
<{else}>
コメントを書くには<a href="<{$xoops_url}>/user.php">ログ...
<{/if}>
</td></tr></table>
<!-- end comment form -->
<!-- end comment area -->
<{/if}>
}}
↓ 以下のように変更。(08/08/28 84行目の未修正箇所を修...
#code(html,81-){{
<!-- start comment area -->
<a name="viewcomment"></a>
<{if $yd_moduleConfig.com_agent}>
<{d3comment mydirname='minidiary' id=$yd_data.bid subjec...
<{else}>
<{if $yd_use_simplecomment == 0}>
<{$commentsnav}>
<center><{$lang_notice}></center>
<{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}>
<{else}>
<{if $comments.0.id >0}>
<table class="outer"><tr><th>
コメント
</th></tr><tr><td>
<div style="margin: 1px; padding: 1px;">
<!-- start comments loop -->
<{include file="db:system_comments_flat.html"}>
<!-- end comments loop -->
</div>
</td></tr></table>
<br />
<{/if}>
<!-- start comment form -->
<table class="outer"><tr><th>
コメントを書く
</th></tr><tr><td>
<{if $xoops_isuser==1}>
<{$yr_comment_form}>
<{else}>
コメントを書くには<a href="<{$xoops_url}>/user.php">ログ...
<{/if}>
</td></tr></table>
<!-- end comment form -->
<!-- end comment area -->
<{/if}>
}}
****yd_diarylist.html
「yd_diarylist.html」の、56~66行目 を編集します。
#code(html,55-){{
<tr><td colspan=2><{$yd_data[num2].diary}>
<{if $yd_data[num2].com_num > 0}>
<br />
<a href="<{$xoops_url}>/modules/minidiary/detail.php?bid...
<img src="images/comments.png" border=0 style="vertical-...
<{if $yd_data[num2].newcom > 0}>
<img src="images/new.gif" border=0 style="vertical-ali...
[<{$yd_data[num2].newcom_y}>年<{$yd_data[num2].newcom_...
<{/if}>
<{/if}>
</td></tr>
}}
↓ 以下のように変更。
#code(html,55-){{
<tr><td colspan=2><{$yd_data[num2].diary}>
<{if $yd_moduleConfig.com_agent}>
<{d3comment mode="count" var="comcount" mydirname='mi...
<{if $comcount}>
<a href="<{$xoops_url}>/modules/minidiary/detail.ph...
<img src="images/comments.png" border=0 style="vert...
<{/if}>
<{else}>
<{if $yd_data[num2].com_num > 0}>
<br />
<a href="<{$xoops_url}>/modules/minidiary/detail.php?bid...
<img src="images/comments.png" border=0 style="vertical-...
<{if $yd_data[num2].newcom > 0}>
<img src="images/new.gif" border=0 style="vertical-ali...
[<{$yd_data[num2].newcom_y}>年<{$yd_data[num2].newcom_...
<{/if}>
<{/if}>
<{/if}>
</td></tr>
}}
****yd_index.html
「yd_index.html」の、60~64行目 を編集します。
#code(html,59-){{
<td style="border:1px gray solid;border-bottom:2px gray s...
<a href="<{$xoops_url}>/modules/minidiary/detail.php?bid=...
コメント(<{$yd_data[num].comment_num}>)
</a> |
<a href="<{$xoops_url}>/modules/minidiary/detail.php?bid=...
続きを読む</a>
<{if $yd_editperm==1}>
}}
↓ 以下のように変更。
#code(html,59-){{
<td style="border:1px gray solid;border-bottom:2px gray s...
<{if $yd_moduleConfig.com_agent}>
<{d3comment mode="count" var="comcount" mydirname='minid...
<{if $comcount}>
<a href="<{$xoops_url}>/modules/minidiary/detail.ph...
<{else}>コメント (0)
<{/if}>
<{else}>
<a href="<{$xoops_url}>/modules/minidiary/detail.php?bid...
コメント <{$yd_data[num].comment_num}>
</a>
<{/if}>
|
<a href="<{$xoops_url}>/modules/minidiary/detail.php?bid=...
続きを読む</a>
<{if $yd_editperm==1}>
}}
****yd_rightarea.html
「yd_rightarea.html」の、50~57行目 を編集します。
#code(html,49-){{
<th>最近のコメント</th></tr>
<{section name=num loop=$yd_comment max=3}>
<tr>
<td><img src="<{$xoops_url}>/modules/minidiary/images/enu...
</tr>
<{/section}>
<tr>
<td style="border-top:1px gray solid;text-align:right;">
<img src="<{$xoops_url}>/modules/minidiary/images/arrow1....
</tr>
</table>
}}
↓ 以下のように変更。 (08/08.30 XUGJ_blockの指定が変...
#code(html,49-){{
<th>最近のコメント</th></tr>
<tr><td>
<{if $yd_moduleConfig.com_agent}>
<{xugj_block file=modules/`$yd_moduleConfig.com_agent`/b...
<{section name=num max=3}>
<ol style="padding:3px;margin:0;">
<{foreach item=post from=$block.posts}>
<li style="margin:1px;"><a href="<{$block.mod_url}>/in...
<{/foreach}>
</ol>
<{/section}>
<img src="<{$xoops_url}>/modules/minidiary/images/arrow1...
<{else}>
<{section name=num loop=$yd_comment max=3}>
<tr>
<td><img src="<{$xoops_url}>/modules/minidiary/images/en...
</tr>
<{/section}>
<tr>
<td style="border-top:1px gray solid;text-align:right;">
<img src="<{$xoops_url}>/modules/minidiary/images/arrow1...
<{/if}>
</tr>
</table>
}}
***モバイル用テンプレート
モバイルテンプハウスで、[[作成・公開済:http://www.mc8.j...
**インストールと設定
xoops管理画面の「モジュールの管理」で、''&font(Maroon){...
&ref(yd_confiig.gif,mw:200,mh:200);
ここで、
+コメントシステムの設定 : d3forumのコメント統合機能を...
+コメントのforum_id : コメント統合を選択した場合、統合...
これらを設定すれば完了です。(この編集を行うまでは、xoops...
**その他
***関連情報
- [[minidiary+D3コメント統合へのお知恵を:http://www.xugj...
- [[D3comment統合と、コメント元のイベント通知:http://www....
- [[d3forumコメント統合で、元記事の閲覧権限に連動したい:h...
***ライセンス
-minidiaryソース、d3forumソース、xugj_blockソース:GPL
-アイコン画像について
minidiaryモジュールでは以下のサイトのアイコンや画像ファイ...
famfamfam.com: Silk Icons
http://www.famfamfam.com/lab/icons/silk/
-> [[Creative Commons Attribution 2.5 License:http://crea...
終了行:
*minidiaryモジュールで、d3コメント統合
**概要
以前より、[[minidiaryモジュール:http://www.yamareco.com/w...
+ D3コメントクラスは、公開専用です。 一応、こんな風に表...
&ref(yd_d3com_class.gif,mw:200,mh:200);
但し、現状では閲覧権限に連動していません。。 :-( ToDo...
+ コメント統合先のd3forumディレクトリ名・フォーラムid値...
こうすることで、複数サイトを共有化している場合でも、携...
+ コメント一覧ブロックは、xugj_blockで実装しています。([...
が、残念なことに、「表示中の執筆者へのコメントを絞り込...
&br;
**手順と方法
テンプレートだけでなく、ソースの変更も必要ですので、細か...
なお、個別のアップロードも編集も面倒、という人のために、m...
|&ref(minidiary014a2_diff.zip);&br;(08/08/30訂正版:&br;y...
***xugj_blockの準備
xugj_blockを使います。 入手は[[こちら:http://xoops.pea...
解説は[[こちら:http://xfield.info/modules/tautech/conte...
***D3commentクラス
D3commentクラスは、下記ファイルをダウンロード後、「mini...
|&ref(minidiaryD3commentContent.class.php);|
当然ながら、d3forumの方にコメント統合用に掲示板を追加し...
minidiary::minidiaryD3commentContent::
と記載します。
なお、&font(Red){d3forumは0.83a以降のバージョンが必須};...
***minidiaryソースの変更
4つのソースファイルに手を入れます。 こんな方法で良い...
****xoops_version.php
「xoops_version.php」を編集し、管理画面にmodule_config...
下記の103~119行目を追記します。
#code(php,94-){{
$modversion['config'][] = array(
'name' => 'xsns_dirname' ,
'title' => '_MI_XSNS_DIRNAME' ,
'description' => '_MI_XSNS_DIRNAMEDESC' ,
'formtype' => 'textbox',
'valuetype' => 'text',
'default' => ''
);
$modversion['config'][] = array(
'name' => 'com_agent' ,
'title' => '_MI_COM_AGENT' ,
'description' => '_MI_COM_AGENTDSC' ,
'formtype' => 'textbox',
'valuetype' => 'text',
'default' => ''
);
$modversion['config'][]= array(
'name' => 'com_agent_forumid',
'title' => '_MI_COM_AGENTID',
'description' => '_MI_COM_AGENTIDDSC',
'formtype' => 'textbox',
'valuetype' => 'int',
'default' => '0'
);
$modversion['config'][] = array(
'name' => 'use_simplecomment' ,
}}
****languages/japanese/modinfo.php
「modinfo.php」を編集し、上の作業で追加した管理画面の項...
以下の49~53行目を追記します。
#code(php,46-){{
define("_MI_XSNS_DIRNAME","xsnsのディレクトリ名");
define("_MI_XSNS_DIRNAMEDESC","xsnsのディレクトリ名を変更...
define("_MI_COM_AGENT","コメントシステムの設定");
define("_MI_COM_AGENTDSC","d3forumのコメント統合機能を使...
define("_MI_COM_AGENTID","コメントのforum_id");
define("_MI_COM_AGENTIDDSC","コメント統合を選択した場合、...
define("_MI_USE_SIMPLECOMMENT","コメントの表示モード");
}}
****header.php
「header.php」に、下記のように6~15行目を追記します。
module_config設定項目を、smarty変数でテンプレートに渡す...
#code(php,1-){{
<?php
// 定義ファイルのインクルード
include '../../mainfile.php';
include XOOPS_ROOT_PATH.'/modules/minidiary/functions.php';
// モジュールID // added by naao
$module_handler =& xoops_gethandler('module');
$this_module =& $module_handler->getByDirname('minidiar...
$mid = $this_module->getVar('mid');
// モジュールconfig // added by naao
$config_handler =& xoops_gethandler("config");
$yd_config = $config_handler->getConfigsByCat(0, $mid);
$xoopsTpl->assign("yd_moduleConfig", $yd_config);
?>
}}
****blocks/b_diarylist.php
「b_diarylist.php」に、下記のように171~174行目を...
ブロック表示のd3コメント統合のために必要です。
#code(php,166-){{
$block[$j]['other']=1;
$j++;
$i++;
}
// モジュールconfig // added by naao
$config_handler =& xoops_gethandler("config");
$yd_config = $config_handler->getConfigsByCat(0, $mid);
$block[0]['yd_moduleConfig']=$yd_config;
return $block;
}
?>
}}
***テンプレートの編集
続いて、テンプレートを5つ、Altsysなどで編集します。
**** b_diarylist.html
「b_diarylist.html」の、30~49行目 を編集します。
#code(html,29-){{
<tr><td colspan=2><{$block[num2].diary}>
<{if $block[num2].com_num > 0}>
<br />
<a href="<{$xoops_url}>/modules/minidiary/detail.php?bid...
<img src="<{$xoops_url}>/modules/minidiary/images/commen...
<{if $block[num2].newcom > 0}>
<img src="<{$xoops_url}>/modules/minidiary/images/new....
[<{$block[num2].newcom_y}>年<{$block[num2].newcom_m}>...
<{/if}>
<{/if}>
</td></tr>
}}
↓ 以下のように変更。
#code(html,29-){{
<tr><td colspan=2><{$block[num2].diary}>
<{if $block.0.yd_moduleConfig.com_agent}>
<br />
<{d3comment mode="count" var="comcount" mydirname='mini...
<{if $comcount}>
<a href="<{$xoops_url}>/modules/minidiary/detail.ph...
<img src="<{$xoops_url}>/modules/minidiary/images/c...
<{/if}>
<{else}>
<{if $block[num2].com_num > 0}>
<br />
<a href="<{$xoops_url}>/modules/minidiary/detail.php?bid...
<img src="<{$xoops_url}>/modules/minidiary/images/commen...
<{if $block[num2].newcom > 0}>
<img src="<{$xoops_url}>/modules/minidiary/images/new....
[<{$block[num2].newcom_y}>年<{$block[num2].newcom_m}>...
<{/if}>
<{/if}>
<{/if}>
</td></tr>
}}
****yd_detail.html
「yd_detail.html」の、82~124行目 を編集します。
#code(html,81-){{
<{if $yd_use_simplecomment == 0}>
<{$commentsnav}>
<center><{$lang_notice}></center>
<{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}>
<{else}>
<!-- start comment area -->
<{if $comments.0.id >0}>
<a name="viewcomment"></a>
<table class="outer"><tr><th>
コメント
</th></tr><tr><td>
<div style="margin: 1px; padding: 1px;">
<!-- start comments loop -->
<{include file="db:system_comments_flat.html"}>
<!-- end comments loop -->
</div>
</td></tr></table>
<br />
<{/if}>
<!-- start comment form -->
<table class="outer"><tr><th>
コメントを書く
</th></tr><tr><td>
<{if $xoops_isuser==1}>
<{$yr_comment_form}>
<{else}>
コメントを書くには<a href="<{$xoops_url}>/user.php">ログ...
<{/if}>
</td></tr></table>
<!-- end comment form -->
<!-- end comment area -->
<{/if}>
}}
↓ 以下のように変更。(08/08/28 84行目の未修正箇所を修...
#code(html,81-){{
<!-- start comment area -->
<a name="viewcomment"></a>
<{if $yd_moduleConfig.com_agent}>
<{d3comment mydirname='minidiary' id=$yd_data.bid subjec...
<{else}>
<{if $yd_use_simplecomment == 0}>
<{$commentsnav}>
<center><{$lang_notice}></center>
<{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}>
<{else}>
<{if $comments.0.id >0}>
<table class="outer"><tr><th>
コメント
</th></tr><tr><td>
<div style="margin: 1px; padding: 1px;">
<!-- start comments loop -->
<{include file="db:system_comments_flat.html"}>
<!-- end comments loop -->
</div>
</td></tr></table>
<br />
<{/if}>
<!-- start comment form -->
<table class="outer"><tr><th>
コメントを書く
</th></tr><tr><td>
<{if $xoops_isuser==1}>
<{$yr_comment_form}>
<{else}>
コメントを書くには<a href="<{$xoops_url}>/user.php">ログ...
<{/if}>
</td></tr></table>
<!-- end comment form -->
<!-- end comment area -->
<{/if}>
}}
****yd_diarylist.html
「yd_diarylist.html」の、56~66行目 を編集します。
#code(html,55-){{
<tr><td colspan=2><{$yd_data[num2].diary}>
<{if $yd_data[num2].com_num > 0}>
<br />
<a href="<{$xoops_url}>/modules/minidiary/detail.php?bid...
<img src="images/comments.png" border=0 style="vertical-...
<{if $yd_data[num2].newcom > 0}>
<img src="images/new.gif" border=0 style="vertical-ali...
[<{$yd_data[num2].newcom_y}>年<{$yd_data[num2].newcom_...
<{/if}>
<{/if}>
</td></tr>
}}
↓ 以下のように変更。
#code(html,55-){{
<tr><td colspan=2><{$yd_data[num2].diary}>
<{if $yd_moduleConfig.com_agent}>
<{d3comment mode="count" var="comcount" mydirname='mi...
<{if $comcount}>
<a href="<{$xoops_url}>/modules/minidiary/detail.ph...
<img src="images/comments.png" border=0 style="vert...
<{/if}>
<{else}>
<{if $yd_data[num2].com_num > 0}>
<br />
<a href="<{$xoops_url}>/modules/minidiary/detail.php?bid...
<img src="images/comments.png" border=0 style="vertical-...
<{if $yd_data[num2].newcom > 0}>
<img src="images/new.gif" border=0 style="vertical-ali...
[<{$yd_data[num2].newcom_y}>年<{$yd_data[num2].newcom_...
<{/if}>
<{/if}>
<{/if}>
</td></tr>
}}
****yd_index.html
「yd_index.html」の、60~64行目 を編集します。
#code(html,59-){{
<td style="border:1px gray solid;border-bottom:2px gray s...
<a href="<{$xoops_url}>/modules/minidiary/detail.php?bid=...
コメント(<{$yd_data[num].comment_num}>)
</a> |
<a href="<{$xoops_url}>/modules/minidiary/detail.php?bid=...
続きを読む</a>
<{if $yd_editperm==1}>
}}
↓ 以下のように変更。
#code(html,59-){{
<td style="border:1px gray solid;border-bottom:2px gray s...
<{if $yd_moduleConfig.com_agent}>
<{d3comment mode="count" var="comcount" mydirname='minid...
<{if $comcount}>
<a href="<{$xoops_url}>/modules/minidiary/detail.ph...
<{else}>コメント (0)
<{/if}>
<{else}>
<a href="<{$xoops_url}>/modules/minidiary/detail.php?bid...
コメント <{$yd_data[num].comment_num}>
</a>
<{/if}>
|
<a href="<{$xoops_url}>/modules/minidiary/detail.php?bid=...
続きを読む</a>
<{if $yd_editperm==1}>
}}
****yd_rightarea.html
「yd_rightarea.html」の、50~57行目 を編集します。
#code(html,49-){{
<th>最近のコメント</th></tr>
<{section name=num loop=$yd_comment max=3}>
<tr>
<td><img src="<{$xoops_url}>/modules/minidiary/images/enu...
</tr>
<{/section}>
<tr>
<td style="border-top:1px gray solid;text-align:right;">
<img src="<{$xoops_url}>/modules/minidiary/images/arrow1....
</tr>
</table>
}}
↓ 以下のように変更。 (08/08.30 XUGJ_blockの指定が変...
#code(html,49-){{
<th>最近のコメント</th></tr>
<tr><td>
<{if $yd_moduleConfig.com_agent}>
<{xugj_block file=modules/`$yd_moduleConfig.com_agent`/b...
<{section name=num max=3}>
<ol style="padding:3px;margin:0;">
<{foreach item=post from=$block.posts}>
<li style="margin:1px;"><a href="<{$block.mod_url}>/in...
<{/foreach}>
</ol>
<{/section}>
<img src="<{$xoops_url}>/modules/minidiary/images/arrow1...
<{else}>
<{section name=num loop=$yd_comment max=3}>
<tr>
<td><img src="<{$xoops_url}>/modules/minidiary/images/en...
</tr>
<{/section}>
<tr>
<td style="border-top:1px gray solid;text-align:right;">
<img src="<{$xoops_url}>/modules/minidiary/images/arrow1...
<{/if}>
</tr>
</table>
}}
***モバイル用テンプレート
モバイルテンプハウスで、[[作成・公開済:http://www.mc8.j...
**インストールと設定
xoops管理画面の「モジュールの管理」で、''&font(Maroon){...
&ref(yd_confiig.gif,mw:200,mh:200);
ここで、
+コメントシステムの設定 : d3forumのコメント統合機能を...
+コメントのforum_id : コメント統合を選択した場合、統合...
これらを設定すれば完了です。(この編集を行うまでは、xoops...
**その他
***関連情報
- [[minidiary+D3コメント統合へのお知恵を:http://www.xugj...
- [[D3comment統合と、コメント元のイベント通知:http://www....
- [[d3forumコメント統合で、元記事の閲覧権限に連動したい:h...
***ライセンス
-minidiaryソース、d3forumソース、xugj_blockソース:GPL
-アイコン画像について
minidiaryモジュールでは以下のサイトのアイコンや画像ファイ...
famfamfam.com: Silk Icons
http://www.famfamfam.com/lab/icons/silk/
-> [[Creative Commons Attribution 2.5 License:http://crea...
ページ名: