//幻灯图开始
$cachepics=R_P."data/bbscache/index_toppics.php";//幻灯图片缓存文件
$cachepicstime=30;//幻灯图片缓存自动更新时间,单位秒
//下一句设置要显示的板块类型,forum开放板块,former正规板块,hidden隐藏板块
$showforum="(pf.f_type = 'forum' or pf.f_type = 'former')";
if (($timestamp-@filemtime($cachepics)>=$cachepicstime)){
$query=$db->query("SELECT pt.tid,pt.fid,pt.subject,pa.attachurl FROM pw_threads pt
,pw_attachs pa,pw_forums pf where pt.tid = pa.tid and pt.fid = pf.fid and pa.type='img' and pt.ifcheck='1' and ".$showforum." and pf.password = ''
ORDER BY pt.postdate DESC 
LIMIT 60
"); //可以根据需要调整,我这里是估算每个主题有10张图片的情况下。$imgcontent="<?php\n";
$pics=$links=$texts="";
$rs_i=0;
while ($imginfo = $db->fetch_array($query) and $rs_i<5) {//只调用6个主题的图片
  if(($rs_tid!=$imginfo[tid])&&(eregi("\.(jpg)$",$imginfo[attachurl]))){
    $pics.=$db_bbsurl."/".$attachpath."/".$imginfo[attachurl]."|";
    $links.=$db_bbsurl."/read.php?tid=".$imginfo[tid]."|";
    $texts.=$imginfo[subject]."|";
    $rs_i++;//同一主题的只要最后上传的那张图片
  }
  $rs_tid=$imginfo[tid];
}$pics=substr($pics,0,-1);
$links=substr($links,0,-1);
$texts=substr($texts,0,-1);$pics='$pics="'.$pics.'";';
$links='$links="'.$links.'";';
$texts='$texts="'.$texts.'";';$imgcontent = $imgcontent.$pics."\n".$links."\n".$texts."\n?>";
writeover($cachepics,$imgcontent);
}
@require_once($cachepics);
//幻灯图结束
发现phpwind源文件中不带very.swf文件,自己用focus1.swf和pixviewer.swf都不能正常显示,
求高手发一个very.swf 或者告知在哪个页面修改幻灯片调用的代码,本人php不懂,谢谢!