サポート
二つほど質問があります
茎 (2016/01/10 19:18)
設置URL : http://stem555.lv9.org/index.php/
はじめまして。どなたかわかる方がいらっしゃいましたらご教授下さい。
・エントリーイメージ表示をプラグインし、templates/utility.htmlにコードを挿入したのですが、うまく表示出来ないようです。
表示できるようにするにはどうしたら良いでしょうか。
・記事をエントリーすると、エントリー日時にズレが生じるようです。
たとえば、12時に投稿したとすると、エントリー情報の日時は10時と表記されます。
日時のズレを直すには、どうすれば良いでしょうか?
ccc (2016/01/11 22:40)
URL : http://cccabinet.jpn.org/
エントリーイメージ表示をプラグインし、templates/utility.htmlにコードを挿入したのですが、うまく表示出来ないようです。
どのようなコードを挿入したのでしょう?
それと設置されているfreoの記事にはエントリーイメージは登録されていますか?
記事をエントリーすると、エントリー日時にズレが生じるようです。
恐らくサーバーのPHPタイムゾーンの設定がズレているかと思われます。サーバーがLv9のようなので、デフォルトのPHPタイムゾーンの「America/NewYork」のままだと恐らく14時間(サマータイムだと13時間)ズレているはずです。
日本の場合はPHPタイムゾーンを「Asia/Tokyo」にしてください。
ちなみに設定方法は、https://lv9.org/user_login からコントロールパネルにログインし、「Software/Services」にある「PHP Config」をクリックして「Alter PHP Directives」を押し、「PHP Timezone」で「Asia/Tokyo」を選択して「Alter PHP Directives」を押してください。
茎 (2016/01/12 14:25)
こんにちは。
タイムゾーンを直すことができました。ありがとうございます。
エントリーイメージ表示のコードなのですが、下記のコードを入れております。
<!--{if $plugin_entry_galleries|smarty:nodefaults}-->
<div class="utility">
<h3>新着画像</h3>
<div class="content">
<ul class="gallery"> <!--{foreach from=$plugin_entry_galleries|smarty:nodefaults item='plugin_entry_gallery'}-->
<li><a href="{$freo.core.http_file}/view/{if $plugin_entry_gallery.code}{$plugin_entry_gallery.code}{else}{$plugin_entry_gallery.id}{/if}"><!--{if $plugin_entry_gallery.image}--><img src="{$freo.core.http_url}{$smarty.const.FREO_FILE_DIR}entry_images/{$plugin_entry_gallery.id}/{$plugin_entry_gallery.image}" alt="{$plugin_entry_gallery.memo|default:$plugin_entry_gallery.title}" title="{$plugin_entry_gallery.memo|default:$plugin_entry_gallery.title}" /><!--{elseif $plugin_entry_gallery_thumbnails[$plugin_entry_gallery.id]}--><img src="{$freo.core.http_url}{$smarty.const.FREO_FILE_DIR}entry_thumbnails/{$plugin_entry_gallery.id}/{$plugin_entry_gallery.file}" alt="{$plugin_entry_gallery.memo|default:$plugin_entry_gallery.title}" title="{$plugin_entry_gallery.memo|default:$plugin_entry_gallery.title}" /><!--{elseif $plugin_entry_gallery.file}--><img src="{$freo.core.http_url}{$smarty.const.FREO_FILE_DIR}entry_files/{$plugin_entry_gallery.id}/{$plugin_entry_gallery.file}" alt="{$plugin_entry_gallery.memo|default:$plugin_entry_gallery.title}" title="{$plugin_entry_gallery.memo|default:$plugin_entry_gallery.title}" /><!--{elseif $plugin_entry_gallery_medias[$plugin_entry_gallery.id].file}--><img src="{$plugin_entry_gallery_medias[$plugin_entry_gallery.id].file}" alt="{$plugin_entry_gallery.memo|default:$plugin_entry_gallery.title}" title="{$plugin_entry_gallery.memo|default:$plugin_entry_gallery.title}" /><!--{else}-->{$plugin_entry_gallery.memo|default:$plugin_entry_gallery.title}<!--{/if}--></a></li>
<!--{/foreach}-->
</ul></div>
ccc (2016/01/14 21:01)
URL : http://cccabinet.jpn.org/
どうやら茎さんが入れたコードはエントリーギャラリーのもののようです。
エントリーイメージの場合は、templates/utility.htmlに
<!--{if $plugin_entry_images|smarty:nodefaults}-->
<div class="utility">
<h3>新着エントリーイメージ</h3>
<div class="content">
<ul class="gallery">
<!--{foreach from=$plugin_entry_images|smarty:nodefaults item='plugin_entry_image'}-->
<li><a href="{$freo.core.http_file}/view/{if $plugin_entry_image.code}{$plugin_entry_image.code}{else}{$plugin_entry_image.id}{/if}"><!--{if $plugin_entry_image.image}--><img src="{$freo.core.http_url}{$smarty.const.FREO_FILE_DIR}entry_images/{$plugin_entry_image.id}/{$plugin_entry_image.image}" alt="{$plugin_entry_image.memo|default:$plugin_entry_image.title}" title="{$plugin_entry_image.memo|default:$plugin_entry_image.title}" /><!--{else}-->{$plugin_entry_image.memo|default:$plugin_entry_image.title}<!--{/if}--></a></li>
<!--{/foreach}-->
</ul>
</div>
</div>
<!--{/if}-->を入れれば表示できると思います。
茎 (2016/01/18 15:04)
こんにちは。
ご連絡が遅くなり、大変すみません。
何度もすみません、またエントリーイメージ表示プラグインのことで質問がございます。
witchmakers様のphact_Rを使用しているのですが、こちらの(http://www.usamimi.info/~witchmakers/archive/wm_freo/ReadMe.html#plg_entry_image)URLに記載されている、
プラグイン配布ページの『導入方法』にある、『CSSの編集』は不要です (※追記済み)。
サイドバーに新着画像を一覧表示機能の、CSSのコード追加は不要です (※追記済み)。
から、
ユーティリティの場所を確保する
までの説明がちょっとよくわからないので、すみません、どなたか教えていただけないでしょうか?
返信
- この記事に返信します。
- 返信の際は、設置URL以外の項目は入力必須です。