![]() |
|
論壇說明 |
歡迎您來到『史萊姆論壇』 ^___^ 您目前正以訪客的身份瀏覽本論壇,訪客所擁有的權限將受到限制,您可以瀏覽本論壇大部份的版區與文章,但您將無法參與任何討論或是使用私人訊息與其他會員交流。若您希望擁有完整的使用權限,請註冊成為我們的一份子,註冊的程序十分簡單、快速,而且最重要的是--註冊是完全免費的! 請點擊這裡:『註冊成為我們的一份子!』 |
![]() ![]() |
|
主題工具 | 顯示模式 |
![]() |
#1 |
長老會員
![]() |
![]() 這是一個不大的修改,可以讓你的論壇的子論壇以欄位方式顯示,
其效果大家可以查看附件圖片,或是直接拜訪這個網址觀看範例: http://forum.lowcarber.org/ ※使用方法: 進入到論壇管理控制台 點選vBulletin Options(常規選項) 選擇"論壇列表顯示選項" 將子論壇顯示深度由0改為1 開始修改: 1.編輯檔案functions_forumlist.php(位於includes資料夾內),搜尋: PHP代碼: foreach($iforumcache["$parentid"] AS $forums) 在上面加上此段程式碼: PHP代碼: $output .= "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\" ><tr valign=\"top\"> "; $cols = 0; 搜尋: PHP代碼: eval('$subforum = "' . fetch_template("forumhome_subforumbit_$canpost") . '";'); if (!empty($output)) { $subforum = $splitter["$canpost"] . $subforum; } if ($depth < $vboptions['subforumdepth']) { $output .= construct_subforum_bit($forumid, $cancontainthreads, $subforum, $depthmark . '--', $depth + 1); } } } } return $output; } 整段替換為: PHP代碼: eval('$subforum = "' . fetch_template("forumhome_subforumbit_$canpost") . '";'); //sub-forum hack if ($depth < $vboptions['subforumdepth']) { $cols++; if ($cols==3) { $cols = 1; $output .= "</tr><tr>"; } $output .= "<td width=\"50%\">" . construct_subforum_bit($forumid, $cancontainthreads, $subforum, $depthmark . '--', $depth + 1) . "</td>"; } } } } $output.="</tr></table>"; return $output; // end sub-forum hack } 模版編輯(非必需的),如果您覺得字體不太習慣的話,請修改這裡。 搜尋所有模版中的此段程式碼: HTML代碼: <img class="inlineimg" src="$stylevar[imgdir_statusicon]/subforum_$forum[statusicon].gif" alt="" /> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a> 整段替換為: HTML代碼: <img class="inlineimg" src="$stylevar[imgdir_statusicon]/subforum_$forum[statusicon].gif" alt="" /> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><span class="smallfont">$forum[title]</span></a> 首頁顯示的子論壇依欄位排列修改完成。 |
__________________ 給自己看也給所有需要這些話鼓勵的人看! 認真不一定會得到美好的結果,但是不認真就一定沒有 想要有什麼結果,就秉持你的雙手 放手去做 總比什麼都沒付出最後失敗了才嘆氣來的好吧 沒努力的人.沒有資格說放棄 努力過的人.更要有勇氣繼續努力下去
|
|
![]() |
送花文章: 1,
![]() |