「ver.2.0*現状バグ」の編集履歴(バックアップ)一覧に戻る
ver.2.0*現状バグ - (2011/01/31 (月) 22:56:54) のソース
※wikiの編集が分からなくて、追加してほしい項目がある場合はページ下の「コメント」から誰かに頼んで下さい。 #contents *発見されているバグ &color(#ff0000){''特に初心者の方は、バックアップを取ってから編集して下さい。''} ---- **会話数制限が機能していない [[ID別設定>ver.2.0/応用/機能追加/ID別設定]]「特定のアカウントとのリプライ回数を制限したい」を参考に **フッターが機能していない 改善法:Easybotter.phpを編集する。 if(preg_match("@{.+?}@",$status) == 1){ $status = $this->convertText($status, $tweet); } とある部分の if(preg_match("@{.+?}@",$status) == 1){ } をコメントアウト(//)するか、削除して下さい。 &color(#ff0000){数箇所有ります、すべて行って下さい。~~''{}内は絶対に削除しないで下さい。''} **{tweet}が機能していない 改善法:Easybotter.phpを編集する。 if(strpos($text,"{tweet}") !== FALSE && !empty($reply)){ $tweet = preg_replace("@\.?\@[a-zA-Z0-9-_]+\s@u","",$reply->status); $text = str_replace("{tweet}",$tweet,$text); } とある部分を if(strpos($text,"{tweet}") !== FALSE && !empty($reply)){ $tweet = preg_replace("@\.?\@[a-zA-Z0-9-_]+\s@u","",$reply->text); $text = str_replace("{tweet}",$tweet,$text); } へまるまる変更して下さい。 **{timeline_id}と{timeline_name}が逆になっている。 改善法:Easybotter.phpを編集する。 //タイムラインからランダムに最近発言した人のデータを取る if(strpos($text,"{timeline_id}") !== FALSE){ $randomTweet = $this->getRandomTweet(); $text = str_replace("{timeline_id}", $randomTweet->user->name,$text); } if(strpos($text, "{timeline_name}") !== FALSE){ $randomTweet = $this->getRandomTweet(); $text = str_replace("{timeline_name}",$randomTweet->user->screen_name,$text); } とある部分を //タイムラインからランダムに最近発言した人のデータを取る if(strpos($text,"{timeline_id}") !== FALSE){ $randomTweet = $this->getRandomTweet(); $text = str_replace("{timeline_id}", $randomTweet->user->screen_name,$text); } if(strpos($text, "{timeline_name}") !== FALSE){ $randomTweet = $this->getRandomTweet(); $text = str_replace("{timeline_name}",$randomTweet->user->name,$text); } へまるまる変更して下さい。 *修正済みのバグ(ver.2.04betaまで) -TL反応で「@」付にも反応してしまう -リプライパターンで正規表現が正常に使えない *コメント - フッターが機能していないは //idなどの変換 if(preg_match("@{.+?}@",$status) == 1){ $status = $this->convertText($status); } else { $status .= $this->_footer; }でいいんじゃないの。 -- koziki_bot (2011-01-28 09:50:39) - TL返信で[[END]]が効いていないのでは。 -- koziki_bot (2011-01-31 22:56:54) #comment