カテゴリ | |
---|---|
サマリ | commentのボタンの名前を簡単に付けたい |
バージョン | |
投稿者 | K |
状態 | 質問 |
投稿日 | 2005-01-25 (火) 13:20:14 |
[コメントの挿入] といった,フォームに付けるボタンの名前を,#comment(1 行コメントの挿入) などのようにオプションを付けるだけで簡単に変更できませんか?
plugin/comment.inc.php 117行目付近 $options = func_num_args() ? func_get_args() : array(); + $btnstr = ($options[0]!='')? htmlspecialchars($options[0]) : $_btn_comment; 140行目付近 <input type="text" name="msg" size="$comment_cols" /> - <input type="submit" name="comment" value="$_btn_comment" /> + <input type="submit" name="comment" value="$btnstr" /> </div>