- ชื่อ: SMF User Email System
- ผู้เขียน: vbgamer45
- นำเสนอโดย: DexMoreGroup
- ประเภท: Security and Moderation
- รองรับ: SMF 1.1.xx
- ปรับปรุงล่าสุด: 10 ธันวาคม 2552
- ต้นฉบับ: SMF User Email System
รายละเอียด mod นี้จะเปลี่ยนอีเมลของสมาชิกเป็นปุ่มส่งอีเมล ซึ่งปุ่มนี้จะแสดงในข้อมูลส่วนตัวและรายชื่อสมาชิก ก็สะดวกไปอีกแบบสำหรับบอร์ดที่มีการติดต่อสื่อสารกันเป็นการส่วนตัว
ตัวอย่าง
แก้ไขไฟล์:file $boarddir/index.php
ค้นหา -->>
'viewquery' => array('ViewQuery.php', 'ViewQuery'),
เพิ่มไว้หลัง -->>
'useremail' => array('User_Email.php', 'UserEmailMain'),
file $sourcedir/ManagePermissions.php
ค้นหา -->>
'karma_edit' => false,
เพิ่มไว้ก่อน -->>
'send_useremail' => false,
ค้นหา -->>
'who_view',
เพิ่มไว้ก่อน -->>
'send_useremail',
file $themedir/Display.template.php
ค้นหา -->>
a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';
แก้เป็น -->>
<a href="' . $scripturl . '?action=useremail;u=' . $message['member']['id'] . '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';
file $themedir/Memberlist.template.php
ค้นหา -->>
<td class="windowbg2">', $member['hide_email'] ? '' : '<a href="mailto:' . $member['email'] . '"><img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . ' ' . $member['name'] . '" /></a>', '</td>
แก้เป็น -->>
<td class="windowbg2">', $member['hide_email'] ? '' : '<a href="' . $scripturl . '?action=useremail;u=' . $member['id'] . '"><img src="' . $settings['images_url'] . '/user_email.gif" alt="' . $txt[69] . '" /></a>', '</td>
file $themedir/PersonalMessage.template.php
ค้นหา -->>
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" />' : $txt[69]), '</a>';
แก้เป็น -->>
<a href="' . $scripturl . '?action=useremail;u=' . $message['member']['id'] . '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" />' : $txt[69]), '</a>';
file $themedir/Profile.template.php
ค้นหา -->>
if ($context['member']['email_public'])
echo '
<a href="mailto:', $context['member']['email'], '">', $context['member']['email'], '</a>';]]></search>
<add><![CDATA[if ($context['member']['email_public'])
echo '
<a href="' . $scripturl . '?action=useremail;u=' . $context['member']['id'] . '"><img src="' . $settings['images_url'] . '/user_email.gif" alt="' . $txt[69] . '" /></a>';
แก้เป็น -->>
<td align="center">', ($buddy['hide_email'] ? '' : '<a href="mailto:' . $buddy['email'] . '"><img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . ' ' . $buddy['name'] . '" /></a>'), '</td>]]></search>
<add><![CDATA[<td align="center">', ($buddy['hide_email'] ? '' : '<a href="' . $scripturl . '?action=useremail;u=' . $buddy['id'] . '"><img src="' . $settings['images_url'] . '/user_email.gif" alt="' . $txt[69] . '" title="' . $txt[69] . ' ' . $buddy['name'] . '" /></a>'), '</td>
file $languagedir/Modifications.thai-utf8.php
เพิ่ม -->>
// Begin User Email System Text Strings
$txt['user_email_title'] = 'User Email System';
$txt['permissionname_send_useremail'] = 'Send User Email';
$txt['permissionhelp_send_useremail'] = 'See if the user is allowed to send email.';
$txt['cannot_send_useremail'] = 'You can not send email.';
$txt['user_email_sendtitle'] = 'Send an e-mail message';
$txt['user_email_recipient'] = 'Recipient';
$txt['user_email_youremail'] = 'Your Email';
$txt['user_email_subject'] = 'Subject';
$txt['user_email_body'] = 'Message body';
$txt['user_email_options'] = 'Options';
$txt['user_email_sendcopy'] = 'Send a copy of this e-mail to yourself';
$txt['user_email_sendemail'] = 'Send e-mail';
$txt['user_email_emailsent'] = 'Your email has been sent!';
$txt['user_email_emailreturn'] = 'Your email has been sent! Click <a href="' . $scripturl . '">here</a> to return to the board.';
$txt['user_email_errsubject'] = 'You need to enter a subject.';
$txt['user_email_errmessage'] = 'You need to enter a message.';
$txt['user_email_errnouser'] = 'No user selected.';
$txt['user_email_errnousersend'] = 'This user has hidden their email and you can not email them.';
$txt['user_email_errnoemail'] = 'Your email address is required.';
$txt['user_email_err_invalidemail'] = 'Your email address is not valid. Check your input.';
$txt['user_email_hello'] = "Hello ";
$txt['user_email_emailsentby'] = ',
The following is an email sent to you by ';
$txt['user_email_viaaccount'] = ' via your account on ';
$txt['user_email_ifmsgspam'] = ' . If this message is spam, contains abusive or other comments you find offensive please contact the webmaster of the board at the following address at ';
$txt['user_email_msgsentas'] = 'Message sent to you follows';
$txt['user_email_emailsent'] = ' - Email sent.';
$txt['user_email_guest'] = 'Guest';
// END Begin User Email System Text Strings
file $languagedir/Who.thai-utf8.php
เพิ่ม -->>
// Begin User Email System Text Strings
$txt['whoall_useremail'] = 'Writing a user an email.';
// END User Email System Strings
ดาวน์โหลด: useremail.rar
ขออภัย! ท่านไม่สามารถเข้าถึงข้อมูลส่วนนี้ได้ กรุณาอ่าน เงื่อนไขการใช้งาน DexMore.Comแตกไฟล์แล้วอัพโหลดไปไว้ที่
file User_Email.php -->> $sourcedir
file User_Email.template.php -->> $themesdir/default
file User_Email.template.gif -->> $imagesdir
การตั้งค่า: ผู้ดูแล -->> แก้ไขการอนุญาต -->> กลุ่มสมาชิก [ขั้นสูง] -->> ให้ส่งอีเมล (Send User Email)
ลิงค์หัวข้อ:
http://dexmore.com/topic/2748