返信する: PC/WEBの話題
- Re: XUGJ_BLOCKの件
- 投稿者: なーお 投稿日時: 2009/4/20 21:56
nonn50さん、こんばんは。
hyperWebのほうで、状況は理解しました。
「XUGJ_BLOCK」でグルると、色々参考になるのが出てくると思います。
私の、このサイトトップの中央右のブログ・掲示板・研究室新着も、これで書いています。
そのpicoの本文を参考までに貼っておきますね。 ポイントは、表示したいモジュールのテンプレートの記述を参考にすることだと思います。
なお、本文フィルターは
- Smarty(XoopsTpl)
- BBCode変換
- 顔文字変換
の順で有効にしています。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<strong><em><font size="+1" color="#800080">なーお'nブログ 新着</font></em></strong><br /> <{xugj_block file="modules/dblog1/blocks/blocks.php" func="b_d3blog_latest_entries_show" opt="dblog1,10,40,Y/m/d,1,1,1,80," item="block"}> <ul> <{foreach item=entry from=$block.entries}> <li> <a href="<{$block.mod_url}>/details.php?bid=<{$entry.bid}>"> <{$entry.title}></a> (<{$entry.date}>) </li> <{$entry.contents}> <{/foreach}> </ul><br /> <strong><em><font size="+1" color="#800080">掲示板・コメント 新着 </font></em></strong><br /> <{xugj_block file="modules/d3forum/blocks/blocks.php" func="b_d3forum_list_topics_show" opt="d3forum,10,false,time,false,,,," item="block"}> <ul style="margin: 0pt; padding: 3px;"> <{foreach item=topic from=$block.topics}> <li><a href="<{$block.mod_url}>/index.php?topic_id=<{$topic.id}>"><{$topic.title}></a>(<{$topic.replies}>) <br /><{$topic.last_uname}> <{$topic.last_post_time_formatted}></li> <{/foreach}> </ul><br /> <strong><em><font size="+1" color="#800080">なーお'n研究室 新着 </font></em></strong><br /> <{xugj_block file="modules/plactice/blocks/blocks.php" func="b_pico_list_show" opt="plactice,,o.modified_time DESC,10," item="block"}> <ul style="margin: 0pt; padding: 3px;"> <{foreach from=$block.contents item=content}> <li><a href="<{$block.mod_url}>/<{$content.link}>"> [<{$content.cat_title}>] <{$content.subject|mb_truncate:"40"}></a> (<{$content.modified_time_formatted}>) <{if $block.display_body && $content.body}><br /> <{$content.body|strip_tags|truncate:"100"}> <{/if}> </li><{/foreach}> </ul>