在使用F2blog过程中碰到上传附件以后,日志自动截取功能失效,网络闲逛的时候终于找到了解决问题的方法。

修改前:文章中若碰到特殊标签如文件附件,自动截取会无效。
      
修改后:文章中若碰到特殊标签如文件附件,自动截取仍有效。
     
修改文件:admin/logs.php

修改情形:(在下面所示的位置添加红色的注释符号即可)

      
/*

      if (strpos(";".$logContent,"<!–more–>")>0) $autoSplit=0;
      if (strpos(";".$logContent,"<!–nextpage–>")>0) $autoSplit=0;
      if (strpos(";".$logContent,"<!–hideBegin–>")>0) $autoSplit=0;
      if (strpos(";".$logContent,"<!–galleryBegin–>")>0) $autoSplit=0;
      if (strpos(";".$logContent,"<!–fileBegin–>")>0) $autoSplit=0;
      if (strpos(";".$logContent,"<!–mfileBegin–>")>0) $autoSplit=0;    
*/

也就是注释掉/* 和  */之间的语法,不知道大家看明白没有的?