PHP群:95885625 Hbuilder+MUI群:81989597 站长QQ:634381967
    您现在的位置: 首页 > CMS教程 > 齐博cms教程 > 正文

    齐博cms幻灯片和缩略图自动调用第一张原图

    作者:w634381967来源:网络浏览:时间:2020-09-30 00:07:50我要评论
    导读:inc check postarticle php文件经测试,还行 希望有更多的朋友帮忙测试一下 查找inc check postarticle php中的:引用 如果是从文章内容提
    inc/check.postarticle.php文件经测试,还行.希望有更多的朋友帮忙测试一下.查找inc/check.postarticle.php中的:

    引用
      //如果是从文章内容提取的图片,需要重命为另一张,否则影响到原来的
       if(strstr($postdb[content],$postdb[picurl]))
       {
        $smallpic=str_replace(".","_",$postdb[picurl]).".gif";
       }
       else
       {
        $smallpic="$postdb[picurl]";
       }
       $Newpicpath=PHP168_PATH."$webdb[updir]/$smallpic";   $picWidth>600 && $picWidth=400;
       $picWidth<60 && $picWidth=400;   $picHeight>600 && $picHeight=300;
       $picHeight<60 && $picHeight=300;
       gdpic(PHP168_PATH."$webdb[updir]/$postdb[picurl]",$Newpicpath,$picWidth?$picWidth:400,$picHeight?$picHeight:300,$webdb[autoCutSmallPic]?array('fix'=>1):'');
       if( file_exists($Newpicpath) )
       {
        $postdb[picurl]=$smallpic;
    替换为:
    引用
      //如果是从文章内容提取的图片,需要重命为另一张,否则影响到原来的
       if(strstr($postdb[content],$postdb[picurl]))
       {
        $smallpic="$postdb[picurl]";
       }
       else
       {
        $smallpic="";
       }
       gdpic(PHP168_PATH."$webdb[updir]/$postdb[picurl]",$Newpicpath,$webdb[autoCutSmallPic]?array('fix'=>1):'');
       if( file_exists($Newpicpath) )
       {
        $postdb[picurl]=$smallpic;
    转载请注明(B5教程网)原文链接:https://b5.mxunkeji.com/content-107-1212-1.html
    相关热词搜索: