[RC] jQuery Modal Login form using jQueryUI ฟอร์ม LOGIN รูปแบบใหม่ โดยใช้ JQuer

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

Moderator: mindphp

ภาพประจำตัวสมาชิก
M004
PHP VIP Members
PHP VIP Members
โพสต์: 1323
ลงทะเบียนเมื่อ: 01/01/1970 7:00 am

[RC] jQuery Modal Login form using jQueryUI ฟอร์ม LOGIN รูปแบบใหม่ โดยใช้ JQuer

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

รายละเอียดเกี่ยวกับ [RC] jQuery Modal Login form using jQueryUI ฟอร์ม LOGIN รูปแบบใหม่ โดยใช้ JQuery ช่วยทำงาน
พัฒนาโดย : randomessence
Version : 1.1.3
phpBB Version(s) : phpBB 3.0.11
ดาวน์โหลดได้ที่ : https://www.phpbb.com/community/viewtop ... &t=2160597
1.jpg
1.jpg (22.86 KiB) Viewed 37977 times
2.jpg
2.jpg (35.76 KiB) Viewed 37977 times
ขั้นตอนติดตั้ง
เปิดไฟล์ includes/functions.php
ค้นหา

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

	// The following assigns all _common_ variables that may be used at any point in a template.
เติมก่อน

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

    // Start jQueryui
    if (empty($config['jqui_theme'])) 
    {
    set_config('jqui_theme', 'smoothness', false);
    }
    // End jQueryui 
ค้นหา

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

        'SITE_DESCRIPTION'                => $config['site_desc'], 
เติมก่อน

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

        'JQUI_THEME'                    => $config['jqui_theme'], 
เปิดไฟล์ includes/acp/acp_board.php
ค้นหา

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

                        'legend2'                => 'ACP_LOAD_SETTINGS', 
เติมก่อน

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

                        'jqui_theme'            => array('lang' => 'JQUI_THEME_NAME',        'validate' => 'string',    'type' => 'text:40:255', 'explain' => true), 
เปิดไฟล์ language/en/acp/board.php
ค้นหา

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

	'JAB_USERNAME_EXPLAIN'		=> 'Specify a registered username or a valid JID. The username will not be checked for validity. If you only specify a username, then your JID will be the username and the server you specified above. Else, specify a valid JID, for example [email protected].',
));
เติมก่อน

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

	// START jQuery UI Theme
$lang = array_merge($lang, array(
	'JQUI_THEME_NAME'				=> 'jQueryUI Theme',
	'JQUI_THEME_NAME_EXPLAIN'		=> 'To change the theme to one of the included themes you need to specify the theme folder name here. To specify a custom theme you must rename css files to jquery-ui.css then upload your custom theme folder to the js/jqueryui/css/ folder. Then specify the name of that folder here.',
));
	// END jQuery UI Theme
เปิดไฟล์ styles/prosilver/template/overall_footer.html
ค้นหา เติมก่อน

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

<!-- INCLUDE jquery-ui/jquery-ui.html -->
เปิดไฟล์ styles/prosilver/template/overall_header.html
ค้นหา เติมก่อน

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

<script type="text/javascript">
// <![CDATA[
!window.jQuery && document.write('<script type="text\/javascript" src="{ROOT_PATH}js/jquery/jquery.js"><\/script>');
// ]]>
</script>
ค้นหา เติมก่อน

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

<!-- INCLUDE jquery-ui/jquery-ui-header.html -->
ค้นหา

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

<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}">
เติมหลัง

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

<!-- INCLUDE jquery-ui/login-form.html -->
ค้นหา

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

<li class="icon-logout"><a href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}" accesskey="x">{L_LOGIN_LOGOUT}</a></li>
เติมแทน

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

<!-- IF S_USER_LOGGED_IN --><li class="uibutton"><a href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}" accesskey="x">{L_LOGIN_LOGOUT}</a></li><!-- ENDIF -->
<!-- IF not S_USER_LOGGED_IN --><li class="uibutton"><button id="opener" class="">Sign In</button></li><!-- ENDIF -->
  • Similar Topics
    ตอบกลับ
    แสดง
    โพสต์ล่าสุด

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

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