A5下载文章资讯

分类分类

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

2015-05-20 10:15作者:sa

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;

 

展开全部

相关

说两句网友评论
    我要跟贴
    取消