Hatena::ブログ(Diary)

にっき? このページをアンテナに追加 RSSフィード

2011-03-23

[]heteml ECCUBEインストール(公式) heteml ECCUBEインストール(公式)を含むブックマーク

http://heteml.jp/support/manual/ec-cube/

データベースの作成

独自ドメインの設定

htmlドメイン指定フォルダに。

ダウンロード>インストール>設定

hetemlのサイトから.htaccessのファイルをhtmlフォルダに、指示どおりUP

http://heteml.jp/download/php5.zip

http://example.com/install/アクセス。各設定。

■/web/example/html/install/index.php ファイルを削除

html/mobile/.htaccess の削除

php.iniの設定

mbstring.language Japanese

mbstring.internal_encoding UTF-8

mbstring.encoding_translation On

mbstring.http_input 未設定

mbstring.http_output 未設定

session.use_trans_sid 未設定

default_charset 未設定

magic_quotes_gpc Off

short_open_tag On

■「システム設定」→「パラメータ設定」

「MAIL_BACKEND」を「mail」に..

郵便番号情報の更新

http://www.eccube-school.jp/products/detail36.html

http://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=2683&forum=11

#2.11以降、UTF-8に変換せず、手動更新の方がスムーズに進んだよ。

2011-03-11

[]lolipop 設定 lolipop 設定を含むブックマーク

http://lolipop.jp/manual/blog/concrete5/

wwwなし、ありを統一する

http://server.tetuduki.info/f/lol/004wwwarinasi.html

DBバックアップのエラー対策(concrete5.4.1.1.1 日本語)

http://concrete5-japan.org/community/forums/chat/post-1761/

/concrete/libraries/backup.php の13行

修正前

$arr_tables = $db->getCol("SHOW TABLES FROM " . DB_DATABASE);

修正後

$arr_tables = $db->getCol("SHOW TABLES FROM `" . DB_DATABASE . "`");

2011-02-23 failed to open stream: No such file or directory in このエントリーを含むブックマーク


require_once で相対パスを使うと・・・

http://code.nanigac.com/source/view/303

2011-02-04 [Joomla]sixcore 設定 このエントリーを含むブックマーク

http://www.joomlaway.net/tutorial/install-guide/983-sixcore.html

MySQL設定からデータベースを作成

ユーザを追加し、データベースへ権限を追加する

php.iniの設定

display_errors = Off

mbstring.language = neutral

mbstring.internal_encoding = utf-8

ファイルのアップロード

ブラウザからのインストール

niadayoniadayo 2011/03/23 15:36 文字コード UTF-8

2010-12-08

[]カテゴリIDや商品IDで画像切替 カテゴリIDや商品IDで画像切替を含むブックマーク

<!--{if $category_id == "1"or $arrProduct.product_id == "5"}-->
表示させたい内容をここに入れる
<!--{/if}-->

[]SEO対策 SEO対策を含むブックマーク

http://www.○○.com/products/detail.php?product_id=○○」のような動的 URL を、「http://www.○○.com/products/detail/○○」のような静的 URL に変更します。

html/」の .htaccess に以下を追加します。

#mode_rewriteの設定

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^products/detail/([0-9]+)? products/detail.php?product_id=$1 [L]

RewriteRule ^products/list/([0-9]+)? products/list.php?category_id=$1 [L]

RewriteRule ^mobile/products/detail/([0-9]+)_([0-9]+)? mobile/products/detail.php?product_id=$1&page=$2 [L]

RewriteRule ^mobile/products/list/([0-9]+)? mobile/products/list.php?category_id=$1 [L]

次に「data/Smarty/template/テンプレート名/bloc/category.tpl」の

<li class="level<!--{$level}--><!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> onmark<!--{/if}-->"><!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> class="onlink"<!--{/if}-->||<!--{$arrTree[cnt].category_name|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)<!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> class="onlink"<!--{/if}-->||<!--{$arrTree[cnt].category_name|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)<!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> class="onlink"<!--{/if}-->||<!--{$arrTree[cnt].category_name|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)<!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> class="onlink"<!--{/if}-->||<!--{$arrTree[cnt].category_name|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)<!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> class="onlink"<!--{/if}-->||<!--{$arrTree[cnt].category_name|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)<!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> class="onlink"<!--{/if}-->||<!--{$arrTree[cnt].category_name|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)<a href="<!--{$smarty.const.URL_DIR}-->products/list.php?category_id=<!--{$arrTree[cnt].category_id}-->"<!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> class="onlink"<!--{/if}-->||<!--{$arrTree[cnt].category_name|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)</a>

を次のように変更します。

<li class="level<!--{$level}--><!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> onmark<!--{/if}-->"><!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> class="onlink"<!--{/if}-->||<!--{$arrTree[cnt].category_name|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)<!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> class="onlink"<!--{/if}-->||<!--{$arrTree[cnt].category_name|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)<!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> class="onlink"<!--{/if}-->||<!--{$arrTree[cnt].category_name|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)<!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> class="onlink"<!--{/if}-->||<!--{$arrTree[cnt].category_name|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)<!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> class="onlink"<!--{/if}-->||<!--{$arrTree[cnt].category_name|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)<!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> class="onlink"<!--{/if}-->||<!--{$arrTree[cnt].category_name|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)<a href="<!--{$smarty.const.LIST_P_HTML}--><!--{$arrTree[cnt].category_id}-->"<!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> class="onlink"<!--{/if}-->||<!--{$arrTree[cnt].category_name|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)</a>

そして、「システム設定 > パラメータ設定」の「DETAIL_P_HTML」

URL_DIR . "products/detail.php?product_id="

を以下のように変更します。

URL_DIR . "products/detail/"

次に「LIST_P_HTML」の

URL_DIR . "products/list-p"

を以下のように変更します。

URL_DIR . "products/list/"

参考)

http://www.head-t.com/2010/05/2010-05-10_01.html