本帖最后由 chinaf1 于 2010-02-06 19:50 编辑
终于自己找到解决方法了
原来调用的时候,SS默认关闭了图片调用的
修改文件
/function/block.func.php
找到function block_spacenews($paramarr) {
global $_SGLOBAL, $_SGET;
$_SGLOBAL['attachsql'] = 'a.aid AS a_aid, a.type AS a_type, a.itemid AS a_itemid, a.uid AS a_uid, a.dateline AS a_dateline, a.filename AS a_filename, a.subject AS a_subject, a.attachtype AS a_attachtype, a.isimage AS a_isimage, a.size AS a_size, a.filepath AS a_filepath, a.thumbpath AS a_thumbpath, a.downloads AS a_downloads';
if(empty($paramarr['sql'])) {
$sql = array();
$sql['select'] = 'SELECT i.*';
$sql['from'] = 'FROM '.tname('spaceitems').' i';
$sql['join'] = '';
$wherearr = array();
$showpic = 1;
showpic = 0 改成1就可以
这样等于图片调用永远打开了! |