[MOD] I forgot - Send Username and Password

แนะนำ Mod ต่างๆ ของ PHPBB3 แนะนำความสามารถ ของ mod การติดตั้ง การเข้ากันได้กับเวอร์ชั่น

Moderator: mindphp

buay
PHP Super Member
PHP Super Member
โพสต์: 250
ลงทะเบียนเมื่อ: 02/06/2014 9:55 am

[MOD] I forgot - Send Username and Password

โพสต์ที่ยังไม่ได้อ่าน โดย buay »

28-7-2557 13-04-53.png
28-7-2557 13-04-53.png (16.25 KiB) Viewed 4610 times
รายละเอียด : เปลี่ยนในหน้าลืม password โดยของเดิมจะให้กรอกชื่อผู้ใช้ และที่อยู่อีเมล์ ซึ่ง MOD นี้จะปรับให้กรอกที่อยู่อีเมล์ แล้วระบบจะทำการส่งทั้ง username และ password
พัฒนาโดย : Boardtalk.net
Version : 1.0.2
ดาวน์โหลดได้ที่ : https://www.mindphp.com/download/files/124-1 ... 2-zip.html

ไฟล์ที่ใช้ในการติดตั้ง
>>includes/ucp/ucp_remind.php
>>language/en/common.php
>>language/en/help_faq.php
>>language/en/ucp.php
>>language/en/email/user_activate_passwd.txt
>>styles/prosilver/template/ucp_remind.html

วิธีติดตั้ง
เปิดไฟล์ includes/ucp/ucp_remind.php

ค้นหา

โค้ด: เลือกทั้งหมด

                WHERE user_email_hash = '" . $db->sql_escape(phpbb_email_hash($email)) . "'
                    AND username_clean = '" . $db->sql_escape(utf8_clean_string($username)) . "'";
เติมทับ

โค้ด: เลือกทั้งหมด

                WHERE user_email_hash = '" . $db->sql_escape(phpbb_email_hash($email)) . "'" .
                    ((!empty($username)) ? "AND username_clean = '" . $db->sql_escape(utf8_clean_string($username)) . "'" : '');
เปิดไฟล์ language/en/common.php

ค้นหา

โค้ด: เลือกทั้งหมด

    'EMAIL_ADDRESS'                        => 'E-mail address',
เติมหลัง

โค้ด: เลือกทั้งหมด

    'EMAIL_IMPORTANT'                    => 'Important',
ค้นหา

โค้ด: เลือกทั้งหมด

    'FORGOT_PASS'            => 'I forgot my password',
เติมทับ

โค้ด: เลือกทั้งหมด

    'FORGOT_PASS'            => 'I forgot my password and/or username',
เปิดไฟล์ language/en/help_faq.php

ค้นหา

โค้ด: เลือกทั้งหมด

        0 => 'I’ve lost my password!',
        1 => 'Don’t panic! While your password cannot be retrieved, it can easily be reset. 
Visit the login page and click <em>I’ve forgotten my password</em>. 
Follow the instructions and you should be able to log in again shortly.'
เติมทับ

โค้ด: เลือกทั้งหมด

        0 => 'I’ve lost my password and/or username!',
        1 => 'Don’t panic! Your username can be retrieved and sent to you. 
While your password cannot be retrieved, it can easily be reset. 
Visit the login page and click <em>I’ve forgotten my password and/or username</em>. 
Please use the email address associated with your account. 
Follow the instructions and you should be able to log in again shortly.'
เปิดไฟล์ language/en/ucp.php

ค้นหา

โค้ด: เลือกทั้งหมด

    'EMAIL_BANNED_EMAIL'        => 'The e-mail address you entered is not allowed to be used.',
เติมหลัง

โค้ด: เลือกทั้งหมด

    'EMAIL_NOTE'                => 'When you receive the email you will need to activate the new password. 
To do this make sure to click the link provided.',
ค้นหา

โค้ด: เลือกทั้งหมด

    'PASSWORD_UPDATED'            => 'A new password was sent to your registered e-mail address.',
เติมทับ

โค้ด: เลือกทั้งหมด

    'PASSWORD_UPDATED'            => 'Your username and new password was sent to your registered e-mail address.',
ค้นหา

โค้ด: เลือกทั้งหมด

    'SEND_PASSWORD'                => 'Send password',
เติมหลัง

โค้ด: เลือกทั้งหมด

    'SEND_PASSWORD_USERNAME'    => 'Send password and username',
เปิดไฟล์ language/en/email/user_activate_passwd.txt

ค้นหา

โค้ด: เลือกทั้งหมด

Password: {PASSWORD}
เติมหลัง

โค้ด: เลือกทั้งหมด

Username: {USERNAME}
เปิดไฟล์ styles/prosilver/template/ucp_remind.html

ค้นหา

โค้ด: เลือกทั้งหมด

        <h2>{L_SEND_PASSWORD}</h2>

        <fieldset>
        <dl>
            <dt><label for="username">{L_USERNAME}:</label></dt>
            <dd><input class="inputbox narrow" type="text" name="username" id="username" size="25" /></dd>
        </dl>
เติมทับ

โค้ด: เลือกทั้งหมด

        <h2>{L_SEND_PASSWORD_USERNAME}</h2>
        
        <fieldset>    
ค้นหา

โค้ด: เลือกทั้งหมด

            <dt><label for="email">{L_EMAIL_ADDRESS}:</label><br /><span>{L_EMAIL_REMIND}</span>
ค้นหาในบรรทัด

โค้ด: เลือกทั้งหมด

{L_EMAIL_REMIND}</span>
เติมหลัง

โค้ด: เลือกทั้งหมด

<br /><label>{L_EMAIL_IMPORTANT}:</label><br /><span>{L_EMAIL_NOTE}</span>

ผู้ใช้งานขณะนี้

สมาชิกกำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และบุคลทั่วไป 34