[[ガイドライン]]
 
 -------------------------------------
 #contents
 -------------------------------------
 
 *掲示板のフッタ部分とかにもリンクwikiへの貼ったりのいんちきスレッド表示もアリーの現実逃避 [#aab40102]
 
 あー、帰りたいのに帰れないから、また無駄なことをしてしまった。~
 それにしても、このソースを見る限り、子IDもってないからまともに対応しようとしたら死ねるかも。~
 - またもやQHさんくす。自分的には2ch風の先頭にタイトルリンクがずらっと出てるのも欲しいんだよね。だから理想をいうと、何パターンかviewを用意しといて好きな入口から入って貰うとか。userAgentで携帯/PC切り替えてるから、できなくはないと思うんだけど・・(&
 - なぜかソースが会社にしかないので(わら)、記憶の中で書くけど、2ch風のはview.htmlのいんちきすれっど表示の小スレッド部分を削除すればいいだけのような…--8810
 - あと、別のviewを用意するのなら、controlに渡すmodeをかえればいいんじゃないかと思われ。--8810
 
 **memo [#h39cdcbe]
 ソース元が見当たらなかったので、以下に修正概要をコメント。~
 -元々携帯アクセスのみで有効($this->bMobileAxs)にしているツリー表示($this->aReceive["mode"]=="tree")をブラウザアクセスでもOKなように単純にコメント化
 -view.htmlにツリー表示を追加。RSSの出力を見てそのままぱくる。eachとか便利や。
 -リンクから新たにページを生成するのではなく、下部にある各コメントに直接飛ぶようにcommentを生成。毎回ページ生成したら負荷がたまらん。
 
  $ diff -cr ./repbbs.orig/ ./repbbs
  diff -cr ./repbbs.orig/config.php ./repbbs/config.php
  *** ./repbbs.orig/config.php    2005-08-06 00:55:43.000000000 +0900
  --- ./repbbs/config.php 2006-02-01 20:50:05.000000000 +0900
  ***************
  *** 92,95 ****
  --- 92,97 ----
    define("MAX_ID",    6);
    define("MAX_WORD",  15);
  
  + // wiki
  + define("WIKI", "http://www.a2see.com/pukiwiki-1.4.6/pukiwiki.php?FrontPage");
    ?>
  diff -cr ./repbbs.orig/index.php ./repbbs/index.php
  *** ./repbbs.orig/index.php     2005-08-06 00:44:21.000000000 +0900
  --- ./repbbs/index.php  2006-02-01 20:49:13.000000000 +0900
  ***************
  *** 11,16 ****
  --- 11,20 ----
    $oArt = new ArticleLineupModel();
    $sMode = $oArt->aReceive["mode"];
  
  + if ($sMode == "wiki") {
  +       header("Location: ".WIKI);
  +       exit;
  + }
    if($sMode=="formw")
    {
          $oArt->doForm();
  diff -cr ./repbbs.orig/model.php ./repbbs/model.php
  *** ./repbbs.orig/model.php     2006-01-19 22:30:22.000000000 +0900
  --- ./repbbs/model.php  2006-02-03 18:05:21.945619528 +0900
  ***************
  *** 628,641 ****
  
    $this->_nArticleNowCnt = count($aParent);
  
  ! if($this->bMobileAxs || $this->aReceive["mode"]=="tree")
  ! {
    if($this->aReceive["mode"]=="tree") $this->_sAddQuery .= "&mode=tree";
    $this->aViewData["TREE"] = array("p"=>$aParent);
  ! } else
  ! {
    $this->aViewData["READ"] = array("p"=>$aParent);
  ! }
    }
    function doWrite()
    {
  --- 628,641 ----
  
    $this->_nArticleNowCnt = count($aParent);
  
  ! //if($this->bMobileAxs || $this->aReceive["mode"]=="tree")
  ! //{
    if($this->aReceive["mode"]=="tree") $this->_sAddQuery .= "&mode=tree";
    $this->aViewData["TREE"] = array("p"=>$aParent);
  ! //} else
  ! //{
    $this->aViewData["READ"] = array("p"=>$aParent);
  ! //}
    }
    function doWrite()
    {
  diff -cr ./repbbs.orig/view.html ./repbbs/view.html
  *** ./repbbs.orig/view.html     2005-08-07 04:44:33.000000000 +0900
  --- ./repbbs/view.html  2006-02-03 19:23:17.791782864 +0900
  ***************
  *** 13,19 ****
  --- 13,40 ----
  
    <body>
  
  +
    <div id="container">
  + <div id="page" class="font_s">
  + <a href="./{rval control}">latest</a> |
  + <a href="./{rval control}?mode=formw">write</a> |
  + <a href="./{rval control}?mode=forme">menu</a> |
  + <a href="./{rval control}?mode=wiki">wiki</a>
  + <!--{def PAGE}-->
  +  |
  + <!--{def PAGE/isprev}--><a href="./{rval control}{rval  PAGE/prev}"><!--{/def}-->prev<!--{def PAGE/isprev}--></a><!--{/def}--> |
  + <!--{def PAGE/isnext}--><a href="./{rval control}{rval  PAGE/next}"><!--{/def}-->next<!--{def PAGE/isnext}--></a><!--{/def}-->
  + <!--{/def}-->
  + </div>
  + <div id="navigator">
  + <!--{each TREE/p}-->
  + <a href="{rval control}?#content_{rval TREE/p/id}">{rval TREE/p/title}</a>
  + <!--{each TREE/p/c}-->
  + <br />
  + ┗a href="{rval control}?#content_{rval TREE/p/c/id}">{rval  TREE/p/c/title}</a>
  + <!--{/each}-->
  + <hr size="1" />
  + <!--{/each}-->
  
    <!--{def FORM}-->
    <div id="formw" class="box">
  ***************
  *** 102,112 ****
    <div id="read">
    <!--{each READ/p}-->
    <div class="box">
  ! <div class="th"><h2>{rval READ/p/title}</h2></div>
    <div class="td">
    <div class="mes">{rval READ/p/mes}</div>
    <div class="name">[{rval READ/p/id}]@{rval READ/p/name}<!--{rval  READ/p/agent}-->@({rval READ/p/date}){rval READ/p/new}</div>
  ! <div class="reply"><!--{ndef reply}--><a href="./{rval  control}?mode=formw&amp;id={rval READ/p/id}">reply</a><!--{/ndef}-->&nbsp;</div>
    <div class="url">{rval READ/p/url}&nbsp;</div>
    <div class="mail">{rval READ/p/mail}&nbsp;</div><br />
    <!--{def relate}-->
  --- 123,133 ----
    <div id="read">
    <!--{each READ/p}-->
    <div class="box">
  ! <div class="th"><h2 id="content_{rval READ/p/id}">{rval  READ/p/title}</h2></div>
    <div class="td">
    <div class="mes">{rval READ/p/mes}</div>
    <div class="name">[{rval READ/p/id}]@{rval READ/p/name}<!--{rval  READ/p/agent}-->@({rval READ/p/date}){rval READ/p/new}</div>
  ! <div class="reply"><!--{ndef reply}--><a href="./{rval  control}?mode=formw&amp;id={rval READ/p/id}">reply</a><!--{/ndef}--><a  href="#navigator">&uarr;</a>&nbsp;</div>
    <div class="url">{rval READ/p/url}&nbsp;</div>
    <div class="mail">{rval READ/p/mail}&nbsp;</div><br />
    <!--{def relate}-->
  ***************
  *** 114,124 ****
    <!--{/def}-->
    </div>
    <!--{each READ/p/c}-->
  ! <div class="th hr"><h3>{rval READ/p/c/title}</h3></div>
    <div class="td">
    <div class="mes">{rval READ/p/c/mes}</div>
    <div class="name">[{rval READ/p/c/id}]@{rval READ/p/c/name}<!--{rval  READ/p/c/agent}-->@({rval READ/p/c/date}){rval READ/p/c/new}</div>
  ! <div class="reply">&nbsp;</div>
    <div class="url">{rval READ/p/c/url}&nbsp;</div>
    <div class="mail">{rval READ/p/c/mail}&nbsp;</div><br />
    </div>
  --- 135,145 ----
    <!--{/def}-->
    </div>
    <!--{each READ/p/c}-->
  ! <div class="th hr"><h3 id="content_{rval READ/p/c/id}">{rval  READ/p/c/title}</h3></div>
    <div class="td">
    <div class="mes">{rval READ/p/c/mes}</div>
    <div class="name">[{rval READ/p/c/id}]@{rval READ/p/c/name}<!--{rval  READ/p/c/agent}-->@({rval READ/p/c/date}){rval READ/p/c/new}</div>
  ! <div class="reply"><a href="#navigator">&uarr;</a>&nbsp;</div>
    <div class="url">{rval READ/p/c/url}&nbsp;</div>
    <div class="mail">{rval READ/p/c/mail}&nbsp;</div><br />
    </div>
  ***************
  *** 222,228 ****
    <div id="page" class="font_s">
    <a href="./{rval control}">latest</a> |
    <a href="./{rval control}?mode=formw">write</a> |
  ! <a href="./{rval control}?mode=forme">menu</a>
    <!--{def PAGE}-->
     |
    <!--{def PAGE/isprev}--><a href="./{rval control}{rval  PAGE/prev}"><!--{/def}-->prev<!--{def PAGE/isprev}--></a><!--{/def}--> |
  --- 243,250 ----
    <div id="page" class="font_s">
    <a href="./{rval control}">latest</a> |
    <a href="./{rval control}?mode=formw">write</a> |
  ! <a href="./{rval control}?mode=forme">menu</a> |
  ! <a href="./{rval control}?mode=wiki">wiki</a>
    <!--{def PAGE}-->
     |
    <!--{def PAGE/isprev}--><a href="./{rval control}{rval  PAGE/prev}"><!--{/def}-->prev<!--{def PAGE/isprev}--></a><!--{/def}--> |
  $
 
 
 *掲示板のフッタ部分とかにもリンクwikiへの貼ったりの現実逃避 [#jed8d955]
  $ diff -cr repbbs.orig/ repbbs/
  diff -cr repbbs.orig/config.php repbbs/config.php
  *** repbbs.orig/config.php      2005-08-06 00:55:43.000000000 +0900
  --- repbbs/config.php   2006-02-01 20:50:05.890677512 +0900
  ***************
  *** 92,95 ****
  --- 92,97 ----
    define("MAX_ID",    6);
    define("MAX_WORD",  15);
  
  + // wiki
  + define("WIKI", "http://www.a2see.com/pukiwiki-1.4.6/pukiwiki.php?FrontPage");
    ?>
  diff -cr repbbs.orig/index.php repbbs/index.php
  *** repbbs.orig/index.php       2005-08-06 00:44:21.000000000 +0900
  --- repbbs/index.php    2006-02-01 20:49:13.787598384 +0900
  ***************
  *** 11,16 ****
  --- 11,20 ----
    $oArt = new ArticleLineupModel();
    $sMode = $oArt->aReceive["mode"];
  
  + if ($sMode == "wiki") {
  +       header("Location: ".WIKI);
  +       exit;
  + }
    if($sMode=="formw")
    {
          $oArt->doForm();
  diff -cr repbbs.orig/view.html repbbs/view.html
  *** repbbs.orig/view.html       2005-08-07 04:44:33.000000000 +0900
  --- repbbs/view.html    2006-02-01 20:51:08.049227976 +0900
  ***************
  *** 13,19 ****
  --- 13,31 ----
  
    <body>
  
  +
    <div id="container">
  + <div id="page" class="font_s">
  + <a href="./{rval control}">latest</a> |
  + <a href="./{rval control}?mode=formw">write</a> |
  + <a href="./{rval control}?mode=forme">menu</a> |
  + <a href="./{rval control}?mode=wiki">wiki</a>
  + <!--{def PAGE}-->
  +  |
  + <!--{def PAGE/isprev}--><a href="./{rval control}{rval  PAGE/prev}"><!--{/def}-->prev<!--{def PAGE/isprev}--></a><!--{/def}--> |
  + <!--{def PAGE/isnext}--><a href="./{rval control}{rval  PAGE/next}"><!--{/def}-->next<!--{def PAGE/isnext}--></a><!--{/def}-->
  + <!--{/def}-->
  + </div>
  
    <!--{def FORM}-->
    <div id="formw" class="box">
  ***************
  *** 222,228 ****
    <div id="page" class="font_s">
    <a href="./{rval control}">latest</a> |
    <a href="./{rval control}?mode=formw">write</a> |
  ! <a href="./{rval control}?mode=forme">menu</a>
    <!--{def PAGE}-->
     |
    <!--{def PAGE/isprev}--><a href="./{rval control}{rval  PAGE/prev}"><!--{/def}-->prev<!--{def PAGE/isprev}--></a><!--{/def}--> |
  --- 234,241 ----
    <div id="page" class="font_s">
    <a href="./{rval control}">latest</a> |
    <a href="./{rval control}?mode=formw">write</a> |
  ! <a href="./{rval control}?mode=forme">menu</a> |
  ! <a href="./{rval control}?mode=wiki">wiki</a>
    <!--{def PAGE}-->
     |
    <!--{def PAGE/isprev}--><a href="./{rval control}{rval  PAGE/prev}"><!--{/def}-->prev<!--{def PAGE/isprev}--></a><!--{/def}--> |
  $
 

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS