Forums: osCommerce FAQ (Thread #7891)

サイドボックスを追加したいのですが、わかりません。 (2005-06-16 15:30 by Anonymous #14724)

作成しているサイトの関連リンクをいくつか入れたサイドボックスを、追加したいのですがどこのファイルをいじればよいのかわかりません。モジュールが公開されていないか探しましたがみつかりません。モジュールってほどのことでもないかもしれませんが、どのファイルのどこにボックス用のhtmlタグを埋め込めばよいのかわかりません。教えていただけると嬉しいです。

Reply to #14724×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: サイドボックスを追加したいのですが、わかりません。 (2005-06-16 17:05 by Anonymous #14727)

<tr>
<td>
<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => 'BOXのタイトル');

new infoBoxHeading($info_box_contents, false, false);

$string = 'BOXに表示したい内容。HTMLタグ書きたいならココに書く。';

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center', 'text' => $string);

new infoBox($info_box_contents);

?>
</td>
</tr>


新しくハコを作りたいってことなら、↑コレをテンプレートにしてファイルを作成し、/catalog/includes/boxesに配置して、column_left(right).phpからrequire()で呼べばいいです。

ちなみに「$info_box_contents, false, false」のfalseは、左右各々をカド丸にするかどうかの指定(だから、false2連発は「カド丸じゃない」指定)
Reply to #14724

Reply to #14727×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: サイドボックスを追加したいのですが、わかりません。 (2005-06-16 19:57 by mi-ya #14731)

このスレをたてた者です。 教えていただき本当に感謝します!! 無事新しいボックスを作ることができました! ほんとうにありがとうございます。 また、カスタマイズ フォーラムでも同内容のスレッドをたててしまったことをこの場を借りて、皆様にお詫び申し上げます。間違ってやってしまいました。できればあちらのほうは消していただければと思います。
Reply to #14724

Reply to #14731×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login