<?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-23T17:43:34+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>wizmobile と redirect</title>
        <link rel="alternate" type="text/xhtml" href="https://xcl.masa-lab.net/modules/d3blog/details.php?bid=111" />
        <id>https://xcl.masa-lab.net/modules/d3blog/details.php?bid=111</id>
        <published>2008-11-23T21:20:00+09:00</published>
        <updated>2008-11-25T21:36:29+09:00</updated>
        <category term="wizmobile" label="wizmobile" />
        <author>
            <name>masa</name>
        </author>
        <summary type="html" xml:base="https://xcl.masa-lab.net/" xml:lang="ja">(未確認)wizmobile は session を保つために努力してくれるが、モジュール側の問題でうまくセッションを保てないことがあるようだ。controller->executeRedirect に index.php のような url を渡してしま...</summary>
       <content type="html" xml:lang="ja" xml:base="https://xcl.masa-lab.net/">
<![CDATA[<div>(未確認)<br /><br />wizmobile は session を保つために努力してくれるが、モジュール側の問題でうまくセッションを保てないことがあるようだ。<br /><br />controller->executeRedirect に index.php のような url を渡してしまうと、そのまま location: index.php のようになる...<br /><br />このような場合、url は./index.php のように渡してあげると、正しくセッションを保ってくれる。</div>]]>
       </content>
    </entry>
    <entry>
        <title>wizmobile [0.22] のテンプレート変数</title>
        <link rel="alternate" type="text/xhtml" href="https://xcl.masa-lab.net/modules/d3blog/details.php?bid=35" />
        <id>https://xcl.masa-lab.net/modules/d3blog/details.php?bid=35</id>
        <published>2008-06-29T01:50:00+09:00</published>
        <updated>2010-04-16T15:31:05+09:00</updated>
        <category term="wizmobile" label="wizmobile" />
        <author>
            <name>masa</name>
        </author>
        <summary type="html" xml:base="https://xcl.masa-lab.net/" xml:lang="ja">wizmobile [0.22] のテンプレート変数(っていうのか？)wizmobile_carrier  携帯キャリア名(?)  docomo|au|softbank|willcom|emobile|othermobilewizmobile_ismobile  モバイルアクセスの場合 true になる(?)wizmobile_uniqid  端...</summary>
       <content type="html" xml:lang="ja" xml:base="https://xcl.masa-lab.net/">
<![CDATA[<div>wizmobile [0.22] のテンプレート変数(っていうのか？)<br /><br />wizmobile_carrier<br />  携帯キャリア名(?)<br />  docomo|au|softbank|willcom|emobile|othermobile<br /><br />wizmobile_ismobile<br />  モバイルアクセスの場合 true になる(?)<br /><br />wizmobile_uniqid<br />  端末IDが入る(?)<br />  残念ながら willcom は対応していない...<br /><br />wizmobile_dirname<br />  actionClass の dirName(?)<br />  確認する限りではつねに"mobile"が入っている？<br /><br />wizmobile_configs<br />  actionClass の config(?)</div>]]>
       </content>
    </entry>
    <entry>
        <title>D3Blog + wizmobile テンプレート編集</title>
        <link rel="alternate" type="text/xhtml" href="https://xcl.masa-lab.net/modules/d3blog/details.php?bid=41" />
        <id>https://xcl.masa-lab.net/modules/d3blog/details.php?bid=41</id>
        <published>2008-06-27T23:20:00+09:00</published>
        <updated>2008-09-05T16:09:17+09:00</updated>
        <category term="wizmobile" label="wizmobile" />
        <author>
            <name>masa</name>
        </author>
        <summary type="html" xml:base="https://xcl.masa-lab.net/" xml:lang="ja">D3Blog [1.02.xx] を携帯表示にあうようにカスタマイズしてみる。■方針全体に表示を簡素化してスリムにする。特に行を減らす方向で...■やりたいこと(1) 編集系の画面が xoopsdhtmlarea を使っ...</summary>
       <content type="html" xml:lang="ja" xml:base="https://xcl.masa-lab.net/">
<![CDATA[<div>D3Blog [1.02.xx] を携帯表示にあうようにカスタマイズしてみる。<br /><br />■方針<br />全体に表示を簡素化してスリムにする。特に行を減らす方向で...<br /><br />■やりたいこと<br />(1) 編集系の画面が xoopsdhtmlarea を使っていて重いので単なる textarea にする。<br />(2) RSSの配信メニューやカテゴリの表示がリスト表示になっていて、行を稼いでいるので、それをなんとかする。<br /><br /><span style="color: #ff0000;">(追記)</span><br />関連データが<br /><a href="http://archives.masa-lab.net/modules/d3downloads/index.php?page=singlefile&amp;cid=2&amp;lid=3" rel="external">http://archives.masa-lab.net/modules/d3downloads/index.php?page=singlefile&amp;cid=2&amp;lid=3</a><br />にあります。<br />_<br />■事前確認と準備<br />携帯用のテンプレート編集は、テーマ下テンプレートを使って行う。<br />d3blog のソーステンプレートは xoops_trust_path/modules/d3blog/templates にある。<br />ここからテンプレートを html/themes/{モバイルテンプレート名}/templates/d3blog/ の下にコピーしてくる。<br /><br /><br />■投稿画面のスリム化<br />現在のwizmobile [0.22] はページ分割がうまくいかない場合もあり、画面データサイズは極力少なくしたほうが良い。<br />また、携帯では javascript などが使えない場合が多いので、xoopsdhtmlarea や fckeditor はあまり必要がない。<br />基本的に入力部分は textarea に変更して行く。<br /><br />テンプレートは main_submit.html<br /><pre class="blogCode"><code>
&lt;div class=&quot;control&quot;&gt;
&lt;{if $moduleConfig.wysiwyg_editor &amp;&amp; $currentUser.user_perm.allow_html}&gt;
(..中略..)
&lt;/div&gt;
&lt;/div&gt;
</code></pre><br />これをすべて↓に差し替える<br /><pre class="blogCode"><code>
&lt;div class=&quot;control&quot;&gt;
&lt;textarea id=&quot;contents&quot; name=&quot;contents&quot; rows=&quot;5&quot;&gt;&lt;{$entry.contents4edit}&gt;&lt;/textarea&gt;
&lt;/div&gt;
</code></pre><br /><br />うん。とてもシンプルになった。<br /><br />■閲覧画面のカテゴリ表示をスリム化<br />テンプレートは main_details.html<br />カテゴリ表示は &lt;ul&gt;&lt;li&gt;を使っているので<br />・カテゴリトップ<br />・不具合情報<br />・その他<br />・前へ<br />・次へ<br />となっていて、行を使いすぎてしまう。<br />&lt;ul&gt;&lt;li&gt;&lt;/li&gt;&lt;/ul&gt;をはずして、代わりに間に &gt;(&gt;) をはさむ。<br />元のコード<br /><pre class="blogCode"><code>
&lt;div id=&quot;d3blogCommonNavi&quot;&gt;
     &lt;ul class=&quot;d3blogCatNavi&quot;&gt;
(..中略..)
    &lt;/ul&gt;
&lt;/div&gt;
</code></pre><br />これを次のように変更する。<br /><pre class="blogCode"><code>
&lt;div id=&quot;d3blogCommonNavi&quot;&gt;
&lt;{* category *}&gt;
&lt;a href=&quot;&lt;{$mod_url}&gt;/index.php&quot; title=&quot;&lt;{$smarty.const._MD_D3BLOG_LANG_READ_CATEGORY_OF|replace:&#039;%s&#039;:$smarty.const._MD_D3BLOG_LANG_D3BLOG_MAIN}&gt;&quot;&gt;
&lt;{$smarty.const._MD_D3BLOG_LANG_D3BLOG_MAIN}&gt;
&lt;/a&gt;
&lt;{foreach item=cat from=$entry.categorypath name=catloop}&gt;
	&amp;gt;&amp;nbsp;
	&lt;a href=&quot;&lt;{$cat.url}&gt;&quot; title=&quot;&lt;{$smarty.const._MD_D3BLOG_LANG_READ_CATEGORY_OF|replace:&#039;%s&#039;:$cat.name}&gt;&quot;&gt;
	&lt;{$cat.name}&gt;
	&lt;/a&gt;
&lt;{/foreach}&gt;
&lt;br /&gt;
&lt;{* prev|next *}&gt;
	&lt;{if $backandforth.prev_entry}&gt;
	&lt;a href=&quot;&lt;{$backandforth.prev_entry.url}&gt;&quot; title=&quot;&lt;{$smarty.const._MD_D3BLOG_LANG_GO_BACK_TO_PREV_ENTRY|replace:&quot;%s&quot;:$backandforth.prev_entry.title}&gt;&quot;&gt;
	&lt;{$smarty.const._MD_D3BLOG_LANG_PREVIOUS}&gt;
	&lt;/a&gt;
	&lt;{else}&gt;
	&lt;{$smarty.const._MD_D3BLOG_LANG_PREVIOUS}&gt;
	&lt;{/if}&gt;
	|&lt;{if $backandforth.next_entry}&gt;
	&lt;a href=&quot;&lt;{$backandforth.next_entry.url}&gt;&quot; title=&quot;&lt;{$smarty.const._MD_D3BLOG_LANG_GO_TO_NEXT_ENTRY|replace:&quot;%s&quot;:$backandforth.next_entry.title}&gt;&quot;&gt;
	&lt;{$smarty.const._MD_D3BLOG_LANG_NEXT}&gt;
	&lt;/a&gt;
	&lt;{else}&gt;
	&lt;{$smarty.const._MD_D3BLOG_LANG_NEXT}&gt;
	&lt;{/if}&gt;
&lt;/div&gt;
&lt;hr /&gt;
</code></pre><br /><br />これで次のようになる。<br /><br />カテゴリトップ &gt; 不具合情報 &gt; その他<br />前へ | 次へ<br /><br /><br />■閲覧画面のスリム化<br />標準のカテゴリ名と執筆者の表示部分<br />カテゴリ：<br />  不具合情報 その他<br />執筆：<br />  masa 2008-5-23 11:52<br /><pre class="blogCode"><code>
&lt;dl class=&quot;d3blogEntryCategory&quot;&gt;&lt;dt&gt;&lt;{$smarty.const._MD_D3BLOG_LANG_CATEGORY}&gt;&amp;nbsp;:&amp;nbsp;&lt;/dt&gt;
&lt;dd&gt;&lt;{foreach item=path name=catpathloop from=$entry.categorypath}&gt;
...(中略)...
&lt;{else}&gt;&lt;{$entry.blogger.uname}&gt;&lt;{/if}&gt;&lt;/a&gt;&amp;nbsp;&lt;span class=&quot;d3blogEntryCreated&quot;&gt;&lt;{$entry.published|format_timestamp:&quot;m&quot;}&gt;&lt;/span&gt;&lt;/dd&gt;
&lt;/dl&gt;
</code></pre><br /><br />これを&lt;dl&gt;&lt;dd&gt;をやめて、<br /><pre class="blogCode"><code>
&lt;{$smarty.const._MD_D3BLOG_LANG_CATEGORY}&gt;:&amp;nbsp;
&lt;{foreach item=path name=catpathloop from=$entry.categorypath}&gt;
&lt;a href=&quot;&lt;{$path.url}&gt;&quot; title=&quot;&lt;{$smarty.const._MD_D3BLOG_LANG_READ_CATEGORY_OF|replace:&#039;%s&#039;:$path.name}&gt;&quot;&gt;&lt;{$path.name}&gt;&lt;/a&gt;&lt;{if !$smarty.foreach.catpathloop.last}&gt;&amp;nbsp;&amp;raquo;&lt;{/if}&gt;	
&lt;{/foreach}&gt;&lt;br /&gt;
&lt;{$smarty.const._MD_D3BLOG_LANG_BLOGGER_NAME}&gt;&amp;nbsp;:&amp;nbsp;
&lt;a href=&quot;&lt;{$xoops_url}&gt;/userinfo.php?uid=&lt;{$entry.uid}&gt;&quot; title=&quot;&lt;{$smarty.const._MD_D3BLOG_LANG_SEE_BLOGGER_PROFILE|replace:&#039;%s&#039;:$entry.blogger.uname}&gt;&quot;&gt;
&lt;{$entry.blogger.uname}&gt;&lt;/a&gt;&amp;nbsp;(&lt;span class=&quot;d3blogEntryCreated&quot;&gt;&lt;{$entry.published|format_timestamp:&quot;s&quot;}&gt;&lt;/span&gt;)
</code></pre><br />これで次のような表示になった。<br /><br />カテゴリ：不具合情報 その他<br />執筆 : masa (2008-5-23)<br /><br /><br />■閲覧画面本文下メニューの並列化<br />標準では次のようになっている。<br />・masaさんのブログを読む<br />・コメント(3)<br />・トラックバック(0)<br />・閲覧(102)<br />これも &lt;ul&gt;&lt;li&gt; なので、&lt;ul&gt;&lt;li&gt;&lt;/li&gt;&lt;/ul&gt; をはずして、代わりに間に | をはさむ。<br />また、本文とメニューの間に区切り線を入れる。<br />これで次のような表示なる(コード省略)。<br /><br />masaさんのブログを読む | コメント<br />(3) | 閲覧(102)<br /><br /><br />■コメント投稿画面のスリム化<br />テンプレートは inc_comment_form.html<br />xoopsdhtmlarea を textarea に変更し、その他のコントロール類もはずす。<br /><br />コードは省略...<br /><br />■RSS配信メニューを並列化する<br />テンプレートは inc_header.html<br />標準では&lt;ul&gt;&lt;li&gt;を使っているので、<br />・RSS<br />・RDF<br />・ATOM<br />のように表示されてしまうので、&lt;ul&gt;&lt;li&gt; を取る。<br /><pre class="blogCode"><code>
&lt;{if $moduleConfig.show_feeder_link and $feeder}&gt;
        &lt;{$feeder.what_feeder.lang}&gt;&lt;{$smarty.const._MD_D3BLOG_LANG_LATEST_ENTRY_FEED}&gt;:
        &lt;a href=&quot;&lt;{$feeder.rss}&gt;&lt;{$feeder.what_feeder.uri}&gt;&quot; title=&quot;&lt;{$smarty.const._MD_D3BLOG_LANG_RDF_GUIDE|replace:&#039;%s&#039;:&#039;RSS&#039;}&gt;&quot;&gt;RSS&lt;/a&gt;|
        &lt;a href=&quot;&lt;{$feeder.rdf}&gt;&lt;{$feeder.what_feeder.uri}&gt;&quot; title=&quot;&lt;{$smarty.const._MD_D3BLOG_LANG_RDF_GUIDE|replace:&#039;%s&#039;:&#039;RDF&#039;}&gt;&quot;&gt;RDF&lt;/a&gt;|
        &lt;a href=&quot;&lt;{$feeder.atom}&gt;&lt;{$feeder.what_feeder.uri}&gt;&quot; title=&quot;&lt;{$smarty.const._MD_D3BLOG_LANG_RDF_GUIDE|replace:&#039;%s&#039;:&#039;ATOM&#039;}&gt;&quot;&gt;ATOM&lt;/a&gt;
&lt;br /&gt;
&lt;{/if}&gt;
&lt;h2 id=&quot;d3blogHeader&quot;&gt;&lt;{$myname}&gt; - &lt;{$page_subtitle}&gt;&lt;/h2&gt;
</code></pre><br />これでOK</div>]]>
       </content>
    </entry>
    <entry>
        <title>wizmobile [0.22] ログイン画面のカスタマイズ</title>
        <link rel="alternate" type="text/xhtml" href="https://xcl.masa-lab.net/modules/d3blog/details.php?bid=36" />
        <id>https://xcl.masa-lab.net/modules/d3blog/details.php?bid=36</id>
        <published>2008-06-26T00:10:00+09:00</published>
        <updated>2008-09-09T15:15:08+09:00</updated>
        <category term="wizmobile" label="wizmobile" />
        <author>
            <name>masa</name>
        </author>
        <summary type="html" xml:base="https://xcl.masa-lab.net/" xml:lang="ja">wizmobile [0.22] のログイン画面には、簡単ログインボタンの下に注意書きが書かれている。携帯の画面は小さいので、ユーザー名のテキストボックスが下のほうに行ってしまうので、注意書...</summary>
       <content type="html" xml:lang="ja" xml:base="https://xcl.masa-lab.net/">
<![CDATA[<div>wizmobile [0.22] のログイン画面には、簡単ログインボタンの下に注意書きが書かれている。<br />携帯の画面は小さいので、ユーザー名のテキストボックスが下のほうに行ってしまうので、注意書きを画面下に移すことにした。<br />このままだと注意書きに気がつかないので、代わりにボタンの下に「簡単ログインとは」というリンクをはることにした。<br /><br />カスタマイズはテンプレートだけで行うことができる。<br />テンプレートは次のとおり。<br />「携帯対応モジュール」 mobile_main_login.html <br /><br /><pre class="blogCode"><code>
@@ -2,9 +2,12 @@
     &lt;form action=&quot;index.php&quot; method=&quot;post&quot;&gt;
         &lt;input type=&quot;hidden&quot; name=&quot;act&quot; value=&quot;Login&quot; /&gt;
         &lt;input type=&quot;submit&quot; value=&quot;&lt;{&quot;WIZMOBILE_LANG_SIMPLE_LOGIN&quot;|wiz_constant}&gt;&quot; /&gt;
     &lt;/form&gt;
-    &lt;span style=&quot;margin-top: 1em; color: #ff0000;&quot;&gt;
             &lt;{&quot;WIZMOBILE_MSG_SIMPLE_LOGIN_CAUTION&quot;|wiz_constant}&gt;&lt;/span&gt;
+    &lt;a href=&quot;#slogin&quot;&gt;簡単ログインとは&lt;/a&gt;
 &lt;/div&gt;
 &lt;br /&gt;
 
 &lt;{include file=&quot;db:user_block_login.html&quot;}&gt;
+&lt;a name=&quot;slogin&quot; id=&quot;slogin&quot;&gt;&lt;/a&gt;
+&lt;span style=&quot;margin-top: 1em; color: #ff0000;&quot;&gt;
        &lt;{&quot;WIZMOBILE_MSG_SIMPLE_LOGIN_CAUTION&quot;|wiz_constant}&gt;&lt;/span&gt;
+
</code></pre><br /><br />メッセージはそのまま使ったが、「機種ID登録」をどこでやればいいのかがわかりにくいかも...</div>]]>
       </content>
    </entry>
</feed>