第 1 頁 (共 1 頁)
[問題]"安裝公告置頂分隔線"想要再安裝"美化投票
發表於 : 2005-12-07 23:03
由 chenghwa
問題外掛:安裝公告置頂分隔線 & 美化投票
參考連結:
使用版本:phpBB 2.0.18
網站位置:
http://www.bestfood.shorturl.com
狀況描述:
安裝"成功公告置頂隔線"外掛後想加上"美化投票"的外掛
不知道有沒有人裝過
該如何修改呢\r
謝謝
發表於 : 2005-12-08 12:01
由 心靈捕手
建議您:
貼出上述兩個外掛的下載( 參考) 連結, 方便網友測試.
發表於 : 2005-12-10 00:55
由 chenghwa
安裝公告置頂分隔線
http://phpbb-tw.net/phpbb/viewtopic.php ... topic+type
代碼: 選擇全部
##############################################################
## MOD Title: Split topic type
## MOD Author: Ptirhiik < admin@rpgnet-fr.com > (Pierre) http://rpgnet.clanmckeen.com
## MOD Description:
## This mod splits the topic per type in the viewform display
##
## MOD Version: 2.0.1
##
## Installation Level: Moderate
## Installation Time: 10 Minutes
## Files To Edit:
## viewforum.php
## includes/functions.php
## templates/subSilver/subSilver.cfg
## templates/subSilver/viewforum_body.tpl
##
## Included Files:
## mod_split_topic_type.php
## lang_extend_split_topic_type.php
##
## --- lang settings ---
## mod-lang_settings/lang_extend_mac.php
##
## --- mods settings ---
## mod-mods_settings/admin_board_extend.php
## mod-mods_settings/functions_mods_settings.php
## mod-mods_settings/lang_extend_mods_settings.php
## mod-mods_settings/board_config_extend_body.tpl
##
## --- topics list ---
## mod-topics_list/functions_topics_list.php
## mod-topics_list/topics_list_box.tpl
## mod-topics_list/graph.gif/folder_announce_own.gif
## mod-topics_list/graph.gif/folder_announce_new_own.gif
## mod-topics_list/graph.gif/folder_own.gif
## mod-topics_list/graph.gif/folder_new_own.gif
## mod-topics_list/graph.gif/folder_hot_own.gif
## mod-topics_list/graph.gif/folder_new_hot_own.gif
## mod-topics_list/graph.gif/folder_lock_own.gif
## mod-topics_list/graph.gif/folder_lock_new_own.gif
## mod-topics_list/graph.gif/folder_sticky_own.gif
## mod-topics_list/graph.gif/folder_sticky_new_own.gif
##
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## o users can choose their prefered setup (required full mods settings mod to be installed).
## Admin can also choose to override the users choice for each setup parameter.
##
##############################################################
## MOD History:
##
## 2003-10-21 - Version 2.0.1
## - add the lang_settings tool
## - upgrade the mods_settings tool
##
## 2003-09-09 - Version 2.0.0
## - use of the functions_topics_list
## - use the mods_settings for user preferences
##
## 2003-07-13 - Version 1.0.5
## - allow to split the topic in boxes
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
美化投票\r
代碼: 選擇全部
##############################################################
## MOD Title: Poll Topic Folder
## MOD Author: aallix < forumstyles@lycos.co.uk >
## (Adam Allix) http://www.forumstyles.co.uk
## MOD Description: Gives poll topics there own folder image
## (Like Announcements and Sticky topics)
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 5 Minutes
## Files To Edit: viewforum.php, search.php, lang_main.php, subSilver.cfg, viewforum_body.tpl
## Included Files: folder_poll.gif, folder_poll_new.gif
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##############################################################
## Author Notes:
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ COPY ]------------------------------------------
#
copy folder_poll.gif to templates/subSilver/images/
copy folder_poll_new.gif to templates/subSilver/images/
#
#-----[ OPEN ]------------------------------------------
#
viewforum.php
#
#-----[ FIND ]------------------------------------------
#
'FOLDER_ANNOUNCE_IMG' => $images['folder_announce'],
'FOLDER_ANNOUNCE_NEW_IMG' => $images['folder_announce_new'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'FOLDER_POLL_IMG' => $images['folder_poll'],
'FOLDER_POLL_NEW_IMG' => $images['folder_poll_new'],
#
#-----[ FIND ]------------------------------------------
#
'L_STICKY' => $lang['Post_Sticky'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_POLL' => $lang['Post_Poll'],
#
#-----[ FIND ]------------------------------------------
#
else if( $topic_rowset[$i]['topic_type'] == POST_STICKY )
{
$folder = $images['folder_sticky'];
$folder_new = $images['folder_sticky_new'];
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
else if( $topic_rowset[$i]['topic_vote'] )
{
$folder = $images['folder_poll'];
$folder_new = $images['folder_poll_new'];
}
#
#-----[ OPEN ]------------------------------------------
#
search.php
#
#-----[ FIND ]------------------------------------------
#
else if ( $searchset[$i]['topic_type'] == POST_STICKY )
{
$folder = $images['folder_sticky'];
$folder_new = $images['folder_sticky_new'];
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
else if ( $searchset[$i]['topic_vote'] )
{
$folder = $images['folder_poll'];
$folder_new = $images['folder_poll_new'];
}
#
#-----[ OPEN ]------------------------------------------
#
language/lang_emglish/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
$lang['Post_Sticky'] = '置頂';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['Post_Poll'] = '票選';
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/subSilver.cfg
#
#-----[ FIND ]------------------------------------------
#
$images['folder_announce_new'] = "$current_template_images/folder_announce_new.gif";
#
#-----[ AFTER, ADD ]------------------------------------------
\n#
$images['folder_poll'] = "$current_template_images/folder_poll.gif";
$images['folder_poll_new'] = "$current_template_images/folder_poll_new.gif";
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewforum_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<td class="gensmall">{L_NO_NEW_POSTS_LOCKED}</td>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<td> </td>
<td width="20" align="center"><img src="{FOLDER_POLL_IMG}" alt="{L_POLL}" width="19" height="18" /></td>
<td class="gensmall">{L_POLL}</td>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
感謝大家[/code]
發表於 : 2005-12-10 08:40
由 DL
發表於 : 2005-12-10 14:12
由 chenghwa
感謝大家回覆
我已經修改出來了
也提供有需要的參考
1. 首先安裝 "安裝公告置頂分隔線(Split topic type 2.01)"
2. 若要增加 "美化票選", 也就是票選文章前面擺放特定的圖形,除了上面的步驟外,再加上以下的修改:
代碼: 選擇全部
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/subSilver.cfg
#
#-----[ FIND ]------------------------------------------
#
$images['folder_announce_own'] = "$current_template_images/folder_announce.gif";
$images['folder_announce_new_own'] = "$current_template_images/folder_announce_new.gif";
#
#-----[ AFTER, ADD ]------------------------------------------
#
$images['folder_poll_own'] = "$current_template_images/folder_poll.gif
$images['folder_poll_new_own'] = "$current_template_images/folder_poll_new.gif";
#
#-----[ OPEN ]------------------------------------------
#
includes/functions_topics_list.php
#
#-----[ FIND ]------------------------------------------
#
else if( $topic_rowset[$i]['topic_status'] == TOPIC_LOCKED )
{
$folder = ($user_replied && defined('USER_REPLIED_ICON')) ? $images['folder_locked_own'] : $images['folder_locked'];
$folder_new = ($user_replied && defined('USER_REPLIED_ICON')) ? $images['folder_locked_new_own'] : $images['folder_locked_new'];
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
else if( $topic_rowset[$i]['topic_vote'])
{
$folder = ($user_replied && defined('USER_REPLIED_ICON')) ? $images['folder_poll_own'] : $images['folder_poll'];
$folder_new = ($user_replied && defined('USER_REPLIED_ICON')) ? $images['folder_poll_new_own'] : $images['folder_poll_new'];
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM