รายละเอียดเกี่ยวกับ [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 (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
ค้นหา
เติมหลัง
โค้ด: เลือกทั้งหมด
//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_profile_pwd_generator.html -->
ค้นหา
โค้ด: เลือกทั้งหมด
<dt><label for="new_password">{L_NEW_PASSWORD}:</label><br /><span>{L_CHANGE_PASSWORD_EXPLAIN}</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 ucp_profile_pwd_generator.html -->
ค้นหา
โค้ด: เลือกทั้งหมด
<dt><label for="new_password">{L_PASSWORD}:</label><br /><span>{L_PASSWORD_EXPLAIN}</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 ไฟล์
[b]รายละเอียดเกี่ยวกับ[/b] [DEV] Password Generator JS ช่วยตั้ง password ด้วย jquery
[b]พัฒนาโดย[/b] : Geolim4
[b]Version[/b] : 1.1.0
[b]phpBB Version(s)[/b] : phpBB 3.0 ขึ้นไป
[b]ดาวน์โหลดได้ที่[/b] : [url]https://www.phpbb.com/community/viewtopic.php?f=70&t=2168811[/url]
[attachment=0]js.jpg[/attachment]
[b]
ไฟล์ที่ต้องแก้ไข[/b]
[quote] - 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[/quote]
เปิดไฟล์: includes/ucp/ucp_register.php
ค้นหา
[code=php]$user->add_lang(array('common', 'ucp')); [/code]
เติมหลัง
[code=php] //BEGIN MOD: Password generator JS
//Prevent language update when registering...
$user->add_lang('mods/info_ucp_pwd_js');
//END MOD: Password generator JS [/code]
เปิดไฟล์: styles/prosilver/template/overall_header.html
ค้นหา
[code=php]</head> [/code]
เติมก่อน
[code=php]<!-- 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 -->[/code]
เปิดไฟล์: styles/prosilver/template/ucp_profile_reg_details.html
ค้นหา
[code=php]<!-- INCLUDE ucp_header.html --> [/code]
เติมหลัง
[code=php]<!-- INCLUDE ucp_profile_pwd_generator.html --> [/code]
ค้นหา
[code=php] <dt><label for="new_password">{L_NEW_PASSWORD}:</label><br /><span>{L_CHANGE_PASSWORD_EXPLAIN}</span></dt> [/code]
ค้นหาในแถว
[code=php]</span></dt> [/code]
เติมหลัง
[code=php]<dd><strong><a href="javascript:void(0);" id="openpwngen" onclick="GPaction('show');" title="{L_UCP_GENERATE_PWD}">{L_UCP_GENERATE_PWD}</a></strong></dd> [/code]
เปิดไฟล์: styles/prosilver/template/ucp_register.html
ค้นหา
[code=php]<!-- INCLUDE overall_header.html --> [/code]
เติมหลัง
[code=php]<!-- INCLUDE ucp_profile_pwd_generator.html --> [/code]
ค้นหา
[code=php] <dt><label for="new_password">{L_PASSWORD}:</label><br /><span>{L_PASSWORD_EXPLAIN}</span></dt> [/code]
ค้นหาในแถว
[code=php]</span></dt> [/code]
เติมหลัง
[code=php]</dt><dd><strong><a href="javascript:void(0);" id="openpwngen" onclick="GPaction('show');" title="{L_UCP_GENERATE_PWD}">{L_UCP_GENERATE_PWD}</a></strong> [/code]
จากนั้นทำการลบ cache ไฟล์