PEAK XOOPS - KIHON2 as a sample theme can layout center parts in englishin japanese






Main : Etc. : 

Category: Etc.          
Download Now! KIHON2 as a sample theme can layout center parts Popular Version: 1.04
Submitted Date:  2006/5/9
Description:
in englishin japanese
A sample theme based on matchan's theme "KIHON1".

You can controll the order of center parts

-CenterLeftBlocks
-CenterCenterBlocks
-CenterRightBlocks
-ContentsBody

All you have to do is setting their weights.
See the GIF displayed below.

This feature is valid with XOOPS >= 2.0.10JP or XOOPS 2.2.x

If you want to use this logic with XOOPS 2.0.13 or older, you have to assign block's weights in header.php manually.




-------------
(2006-5-9) modified for some warnings and redirect message hack

Downloaded 10092 times  10092  File Size 6.81 KB  Supported Platforms zip  Home Page http://www.oceannet.jp/
Modify | Report Broken File | Tell a Friend | Comments (4)


Comments list

bc_taka  Posted on 2007/3/9 11:41
Hi GIJOE.
Thank you for answering in spite of a busy schedule.
It is very generous of you and I am really grateful
I want to begin to distribute it on my site in a few days.

#I am in great hopes that xugj_assign.php is big power for us to expand the possibility of XOOPS themes
#When I was able to achieve cool use in the theme, I would really like to adopt it.

Thank you.
GIJOE  Posted on 2007/3/9 3:28 | Last modified
hi bc_taka!
I know bcool is one of the best theme distributer

And the answer is "No Problem".

I don't claim any copyright about the logic.

# I'll release more powerful frame work for XOOPS themes.
# (auto breadcrumbs and hierarchical submenus)
# I'm happy if you adopt it.
bc_taka  Posted on 2007/3/8 18:31
Hello GIJOE.
I'm taka@bcool and I distribute xoops themes.

Please pardon my poor English.


I feel strongly that the logic of this KIHON2 is indispensable function.

http://www.xugj.org/modules/d3forum/index.php?post_id=934
and
http://xoops.peak.ne.jp/md/d3forum/index.php?post_id=7170
I see the above-mentioned, and considered about the meaning of your words.

I realize again that the theme side should include this logic to make this function "STANDARD".

Now, I'm modifying all distributed themes to a suitable source for the current state.
Because it is special timing, I want to include this KIHON2 logic in these themes. (And including themes that I will distribute in the future )

Could you permit the distribution of the themes that include the KIHON2 logic?

My best regards.

------------------------------------------------------------
私の下手な英語でうまく伝わったかどうか不安なので一応日本語でも...。
お許しください^^;

GIJOEさま、初めまして。
私はとあるサイトでxoopsのthemeを配布しているtaka@bcoolと申します。

このKIHON2のロジックは、XOOPSユーザにとって、必要不可欠なものだと痛感しています。

http://www.xugj.org/modules/d3forum/index.php?post_id=934

http://xoops.peak.ne.jp/md/d3forum/index.php?post_id=7170
を目にする機会があり、GIJOEさんのご発言の真意を考えました。
結局のところtheme側でうまく対応させないことには、誰もが標準的に使えるようにはならなそう、という事に改めて気がつきました。

現在私の配布しているテーマを全て見直して、現状にふさわしいソースに改変しているところです。せっかくのタイミングなので、このKIHON2ロジックを、今改変中のものや、今後つくるものまで含め、標準的に盛り込みたいと考えています。

KIHON2 logic を採用したthemeの配布をお許しいただけますでしょうか?

お忙しい中とは存じますが、何卒宜しくお願い申し上げます。
Mr.H  Posted on 2005/12/8 23:01
ありがとうございます。
これから年末、そして年始と少し忙しくなるので時間がかかりそうですが、もうちょっと自力で頑張ってみます。

Quote:
忘れている、というか、処理が追いついていないだけです

大変失礼いたしました<(_ _)>
GIJOE  Posted on 2005/12/7 18:38
忘れている、というか、処理が追いついていないだけです

とりあえず「実現可能」ですよ。
<{php}>ブロック内で、weightから判断してwidthでも定義してあげて、ブロック表示ループの時にそのwidthを<td>タグに渡せば良いんです。

この説明で判らなかったら、誰かに依頼した方が良いと思います。
Mr.H  Posted on 2005/12/5 19:16
本来ならば、このように催促するような書き込みは控えるべきであると存じておりますが、正直忘れられているような気がするので投稿させていただきます。

Quote:
例えばweight値が10未満のとき、clとcrの幅をcl:cr=20:80で、weight値が10以上のときはcl:cr=50:50とすることは可能でしょうか?

あれからも、自分なりにいろいろ試行錯誤してみましたが、やはり私のやろうとしていることが実現できませんでした。
これが実現可能か否かだけでも教えていただけないでしょうか?
Mr.H  Posted on 2005/11/3 13:54
はじめまして、Mr.Hと申します。
中央ブロックを自由に操ることができるということを知ったときは、とても感激しました。

そこですぐにこのテーマを使わせていただこうと思ったのですが、どうせなら私が今まで考えてきた形を実現しようと、現在試行錯誤中です。
ただ、やはりと言うか何と言うか、自力では(というか、構造的に?)ムリということが判明しました)


そこで質問させていただきたいのですが、例えばweight値が10未満のとき、clとcrの幅をcl:cr=20:80で、weight値が10以上のときはcl:cr=50:50とすることは可能でしょうか?

どうぞよろしくお願いします。
skara  Posted on 2005/9/2 7:21
Thank you very very much!
Your help is very valuable

Greetings from Greece
GIJOE  Posted on 2005/9/1 14:32
hi skara.

Quote:
is it possible to expalin me what to change ih header.php to make this theme work with 2.0.13?

The easiest way is transferring Onokazu's version.
download full archive of 2.0.11.1-JP and remove mainfile.php and install/.
Then overwrite them.

Just a joke, of course.


edit header.php line 141

        switch ($block_arr[$i]->getVar('side')) {
        case XOOPS_SIDEBLOCK_LEFT:
            if (!isset($show_lblock)) {
                $xoopsTpl->assign('xoops_showlblock', 1);
                $show_lblock = 1;
            }
            $xoopsTpl->append('xoops_lblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent, 'weight' => $block_arr[$i]->getVar('weight')));
            break;
        case XOOPS_CENTERBLOCK_LEFT:
            if (!isset($show_cblock)) {
                $xoopsTpl->assign('xoops_showcblock', 1);
                $show_cblock = 1;
            }
            $xoopsTpl->append('xoops_clblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent, 'weight' => $block_arr[$i]->getVar('weight')));
            break;
        case XOOPS_CENTERBLOCK_RIGHT:
            if (!isset($show_cblock)) {
                $xoopsTpl->assign('xoops_showcblock', 1);
                $show_cblock = 1;
            }
            $xoopsTpl->append('xoops_crblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent, 'weight' => $block_arr[$i]->getVar('weight')));
            break;
        case XOOPS_CENTERBLOCK_CENTER:
            if (!isset($show_cblock)) {
                $xoopsTpl->assign('xoops_showcblock', 1);
                $show_cblock = 1;
            }
            $xoopsTpl->append('xoops_ccblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent, 'weight' => $block_arr[$i]->getVar('weight')));
            break;
        case XOOPS_SIDEBLOCK_RIGHT:
            if (!isset($show_rblock)) {
                $xoopsTpl->assign('xoops_showrblock', 1);
                $show_rblock = 1;
            }
            $xoopsTpl->append('xoops_rblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent, 'weight' => $block_arr[$i]->getVar('weight')));
            break;
        }

skara  Posted on 2005/8/30 19:37
Hi GiJoe,
is it possible to expalin me what to change ih header.php to make this theme work with 2.0.13?

Thanx in advance
Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!