[ ホーム | 一覧 | 検索 | 最終更新 | ヘルプ ] [ 新規 ]

KAWANO's PukiWiki Plus! - PukiWiki Log/commentプラグインの改造 のバックアップ(No.2)

AND OR
  • バックアップ一覧
  • 差分 を表示
  • 現在との差分 を表示
  • 現在との差分 - Visual を表示
  • ソース を表示
  • PukiWiki Log/commentプラグインの改造 へ行く。
    • 1 (2004-09-23 (木) 06:00:27)
    • 2 (2004-09-23 (木) 06:25:58)
    • 3 (2005-03-15 (火) 17:44:14)
    • 4 (2005-07-08 (金) 02:33:56)
    • 5 (2006-04-21 (金) 06:36:12)
    • 6 (2006-06-01 (木) 23:21:21)
    • 7 (2006-06-07 (水) 01:50:45)
    • 8 (2006-06-21 (水) 15:45:51)
    • 9 (2006-06-22 (木) 02:11:17)
    • 10 (2007-02-28 (水) 07:13:28)
    • 11 (2007-03-01 (木) 18:20:59)
    • 12 (2007-03-04 (日) 01:54:48)
    • 13 (2007-03-04 (日) 04:46:38)
    • 14 (2007-03-04 (日) 16:14:15)
    • 15 (2007-03-05 (月) 01:11:16)
    • 16 (2007-03-05 (月) 03:24:45)

commentプラグインの改造

「お名前」がブラケットネームにならないよう、オプションを追加

▲ ▼

使用例

#pcomment(nobracket)
▲ ▼

変更点

--- comment.inc.php.orig   Wed Oct  1 16:00:36 2003
+++ comment.inc.php     Thu Sep 23 15:04:40 2004
@@ -48,7 +48,7 @@

        $_msg  = str_replace('$msg',$post['msg'],COMMENT_MSG_FORMAT);
        $_name = $post['name'] == '' ? $_no_name : $post['name'];
-       $_name = ($_name == '') ? '' : str_replace('$name',$_name,COMMENT_NAME_FORMAT);
+       $_name = ($_name == '') ? '' : ($post['nobracket'] == '1') ? $_name : str_replace('$name',$_name,COMMENT_NAME_FORMAT);
        $_now  = ($post['nodate'] == '1') ? '' : str_replace('$now',$now,COMMENT_NOW_FORMAT);

        $comment = str_replace("\x08MSG\x08", $_msg, COMMENT_FORMAT);
@@ -123,6 +123,7 @@

        $nodate = in_array('nodate',$options) ? '1' : '0';
        $above = in_array('above',$options) ? '1' : (in_array('below',$options) ? '0' : COMMENT_INS);
+       $nobracket = in_array('nobracket',$options) ? '1' : '0';

        $s_page = htmlspecialchars($vars['page']);
        $comment_cols = COMMENT_COLS;
@@ -135,6 +136,7 @@
   <input type="hidden" name="plugin" value="comment" />
   <input type="hidden" name="nodate" value="$nodate" />
   <input type="hidden" name="above" value="$above" />
+  <input type="hidden" name="nobracket" value="$nobracket" />
   <input type="hidden" name="digest" value="$digest" />
   $nametags
   <input type="text" name="msg" size="$comment_cols" />

メニュー

  • トップ
  • 授業
  • PukiWiki Log
  • Install Log
  • 道具箱
  • セキュリティ情報
  • RSSアンテナ

大学関係リンク

  • Webメール
  • 健康システム学科
  • 情報メディアセンター
  • 兵庫大学

今日の5件
  • FrontPage(35)
  • Lecture/CompPracC32005/10th(1)
  • Lecture/CompPracC2005/8th/example(1)
  • Lecture/CompPracR2004/11th(1)
  • Lecture/CompPracC2006/11th(1)
最新の5件
2016-04-08
  • Lecture/timetable_2016
  • Lecture
  • FrontPage
2015-09-30
  • Lecture/timetable_2015
2015-04-04
  • MenuBar

total: 7494
today: 1
yesterday: 0
now: 3


リロード   差分   ホーム 一覧 検索 最終更新 バックアップ リンク元   ヘルプ   最終更新のRSS
http%3A%2F%2Fhs-www.hyogo-dai.ac.jp%2F~kawano%2F%3FPukiWiki%252520Log%25252Fcomment%2525E3%252583%252597%2525E3%252583%2525A9%2525E3%252582%2525B0%2525E3%252582%2525A4%2525E3%252583%2525B3%2525E3%252581%2525AE%2525E6%252594%2525B9%2525E9%252580%2525A0
Founded by Minoru Kawano.
Powered by PukiWiki Plus! 1.4.7plus-u2-i18n. HTML convert time to 0.558 sec.
Valid XHTML 1.1