あやしいわーるど@暫定 - 過去ログ  ←戻る 


20181117.dat  


128  treeの個別NG  投稿者:擬古猫   投稿日時:2018/11/17(土) 20:19:52 
 ∧ ∧
/(´ー`)ノ<BBSTREE.PHPの個別NGとツリーの文末に間隔をあける方法
 ̄ ̄ ̄ ̄ ̄|

                # 参考の消去
                $treemsg['MSG'] = preg_replace("/<a href=[^>]+>参考:[^<]+<\/a>/i", "", $treemsg['MSG'], 1);

                # 引用の消去
                $treemsg['MSG'] = preg_replace("/(^|\r)&gt;[^\r]*/", "", $treemsg['MSG']);
                $treemsg['MSG'] = preg_replace("/^\r+/", "", $treemsg['MSG']);
                $treemsg['MSG'] = rtrim($treemsg['MSG']);

                #20181117 擬古猫 個別NG
                $treemsg['MSG']  = preg_replace("/(.+)/","<span class= \"ngline\">$1</span>\r", $treemsg['MSG']);

129  >   投稿者:擬古猫   投稿日時:2018/11/17(土) 20:20:39 
> 生きてるの?(;´Д`)寒くなってきたから心配なんだけど

   ∧ ∧
  /(´3`)<なんとかね…
   ̄ ̄ ̄ ̄ ̄|

参考:2018/11/15(木) 22:52:29

130  >擬古猫  投稿者:    投稿日時:2018/11/17(土) 22:10:25 
>  ∧ ∧
> /(´ー`)ノ<BBSTREE.PHPの個別NGとツリーの文末に間隔をあける方法
>  ̄ ̄ ̄ ̄ ̄|
>                 # 参考の消去
>                 $treemsg['MSG'] = preg_replace("/<a href=[^>]+>参考:[^<]+<\/a>/i", "", $treemsg['MSG'], 1);
>                 # 引用の消去
>                 $treemsg['MSG'] = preg_replace("/(^|\r)&gt;[^\r]*/", "", $treemsg['MSG']);
>                 $treemsg['MSG'] = preg_replace("/^\r+/", "", $treemsg['MSG']);
>                 $treemsg['MSG'] = rtrim($treemsg['MSG']);
>                 #20181117 擬古猫 個別NG
>                 $treemsg['MSG']  = preg_replace("/(.+)/","<span class= \"ngline\">$1</span>\r", $treemsg['MSG']);

いつもありがとうございます(;´Д`)使わせていただきます

参考:2018/11/17(土) 20:19:52