[外掛]快速回覆功能PLUS進階版

MODs Released by Other phpbb Sites
非官方認證通過之 MOD ,或許有安全性之疑慮,所有問題由原發表者回覆!

版主: 版主管理群

主題已鎖定
頭像
godbless
竹貓忠實會員
竹貓忠實會員
文章: 647
註冊時間: 2002-05-17 06:02
來自: 台北市南京東路4段
聯繫:

[外掛]快速回覆功能PLUS進階版

文章 godbless »

這個版本是小弟弟我想盡辦法,花了一堆時間才找到的
同時又手動作了些小修改,將本版本改的跟PLUS裡面的那個一樣...(其實就是把PLUS裡面相關的兩個檔案做了覆蓋和比對的動作... :roll:

原始檔案出處:
http://www.phpbbhacks.com/viewhack.php?id=540
小弟弟我的修改後版本:
http://www.gffclan.net/forumplus/docs/m ... _1.1.1.zip
參考試看:
其實跟PLUS1.1的一樣\r


[php]<?php
#################################################################
## Mod Title: Advanced Quick Reply Mod
## Mod Author: RustyDragon <dev@RustyDragon.com> http://www.phpbbhacks.com
## Mod Version: 1.1.1
## Mod Description: This will allow users to use quick reply form
## which is placed below every topic.
## It will only display when user has the Reply access
## User have a option to quote the last message.
## A list of 24 smilies is shown below input area.
## Users can paste names of users just by clicking on it.
## Also they can select any text on a page and quote it to the input area.
##
## Last 3 options were absent in Quick Reply Mod with Quote on which
## this mod is based.
## Additional feature - uses of template for quick reply form.
## So you can change a look of the mod to whatever you want.
##
## Installation Level: Very Easy
## Installation Time: 4 Minutes
##
## Files To Edit: 3
## viewtopic.php,
## language/lang_english/lang_main.php
## templates/subSilver/viewtopic_body.tpl
##
## Included Files: quick_reply.php, quick_reply.tpl
#################################################################
##
## Author Note:
## If you want to have different number of smilies displayed find a line
## $max_smilies = 30;
## in a file quick_reply.php and replace 30 with whatever you want. Setting this variable to zero
## will disable smilies row.
##
## This MOD is based on Quick Reply Mod with Quote from Smartor <smartor_xp@hotmail.com>
##
## This mod will increase the size of your topic page by approx 7kb
## and execute one additional (but simple) SQL query for every page load.
##
## The Quick-Quote Feature was an idea from Nexialys (http://www.bebeabord.org)
##
## You should change all your templates and language pack
##
## Advanced Quick Reply Mod is Copyright ?RustyDragon, 2002
##
## Quick Reply Mod with Quote is Copyright ?Smartor, 2002
## updated to support phpbb 2.0.4 by danb00
##
## (Any changes to this MOD must retain these Copyright Notices)

#
#-----[ COPY ]------------------------------------------
#
copy quick_reply.php to /
copy quick_reply.tpl to templates/subSilver

#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
$template->pparse('body');

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

#
#-----[ BEFORE, ADD ]------------------------------------
#
include($phpbb_root_path . 'quick_reply.'.$phpEx);

#
#-----[ OPEN ]------------------------------------------
#
lang/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!

#
#-----[ BEFORE, ADD ]------------------------------------
#
// Advanced Quick Reply Mod
$lang['Quick_Reply'] = 'Quick Reply';
$lang['Quick_quote'] = 'Quote the last message';
$lang['Quick_add_smilies'] = 'Smilies';
$lang['QuoteSelelected'] = 'Quote selected';
$lang['QuoteSelelectedEmpty'] = 'Select a text anywhere on a page and try again';
$lang['Quick_Reply_smilies'] = 'all';
#
#-----[ OPEN ]------------------------------------------
#
lang/lang_chinese_traditional_taiwan/lang_main.php

#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!

#
#-----[ BEFORE, ADD ]------------------------------------
#
// Advanced Quick Reply Mod
$lang['Quick_Reply'] = '快速回覆';
$lang['Quick_quote'] = '引用最後文章回覆';
$lang['Quick_add_smilies'] = '表情符號';
$lang['QuoteSelelected'] = '引用文章已選擇';
$lang['QuoteSelelectedEmpty'] = '請選擇頁面上的文字或是重試一次';
$lang['Quick_Reply_smilies'] = '所有';
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl

#
#-----[ FIND ]------------------------------------------
#
{postrow.POSTER_NAME}

#
#-----[ REPLACE WITH ]------------------------------------
#
<a href="javascript:emoticon('{postrow.POSTER_NAME}, ')">{postrow.POSTER_NAME}</a>

#
#-----[ FIND ]------------------------------------------
#
<!-- END postrow -->

#
#-----[ AFTER, ADD ]------------------------------------
#
<tr align="center">
<td class="row1" colspan="2" >
{QUICKREPLY_OUTPUT}
</td>
</tr>


#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------
#
#EoM
?>[/php]

假使你曾經裝過閃光會員名稱的話:
http://phpbb-tw.net/phpbb/viewtopic.php?t=6010
那就不要改這一段\r

[php]<?php
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl

#
#-----[ FIND ]------------------------------------------
#
{postrow.POSTER_NAME}

#
#-----[ REPLACE WITH ]------------------------------------
#
<a href="javascript:emoticon('{postrow.POSTER_NAME}, ')">{postrow.POSTER_NAME}</a>
?>[/php]
外掛問題區發問格式就在這裡,請務必一定照著格式來~!
你不照著規則來,就算是也搞不清楚你的問題在哪裡!
新手問問題不是罪惡
罪惡的是自己沒有先做好本分和功課,說話的口氣也不好,再加上態度有好像我們這群人欠你多少似的~~!!
竹貓星球發問規則:
http://phpbb-tw.net/phpbb/viewtopic.php?t=16149
發問比率最高的句子翻譯:
Please ensure both the install/ and contrib/ directories are deleted
請確認install和contrib資料夾已被刪除(奇怪,翻一下英漢字典有這麼困難嗎)

主題已鎖定

回到「非官方認證外掛」