iart 发表于 2010-9-21 11:12:38

关于无图时显示广告的源码问题

发现有图或者无图的判断在include\module.func.php 和script\page.js里面,而模板文件里面的if判断无图时显示广告是无效的,那么应该怎么修改源码,才能让sell无图显示广告呢?
function get_albums($item, $type = 0) {
$imgs = array();
if($type == 0) {
$nopic = DT_SKIN.'image/nopic60.gif';
$imgs[] = $item['thumb'] ? $item['thumb'] : $nopic;
$imgs[] = $item['thumb1'] ? $item['thumb1'] : $nopic;
$imgs[] = $item['thumb2'] ? $item['thumb2'] : $nopic;
} else if($type == 1) {
$nopic = DT_SKIN.'image/nopic240.gif';
$imgs[] = $item['thumb'] ? str_replace('.thumb.', '.middle.', $item['thumb']) : $nopic;
$imgs[] = $item['thumb1'] ? str_replace('.thumb.', '.middle.', $item['thumb1']) : $nopic;
$imgs[] = $item['thumb2'] ? str_replace('.thumb.', '.middle.', $item['thumb2']) : $nopic;
}
return $imgs;
}

function SAlbum(s) {
if(s.indexOf('nopic240.gif') != -1) return;
s = s.substring(0, s.length-8-ext(s).length);
$('imgshow').innerHTML = '

';
Ds('imgshow');
}

fzs888 发表于 2010-9-30 15:27:24


不会,帮您顶啊。
http://bbs.destoon.com/static/image/smiley/default/hug.gif

http://bbs.destoon.com/static/image/smiley/default/hug.gif

http://bbs.destoon.com/static/image/smiley/default/hug.gif

http://bbs.destoon.com/static/image/smiley/default/hug.gif

dt模板 发表于 2010-10-4 00:27:07


呵呵
这个问题搞定了还是不错
很实用

帮定
页: [1]
查看完整版本: 关于无图时显示广告的源码问题