5: 2008-08-30 (土) 08:54:22 なーお  |
現: 2019-08-17 (土) 07:11:56 なーお  |
| $i++; | | $i++; |
| } | | } |
| + | |
| // モジュールconfig // added by naao | | // モジュールconfig // added by naao |
| $config_handler =& xoops_gethandler("config"); | | $config_handler =& xoops_gethandler("config"); |
| $yd_config = $config_handler->getConfigsByCat(0, $mid); | | $yd_config = $config_handler->getConfigsByCat(0, $mid); |
| $block[0]['yd_moduleConfig']=$yd_config; | | $block[0]['yd_moduleConfig']=$yd_config; |
| + | |
| return $block; | | return $block; |
| } | | } |
| ***テンプレートの編集 [#pddd4a6b] | | ***テンプレートの編集 [#pddd4a6b] |
| 続いて、テンプレートを5つ、Altsysなどで編集します。 | | 続いて、テンプレートを5つ、Altsysなどで編集します。 |
- | | |
- | いちいち編集するのが面倒、という私のような :-D 人のために、 5つのテンプレートをzipでダウンロード可能にして置きます。 Altsysの「テンプレートの高度な操作」などでDBへインポートして下さい。 | |
- | | |
- | |&ref(yd_templates_d3comment_0_24_0.zip);| | |
| | | |
| **** b_diarylist.html[#j847a4b6] | | **** b_diarylist.html[#j847a4b6] |
| }} | | }} |
| | | |
- | ↓ 以下のように変更。 | + | ↓ 以下のように変更。 (08/08.30 XUGJ_blockの指定が変数になっていない分を修正) |
| | | |
| #code(html,49-){{ | | #code(html,49-){{ |
| | | |
| <{if $yd_moduleConfig.com_agent}> | | <{if $yd_moduleConfig.com_agent}> |
- | <{xugj_block file=modules/`$yd_moduleConfig.com_agent`/blocks/blocks.php func="b_d3forum_list_posts_show" opt="forum,10,time,,,17" item="block"}> | + | <{xugj_block file=modules/`$yd_moduleConfig.com_agent`/blocks/blocks.php func="b_d3forum_list_posts_show" opt="`$yd_moduleConfig.com_agent`,10,time,,,`$yd_moduleConfig.com_agent_forumid`" item="block"}> |
| <{section name=num max=3}> | | <{section name=num max=3}> |
| <ol style="padding:3px;margin:0;"> | | <ol style="padding:3px;margin:0;"> |