[問題] Email topic to friend 修改成圖示點選

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

版主: 版主管理群

主題已鎖定
cat6318
星球普通子民
星球普通子民
文章: 24
註冊時間: 2006-08-15 17:20

[問題] Email topic to friend 修改成圖示點選

文章 cat6318 »

問題外掛:Email topic to friend
參考連結:
使用版本:phpBB 2.0.21
網站位置: http://www.catswhispering.com/index.php
狀況描述:
此外掛安裝完.在文章頁面.會有一排英文.點選英文進入發郵件畫面.
我想改成在文章頁面顯示圖示.點選圖示進入發郵件畫面.
請問該怎麼改....謝謝(正常安裝不用圖示時沒問題)

已參考此篇文章作修改
http://phpbb-tw.net/phpbb/viewtopic.php ... 9%E5%AF%84

但好像還是錯誤.以下是出來的效果
http://www.catswhispering.com/viewtopic.php?t=16

代碼: 選擇全部

###############################################
##	Hack Title:		Email topic to friend
##	Hack Version:	1.0.0
##	Author:			Freakin' Booty ;-P
##	Website:		http://freakingbooty.no-ip.com
##	Description:	This hack allows you to send a friend a topic that you think s/he will
##					find interesting. You can also use it to notify other members about topics
##					while they are away and only want to read specific topics (vacation, ...).
##					Starting this version, you can also write a personalised message in the
##					email.
##	Compatibility:	2.0.4 and later
##
##	Installation Level: Easy
##	Installation Time: 5 minutes
##
##	Files To Edit: 4
##		viewtopic.php
##		includes/constants.php
##		language/lang_english/lang_main.php
##		template/subSilver/viewtopic_body.tpl
##
##	Included Files: 4
##		db_update.php
##		emailtopic.php
##		language/lang_english/email/email_topic.tpl
##		templates/subSilver/email_topic_body.tpl
##
##	History:
##		1.0.1	Fixed a minor bug where the emailed link to the topic was not correct
##		1.0.0	Updated to work with older versions of phpBB.
##				Added the much wanted comments field.
##		0.2		Fixed a little bug, where the idrinkbox (another mod of me) function was
##				called from the php page.
##		0.1		Initial release
##
##	Author Notes:
##		Ah, my first release after I have been off for I don't know how long, but too long it
##		was. I hope I can keep it going again from now on.
##
##	Support:		http://www.phpbbhacks.com/forums
##	Copyright:		?004 Email topic to friend 1.0.0 - Freakin' Booty ;-P
##
###############################################
##   You downloaded this hack from phpBBHacks.com, the #1 source for phpBB related downloads.
##   Please visit http://www.phpbbhacks.com/forums for support.
###############################################
##
###############################################
##	This hack is released under the GPL License.
##	This hack can be freely used, but not distributed, without permission.
##	Intellectual Property is retained by the hack author(s) listed above.
###############################################

#
#-----[ COPY ]--------------------------------------------
#
# This file updates the database. Run it once by typing in its URL in your browser.
# Delete it _immediately_ after all database alterations are successfull.
#
db_update.php		=> db_update.php

#
#-----[ COPY ]--------------------------------------------
#
# Copy or create a language file for every language you have installed
# Copy or create a template file for every template you have installed
#
emailtopic.php									=> emailtopic.php
language/lang_english/email/email_topic.tpl		=> language/lang_english/email/email_topic.tpl
templates/subSilver/email_topic_body.tpl		=> templates/subSilver/email_topic_body.tpl

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

#
#-----[ FIND ]--------------------------------------------
#
//
// If we've got a hightlight set pass it on to pagination,
// I get annoyed when I lose my highlight after the first page.
//

#
#-----[ BEFORE, ADD ]-------------------------------------
#
//
// Add Email topic to friend
//
$s_email_topic = '';
if($userdata['session_logged_in'])
{
	$action = ($post_id) ? POST_POST_URL . "=$post_id" : POST_TOPIC_URL . "=$topic_id&start=$start";
	$s_email_topic = '<a href="' . append_sid("emailtopic.$phpEx?$action") . '">' . $lang['Email_topic'] . '</a>';
}

#
#-----[ FIND ]--------------------------------------------
#
	'S_WATCH_TOPIC' => $s_watching_topic,

#
#-----[ BEFORE, ADD ]-------------------------------------
#
	'S_EMAIL_TOPIC' => $s_email_topic,

#
#-----[ OPEN ]--------------------------------------------
#
includes/constants.php

#
#-----[ FIND ]--------------------------------------------
#
define('TOPICS_TABLE', $table_prefix.'topics');

#
#-----[ AFTER, ADD ]--------------------------------------
#
define('TOPICS_EMAIL_TABLE', $table_prefix.'topics_email');

#
#-----[ OPEN ]--------------------------------------------
#
# Edit this file for every language you have installed
#
language/lang_english/lang_main.php

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

#
#-----[ BEFORE, ADD ]-------------------------------------
#
//
// Email topic to friend
//
$lang['Email_topic'] = 'Email topic to a friend';
$lang['Email_topic_settings'] = 'Email topic information';
$lang['Friend_name'] = "Friend's name";
$lang['Friend_email'] = "Friend's email";
$lang['Message'] = 'Message';
$lang['Message_explain'] = 'The message can only contain 255 characters. HTML is not allowed.';
$lang['Email_max_exceeded'] = 'Sorry, but you have already sent %d emails in the past %d hours';
$lang['No_friend_specified'] = "You have not specified your friend's name or email address";
$lang['Friend_name_too_long'] = 'The name you specified is too long.';
$lang['Friend_email_too_long'] = 'The email address you specified is too long.';
$lang['Message_too_long'] = 'The message you entered is too long.';

#
#-----[ OPEN ]--------------------------------------------
#
# Edit this file for every template you have installed
#
templates/subSilver/viewtopic_body.tpl

#
#-----[ FIND ]--------------------------------------------
#
{S_WATCH_TOPIC}

#
#-----[ AFTER, ADD ]--------------------------------------
#
<br />{S_EMAIL_TOPIC}

#
#-----[ SAVE & CLOSE ALL FILES ]--------------------------
#
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8547
註冊時間: 2004-04-30 01:54
來自: Taiwan

文章 心靈捕手 »

建議您:
1. 不一定要做此修改; 此連結 (圖案) 應該是登入的會員, 才可以正常使用.
2. 檢視 templates/iCGstation/iCGstation.cfg 的修改是否正確?
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
主題已鎖定

回到「外掛問題討論」