<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE feed [
      <!ENTITY lt "&#38;#60;">
      <!ENTITY gt "&#62;">
      <!ENTITY amp "&#38;#38;">
      <!ENTITY apos "&#39;">
      <!ENTITY quot "&#34;">
      <!ENTITY nbsp "&#160;">
      <!ENTITY copy "&#169;">
]>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title type="text">ブログ</title>
    <subtitle type="text">XCL Labo-XCL の利用とカスタマイズに関する備忘録</subtitle>
    <updated>2026-04-19T21:55:44+09:00</updated>
    <id>https://xcl.masa-lab.net/modules/d3blog/index.php</id>
    <link rel="alternate" type="text/xhtml" hreflang="ja" href="https://xcl.masa-lab.net/" />
    <link rel="self" type="application/atom+xml" href="https://xcl.masa-lab.net/modules/d3blog/index.php?page=atom" />
    <rights>Copyright &copy; 2008-2018 by MASA Lab.</rights>
    <generator uri="https://xcl.masa-lab.net/">D3BLOG - XOOPS BLOG MODULE</generator>
    <entry>
        <title>XOOPS X 標準テーマのカスタマイズ</title>
        <link rel="alternate" type="text/xhtml" href="https://xcl.masa-lab.net/modules/d3blog/details.php?bid=196" />
        <id>https://xcl.masa-lab.net/modules/d3blog/details.php?bid=196</id>
        <published>2014-03-02T22:00:00+09:00</published>
        <updated>2014-04-18T20:55:44+09:00</updated>
        <category term="開発に役立つもの" label="開発に役立つもの" />
        <author>
            <name>masa</name>
        </author>
        <summary type="html" xml:base="https://xcl.masa-lab.net/" xml:lang="ja">XOOPS X の標準テーマでは、トップページにフリック画像が組み込まれている。これをカスタマイズしてみよう。</summary>
       <content type="html" xml:lang="ja" xml:base="https://xcl.masa-lab.net/">
<![CDATA[<div>XOOPS X の標準テーマでは、トップページにフリック画像が組み込まれている。<br />これをカスタマイズしてみよう。<br />■トップページのフリック部分の画像変更<br /><br />●画像サイズを変えたい<br />元のサイズは 950x320px である。<br /><br />画像の変更<br />オリジナルの画像は images/main_xoops_picture_01.jpg (同02, 03)<br />theme.html の <* flick *}> 以下の↓の部分がひとつのフリックカラム<br /><pre class="blogCode"><code>
&lt;div class=&quot;flickCol&quot;&gt;
	&lt;p&gt;&lt;a href=&quot;#&quot;&gt;
	&lt;img src=&quot;&lt;{$xoops_imageurl}&gt;images/main_xoops_picture_01.jpg&quot; width=&quot;100%&quot; alt=&quot;picture_01&quot; /&gt;
	&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
</code></pre><br />これを増減すれば、カラムの増減が可能。<br />&lt;a href="#"&gt;<br />を変更すればリンク先を変えられる。<br /><br />CSSの変更<br />css/jquery-jcflick.css の <br /><pre class="blogCode"><code>
#flickMain .flickContainer {
	_width: 950px;
	max-height: 320px;
	_height: 320px;
}
</code></pre><br />を変更する。</div>]]>
       </content>
    </entry>
    <entry>
        <title>自動でテンプレートを更新</title>
        <link rel="alternate" type="text/xhtml" href="https://xcl.masa-lab.net/modules/d3blog/details.php?bid=50" />
        <id>https://xcl.masa-lab.net/modules/d3blog/details.php?bid=50</id>
        <published>2008-07-06T23:50:00+09:00</published>
        <updated>2008-09-11T09:35:33+09:00</updated>
        <category term="開発に役立つもの" label="開発に役立つもの" />
        <author>
            <name>masa</name>
        </author>
        <summary type="html" xml:base="https://xcl.masa-lab.net/" xml:lang="ja">altsys [0.58] の便利な機能おすすめ度：★★★★★モジュール開発には必須開発をしている際には頻繁にテンプレートを修正する。このとき修正したテンプレートを毎回DBテンプレートに反...</summary>
       <content type="html" xml:lang="ja" xml:base="https://xcl.masa-lab.net/">
<![CDATA[<div>altsys [0.58] の便利な機能<br />おすすめ度：★★★★★<br />モジュール開発には必須<br /><br />開発をしている際には頻繁にテンプレートを修正する。<br />このとき修正したテンプレートを毎回DBテンプレートに反映したり、DBテンプレートを直接修正するのは大変だ。<br /><br />altsys [0.58] の機能を使えば、モジュールのテンプレートを修正した際に自動でDBテンプレートを更新することができる。<br />mainfile.phpのcommon.php読込行の直後に<br />$tplsadmin_autoupdate_dirnames 配列に、対象となるモジュールディレクトリ名を設定し、<br />autoupdate_from_module.inc.php をインクルードする。<br /><pre class="blogCode"><code>
include XOOPS_ROOT_PATH.&quot;/include/common.php&quot;;

$tplsadmin_autoupdate_dirnames = array( &#039;piCal&#039; ) ;
include XOOPS_TRUST_PATH.&quot;/libs/altsys/include/autoupdate_from_module.inc.php&quot; ;
</code></pre><br />上の例では piCal を対象としている。<br /><br />D3モジュールの場合は次のようにする。<br /><pre class="blogCode"><code>
$tplsadmin_autoupdate_mydirnames = array( &#039;pico&#039; , &#039;d3forum&#039; ) ;
include XOOPS_TRUST_PATH.&quot;/libs/altsys/include/autoupdate_from_d3module.inc.php&quot; ;
</code></pre></div>]]>
       </content>
    </entry>
    <entry>
        <title>開発で役に立つもの - XOOPS Cube デバッグ用 preload “ryusDebug”</title>
        <link rel="alternate" type="text/xhtml" href="https://xcl.masa-lab.net/modules/d3blog/details.php?bid=32" />
        <id>https://xcl.masa-lab.net/modules/d3blog/details.php?bid=32</id>
        <published>2008-06-22T01:50:00+09:00</published>
        <updated>2008-09-08T13:01:06+09:00</updated>
        <category term="開発に役立つもの" label="開発に役立つもの" />
        <author>
            <name>masa</name>
        </author>
        <summary type="html" xml:base="https://xcl.masa-lab.net/" xml:lang="ja">これはすばらしい。おすすめ度：★★★★★モジュール開発には必須ですね。XOOPS Cube デバッグ用 preload “ryusDebug”http://ryus.co.jp/modules/wordpress/index.php?p=107プリロードを追加して、テーマの...</summary>
       <content type="html" xml:lang="ja" xml:base="https://xcl.masa-lab.net/">
<![CDATA[<div>これはすばらしい。<br />おすすめ度：★★★★★<br />モジュール開発には必須ですね。<br /><br />XOOPS Cube デバッグ用 preload “ryusDebug”<br /><a href="http://ryus.co.jp/modules/wordpress/index.php?p=107" rel="external">http://ryus.co.jp/modules/wordpress/index.php?p=107</a><br /><br />プリロードを追加して、テーマの中に<br /><pre class="blogCode"><code>
&lt;{xoops_explaceholder control=ryusDumpSql}&gt;
</code></pre><br />を書いておくことによって SQL のクエリを確認することができます。<br /><br />おぉ、xoops ってこんなにクエリを発行するんだね。まぁ仕方ないか...<br />という感想は置いておいて。<br /><br />デバッグ用の print なども見られる。<br /><pre class="blogCode"><code>
&lt;{$stdout_buffer}&gt;
</code></pre><br /><br />うれしい〜〜〜〜〜〜<br /><br />すばらしいものをありがとうございます。<br /><br />ちなみに、元のままだとSQLにHTML特殊文字が入っていた場合に表示に問題が発生するので、若干修正。<br /><br />40行目を<br /><pre class="blogCode"><code>
    $qlog[&#039;sql&#039;],
</code></pre><br />から<br /><pre class="blogCode"><code>
    htmlspecialchars($qlog[&#039;sql&#039;]),
</code></pre><br /><br />45行目を<br /><pre class="blogCode"><code>
    $log[] = &#039;&lt;li&gt;&#039;.$qlog[&#039;sql&#039;].&#039;&lt;/li&gt;&#039;;
</code></pre><br />から<br /><pre class="blogCode"><code>
    $log[] = &#039;&lt;li&gt;&#039;.htmlspecialchars($qlog[&#039;sql&#039;]).&#039;&lt;/li&gt;&#039;;
</code></pre><br />へ変更。</div>]]>
       </content>
    </entry>
</feed>