![]() |
為論壇再增加一條工具欄
嫌一條工具欄可放的東西太少嗎??
這個修改可以讓您的論壇頂部再多一條工具欄, 修改方法也很簡單,以下為修改步驟: 1.到後台新增一個模板,模板名稱為navbar2,並加入以下內容: <!-- nav buttons bar --> <div align="center"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px"> <tr align="center"> <!-- Home link in navbar non drop down menu --> <td class="vbmenu_control"><a href="/index.php?$session[sessionurl]">Home</a></td> <!-- / Home link in navbar non drop down menu --> <!-- Forum link in navbar non drop down menu --> <td class="vbmenu_control"><a href="/forum/index.php?$session[sessionurl]">Forums</a></td> <!-- / Forum link in navbar non drop down menu --> <!-- Setup for drop down menu #1 in navbar --> <td id="dropdown1" class="vbmenu_control"><a href="#dropdown1">Photo's</a> <script type="text/javascript"> vbmenu_register("dropdown1"); </script></td> <!-- / Setup for down menu #1 in navbar--> <!-- Setup for drop down menu #2 in navbar --> <td id="dropdown2" class="vbmenu_control"><a href="#dropdown2">About WhiteBlaze</a> <script type="text/javascript"> vbmenu_register("dropdown2"); </script></td> <!-- / Setup for drop down menu #2 in navbar --> <!-- Non drop down menu's in navbar --> <td class="vbmenu_control"><a href="/forum/weather.php?$session[sessionurl]">Weather</a></td> <td class="vbmenu_control"><a href="/forum/links.php?$session[sessionurl]">Links</a></td> <td class="vbmenu_control"><a href="/forum/2004.php?$session[sessionurl]">2004 Hikers</a></td> <!-- / Non drop down menu's in navbar --> <!-- Setup for drop down menu #3 in navbar --> <td id="dropdown3" class="vbmenu_control"><a href="#dropdown3">Information</a> <script type="text/javascript"> vbmenu_register("dropdown3"); </script></td> <!-- / Setup for drop down menu #3 in navbar --> </tr> </table> </div> <!-- / nav buttons bar --> <!-- NAVBAR POPUP MENUS --> <!-- Drop down for menu #1 in navbar--> <div class="vbmenu_popup" id="dropdown1_menu" style="display:none"> <table cellpadding="4" cellspacing="1" border="0"> <tr><td class="thead">Photo's</a></td></tr> <tr><td class="vbmenu_option"><a href="../gallery">Gallery Homepage</a></td></tr> <tr><td class="vbmenu_option"><a href="../gallery/showgallery.php?cat=last1&forcat=last7">Last Day</a></td></tr> <tr><td class="vbmenu_option"><a href="../gallery/showgallery.php?cat=last7&forcat=">Last 7 Days</a></td></tr> <tr><td class="vbmenu_option"><a href="../gallery/showgallery.php?cat=last14&forcat=">Last 14 Days</a></td></tr> <tr><td class="vbmenu_option"><a href="../gallery/showgallery.php?cat=all&forcat=">All Images</a></td></tr> </table> </div> <!-- / Drop down for menu #1 in navbar--> <!-- Drop down for menu #2 in navbar--> <div class="vbmenu_popup" id="dropdown2_menu" style="display:none"> <table cellpadding="4" cellspacing="1" border="0"> <tr><td class="thead">About WhiteBlaze</td></tr> <tr><td class="vbmenu_option"><a href="http://www.yourdomain.net/forum/aboutus.php">About WhiteBlaze</a></td></tr> <tr><td class="vbmenu_option"><a href="http://www.yourdomain.net/forum/wbpatch.php">Order a patch</a></td></tr> <tr><td class="vbmenu_option"><a href="http://www.yourdomain.net/forum/support.php">Support/Donations</a></td></tr> </table> </div> <!-- / Drop down for menu #2 in navbar--> <!-- Drop down for menu #3 in navbar--> <div class="vbmenu_popup" id="dropdown3_menu" style="display:none"> <table cellpadding="4" cellspacing="1" border="0"> <tr><td class="thead">Thru-hiking Info</td></tr> <tr><td class="vbmenu_option"><a href="http://www.yourdomain.net/forum/shelter.php">Shelter and Mileage</a></td></tr> <tr><td class="vbmenu_option"><a href="http://www.yourdomain.net/forum/ferrysched.php">Kennebec Ferry Schedule</a></td></tr> <tr><td class="vbmenu_option"><a href="http://www.yourdomain.net/forum/maildrop.php">Mail Drops/Resupply Package advice</a></td></tr> <tr><td class="vbmenu_option"><a href="http://www.yourdomain.net/forum/articlesresupply.php">Resupply advive</a></td></tr> <tr><td class="vbmenu_option"><a href="http://www.yourdomain.net/forum/terms.php">Trail Terms and Slang</a></td></tr> <tr><td class="vbmenu_option"><a href="http://www.yourdomain.net/forum/wcadvice.php">Inexpesive Thru-hike</a></td></tr> <tr><td class="vbmenu_option"><a href="http://www.yourdomain.net/forum/dattosadvice.php">Datto's Thru-hiking tips</a></td></tr> <tr><td class="vbmenu_option"><a href="http://www.yourdomain.net/threg/index.php">Thru-Hiker Registry</a></td></tr> <tr><td class="thead">Users's Trip Reports</a></td></tr> <tr><td class="vbmenu_option"><a href="http://www.yourdomain.net/forum/articles600.php">600 Miles</a></td></tr> <tr><td class="vbmenu_option"><a href="http://www.yourdomain.net/forum/monadnock.php">Mt. Monadnock</a></td></tr> </table> </div> <!-- Drop down for menu #3 in navbar--> <!-- / NAVBAR POPUP MENUS --> ※裡面的連結與文字請自行依需求修改 2.編輯公共模板phpinclude_start,加上以下程式碼: PHP代碼: eval('$navbar2 = "' . fetch_template('navbar2') . '";'); 3.搜尋模板,在所有包含$navbar的下方加上: PHP代碼: $navbar2 4.編輯檔案global.php,搜尋: PHP代碼: // misc useful 在下面加上: PHP代碼: 'navbar2', 修改完成 |
所有時間均為台北時間。現在的時間是 07:55 PM。 |
Powered by vBulletin® 版本 3.6.8
版權所有 ©2000 - 2025, Jelsoft Enterprises Ltd.
『服務條款』
* 有問題不知道該怎麼解決嗎?請聯絡本站的系統管理員 *