图片不小时,我将上传照片.只需调整-php mod_frontpage的大小 [英] I'll upload a photo when the picture is not small. Just resize the-php mod_frontpage
本文介绍了图片不小时,我将上传照片.只需调整-php mod_frontpage的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我的甲him唑代码.
图片不小时,我将上传照片.只需调整
的大小
请参阅第244行的来源.
查看所有源.
http://www.koders.com/php/fid136A4B6F430643CDD142AFB26F9E06F0DA5EBD2F.aspx?s=s ^ ]
这部分代码只会更改大小,不会更改小图片
This is my methimazole code.
I''ll upload a photo when the picture is not small. Just resize the
See line 244 source.
view all source.
http://www.koders.com/php/fid136A4B6F430643CDD142AFB26F9E06F0DA5EBD2F.aspx?s=rss[^]
This part of the code will only change size, not small picture
if ($show_thumbs == 1) {
echo '<a href="'.$itemlink.'" title="'.$row->title.'">';
if (!empty($row->images)) {
if (preg_match('#^(http\:\/\/)#', $row->images)) { //url link from custom image
if (strstr($row->images, $mainframe->getCfg('live_site').'/images/')) { //in this site --> gd resize
$simg = str_replace($mainframe->getCfg('live_site').'/images/', '', $row->images);
$iurl = $mainframe->getCfg('ssl_live_site').'/includes/thumb.php?fi=';
$iurl .= base64_encode($thumb_width.','.$thumb_height.','.$keepratio.',images/'.$simg);
$image = '<img src="'.$iurl.' " width="'.$thumb_width.'" height="'.$thumb_height.'" class="modfpg-img" alt="'.$row->title.'" />';
} else { //in other site -> html resize
$image = '<img src="'.$row->images.'" width="'.$thumb_width.'" height="'.$thumb_height.'" class="modfpg-img" alt="'.$row->title.'" />';
推荐答案
show_thumbs == 1){ echo ' < a href ='.
show_thumbs == 1) { echo '<a href="'.
itemlink.' "title ="'.
itemlink.'" title="'.
行标题.' >' ; 如果(!empty(
row->title.'">'; if (!empty(
这篇关于图片不小时,我将上传照片.只需调整-php mod_frontpage的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文