[RC2] Password Generator JS ช่วยตั้ง password ด้วย jquery

ตอบกระทู้

รูปแสดงอารมณ์
:icon_plusone: :like: :plusone: :gfb: :-D :) :( :-o 8O :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :angry: :baa: :biggrin:
รูปแสดงอารมณ์อื่นๆ

BBCode เปิด
[img] เปิด
[url] เปิด
[Smile icon] เปิด

กระทู้แนะนำ
   

มุมมองที่ขยายได้ กระทู้แนะนำ: [RC2] Password Generator JS ช่วยตั้ง password ด้วย jquery

[RC2] Password Generator JS ช่วยตั้ง password ด้วย jquery

โดย M009 » 13/07/2013 10:50 am

รายละเอียดเกี่ยวกับ [DEV] Password Generator JS ช่วยตั้ง password ด้วย jquery
พัฒนาโดย : Geolim4
Version : 1.1.0
phpBB Version(s) : phpBB 3.0 ขึ้นไป
ดาวน์โหลดได้ที่ : https://www.phpbb.com/community/viewtop ... &t=2168811
js.jpg
js.jpg (39.75 KiB) Viewed 1739 times

ไฟล์ที่ต้องแก้ไข
- includes/ucp/ucp_register.php,
- styles/prosilver/template/overall_header.html,
- styles/prosilver/template/ucp_profile_reg_details.html,
- styles/prosilver/template/ucp_register.html
เปิดไฟล์: includes/ucp/ucp_register.php
ค้นหา

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

$user->add_lang(array('common', 'ucp')); 
เติมหลัง

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

                //BEGIN MOD: Password generator JS
                //Prevent language update when registering...
                $user->add_lang('mods/info_ucp_pwd_js');
                //END MOD: Password generator JS   
เปิดไฟล์: styles/prosilver/template/overall_header.html
ค้นหา เติมก่อน

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

<!-- IF S_IN_PWD_GEN -->
<link href="{T_THEME_PATH}/jqueryui.css" rel="stylesheet" type="text/css" />
<link href="{T_THEME_PATH}/ucp_pwd_js.css" rel="stylesheet" type="text/css" media="screen, projection" />
<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/jquery.js"></script>
<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/jqueryui.js"></script>
<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/jrumble.js"></script>
<!-- ENDIF -->
เปิดไฟล์: styles/prosilver/template/ucp_profile_reg_details.html
ค้นหา

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

<!-- INCLUDE ucp_header.html --> 
เติมหลัง

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

<!-- INCLUDE ucp_profile_pwd_generator.html -->     
ค้นหา

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

            <dt><label for="new_password">{L_NEW_PASSWORD}:</label><br /><span>{L_CHANGE_PASSWORD_EXPLAIN}</span></dt> 
ค้นหาในแถว

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

</span></dt> 
เติมหลัง

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

<dd><strong><a href="javascript:void(0);" id="openpwngen" onclick="GPaction('show');" title="{L_UCP_GENERATE_PWD}">{L_UCP_GENERATE_PWD}</a></strong></dd> 
เปิดไฟล์: styles/prosilver/template/ucp_register.html
ค้นหา

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

<!-- INCLUDE overall_header.html --> 
เติมหลัง

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

<!-- INCLUDE ucp_profile_pwd_generator.html -->     
ค้นหา

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

        <dt><label for="new_password">{L_PASSWORD}:</label><br /><span>{L_PASSWORD_EXPLAIN}</span></dt> 
ค้นหาในแถว

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

</span></dt> 
เติมหลัง

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

</dt><dd><strong><a href="javascript:void(0);" id="openpwngen" onclick="GPaction('show');" title="{L_UCP_GENERATE_PWD}">{L_UCP_GENERATE_PWD}</a></strong> 
จากนั้นทำการลบ cache ไฟล์

ข้างบน