« 8月31日練習復帰(・∀・)ノ....o | メイン | 9月2日練習 アクシスローテーションを変えて遅いレーンに対応 »
September 02, 2005
memberlistをphpのreadfileで読み込むように変更
久しぶりにMTな話題(^^ゞ
ClubB1のOfficialBlogにmemberlistを載せているのだけど
これはMTのテンプレートを書き換えている。
で
memberlistの部分だけをコピペしてこのBlogのテンプレも書き換えという作業だったのだが、人数もかなり増えてきたこともあって、行数が多くてコピペで作業というのはいやだなぁ…と。
で、memberlistだけをMovable Typeの別テンプレートとして
http://club-b1.net/club-b1_list.php
という独立のphpファイルを書き出させ更新作業をする
それをそれぞれのトップページ(index.phpもしくはindex.htmlでphpが動作するならindex.htmlが使用可能)から
<?php readfile("http://www.club-b1.net/club-b1_list.php"); ?>
に読み込ませるようにして、一回の更新でそれぞれのページのmemberlistが書き換えられるように変更。
参考になるのはこのへん。
フレームの代わりにPHPを使う
小粋空間: PHPモジュール化の仕組みについて(その3:変更方法)
当初は
<?php include("http://www.club-b1.net/club-b1_list.php"); ?>
を使ったのだが、
PHPプログラムを含まないのであれば includeよりreadfileが得策ということで
readfileを使用。
ちなみにClubB1の方でブログにこのmemberlistを追加したい場合、メインのページでphpが動けば 上記のreadfileタグ を使って可能です。
こんな感じのタグをサイドバーに入れてます。
<div id="b1list" class="bp" style="overflow: auto; height: 400px; border:1px dotted #42536B;">ちなみに色とか文字の設定はCSSでこんな感じに指定。
(見やすさ優先で敬称は省略させて頂きます)<br>
【<a href="http://www.club-b1.net/"target="_blank">ClubB1 Official blog</a>】
<!--ClubB1 Official blog--><script language="JavaScript" src="http://www.akkie.com/jsRSS.cgi?url=http://www.club-b1.net/$MTBlogURL$%3Eindex.rdf%22::temp=b1blog.tmp::enc=sjis::line=1"></script>
<?php readfile("http://www.club-b1.net/club-b1_list.php"); ?>
</div>
.RSSsite { font-size:100%; font-weight:bold; text-align:left; margin:0px; padding:0px; }
.RSSline { margin:0px 0px 0px 5px;}
.RSStitle { font-size:100%; text-align:left; margin:2px;}
.RSSdescript { font-size:100%; text-align:left; color:#999999; margin:2px 15px;}
.RSStime { font-size:100%; text-align:left; color:#6666cc; margin:0px 0px 0px 8px;}
.RSSselect { width:180px; font-size:70%; text-align:left; margin:3px; }
.RSSoption { font-size:100%; text-align:left; border-top:#990000 1px dotted; }
.new { background:#eeeeff; }
投稿者 akkie : September 2, 2005 11:21 AM
トラックバック
このエントリーのトラックバックURL:
http://www.cycl0ps.net/MT3/mt-tb.cgi/1174
コメント
なんのことだろう??
チィンプンカンプン!!
アハハ・・・情けない(笑)
by maximum_rev : September 4, 2005 08:55 PM
Ultram
Tramadol (TRAM a doll)
What is the most important information I should know about Ultram?
Seizures have been reported as a rare side effect of treatment with Ultram. The risk of seizures may be increased in patients who take more than the prescribed dose, have a history of seizures or epilepsy, have head trauma, have a metabolic disorder, have a central nervous system infection, are experiencing alcohol or drug withdrawal, or are taking certain medications. Talk to your doctor about factors that may increase the risk of seizures during treatment.
Do not drink alcohol while taking Ultram. Alcohol may cause a dangerous decrease in breathing and/or liver problems when used during treatment with Ultram.
Use caution when driving, operating machinery, or performing other hazardous activities. Ultram may cause dizziness or drowsiness. If you experience dizziness or drowsiness, avoid these activities.
Do not take more of this medication than is prescribed for you. If the pain is not being controlled, talk to your doctor. Taking more than the prescribed amount of this medication could result in seizures or decreased breathing.
by ULTRAM : April 17, 2006 08:30 AM
ニ褥 :D
by AMBIEN : April 17, 2006 11:18 PM
ト粢 硴裨 瑰 ミ ト褌瑣韋 ?
by AMITRIPTYLINE : April 18, 2006 08:35 PM
gfdgdg
by AMOXICILLIN : April 21, 2006 04:18 PM
Here ?
by ARICEPT : April 22, 2006 03:09 AM
テ鉅 瑜褄竟 碚瑟
by ATIVAN : April 22, 2006 02:34 PM
モ胚
by BACTRIM : April 23, 2006 08:52 AM
メ頷 モ琲
by BEXTRA : April 25, 2006 11:58 PM
コメントお願いします
サイン・インを確認しました、 . さん。コメントしてください。 (サイン・アウト)
(いままで、ここでコメントしたことがないときは、コメントを表示する前にこのウェブログのオーナーの承認が必要になることがあります。承認されるまではコメントは表示されません。そのときはしばらく待ってください。)