ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 12008


Ignore:
Timestamp:
Jun 24, 2009, 6:38:45 PM (11 years ago)
Author:
urabe
Message:

#3940 携帯用コメント返信補助機能をtrunkにマージ

Location:
OpenPNE/trunk/webapp/modules/ktai
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/modules/ktai/page/c_bbs.php

    r11944 r12008  
    1313        // --- リクエスト変数
    1414        $c_commu_topic_id = $requests['target_c_commu_topic_id'];
     15        $target_response_comment_id = $requests['target_response_comment_id'];
    1516        $page = $requests['page'];
    1617        // ----------
     
    6162        }
    6263
     64        if ($target_response_comment_id) {
     65            $target_comment = db_commu_c_commu_topic_comment4c_commu_topic_comment_id($target_response_comment_id);
     66            $response_set = db_member_c_member4c_member_id_LIGHT($target_comment['c_member_id']);
     67            $this->set(
     68                'response_comment_format',
     69                '>>' . $target_comment['number'] . ' ' . $response_set['nickname'] . "さん\n"
     70            );
     71        }
     72
    6373        //掲示板の閲覧権限 tplでやっている
    6474        $this->set('is_c_commu_view', db_commu_is_c_commu_view4c_commu_idAc_member_id($c_commu['c_commu_id'], $u));
  • OpenPNE/trunk/webapp/modules/ktai/page/fh_diary.php

    r10987 r12008  
    1313        // --- リクエスト変数
    1414        $target_c_diary_id = $requests['target_c_diary_id'];
     15        $target_response_comment_id = $requests['target_response_comment_id'];
    1516        $page = $requests['page'];
    1617        // ----------
     
    5960        if ($desc) {
    6061            $c_diary_comment_list = array_reverse($c_diary_comment_list);
     62        }
     63
     64        if ($target_response_comment_id) {
     65            $target_comment = _do_c_diary_comment4c_diary_comment_id($target_response_comment_id);
     66            $response_set = db_member_c_member4c_member_id_LIGHT($target_comment['c_member_id']);
     67            $this->set(
     68                'response_comment_format',
     69                '>>' . $target_response_comment_id . ' ' . $response_set['nickname'] . "さん\n"
     70            );
    6171        }
    6272
  • OpenPNE/trunk/webapp/modules/ktai/templates/c_bbs.tpl

    r11944 r12008  
    102102<br>
    103103({if $item.nickname})<a href="({t_url m=ktai a=page_f_home})&amp;target_c_member_id=({$item.c_member_id})&amp;({$tail})">({$item.nickname})</a>({/if})
    104 ({if $item.c_member_id == $u || $target_diary_writer==$u || $is_admin})
    105 [<a href="({t_url m=ktai a=page_c_bbs_delete_c_commu_topic_comment_confirm})&amp;c_commu_topic_comment_id=({$item.c_commu_topic_comment_id})&amp;target_c_commu_topic_id=({$c_commu_topic_id})&amp;({$tail})">削除</a>]
    106 ({/if})
     104({if $item.c_member_id == $u || $target_diary_writer==$u || $is_admin})[<a href="({t_url m=ktai a=page_c_bbs_delete_c_commu_topic_comment_confirm})&amp;c_commu_topic_comment_id=({$item.c_commu_topic_comment_id})&amp;target_c_commu_topic_id=({$c_commu_topic_id})&amp;({$tail})">削除</a>]({/if})
     105({if $smarty.const.USE_RESPONSE_COMMENT && $is_writable_comment})[<a href="({t_url m=ktai a=page_c_bbs})&amp;target_c_commu_topic_id=({$c_commu_topic_id})&amp;target_response_comment_id=({$item.c_commu_topic_comment_id})&amp;({$tail})">返信</a>]({/if})
    107106<br>
    108107({$item.body|t_url2a_ktai|nl2br})<br>
     
    148147<input type="hidden" name="target_c_commu_topic_id" value="({$c_commu_topic_id})">
    149148<a name="menu"><font color="#({$ktai_color_config.font_06})">コメント:</font></a><br>
    150 <textarea name="body" rows="3"></textarea><br>
     149<textarea name="body" rows="3">({$response_comment_format})</textarea><br>
    151150({if $c_commu_topic.event_flag})
    152151({if $is_event_join_date})
  • OpenPNE/trunk/webapp/modules/ktai/templates/fh_diary.tpl

    r11386 r12008  
    1212<font color="#({$ktai_color_config.color_24})">({$target_c_diary.subject})</font><br>
    1313</td></tr></table>
    14 <a href="#({if $c_diary_comment})dc1({else})({if $is_prev || $is_next})pager({else})write({/if})({/if})"><font color="#({$ktai_color_config.font_08})">▼</font></a>({$target_c_diary.r_datetime|date_format:"%y/%m/%d %H:%M"})({if $target_diary_writer.c_member_id==$u}) [<a href="({t_url m=ktai a=page_h_diary_edit})&amp;target_c_diary_id=({$target_c_diary.c_diary_id})&amp;({$tail})">編集</a>][<a href="({t_url m=ktai a=page_fh_diary_delete_c_diary_confirm})&amp;target_c_diary_id=({$target_c_diary.c_diary_id})&amp;({$tail})">削除</a>]({/if})<br>
     14<a href="#({if $c_diary_comment})dc1({else})({if $is_prev || $is_next})pager({else})write({/if})({/if})"><font color="#({$ktai_color_config.font_08})">▼</font></a>
     15({$target_c_diary.r_datetime|date_format:"%y/%m/%d %H:%M"})({if $target_diary_writer.c_member_id==$u}) [<a href="({t_url m=ktai a=page_h_diary_edit})&amp;target_c_diary_id=({$target_c_diary.c_diary_id})&amp;({$tail})">編集</a>][<a href="({t_url m=ktai a=page_fh_diary_delete_c_diary_confirm})&amp;target_c_diary_id=({$target_c_diary.c_diary_id})&amp;({$tail})">削除</a>]({/if})<br>
    1516({$target_c_diary.body|t_url2a_ktai|nl2br|t_decoration_ktai})
    1617<br>
     
    5253({if $c_diary_comment_.c_member_id == $u || $target_diary_writer.c_member_id==$u})
    5354[<a href="({t_url m=ktai a=page_fh_diary_delete_c_diary_comment_confirm})&amp;target_c_diary_comment_id=({$c_diary_comment_.c_diary_comment_id})&amp;({$tail})&amp;target_c_diary_id=({$target_c_diary.c_diary_id})">削除</a>]
     55({/if})
     56({if $smarty.const.USE_RESPONSE_COMMENT && $is_writable_comment})
     57[<a href="({t_url m=ktai a=page_fh_diary})&amp;target_c_diary_comment_id=({$c_diary_comment_.c_diary_comment_id})&amp;({$tail})&amp;target_c_diary_id=({$target_c_diary.c_diary_id})&amp;target_response_comment_id=({$c_diary_comment_.c_diary_comment_id})">返信</a>]
    5458({/if})<br>
    5559({if $c_diary_comment_.nickname})<a href="({t_url m=ktai a=page_f_home})&amp;target_c_member_id=({$c_diary_comment_.c_member_id})&amp;({$tail})">({$c_diary_comment_.nickname})</a>({/if})
     
    96100<input type="hidden" name="target_c_diary_id" value="({$target_c_diary.c_diary_id})">
    97101({if $msg})<font color="#({$ktai_color_config.font_09})">({$msg})</font><br>({/if})
    98 <textarea name="body" rows="3"></textarea><br>
     102<textarea name="body" rows="3">({$response_comment_format})</textarea><br>
    99103<input type="submit" value="書き込む">
    100104</form>
  • OpenPNE/trunk/webapp/modules/ktai/validate/page/c_bbs.ini

    r6779 r12008  
    22type = "int"
    33required = 1
     4
     5[target_response_comment_id]
     6type = "int"
    47
    58[page]
  • OpenPNE/trunk/webapp/modules/ktai/validate/page/fh_diary.ini

    r6778 r12008  
    88
    99[order]
     10
     11[target_response_comment_id]
     12type = "int"
Note: See TracChangeset for help on using the changeset viewer.