FlashPaint Mod問題

phpBB 2 MOD Support
無論是官方或非官方認證之外掛,安裝與使用問題討論。
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

主題已鎖定
jeffyuan
星球公民
星球公民
文章: 173
註冊時間: 2005-04-21 22:47

FlashPaint Mod問題

文章 jeffyuan »

問題外掛:FlashPaint
參考連結:http://www.creativecrap.com/bbs/ftopic2014-0-asc-0.html
使用版本:2.0.17
狀況描述:請問我安裝完後
有出現回覆時有出現畫版
但卻無法使其畫像顯示於論壇回覆區中~因而想移除此外掛
但移除後文章回覆區與下方的
關閉這篇文章的 HTML 語法功能\r
關閉這篇文章的 BBCode 代碼功能\r
關閉這篇文章的表情符號功能\r
當有人回覆文章時通知我

分的很開~我進入PHPMYADMIN中查看
卻啥也看不到~不知應怎麼移除??
ethan
星球公民
星球公民
文章: 218
註冊時間: 2002-06-01 09:48
聯繫:

文章 ethan »

真抱歉,我認真的看了兩三遍你的文章
還是看不懂你要問的問題

移除外掛的方式,就是把安裝的過程反過來
jeffyuan
星球公民
星球公民
文章: 173
註冊時間: 2005-04-21 22:47

文章 jeffyuan »

sql的部份
我不曉得要移除那裡?
雖然現在已OK~但我有一地方沒有改到~因為我找不到你說的地方改(原程式以被我改過)
我晚點PO出我沒改的.tpl名稱
ethan
星球公民
星球公民
文章: 218
註冊時間: 2002-06-01 09:48
聯繫:

文章 ethan »

phpbb_config 刪掉欄位 config_name 值為 flash_paint 的該筆資料
phpbb_posts_text 刪掉 post_fpdata 欄位
phpbb_topics 刪掉 topic_flashpaint 欄位
phpbb_posts 刪掉 post_flashpaint 欄位
phpbb_forums 刪掉 auth_flashpaint_post, auth_flashpaint_view 兩個欄位
phpbb_auth_access 刪掉 auth_flashpaint_post, auth_flashpaint_view 兩個欄位

即全部移除
jeffyuan
星球公民
星球公民
文章: 173
註冊時間: 2005-04-21 22:47

文章 jeffyuan »

這裡我找不到說~所以我跳過此不驟~可以嗎?
[ Open / 開啟 templates/subSilver/viewforum_body.tpl ]

##(31) -----[ FIND / 尋找 ]-----

<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a>

##(31) -----[ BEFORE, ADD / 在之前, 新增 ]-----

{topicrow.FLASHPAINT_IMG}
頭像
jwxie
竹貓忠實會員
竹貓忠實會員
文章: 604
註冊時間: 2005-11-26 12:02
來自: New York, USA   學業狀況: 更加努力     個人狀況: ||地獄臭蛋|| 
聯繫:

文章 jwxie »

jeffyuan 寫:這裡我找不到說~所以我跳過此不驟~可以嗎?
[ Open / 開啟 templates/subSilver/viewforum_body.tpl ]

##(31) -----[ FIND / 尋找 ]-----

<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a>

##(31) -----[ BEFORE, ADD / 在之前, 新增 ]-----

{topicrow.FLASHPAINT_IMG}
既然是外掛, 一般只是顯示的話不改也不是說什麼大問題, 你這個是 viewforum_body.tpl, 他有說before add一句, 我感覺到如果你是找不到\r
之前曾經發覺太舊的外掛, 是的確不能套用在新的, 因為有些句子都給改變啦

目前本人帳號嚴重地被盜用!MSN已經被盜!

想問個問題並不打擾, 但沒有發文格式, 其他人不能知道你的情況!
請尊守竹貓各區裡的發文格式, 謝謝合作!
[必看]請配合發問格式及明確主題發問(04 02/16更新) phpBB!
所有新手必看的
[教學]認識、安裝和參考PHPBB的新手基本教學通
PS:感謝各位大大的幫助和教導^^
Q168.net空間技術交流

個人小品(Blog)My phpBB-Blog免費空間討論區
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8547
註冊時間: 2004-04-30 01:54
來自: Taiwan

文章 心靈捕手 »

jeffyuan 寫:這裡我找不到說~所以我跳過此不驟~可以嗎?
[ Open / 開啟 templates/subSilver/viewforum_body.tpl ]

##(31) -----[ FIND / 尋找 ]-----

<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a>

##(31) -----[ BEFORE, ADD / 在之前, 新增 ]-----

{topicrow.FLASHPAINT_IMG}
已經搞不清楚:
您所謂的" 步驟", 到底是要安裝或移除此外掛? :roll:

若是移除, 則無所謂;
若是安裝, 會找不到代碼, 則可能是因為風格不同, 或有安裝其他外掛.
建議您:
尋找關鍵字" TOPIC_TITLE".
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
jeffyuan
星球公民
星球公民
文章: 173
註冊時間: 2005-04-21 22:47

文章 jeffyuan »

找不到 TOPIC_TITLE說\r
但外掛確定正常運作中~我想此段沒改應該不要緊吧
ethan
星球公民
星球公民
文章: 218
註冊時間: 2002-06-01 09:48
聯繫:

文章 ethan »

確定你找對檔案嗎? viewforum_body.tpl
找不到 TOPIC_TITLE 的話,你的頁面應該不正常吧 8-)

該部份修改,只是在該文章內若有任一篇中有發表過 flashpaint
則在該主題前加一個代表圖示,就跟有附件是同樣效果
不修改並不影響
jeffyuan
星球公民
星球公民
文章: 173
註冊時間: 2005-04-21 22:47

文章 jeffyuan »

我貼出此檔內容
viewforum_body.tpl

<a href="{U_BUCKET}" title="{L_BUCKT}" class="nav"><img src="{U_BUCKET_IMG}" alt="{L_BUCKET}" border="0" /></a>
<!-- mod : split topic type -->
<form method="post" action="{S_POST_DAYS_ACTION}">
<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
<tr>
<td align="left" valign="bottom" colspan="2"><a class="maintitle" href="{U_VIEW_FORUM}">{FORUM_NAME}</a><br /><span class="gensmall"><b>{L_MODERATOR}: {MODERATORS}<br /><br />{LOGGED_IN_USER_LIST}</b></span></td>
<td align="right" valign="bottom" nowrap="nowrap"><span class="gensmall"><b>{PAGINATION}</b></span></td>
</tr>
<tr>
<td align="left" valign="middle" width="50">{topicrow.FLASHPAINT_IMG}<a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" /></a></td>
<td align="left" valign="middle" class="nav" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
<td align="right" valign="bottom" class="nav" nowrap="nowrap"><span class="gensmall"><a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a></span></td>
</tr>
</table>

{TOPICS_LIST_BOX}

<table width="100%" cellspacing="2" border="0" align="center" cellpadding="2">
<tr>
<td align="left" valign="middle" width="50"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" /></a></td>
<td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
<td align="right" valign="middle" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span><br /><span class="nav">{PAGINATION}</span>
</td>
</tr>
<tr>
<td align="left" colspan="3"><span class="nav">{PAGE_NUMBER}</span></td>
</tr>
</table>
</form>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right">{JUMPBOX}</td>
</tr>
</table>

<table width="100%" cellspacing="0" border="0" align="center" cellpadding="0">
<tr>
<td align="left" valign="top"><table cellspacing="3" cellpadding="0" border="0">
<tr>
<td width="20" align="left"><img src="{FOLDER_NEW_IMG}" alt="{L_NEW_POSTS}" /></td>
<td class="gensmall">{L_NEW_POSTS}</td>
<td>&nbsp;&nbsp;</td>
<td width="20" align="center"><img src="{FOLDER_IMG}" alt="{L_NO_NEW_POSTS}" width="19" height="18" /></td>
<td class="gensmall">{L_NO_NEW_POSTS}</td>
<td>&nbsp;&nbsp;</td>
<!-- Start replacement - Global announcement MOD -->
<td width="20" align="center"><img src="{FOLDER_GLOBAL_ANNOUNCE_IMG}" alt="{L_GLOBAL_ANNOUNCEMENT}" width="19" height="18" /></td>
<td class="gensmall">{L_GLOBAL_ANNOUNCEMENT}</td>
<!-- End replacement - Global announcement MOD -->
</tr>
<tr>
<td width="20" align="center"><img src="{FOLDER_HOT_NEW_IMG}" alt="{L_NEW_POSTS_HOT}" width="19" height="18" /></td>
<td class="gensmall">{L_NEW_POSTS_HOT}</td>
<td>&nbsp;&nbsp;</td>
<td width="20" align="center"><img src="{FOLDER_HOT_IMG}" alt="{L_NO_NEW_POSTS_HOT}" width="19" height="18" /></td>
<td class="gensmall">{L_NO_NEW_POSTS_HOT}</td>
<td>&nbsp;&nbsp;</td>
<!-- Start replacement - Global announcement MOD -->
<td width="20" align="center"><img src="{FOLDER_ANNOUNCE_IMG}" alt="{L_ANNOUNCEMENT}" width="19" height="18" /></td>
<td class="gensmall">{L_ANNOUNCEMENT}</td>
<!-- End replacement - Global announcement MOD -->
</tr>
\n <tr>
<td class="gensmall"><img src="{FOLDER_LOCKED_NEW_IMG}" alt="{L_NEW_POSTS_LOCKED}" width="19" height="18" /></td>
<td class="gensmall">{L_NEW_POSTS_LOCKED}</td>
<td>&nbsp;&nbsp;</td>
<td class="gensmall"><img src="{FOLDER_LOCKED_IMG}" alt="{L_NO_NEW_POSTS_LOCKED}" width="19" height="18" /></td>
<td class="gensmall">{L_NO_NEW_POSTS_LOCKED}</td>
<!-- Start add - Global announcement MOD -->
<td>&nbsp;&nbsp;</td>
<td width="20" align="center"><img src="{FOLDER_STICKY_IMG}" alt="{L_STICKY}" width="19" height="18" /></td>
<td class="gensmall">{L_STICKY}</td>
<!-- End add - Global announcement MOD -->
<td>&nbsp;&nbsp;</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>
</tr>
</table></td>
<td align="right"><span class="gensmall">{S_AUTH_LIST}</span></td>
<a href="{U_BUCKET}" title="{L_BUCKT}" class="nav"><img src="{U_BUCKET_IMG}" alt="{L_BUCKET}" border="0" /></a>
</tr>
</table>
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8547
註冊時間: 2004-04-30 01:54
來自: Taiwan

文章 心靈捕手 »

To jeffyuan:

看得出來您有安裝 Split topic type 2.0.1
所以在 viewforum_body.tpl 找不到 TOPIC_TITLE

建議您:
到下列檔案裡頭找:
templates/YOUR_THEME/topics_list_box.tpl
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
jeffyuan
星球公民
星球公民
文章: 173
註冊時間: 2005-04-21 22:47

文章 jeffyuan »

我找到了
但不知怎麼修改~改了沒作用說

<!-- BEGIN topics_list_box -->
<!-- BEGIN row -->
<!-- BEGIN header_table -->
<!-- BEGIN multi_selection -->
<script language="Javascript" type="text/javascript">
//
// checkbox selection management
function check_uncheck_main_{topics_list_box.row.header_table.BOX_ID}()
{
var all_checked = true;
for (i = 0; (i < document.{topics_list_box.FORMNAME}.elements.length) && all_checked; i++)
{
if (document.{topics_list_box.FORMNAME}.elements.name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}')
{
all_checked = document.{topics_list_box.FORMNAME}.elements.checked;
}
}
document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked = all_checked;
}
// check/uncheck all
function check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}()
{
for (i = 0; i < document.{topics_list_box.FORMNAME}.length; i++)
{
if (document.{topics_list_box.FORMNAME}.elements.name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}')
{
document.{topics_list_box.FORMNAME}.elements.checked = document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked;
}
}
}
</script>
<!-- END multi_selection -->

<table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline">
<tr>
<th colspan="{topics_list_box.row.header_table.COLSPAN}" align="center" nowrap="nowrap">&nbsp;{topics_list_box.row.L_TITLE}&nbsp;</th>
<th width="50" align="center" nowrap="nowrap">&nbsp;{topics_list_box.row.L_REPLIES}&nbsp;</th>
<th width="100" align="center" nowrap="nowrap">&nbsp;{topics_list_box.row.L_AUTHOR}&nbsp;</th>
<th width="50" align="center" nowrap="nowrap">&nbsp;{topics_list_box.row.L_VIEWS}&nbsp;</th>
<th width="150" align="center" nowrap="nowrap">&nbsp;{topics_list_box.row.L_LASTPOST}&nbsp;</th>
<!-- BEGIN multi_selection -->
<th width="20" align="center" nowrap="nowrap"><input type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" onClick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" /></th>
<!-- END multi_selection -->
</tr>
<!-- END header_table -->
<!-- BEGIN header_row -->
<tr>
<td class="row3" colspan="{topics_list_box.row.COLSPAN}"><span class="gensmall">&nbsp;&nbsp;<b>{topics_list_box.row.L_TITLE}</b></span></td>
</tr>
<!-- END header_row -->
<!-- BEGIN topic -->
<tr>
<!-- BEGIN single_selection -->
<td class="{topics_list_box.row.ROW_CLASS}" align="center" valign="middle" width="20"><input type="radio" name="{topics_list_box.FIELDNAME}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></td>
<!-- END single_selection -->
<td class="{topics_list_box.row.ROW_FOLDER_CLASS}" align="center" valign="middle" width="20"><img src="{topics_list_box.row.TOPIC_FOLDER_IMG}" width="19" height="18" alt="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" title="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" /></td>
<!-- BEGIN icon -->
<td class="{topics_list_box.row.ROW_CLASS}" align="center" valign="middle" width="20">{topics_list_box.row.ICON}</td>
<!-- END icon -->
<td class="{topics_list_box.row.ROW_CLASS}" width="100%">
<span class="topictitle">{topics_list_box.row.NEWEST_POST_IMG}{topics_list_box.row.TOPIC_TYPE}{topicrow.FLASHPAINT_IMG}<a href="{topics_list_box.row.U_VIEW_TOPIC}" class="topictitle">{topics_list_box.row.TOPIC_TITLE}</a></span><span class="gensmall">&nbsp;&nbsp;{topics_list_box.row.TOPIC_ANNOUNCES_DATES}{topics_list_box.row.TOPIC_CALENDAR_DATES}</span>
<span class="gensmall">
{topics_list_box.row.GOTO_PAGE}
<!-- BEGIN nav_tree -->
{topics_list_box.row.TOPIC_NAV_TREE}
<!-- END nav_tree -->
</span>
</td>
<td class="row2" align="center" valign="middle"><span class="postdetails">{topics_list_box.row.REPLIES}</span></td>
<td class="row3" align="center" valign="middle"><span class="name">{topics_list_box.row.TOPIC_AUTHOR}</span></td>
<td class="row2" align="center" valign="middle"><span class="postdetails">{topics_list_box.row.VIEWS}</span></td>
<td class="row3" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topics_list_box.row.LAST_POST_TIME}<br />{topics_list_box.row.LAST_POST_AUTHOR} {topics_list_box.row.LAST_POST_IMG}</span></td>
<!-- BEGIN multi_selection -->
<td class="row2" align="center" valign="middle"><span class="postdetails"><input type="checkbox" name="{topics_list_box.FIELDNAME}[]{topics_list_box.row.BOX_ID}" value="{topics_list_box.row.FID}" onClick="javascript:check_uncheck_main_{topics_list_box.row.BOX_ID}();" {topics_list_box.row.L_SELECT} /></span></td>
<!-- END multi_selection -->
</tr>
<!-- END topic -->
<!-- BEGIN no_topics -->
<tr>
<td class="row1" colspan="{topics_list_box.row.COLSPAN}" height="30" align="center" valign="middle"><span class="gen">{topics_list_box.row.L_NO_TOPICS}</span></td>
</tr>
<!-- END no_topics -->
<!-- BEGIN bottom -->
<tr>
<td class="catBottom" colspan="{topics_list_box.row.COLSPAN}" align="center" valign="middle"><span class="genmed">{topics_list_box.row.FOOTER}</span></td>
</tr>
<!-- END bottom -->
<!-- BEGIN footer_table -->
</table>
<!-- END footer_table -->
<!-- BEGIN spacer -->
<br class="gensmall">
<!-- END spacer -->
<!-- END row -->
<!-- END topics_list_box -->
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8547
註冊時間: 2004-04-30 01:54
來自: Taiwan

文章 心靈捕手 »

To jeffyuan:

您既然安裝了 Split topic type 2.0.1
那麼 viewforum.php 已被架空
也就是說, 您新增外掛, 關於 viewforum.php 的修改,
可能要移轉到 includes/functions_topics_list.php;
就如同關於 templates/YOUR_THEME/viewforum_body.tpl 的修改,
必須移轉到 templates/YOUR_THEME/topics_list_box.tpl

以下的修改, 提供您參考:
#
#-----[ OPEN ]-----
#
includes/functions_topics_list.php

#
#-----[ FIND ]-----
#

代碼: 選擇全部

		$template->assign_block_vars( $tpl . '.row', array(
#
#-----[ BEFFORE, ADD ]-----
#

代碼: 選擇全部

		// BEGIN: FLASH PAINT MOD
		$flashpaint_img = ($topic_rowset[$i]['topic_flashpaint']) ? '<img src="' . $images['icon_flashpaint'] . '" align=absmiddle hspace=1>' : '';
		// END: FLASH PAINT MOD
#
#-----[ FIND ]-----
#

代碼: 選擇全部

			'TOPIC_TITLE'			=> $topic_title,
#
#-----[ BEFFORE, ADD ]-----
#

代碼: 選擇全部

			// BEGIN: FLASH PAINT MOD
			'FLASHPAINT_IMG'            => $flashpaint_img,
			// BEGIN: FLASH PAINT MOD
#
#-----[ OPEN ]-----
#
templates/YOUR_THEME/topics_list_box.tpl

#
#-----[ FIND ]-----
#

代碼: 選擇全部

{topicrow.FLASHPAINT_IMG}
#
#-----[ REPLACE WITH ]-----
#

代碼: 選擇全部

{topics_list_box.row.FLASHPAINT_IMG}
#
#-----[ SAVE & CLOSE ]-----
#
#EoM
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
主題已鎖定

回到「外掛問題討論」