[外掛]推薦網站簡易版外掛 by oO]-[Oo
發表於 : 2003-06-11 18:55
oO]-[Oo™ 寫:推薦網站簡易版
已知BUG.. 在mozila下無法正常顯示, 想辦法解決中\r代碼: 選擇全部
############################################################## ## Mod Title: Links_MOD ## Mod Version: 1.1.0 ## Author: OOHOO < webdev@phpbb-tw.net > http://phpbb-tw.net/ ## ## Description: Display links (with logo) on the forum index page. ## ## ## Installation Level: (easy) ## Installation Time: 1-5 Minutes ## Files To Edit: \r ## index.php ## language/lang_chinese_traditional_taiwan/lang_main.php ## templates/subSilver/index_body.tpl ## ## Included Files: ## links.js.php ## includes/links_constants.php ## templates/subSilver/links_js_body.tpl ## images/links/web_logo88a.gif ## images/links/phpBB_88a.gif ## images/links/phpbb-tw_logo88a.gif ############################################################## ## Security Disclaimer: This MOD Cannot Be Posted To Or Added At Any Non-Official phpBB Sites ################################################################# ## ## Author Note: Simple version ## ############################################################## ## Version History: ## 1.0.X - 2002/03/22 - for phpBB RC serial, and was named Related_Links_MOD ## 1.1.0 - 2002/04/25 - Re-packed for phpBB 2.0.0, and renamed to Links_MOD ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ################################################################# 請先下載[url=http://phpbb-tw.net/phpbb/download/links_mod_simple.zip]links_mod_simple.zip[/url], 將檔案解至以下位置\r links.js.php includes/links_constants.php templates/subSilver/links_js_body.tpl images/links/web_logo88a.gif images/links/phpBB_88a.gif images/links/phpbb-tw_logo88a.gif [color=red](註. 請自行在 images/ 底下建立 links子目錄)[/color] # #-----[ ACTION: OPEN ]------------------------------------------ # index.php # #-----[ ACTION: FIND ]------------------------------------------ # include($phpbb_root_path . 'common.'.$phpEx); # #-----[ ACTION: AFTER, ADD ]------------------------------------------ # include($phpbb_root_path . "includes/links_constants.$phpEx"); // Links_MOD # #-----[ ACTION: FIND ]------------------------------------------ # 'L_ONLINE_EXPLAIN' => $lang['Online_explain'], # #-----[ ACTION: AFTER, ADD ]------------------------------------------ # 'L_LINKS' => $lang['Site_links'], // Links_MOD 'U_SITE_LOGO' => SITE_LOGO_SRC, // Links_MOD 'SITE_LOGO_WIDTH' => SITE_LOGO_WIDTH, // Links_MOD 'SITE_LOGO_HEIGHT' => SITE_LOGO_HEIGHT, // Links_MOD # #-----[ ACTION: OPEN ]------------------------------------------ # templates/subSilver/index_body.tpl # #-----[ ACTION: FIND ]------------------------------------------ # <!-- BEGIN switch_user_logged_out --> <form method="post" action="{S_LOGIN_ACTION}"> # #-----[ ACTION: BEFORE, ADD ]------------------------------------------ # <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline"> <tr> <td class="catLeft" width="100%" height="22"><span class="cattitle">{L_LINKS}</span></td> <td class="catRight" nowrap="nowrap" align="center"><span class="cattitle">{SITENAME}</span></td> </tr> <tr> <td class="row1" nowrap="nowrap"><iframe marginwidth="0" marginheight="0" src="links.js.php" frameborder="0" scrolling="no" width="100%" height="{SITE_LOGO_HEIGHT}"></iframe></td> <td class="row2" nowrap="nowrap"><img src="{U_SITE_LOGO}" alt="{SITENAME}" width="{SITE_LOGO_WIDTH}" height="{SITE_LOGO_HEIGHT}" border="0" /></td> </tr> </table> # #-----[ ACTION: OPEN ]------------------------------------------ # language/lang_chinese_traditional_taiwan/lang_main.php # #-----[ ACTION: ADD ]------------------------------------------ # // Related links $lang['Site_links'] = "推薦網站"; # #-----[ ACTION: OPEN ]------------------------------------------ # includes/links_constants.php # #-----[ ACTION: CHANGE ]------------------------------------------ # define('SITE_URL', "http://phpbb-tw.net/"); // 你的網站url define('SITE_LOGO_SRC', "http://phpbb-tw.net/phpbb/images/links/web_logo88a.gif"); // 你的網站LOGO [color=red](註.請自行設定 SITE_URL ==> 網站位置, SITE_LOGO_SRC ==> logo 位置)[/color] 加入連結資料, 格式範例如下 $LINKS = array( array('link_title' => 'phpBB 官方網站', 'link_logo_src' => 'images/links/phpBB_88a.gif', 'link_url' => 'http://www.phpbb.com/'), array('link_title' => '竹貓星球', 'link_logo_src' => 'images/links/phpbb-tw_logo88a.gif', 'link_url' => 'http://phpbb-tw.net/'), array('link_title' => '竹貓星球', 'link_logo_src' => 'images/links/phpbb-tw_logo88a.gif', 'link_url' => 'http://phpbb-tw.net/'), array('link_title' => '竹貓星球', 'link_logo_src' => 'images/links/phpbb-tw_logo88a.gif', 'link_url' => 'http://phpbb-tw.net/'), array('link_title' => '竹貓星球', 'link_logo_src' => 'images/links/phpbb-tw_logo88a.gif', 'link_url' => 'http://phpbb-tw.net/'), array('link_title' => '竹貓星球', 'link_logo_src' => 'images/links/phpbb-tw_logo88a.gif', 'link_url' => 'http://phpbb-tw.net/') ); define('DISPLAY_INTERVAL', 6000); // 輪播間隔 (豪秒) define('DISPLAY_LOGO_NUM', 8); // LOGO顯示數量 # #-----[ ACTION: SAVE & CLOSE FILE ]------------------------------------------ #