10 กุมภาพันธ์ 2555, 05:06:38
ยินดีต้อนรับผู้เยี่ยมชม
  • noavata
  • ยินดีต้อนรับคุณ, ผู้เยี่ยมชม กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน
    เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น
Page Rank

ทำเว็บไซต์ | แต่งบอร์ด | ออกแบบ | SMF | Joomla | Drupal | WordPress | JQuery | CMS | ECommerce | Tel. 08-08577477

ส่งหัวข้อนี้พิมพ์ หน้า: 1 
icon message ผู้เขียน หัวข้อ: SMF User Email System เปลี่ยนอีเมลของสมาชิกเป็นปุ่มส่งอีเมล  (อ่าน 725 ครั้ง)
0 สมาชิก และ 1 ผู้เยี่ยมชม กำลังดูหัวข้อนี้
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
  • ชื่อ: SMF User Email System
  • ผู้เขียน: vbgamer45
  • นำเสนอโดย: DexMoreGroup
  • ประเภท: Security and Moderation
  • รองรับ: SMF 1.1.xx
  • ปรับปรุงล่าสุด: 10 ธันวาคม 2552
  • ต้นฉบับ: SMF User Email System

รายละเอียด
      mod นี้จะเปลี่ยนอีเมลของสมาชิกเป็นปุ่มส่งอีเมล ซึ่งปุ่มนี้จะแสดงในข้อมูลส่วนตัวและรายชื่อสมาชิก ก็สะดวกไปอีกแบบสำหรับบอร์ดที่มีการติดต่อสื่อสารกันเป็นการส่วนตัว

ตัวอย่าง


แก้ไขไฟล์:

file $boarddir/index.php

ค้นหา -->>
โค๊ด: [Select]
'viewquery' => array('ViewQuery.php', 'ViewQuery'),

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
'useremail' => array('User_Email.php', 'UserEmailMain'),

file $sourcedir/ManagePermissions.php

ค้นหา -->>
โค๊ด: [Select]
'karma_edit' => false,

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
'send_useremail' => false,

ค้นหา -->>
โค๊ด: [Select]
'who_view',

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
'send_useremail',

file $themedir/Display.template.php

ค้นหา -->>
โค๊ด: [Select]
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>';

แก้เป็น -->>
โค๊ด: [Select]
<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

ค้นหา -->>
โค๊ด: [Select]
<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>

แก้เป็น -->>
โค๊ด: [Select]
<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

ค้นหา -->>
โค๊ด: [Select]
<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>';

แก้เป็น -->>
โค๊ด: [Select]
<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

ค้นหา -->>
โค๊ด: [Select]
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>';

แก้เป็น -->>
โค๊ด: [Select]
<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

เพิ่ม -->>
โค๊ด: [Select]
// 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

เพิ่ม -->>
โค๊ด: [Select]
// 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
Windows XP    Firefox 3.6.8   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
ส่งหัวข้อนี้พิมพ์ หน้า: 1 
กระโดดไป:  

Creative Commons License

SMF Thai Translation Powered by SMF © 2006–2012, Simple Machines LLC

WordPress Google เข้าเยี่ยมชมหน้านี้ล่าสุดเมื่อ : 2 ชั่วโมงที่ผ่านมา

jQuery Plugin Copyright © 2551-2555 Themes Design & Hosting by DexMoreGroup

Sitemap | Thai Simple Machines Forum support SMF Thai

Web Begining | SMF Modifications | SMF Thai Translation Web Begining

Drupal | WordPress | CMS Joomla | jQuery Plugin | Web Graphics CMS Joomla