原帖由 lu5266 于 2005-7-21 18:48 发表
$subexists = 0;
foreach($_DCACHE['forums'] as $sub) {
if($sub['type'] == 'sub' && $sub['fup'] == $fid && (!$hideprivate || !$sub['viewperm'] || strstr($sub['viewperm'], ...
試將下兩段修改成 (未測試過)
$sql = $accessmasks ? "SELECT f.fid, f.fup, f.type, f.icon, f.name, f.description, f.moderator, f.threads, f.posts, f.lastpost, f.viewperm, f.bgmusic,f.bgmusicurl,f.bgmusicloop, a.allowview FROM $table_forums f "SELECT fid, fup, type, icon, name, description, moderator, threads, posts, lastpost, viewperm, bgmusic,bgmusicurl,bgmusicloop FROM $table_forums WHERE fup='$fid' AND status='1' AND type='sub' ORDER BY displayorder";
然後用 $forum 引出 (例: $forum[bgmusic]) |