Discuz Thai

 ลืมรหัสผ่าน
 สมัครสมาชิก

ข้อตกลงการใช้งานกระดานข่าวดิสคัสไทย DiscuzThai Agreement (English Version) ประกาศดิสคัสไทย - ทำเนียบดิสคัสภาษาไทย

Discuz! X3.5 Thai R20231001 Rev.8 (NEW) [วิดีโอช่วยสอน] อัปเกรด Discuz! X3.4 เป็น X3.5 Discord ของ Discuz! Thai Community อย่างเป็นทางการ

Discuz! X3.4 Thai R20220811 (REV.75) สิ้นสุดการสนับสนุน Discuz! X3.4 ภาษาไทยตั้งแต่วันนี้เป็นต้นไป (ขอแนะนำให้อัปเกรดเป็น X3.5 แทน)

ค้นหา
แท็กยอดนิยม: ดิสคัสภาษาไทย Discuz Thai
เจ้าของ: S¡|€n7

[X2] <<TUT>> Facebook (Log-in, Social Plugins)

[คัดลอกลิงก์]
S¡|€n7 โพสต์ 2011-11-27 18:21:41 |โหมดอ่าน
แก้ไขครั้งสุดท้ายโดย S¡|€n7 เมื่อ 2011-11-27 18:29

การติดตั้งปลักอินสำหรับลอกอินด้วย facebook (http://forum.discuzthai.com/foru ... id=28355&page=1)จากที่เคยติดไว้ว่าจะทำวิธีติดตั้งให้ดู เนื่องจากเพิ่งมีเวลา หวังว่าไม่ช้าไปนะครับ

กรุณาอ่าน และทำความเข้าใจก่อนนะครับ

     ท่านต้องมีความรู้ในการแก้ไขโค๊ด php และ html ด้วยนะครับ

คำเตือน: ต้องแก้ไขอย่างระมัดระวัง และหากเกิดข้อผิดพลาด ผมไม่รับผิดชอบนะครับ ตกลงกันไว้ก่อน

สำหรับท่านที่ยังไม่ได้ แก้ไข โม ตัวเว็บมาก่อนเลย (X2) ให้แตกไฟล์ แล้วนำไปทับของเก่าได้เลย แต่หลาย ๆ ท่านที่ได้ แก้ไข โม สคริปมาก่อนแล้ว ผมแนะนำให้ไล่ดูความแตกต่างทีละบรรทัดนะครับ ตรงไหนที่สคริปตัวนี้แตกต่างไปจากของท่าน ให้ทำการเพิ่มเข้าไปในสคริปของท่าน ย้ำนะครับว่าเพิ่มสคริปเข้าไปในสคริปของท่านเท่านั้น

เปิดไฟล์ channel.html
  1. <script src="https://connect.facebook.net/zh_TW/all.js"></script>
คัดลอกไปที่คลิปบอร์ด
แก้ไขภาษาสำหรับ facebook ตรง zh_TW เป็นภาษาที่ต้องการ

th_TH < ภาษาไทย
en_US < อังกฤษ(อเมริกัน)

---------------------------------------------------------
สำหรับท่านที่แก้ไข โม สคริปมาแล้ว สังเกตุดี ๆ จะเห็นมีการเพิ่มเติมตัวแปร plugin เข้าไปในทุก ๆ array มาค่อย ๆ ทำไปพร้อม ๆ กันครับ
เปิดไฟล์ forum.php หา
  1. $modcachelist = array(
  2.         'index'                => array('announcements', 'onlinelist', 'forumlinks',
  3.                         'heats', 'historyposts', 'onlinerecord', 'userstats', 'diytemplatenameforum'),
  4.         'forumdisplay'        => array('smilies', 'announcements_forum', 'globalstick', 'forums',
  5.                         'onlinelist', 'forumstick', 'threadtable_info', 'threadtableids', 'stamps', 'diytemplatenameforum'),
  6.         'viewthread'        => array('smilies', 'smileytypes', 'forums', 'usergroups',
  7.                         'stamps', 'bbcodes', 'smilies',        'custominfo', 'groupicon', 'stamps',
  8.                         'threadtableids', 'threadtable_info', 'posttable_info', 'diytemplatenameforum'),
  9.         'redirect'        => array('threadtableids', 'threadtable_info', 'posttable_info'),
  10.         'post'                => array('bbcodes_display', 'bbcodes', 'smileycodes', 'smilies', 'smileytypes',
  11.                         'domainwhitelist'),
  12.         'space'                => array('fields_required', 'fields_optional', 'custominfo'),
  13.         'group'                => array('grouptype', 'diytemplatenamegroup'),
  14. );
คัดลอกไปที่คลิปบอร์ด
ลองเปรียบเทียบกับสคริปใหม่
  1. $modcachelist = array(
  2.         'index'                => array('announcements', 'onlinelist', 'forumlinks',
  3.                         'heats', 'historyposts', 'onlinerecord', 'userstats', 'diytemplatenameforum', 'plugin'),
  4.         'forumdisplay'        => array('smilies', 'announcements_forum', 'globalstick', 'forums',
  5.                         'onlinelist', 'forumstick', 'threadtable_info', 'threadtableids', 'stamps', 'diytemplatenameforum', 'plugin'),
  6.         'viewthread'        => array('smilies', 'smileytypes', 'forums', 'usergroups',
  7.                         'stamps', 'bbcodes', 'smilies',        'custominfo', 'groupicon', 'stamps',
  8.                         'threadtableids', 'threadtable_info', 'posttable_info', 'diytemplatenameforum', 'plugin'),
  9.         'redirect'        => array('threadtableids', 'threadtable_info', 'posttable_info', 'plugin'),
  10.         'post'                => array('bbcodes_display', 'bbcodes', 'smileycodes', 'smilies', 'smileytypes',
  11.                         'domainwhitelist', 'plugin'),
  12.         'space'                => array('fields_required', 'fields_optional', 'custominfo', 'plugin'),
  13.         'group'                => array('grouptype', 'diytemplatenamegroup', 'plugin'),
  14. );
คัดลอกไปที่คลิปบอร์ด
เปิดไฟล์ group.php หา
  1. $cachelist = array('grouptype', 'groupindex', 'diytemplatenamegroup');
คัดลอกไปที่คลิปบอร์ด
แทนที่ด้วย
  1. $cachelist = array('grouptype', 'groupindex', 'diytemplatenamegroup', 'plugin');
คัดลอกไปที่คลิปบอร์ด
เปิดไฟล์ home.php หา
  1. $cachelist = array('magic','userapp','usergroups', 'diytemplatenamehome');
คัดลอกไปที่คลิปบอร์ด
แทนที่ด้วย
  1. $cachelist = array('magic','userapp','usergroups', 'diytemplatenamehome', 'plugin');
คัดลอกไปที่คลิปบอร์ด
เปิดไฟล์ misc.php หา
  1. $modcachelist = array(
  2.         'ranklist' => array('forums', 'diytemplatename'),
  3. );

คัดลอกไปที่คลิปบอร์ด
แทนที่ด้วย
  1. $modcachelist = array(
  2.         'ranklist' => array('forums', 'diytemplatename', 'plugin'),
  3. );
คัดลอกไปที่คลิปบอร์ด
เปิดไฟล์ portal.php หา
  1. $cachelist = array('userapp', 'portalcategory', 'diytemplatenameportal');
คัดลอกไปที่คลิปบอร์ด
แทนที่ด้วย
  1. $cachelist = array('userapp', 'portalcategory', 'diytemplatenameportal', 'plugin');
คัดลอกไปที่คลิปบอร์ด
ห้ามแก้ไขทุกไฟล์ ในโฟลเดอร์ fblib นะครับ
 เจ้าของ| S¡|€n7 โพสต์ 2011-11-27 18:22:58
แก้ไขครั้งสุดท้ายโดย S¡|€n7 เมื่อ 2011-11-27 18:54

โมสคริป เทมเพลต ในโฟลเดอร์ template

โฟลเดอร์ template/default/common
เปิดไฟล์ header_common.htm หา
  1. <html xmlns="http://www.w3.org/1999/xhtml">
คัดลอกไปที่คลิปบอร์ด
แทนที่ด้วย
  1. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="https://www.facebook.com/2008/fbml" xmlns:discuz="http://www.discuz.net/ns#">
คัดลอกไปที่คลิปบอร์ด
และค้นหา
  1. <meta http-equiv="MSThemeCompatible" content="Yes" />
คัดลอกไปที่คลิปบอร์ด
แทนที่ด้วย
  1.         <meta http-equiv="MSThemeCompatible" content="Yes" />
  2.         <!--{if $_G[tid]}-->
  3.         <meta property="og:type" content="discuz:thread"/>
  4.         <meta property="og:site_name" content="$_G['setting']['bbname']"/>
  5.         <!--{if in_array('forum_viewthread', $_G['setting']['rewritestatus'])}-->
  6.         <meta property="og:url" content="$_G[siteurl]thread-{$_G[tid]}-1-1.html"/>
  7.         <!--{else}-->
  8.         <meta property="og:url" content="$_G[siteurl]forum.php?mod=viewthread&tid=$_G[tid]"/>
  9.         <!--{/if}-->
  10.         <meta property="og:title" content="$_G[forum_thread][subject] - $_G['setting']['bbname']"/>
  11.         <meta property="og:description" content="{if !empty($metadescription)}{echo htmlspecialchars($metadescription)}{/if}"/>
  12.         <!--{if $iattrs}-->
  13.         <meta property="og:image" content="$iattrs"/>
  14.         <!--{/if}-->
  15.         <meta property="fb:app_id" content="$_G['cache']['plugin']['facebook_connect']['appid']"/>
  16.         <!--{/if}-->
คัดลอกไปที่คลิปบอร์ด
เปิดไฟล์ footer.htm หา
  1. <!--{eval output();}-->
  2. </body>
  3. </html>
คัดลอกไปที่คลิปบอร์ด
เปลี่ยนเป็น
  1. <div id="fb-root"></div>
  2. <script type="text/javascript">
  3. window.fbAsyncInit = function() {
  4.         FB.init({appId:'$_G['cache']['plugin']['facebook_connect']['appid']', status:true, cookie:true, xfbml:true, channelUrl:'{$_G[siteurl]}channel.html'});
  5. <!--{if $_G[tid]}-->
  6.         <!--{if $_G['like'] == 'no'}-->
  7.         FB.Event.subscribe('edge.create', function() {
  8.                 location.replace('forum.php?mod=viewthread&tid={$_G[tid]}&page={$_G}&todo=like');
  9.         });
  10.         <!--{if $_G['fbc'] && $_G['cache']['plugin']['facebook_ltv']['fctv']}-->
  11.         FB.Event.subscribe('comment.create', function() {
  12.                 location.replace('forum.php?mod=viewthread&tid={$_G[tid]}&page={$_G}&todo=fcomm');
  13.         });
  14.         <!--{/if}-->
  15.         <!--{/if}-->
  16.         FB.Event.subscribe('edge.remove', function() {
  17.                 fbshare();
  18.         });
  19.         <!--{if $_G['like'] && $_G['fbc'] && $_G['cache']['plugin']['facebook_ltv']['fctv']}-->
  20.         FB.Event.subscribe('comment.remove', function() {
  21.                 location.replace('forum.php?mod=viewthread&tid={$_G[tid]}&page={$_G}&todo=unfcomm');
  22.         });
  23.         <!--{/if}-->
  24. <!--{/if}-->
  25. };
  26. (function() {
  27.         var e = document.createElement('script');
  28.         e.src = document.location.protocol + '//connect.facebook.net/zh_TW/all.js'; // เปลี่ยนเป็นภาษาที่ต้องการ th_TH = ไทย, en_US = อังกฤษ (อเมริกัน)
  29.         e.async = true;
  30.         document.getElementById('fb-root').appendChild(e);
  31. }());
  32. <!--{if $_G[tid]}-->
  33. function fbshare() {
  34.         FB.ui({
  35.                 method: 'feed',
  36.                 name: '$_G[forum_thread][subject]',
  37.                 <!--{if in_array('forum_viewthread', $_G['setting']['rewritestatus'])}-->
  38.                 link: '$_G[siteurl]thread-{$_G[tid]}-1-1.html',
  39.                 <!--{else}-->
  40.                 link: '$_G[siteurl]forum.php?mod=viewthread&tid=$_G[tid]',
  41.                 <!--{/if}-->
  42.                 <!--{if $iattrs}-->
  43.                 picture: '$iattrs',
  44.                 <!--{/if}-->
  45.                 caption: '$_G['setting']['bbname']',
  46.                 description: '{if !empty($metadescription)}{echo htmlspecialchars($metadescription)}{/if}',
  47.                 message: ''
  48.         }, function(response) {
  49.                 <!--{if $_G['like']}-->
  50.                 if (response && response.post_id) {
  51.                         location.replace('forum.php?mod=viewthread&tid={$_G[tid]}&page={$_G}&todo=unlike');
  52.                 } else {
  53.                         location.replace('forum.php?mod=viewthread&tid={$_G[tid]}&page={$_G}&todo=unlike');
  54.                 }
  55.                 <!--{/if}-->
  56.         });
  57. }
  58. function fbsend() {
  59.         FB.ui({
  60.                 method: 'send',
  61.                 app_id: '$_G['cache']['plugin']['facebook_connect']['appid']',
  62.                 name: '$_G[forum_thread][subject]',
  63.                 <!--{if in_array('forum_viewthread', $_G['setting']['rewritestatus'])}-->
  64.                 link: '$_G[siteurl]thread-{$_G[tid]}-1-1.html',
  65.                 <!--{else}-->
  66.                 link: '$_G[siteurl]forum.php?mod=viewthread&tid=$_G[tid]',
  67.                 <!--{/if}-->
  68.                 <!--{if $iattrs}-->
  69.                 picture: '$iattrs',
  70.                 <!--{/if}-->
  71.                 description: '{if !empty($metadescription)}{echo htmlspecialchars($metadescription)}{/if}'
  72.         });
  73. }
  74. function fbinvite() {
  75.         FB.ui({
  76.                 method: 'apprequests',
  77.                 message: '{lang facebook_invite_friend_addmsg}',
  78.                 filters: "['app_non_users']",
  79.                 title: '{lang facebook_invite_friend_add} {$_G['setting']['bbname']}'
  80.         });
  81. }
  82. <!--{/if}-->
  83. function fblogin() {
  84.         FB.login(function(response) {
  85.                 if (response.session) {
  86.                         if (response.perms) {
  87.                                 location.replace('fblogin.php?act=logging&rf='+urlencode(location.href));
  88.                         } else {
  89.                                 location.replace('index.php');
  90.                         }
  91.                 } else {
  92.                         location.replace('index.php');
  93.                 }
  94.         }, {perms:'email,user_likes,publish_stream'});
  95. }
  96. function urlencode(str) {
  97.         var output = '', x = 0, regex = /(^[a-zA-Z0-9_.]*)/;
  98.         str = str.toString();
  99.         while (x < str.length) {
  100.                 var match = regex.exec(str.substr(x));
  101.                 if (match != null && match.length > 1 && match[1] != '') {
  102.                         output += match[1];
  103.                         x += match[1].length;
  104.                 } else {
  105.                         if (str[x] == ' ') {
  106.                                 output += '+';
  107.                         } else {
  108.                                 var charCode = str.charCodeAt(x), hexVal = charCode.toString(16);
  109.                                 output += '%' + ( hexVal.length < 2 ? '0' : '' ) + hexVal.toUpperCase();
  110.                         }
  111.                         x++;
  112.                 }
  113.         }
  114.         return output;
  115. }
  116. </script>
  117. <!--{eval output();}-->
  118. </body>
  119. </html>
คัดลอกไปที่คลิปบอร์ด
 เจ้าของ| S¡|€n7 โพสต์ 2011-11-27 19:10:23
แก้ไขครั้งสุดท้ายโดย S¡|€n7 เมื่อ 2011-11-27 19:47

โมสคริป เทมเพลต ในโฟลเดอร์ source
โฟลเดอร์ source/function

โฟลเดอร์ source/language
เปิดไฟล์ lang_message.php เพิ่ม
  1.   'post_like_nopermission' => '對不起,你沒有權限使用 [like] 代碼,請返回修改。',
  2.   'post_like_dontinreply' => '對不起,回帖不可使用 [like] 代碼,請返回修改。',
  3.   'facebook_not_yet_like' => '您還未點讚,請返回。',
  4.   'facebook_not_yet_comm' => '您還未於本帖的Facebook留言版上留言 (請使用FB帳戶進行留言),請返回。',
คัดลอกไปที่คลิปบอร์ด
ก่อน
  1. ?>
คัดลอกไปที่คลิปบอร์ด
เปิดไฟล์ lang_space.php เพิ่ม
  1.         'facebook_profile' => '看FB檔案',
  2.         'add_facebook_friend' => '加FB好友',
คัดลอกไปที่คลิปบอร์ด
ก่อน
  1. ?>
คัดลอกไปที่คลิปบอร์ด
โฟลเดอร์ source/language/forum
เปิดไฟล์ lang_template.php เพิ่ม
  1.   'post_hide_reply_like_hidden' => ',如果你要查看本帖隱藏內容請 <a href="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]" onclick="showWindow(\'reply\', this.href)">回覆</a> 或 <b>點讚</b>:',
  2.   'post_hide_like_hidden' => ',如果你要查看本帖隱藏內容請<b>點讚</b>:',
  3.   'first_login' => '請先登入會員:',
  4.   'facebook_profile' => '查看FB檔案',
  5.   'add_facebook_friend' => '加入FB好友',
  6.   'facebook_send' => '傳送',
  7.   'facebook_invite_friend_add' => '邀請朋友加入',
  8.   'facebook_invite_friend_addmsg' => '我在 [ {$_G[setting][bbname]} ] 加入會員了!誠摯邀請您一同加入!',
  9.   'facebook_already_like' => '[ 若您已點過讚,請點此重新檢查 ]',
  10.   'facebook_already_comm' => '[ 已在FB版留言?請點此重新檢查 ]',
  11.   'facebook_already_like_t' => '因為您目前並無登入本論壇,所以必須手動檢查您是否已點過讚。',
  12.   'facebook_already_comm_t' => '因為您目前並無登入本論壇,所以必須手動檢查您是否已在本帖的Facebook留言版上留言 (請使用FB帳戶進行留言)。',
คัดลอกไปที่คลิปบอร์ด
ก่อน
  1. ?>
คัดลอกไปที่คลิปบอร์ด
โฟลเดอร์ source/language/home
เปิดไฟล์ lang_template.php เพิ่ม
  1.   'facebook_profile' => '看FB檔案',
  2.   'add_facebook_friend' => '加FB好友',
คัดลอกไปที่คลิปบอร์ด
ก่อน
  1. ?>
คัดลอกไปที่คลิปบอร์ด
โฟลเดอร์ source/module/forum
เปิดไฟล์ forum_viewthread.php หา
  1.         $query = DB::query("SELECT m.uid, m.username, m.groupid, m.adminid, m.regdate, m.credits, m.email, m.status AS memberstatus,
  2.                         ms.lastactivity, ms.lastactivity, ms.invisible AS authorinvisible,
  3.                         mc.*, mp.gender, mp.site, mp.icq, mp.qq, mp.yahoo, mp.msn, mp.taobao, mp.alipay,
  4.                         mf.medals, mf.sightml AS signature, mf.customstatus, mh.privacy $fieldsadd
  5.                         FROM ".DB::table('common_member')." m
  6.                         LEFT JOIN ".DB::table('common_member_field_forum')." mf USING(uid)
  7.                         LEFT JOIN ".DB::table('common_member_status')." ms USING(uid)
  8.                         LEFT JOIN ".DB::table('common_member_count')." mc USING(uid)
  9.                         LEFT JOIN ".DB::table('common_member_profile')." mp USING(uid)
  10.                         LEFT JOIN ".DB::table('common_member_field_home')." mh USING(uid)
  11.                         $verifyadd
  12.                         WHERE m.uid IN (".dimplode(array_keys($postusers)).")");
คัดลอกไปที่คลิปบอร์ด
แทนที่ด้วย
  1.         $query = DB::query("SELECT m.uid, m.username, m.groupid, m.adminid, m.regdate, m.credits, m.email, m.status AS memberstatus,
  2.                         ms.lastactivity, ms.lastactivity, ms.invisible AS authorinvisible,
  3.                         mc.*, mp.gender, mp.site, mp.icq, mp.qq, mp.yahoo, mp.msn, mp.taobao, mp.alipay,
  4.                         mf.medals, mf.sightml AS signature, mf.customstatus, mh.privacy, fc.fbid, fc.showfblink $fieldsadd
  5.                         FROM ".DB::table('common_member')." m
  6.                         LEFT JOIN ".DB::table('common_member_field_forum')." mf USING(uid)
  7.                         LEFT JOIN ".DB::table('common_member_status')." ms USING(uid)
  8.                         LEFT JOIN ".DB::table('common_member_count')." mc USING(uid)
  9.                         LEFT JOIN ".DB::table('common_member_profile')." mp USING(uid)
  10.                         LEFT JOIN ".DB::table('common_member_field_home')." mh USING(uid)
  11.                         LEFT JOIN ".DB::table('facebook_connect')." fc USING(uid)
  12.                         $verifyadd
  13.                         WHERE m.uid IN (".dimplode(array_keys($postusers)).")");
คัดลอกไปที่คลิปบอร์ด
และค้นหา
  1.         $_G['medal_list'] = array();
  2.         foreach($postlist as $pid => $post) {
  3.                 $post = array_merge($postlist[$pid], $postusers[$post['authorid']]);
  4.                 $postlist[$pid] = viewthread_procpost($post, $_G['member']['lastvisit'], $ordertype);
  5.         }
คัดลอกไปที่คลิปบอร์ด
แทนที่ด้วย
  1.         $_G['medal_list'] = array();
  2.         require_once libfile('function/friend');
  3.         foreach($postlist as $pid => $post) {
  4.                 $post = array_merge($postlist[$pid], $postusers[$post['authorid']]);
  5.                 $postlist[$pid] = viewthread_procpost($post, $_G['member']['lastvisit'], $ordertype);
  6.                 $isfriend[$post['authorid']] = friend_check($post['authorid']);
  7.         }และค้นหา
  8. [code]if(empty($postlist)) {
  9.         showmessage('post_not_found');
  10. } else {
  11.         foreach($postlist as $pid => $post) {
  12.                 $postlist[$pid]['message'] = preg_replace("/\[attach\]\d+\[\/attach\]/i", '', $postlist[$pid]['message']);
  13.         }
  14. }
คัดลอกไปที่คลิปบอร์ด
แทนที่ด้วย
  1. if(empty($postlist)) {
  2.         showmessage('post_not_found');
  3. } else {
  4.         foreach($postlist as $pid => $post) {
  5.                 $postlist[$pid]['message'] = preg_replace("/\[attach\]\d+\[\/attach\]/i", '', $postlist[$pid]['message']);
  6.                 if($postlist[$pid]['first'] == 1) {
  7.                         $getmsgi = $postlist[$pid]['message'];
  8.                 }
  9.         }
  10.         preg_match_all('/<img.+file=[\'"]([^\'"]+)[\'"].*>/i', $getmsgi, $iattrsA);
  11.         preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $getmsgi, $iattrsB);
  12.         if($iattrsA[1][0]) {
  13.                 $iattrs = $_G[siteurl].$iattrsA[1][0];
  14.         } elseif($iattrsB[1][0]) {
  15.                 if(stristr($iattrsB[1][0], "http://")) {
  16.                         $iattrs = $iattrsB[1][0];
  17.                 } else {
  18.                         $iattrs = $_G[siteurl].$iattrsB[1][0];
  19.                 }
  20.         } else {
  21.                 $iattrs = $_G['cache']['plugin']['facebook_connect']['dfimg'];
  22.         }
  23. }
คัดลอกไปที่คลิปบอร์ด
[/code]โฟลเดอร์ source/module/home
เปิดไฟล์ home_space.php หา
  1. if($uid) {
  2.         $space = getspace($uid);
  3.         if(empty($space)) {
  4.                 showmessage('space_does_not_exist');
  5.         }
  6. }
คัดลอกไปที่คลิปบอร์ด
แทนที่ด้วย
  1. if($uid) {
  2.         $space = getspace($uid);
  3.         if(empty($space)) {
  4.                 showmessage('space_does_not_exist');
  5.         }
  6.         $sfb = DB::fetch_first("SELECT fbid,showfblink FROM ".DB::table('facebook_connect')." WHERE uid='$uid' LIMIT 1");
  7.         require_once libfile('function/friend');
  8.         $isfriend = friend_check($uid);
  9. }
คัดลอกไปที่คลิปบอร์ด
 เจ้าของ| S¡|€n7 โพสต์ 2011-11-27 19:48:25
ต้นฉบับโพสต์โดย S¡|€n7 เมื่อ 2011-11-27 19:10
แก้ไขครั้งสุดท้ายโดย S¡|€n7 เมื่อ 2011-11-27 19:47

โมสคริป เท ...

มันเยอะครับ ลองเทียบสคริปดูนะครับ ผมเทียบให้เป็นแนวทางแค่นี้ละกัน ไม่ไหวละเบลอ
dulyarut โพสต์ 2011-11-27 20:04:44
ไม่มีรูปหลอ   

แสดงความคิดเห็น

ตามไปดูที่กระทู้ต้นฉบับครับ  โพสต์ 2011-11-29 12:57
dulyarut โพสต์ 2011-11-27 20:06:30
ทำเป็น Plugin › ดิ

แสดงความคิดเห็น

มันเป็นปลักอินนะครับ แต่ต้องโมสคริปเพิ่ม  โพสต์ 2011-11-29 12:58
jaideejung007 โพสต์ 2011-11-28 11:10:28
  1.   'post_like_nopermission' => 'ขออภัย! คุณไม่ได้รับอนุญาตให้ใช้โค๊ด [like]  กรุณากลับไปตรวจสอบใหม่。',
  2.   'post_like_dontinreply' => 'ขออภัย! คุณไม่สามารถตอบกลับโดยใช้โค๊ด [like] กรุณากลับไปตรวจสอบใหม่。',
  3.   'facebook_not_yet_like' => 'คุณไม่มียอดเครดิต,กรุณากลับไปตรวจสอบใหม่。',
  4.   'facebook_not_yet_comm' => 'คุณยังไม่ได้ใช้ข้อความนี้โพสต์ลง Facebook (บัญชี FB ของคุณต้องโพสต์ข้อความลงด้วย),กรุณากลับไปตรวจสอบใหม่。',
คัดลอกไปที่คลิปบอร์ด
  1.         'facebook_profile' => 'ข้อมูลส่วนตัว',
  2.         'add_facebook_friend' => 'เพิ่มเป็นเพื่อน',
คัดลอกไปที่คลิปบอร์ด
  1.   'post_hide_reply_like_hidden' => ',หากคุณต้องการจะดูเนื้อหาที่ซ่อนไว้ในโพสต์นี้ กรุณา<a href="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]" onclick="showWindow(\'reply\', this.href)">ตอบกลับ</a> หรือใช้ <b>เครดิต</b>:',
  2.   'post_hide_like_hidden' => ',หากคุณต้องการจะดูเนื้อหาที่ซ่อนไว้ในโพสต์นี้ กรุณาใช้<b>เครดิต</b>:',
  3.   'first_login' => 'กรุณาเข้าระบบ:',
  4.   'facebook_profile' => 'ข้อมูลส่วนตัว',
  5.   'add_facebook_friend' => 'เพิ่มเป็นเพื่อน',
  6.   'facebook_send' => 'ส่ง',
  7.   'facebook_invite_friend_add' => 'เชิญเพื่อนเข้าร่วม',
  8.   'facebook_invite_friend_addmsg' => 'ฉันได้เป็นสมาชิกจาก [ {$_G[setting][bbname]} ] ขอเชิญคุณเข้าร่วมกับเรา!',
  9.   'facebook_already_like' => '[ 若您已點過讚,請點此重新檢查 ]',
  10.   'facebook_already_comm' => '[ 已在FB版留言?請點此重新檢查 ]',
  11.   'facebook_already_like_t' => '因為您目前並無登入本論壇,所以必須手動檢查您是否已點過讚。',
  12.   'facebook_already_comm_t' => '因為您目前並無登入本論壇,所以必須手動檢查您是否已在本帖的Facebook留言版上留言 (請使用FB帳戶進行留言)。',
คัดลอกไปที่คลิปบอร์ด
  1.   'facebook_profile' => 'ข้อมูลส่วนตัว',
  2.   'add_facebook_friend' => 'เพิ่มเป็นเพื่อน',
คัดลอกไปที่คลิปบอร์ด
ปล. ผมไม่เข้าใจประโยคนี้ 讚 ซึ่งแปลว่า Praise, Sponsor หรือภาษาไทย การชมเชย ซึ่งผมไม่เคยเล่นฟังก์ชันนี้ อาจจะแปลไม่ถูกต้อง คนที่เคยเล่นก็ลองแปลดูแล้วกันนะครับ
 เจ้าของ| S¡|€n7 โพสต์ 2011-11-30 12:58:31
ต้นฉบับโพสต์โดย popiazaza เมื่อ 2011-11-29 21:01
ผมหมายถึงที่เป็นปลั๊กอินเลยอะ
ติดตั้งแล้วแก้รหัส app ...



ผมไม่รู้จะตอบยังไง ไม่รู้ว่าใครไม่เข้าใจใคร อย่างนี้มันเรียกปลักอินไหม

ขออภัย! โพสต์นี้มีไฟล์แนบหรือรูปภาพที่ไม่ได้รับอนุญาตให้คุณเข้าถึง

คุณจำเป็นต้อง ลงชื่อเข้าใช้ เพื่อดาวน์โหลดหรือดูไฟล์แนบนี้ คุณยังไม่มีบัญชีใช่ไหม? สมัครสมาชิก

x
 เจ้าของ| S¡|€n7 โพสต์ 2011-11-30 20:57:22
ต้นฉบับโพสต์โดย popiazaza เมื่อ 2011-11-30 18:28
แก้ไขครั้งสุดท้ายโดย popiazaza เมื่อ 2011-11-30 18:29

เอ่อ จะบอกว่ามันคนละตัว
bonparadorn โพสต์ 2013-6-25 09:12:44
ไม่เหมือนกันตรงที่ แบบนี้ใช้ได้กับหลายรุ่น ไม่เสียประสาทกับไฟล์โหลดไม่ได้ แต่ไปเสียประสาทตรงตามเทียบโค๊ดที่รุ่นไม่ตรงกัน
ขออภัย! คุณไม่ได้รับสิทธิ์ในการดำเนินการในส่วนนี้ กรุณาเลือกอย่างใดอย่างหนึ่ง ลงชื่อเข้าใช้ | สมัครสมาชิก

รายละเอียดเครดิต

รายชื่อผู้กระทำผิด|Archiver|ดิสคัส ไทย Follow us: Become a fan on facebook. Follow us on Twitter.

GMT+7, 2024-4-25 23:43

Powered by Discuz! X3.4, Rev.66

Copyright © 2001-2021 Tencent Cloud. Licensed

ตอบกระทู้ ขึ้นไปด้านบน ไปที่หน้ารายการกระทู้