22 พฤษภาคม 2555, 16:10:27
ยินดีต้อนรับผู้เยี่ยมชม
  • noavata
  • ยินดีต้อนรับคุณ, ผู้เยี่ยมชม กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน
    เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น
Page Rank

ทำเว็บไซต์ | แต่งบอร์ด | ออกแบบ | SMF | Joomla | Drupal | WordPress | JQuery | CMS | ECommerce | Tel. +668-08577477

ส่งหัวข้อนี้พิมพ์ หน้า: 1 
icon message ผู้เขียน หัวข้อ: FlashChat Integration FlashChat สำหรับ SMF  (อ่าน 1995 ครั้ง)
0 สมาชิก และ 1 ผู้เยี่ยมชม กำลังดูหัวข้อนี้
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general เมื่อ: 23 มิถุนายน 2553, 13:36:26
  • ชื่อ: FlashChat Integration
  • ผู้เขียน: Tyrsson™
  • นำเสนอโดย: DexMoreGroup
  • ประเภท: Socialization
  • รองรับ: SMF 1.1.xx, 2.0.xx
  • ปรับปรุงล่าสุด: 4 พฤษจิกายน 2552
  • ต้นฉบับ: FlashChat Integration

รายละเอียด
      mod นี้เป็นการรวม FlashChat เข้ากับ SMF ซึงก็ใช้งานได้ดีพอสมควร ก่อนที่ท่านจะติดตั้ง mod นี้ท่านต้องติดตั้ง FlashChat ก่อน โดยวิธีการติดตั้งดูได้จากที่นี่ ติดตั้ง Flash_chat Step by Step การทำงานของ mod นี้มีดังนี้ครับ
  • สามารถกำหนดให้แสดงห้องสนทนาอยู่ภายในฟอรั่ม หรือแยกออกไป
  • สามารถกำหนดให้เปิดในหน้าต่างเดิมหรือหน้าต่างใหม่
  • กำหนดความกว้าง/สูงได้
  • แสดงรายชื่อผู้ที่กำลังสนทนาด้านล่าง "รวมเวลาที่อยู่ในระบบ"
  • แสดงจำนวนผู้ที่กำลังสนทนาในแท็ปเมนู
  • แสดงชื่อผู้ที่กำลังสนทนาใน "ผู้ใช้งานขณะนี้"

ตัวอย่าง


สำหรับ SMF 1.1.xx

แก้ไขไฟล์:

file $boarddir/index.php

ค้นหา -->>
โค๊ด: [Select]
'.xml' => array('News.php', 'ShowXmlFeed'),

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
// FlashChat integration
'chat' => array('Chat.php', 'Chat'),

ค้นหา -->>
โค๊ด: [Select]
$return['num_users'] = count($return['users']) + $return['hidden'];
$return['total_users'] = $return['num_users'] + $return['guests'];

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
// --- Begin FlashChat integration ---
global $boarddir, $db_name;
// Get the FlashChat database config (for the prefix)
include($boarddir . '/chat/inc/config.srv.php');
// Get the proper database prefix (including database name)
$fc_prefix = is_numeric(substr($GLOBALS['fc_config']['db']['pref'], 0, 1)) ? $db_name . '.' . $GLOBALS['fc_config']['db']['pref'] : '`' . $db_name . '`.' . $GLOBALS['fc_config']['db']['pref'];
// Load all the users currently in the chat
$result = db_query("
SELECT
fc.userid, fc.state, fc.color, fc.lang, fc.roomid,
fr.name AS roomName, fr.ispublic,
mem.realName, mem.memberName, mem.showOnline, mg.onlineColor,
mg.ID_GROUP, mg.groupName
FROM {$fc_prefix}connections AS fc
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = fc.userid)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
LEFT JOIN {$fc_prefix}rooms AS fr ON (fc.roomid = fr.id)
WHERE fc.userid IS NOT NULL
ORDER BY mem.realName ASC", __FILE__, __LINE__);

$return['users_chat'] = array();
$return['list_users_chat'] = array();
$return['num_chat'] = mysql_num_rows($result);

// Loop through all users in chat
while ($row = mysql_fetch_assoc($result))
{
// Does their membergroup have a colour?
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userid'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userid'] . '">' . $row['realName'] . '</a>';

// Add them to the 'Users Online' list
$return['users_chat'][$row['memberName']] = array(
'id' => $row['userid'],
'username' => $row['memberName'],
'name' => $row['realName'],
'group' => $row['ID_GROUP'],
'href' => $scripturl . '?action=profile;u=' . $row['userid'],
'link' => $link,
'chat' => array(
'color' => $row['color'],
'lang' => $row['lang'],
'room' => array(
'id' => $row['roomid'],
'name' => $row['roomName'],
'public' => ($row['ispublic'] == 'y' ? true : false),
),
),
);
}
mysql_free_result($result);
// --- End FlashChat integration ---


ค้นหา -->>
โค๊ด: [Select]
echo '
', $return['guests'], ' ', $return['guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ', $return['num_users'], ' ', $return['num_users'] == 1 ? $txt['user'] : $txt['users'];

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
echo '
', $return['guests'], ' ', $return['guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ', $return['num_users'], ' ', $return['num_users'] == 1 ? $txt['user'] : $txt['users'], ', ', $return['num_chat'], ' ', $return['num_chat'] == 1 ? $txt['user'] : $txt['users'], ' ', $txt['fc_in_chat'];

file $sourcedir/ModSettings.php

ค้นหา -->>
โค๊ด: [Select]
'',
// Reporting of personal messages?

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
// --- Begin FlashChat Integration ---
'',
// User stuff
array('check', 'fc_showUsers'),
array('check', 'fc_showUserCount'),
// Display FlashChat inside the forum?
array('check', 'fc_inForum'),
// Open chat in new window?
array('check', 'fc_newWindow'),
// Width and height of FlashChat
array('text', 'fc_width', 6),
array('text', 'fc_height', 6, $txt['fc_height2'] . '<div class="smalltext">' . $txt['fc_size_desc'] . '</div>'),
// --- End FlashChat Integration ---

file $sourcedir/Subs.php

ค้นหา -->>
โค๊ด: [Select]
'latest_member' => $context['common_stats']['latest_member'],
);

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
// --- Begin FlashChat Integration ---
// Only bother grabbing the data if we need it (ie. we're on the board
// index, or the information will be shown at the top of the forum).
// !!! $modSettings['fc_showUserCount'] just needs the count, not the whole query!
if (!empty($modSettings['fc_showUsers']) || !empty($modSettings['fc_showUserCount']) || (empty($context['current_action']) || $context['current_action'] == 'boardindex' || $context['current_action'] == 'forum'))
{
global $boarddir, $db_prefix, $db_name;
// Get the FlashChat database config (for the prefix)
include($boarddir . '/chat/inc/config.srv.php');
// Get the proper database prefix (including database name)
$fc_prefix = is_numeric(substr($GLOBALS['fc_config']['db']['pref'], 0, 1)) ? $db_name . '.' . $GLOBALS['fc_config']['db']['pref'] : '`' . $db_name . '`.' . $GLOBALS['fc_config']['db']['pref'];
// Load all the users currently in the chat
$result = db_query("
SELECT
fc.userid, fc.state, fc.color, fc.lang, fc.roomid,
fr.name AS roomName, fr.ispublic,
mem.realName, mem.memberName, mem.showOnline, mg.onlineColor,
mg.ID_GROUP, mg.groupName
FROM {$fc_prefix}connections AS fc
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = fc.userid)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
LEFT JOIN {$fc_prefix}rooms AS fr ON (fc.roomid = fr.id)
WHERE fc.userid IS NOT NULL
AND mem.ID_MEMBER != 0
ORDER BY mem.realName ASC", __FILE__, __LINE__);

$context['users_chat'] = array();
$context['list_users_chat'] = array();
$context['num_chat'] = mysql_num_rows($result);

// Loop through all users in chat
while ($row = mysql_fetch_assoc($result))
{
// Does their membergroup have a colour?
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userid'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userid'] . '">' . $row['realName'] . '</a>';

// Add them to the 'Users Online' list
$context['users_chat'][$row['memberName']] = array(
'id' => $row['userid'],
'username' => $row['memberName'],
'name' => $row['realName'],
'group' => $row['ID_GROUP'],
'href' => $scripturl . '?action=profile;u=' . $row['userid'],
'link' => $link,
'chat' => array(
'color' => $row['color'],
'lang' => $row['lang'],
'room' => array(
'id' => $row['roomid'],
'name' => $row['roomName'],
'public' => ($row['ispublic'] == 'y' ? true : false),
),
),
);

$context['list_users_chat'][$row['memberName']] = $link . ' (' . ($row['ispublic'] != 'y' ? $txt['fc_private_room'] : $row['roomName']) . ')';

// Groups online
if (!isset($context['online_groups'][$row['ID_GROUP']]))
$context['online_groups'][$row['ID_GROUP']] = array(
'id' => $row['ID_GROUP'],
'name' => $row['groupName'],
'color' => $row['onlineColor']
);
}
mysql_free_result($result);
}
// --- End FlashChat Integration ---

file $themedir/BoardIndex.template.php

ค้นหา -->>
โค๊ด: [Select]
echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];

แก้เป็น -->>
โค๊ด: [Select]
echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], ', ', $context['num_chat'], ' ', $context['num_chat'] == 1 ? $txt['user'] : $txt['users'], ' ', $txt['fc_in_chat'];

โค๊ด: [Select]
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);

แก้เป็น -->>
โค๊ด: [Select]
// --- Begin FlashChat integration ---
// If there's users in the chat
if (!empty($context['users_chat']))
echo '
<br />
', $txt['fc_users_online'], ':<br />', implode(', ', $context['list_users_chat']);
// --- End FlashChat integration ---

file $themedir/index.template.php

ค้นหา -->>
โค๊ด: [Select]
// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
// --- Begin FlashChat Integration ---
// Do we need to display a list of the users in the chat?
// Are there users online?
if (!empty($modSettings['fc_showUsers']) && !empty($context['users_chat']))
echo '
', $txt['fc_users_online'], ': ', implode(', ', $context['list_users_chat']), '<br />';
// --- End FlashChat Integration ---

ค้นหา -->>
โค๊ด: [Select]
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
if ($context['current_action'] == 'chat')
$current_action = 'chat';

ค้นหา -->>
โค๊ด: [Select]
// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'calendar' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
</td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
// FlashChat!
global $modSettings;
if ($context['user']['is_logged'])
echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'chat' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=chat"', (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' : ''), '>', $txt['fc_chat'], (!empty($modSettings['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' . $context['num_chat'] . ' ' . ($context['num_chat'] == 1 ? $txt['user'] : $txt['users']) . '</strong>]' : ''), '</a>
</td>' , $current_action == 'chat' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

file $languagedir/Modifications.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]
// --- Begin FlashChat Integration ---
$txt['fc_chat'] = 'Chat';
$txt['fc_flashchat'] = 'FlashChat';
$txt['fc_flashchat_settings'] = 'FlashChat Integration Settings';
$txt['fc_in_chat'] = 'in Chat';
$txt['fc_not_found'] = 'FlashChat does not appear to be installed!';
$txt['fc_no_guests'] = 'Sorry, guests aren\'t allowed to use the chat!';
$txt['fc_private_room'] = '<i>private room</i>';
$txt['fc_users_online'] = 'Users currently in chat';
// For 'Who's Online' page
$txt['whoall_chat'] = 'In the <a href="' . $boardurl . '?action=chat">Chatroom</a>';

// Settings for admin panel
$txt['fc_height2'] = 'Height';
$txt['fc_inForum'] = 'Display chat window "inside" forum?';
$txt['fc_newWindow'] = 'Open chat in new window?';
$txt['fc_showUsers'] = 'Display Users in Chat at top of forum?';
$txt['fc_showUserCount'] = 'Show number of users on Chat button?';
$txt['fc_size_desc'] = 'The height and width may be an integer (eg. 600 for 600 pixels) or a percentage (eg. a width of 100% will fill the whole screen horizontally)<br /><strong>Note:</strong> If "' . $txt['fc_inForum'] . '" is turned on, please do not use a percentage for the height. It will not work correctly!';
$txt['fc_width'] = 'Width';
// --- End FlashChat Integration ---

file $languagedir/Help.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]
// --- Begin FlashChat Integration ---
$helptxt['fc_inForum'] = 'If ticked, the chat will be displayed "inside" your forum, using your forum\'s header and footer. If unticked, FlashChat will be displayed standalone, filling the entire screen (much like a default FlashChat installation)';
$helptxt['fc_showUserCount'] = 'Show the number of users in the chat on the chat button in the menu bar. Instead of just saying "Chat", it will say something like "Chat [2 Users]" (assuming 2 users are in the chat).<br /> Note that in order to use this, your theme must be compatible.';
// --- End FlashChat Integration ---

file $boarddir/chat/inc/flashChatTag.php

ค้นหา -->>
โค๊ด: [Select]
$tag .= "'width','".$height."',\n";
$tag .= "'height','".$height."',\n";

แก้เป็น -->>
โค๊ด: [Select]
// Bug fix by Daniel15 for SMF FlashChat Integration
//$tag .= "'width','".$height."',\n";
$tag .= "'width','".$width."',\n";
$tag .= "'height','".$height."',\n";

file $boarddir/chat/inc/cmses/smfCMS2.php

ค้นหา -->>
โค๊ด: [Select]
include($smf_root_path . 'Settings.php');
include($smf_root_path . 'Sources/Load.php');
include($smf_root_path . 'Sources/Subs-Auth.php');
include($smf_root_path . 'Sources/LogInOut.php');

แก้เป็น -->>
โค๊ด: [Select]
require_once($smf_root_path . 'Settings.php');
require_once($smf_root_path . 'Sources/Load.php');
require_once($smf_root_path . 'Sources/Subs-Auth.php');
require_once($smf_root_path . 'Sources/LogInOut.php');

ดาวน์โหลด: FlashChat1.rar
ขออภัย! ท่านไม่สามารถเข้าถึงข้อมูลส่วนนี้ได้ กรุณาอ่าน เงื่อนไขการใช้งาน DexMore.Com

แตกไฟล์แล้วอัพโหลดไปไว้ที่
file Chat.php-->> $sourcedir
file Chat.template.php-->> $themedir
file dologout.php-->> $boarddir

สร้างไฟล์: add_settings.php เพื่อสร้างฐานข้อมูล ไว้ใน $boarddir (ที่เดียวกับไฟล์ SSI.php) รัน http://www.your_url.xxx/$boarddir/add_settings.php -->> Enter เสร็จแล้วลบทิ้ง
โค๊ด: [Select]
<?php
/*******************************************************************************
This is a simplified script to add settings into SMF. It is meant to be
run either from the package manager or directly by URL.

ATTENTION: If you are trying to INSTALL this package, please access
it directly, with a URL like the following:
http://www.yourdomain.tld/forum/add_settings.php (or similar.)
*******************************************************************************/

// Version 1.0
// $Revision$ - $Date$

// Set the below to true to overwrite already existing settings with the defaults. (not recommended.)
$overwrite_old_settings false;

// List settings here in the format: setting_key => default_value.  Escape any "s. (" => \")
$mod_settings = array(
'fc_inForum' => 1,
'fc_newWindow' => 0,
'fc_showUsers' => 0,
'fc_showUserCount' => 0,
'fc_width' => '100%',
'fc_height' => '600',
);

/******************************************************************************/

// If SSI.php is in the same place as this file, and SMF isn't defined, this is being run standalone.
if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
require_once(dirname(__FILE__) . '/SSI.php');
// Hmm... no SSI.php and no SMF?
elseif (!defined('SMF'))
die('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php.');

// Turn the array defined above into a string of MySQL data.
$string '';
foreach (
$mod_settings as $k => $v)
$string .= '
(\'' 
$k '\', \'' $v '\'),';

// Sorted out the array defined above - now insert the data!
if ($string != '')
$result db_query("
. ($overwrite_old_settings 'REPLACE' 'INSERT IGNORE') . " INTO {$db_prefix}settings
(variable, value)
VALUES" 
substr($string0, -1), __FILE____LINE__);

// Uh-oh spaghetti-oh!
if ($result === false)
echo '<b>Error:</b> Database modifications failed!';

?>


การตั้งค่า: ผู้ดูแล -->> ส่วนปรับแต่งค่าการใช้งาน


ลิงค์หัวข้อ: http://dexmore.com/topic/2082
Windows XP    Firefox 3.6.3   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 1 เมื่อ: 23 มิถุนายน 2553, 13:41:51
สำหรับ SMF 1.1.xx
*เฉพาะที่ติดตั้ง Googlebot & Spiders แล้วเท่านั้น

แก้ไขไฟล์:

file $boarddir/index.php

ค้นหา -->>
โค๊ด: [Select]
'.xml' => array('News.php', 'ShowXmlFeed'),

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
// FlashChat integration
'chat' => array('Chat.php', 'Chat'),

ค้นหา -->>
โค๊ด: [Select]
$return['num_users'] = count($return['users']) + $return['hidden'];
$return['total_users'] = $return['num_users'] + $return['guests'] + ($modSettings['ob_googlebot_count_most_online'] ? $return['num_spiders'] : 0);

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
// --- Begin FlashChat integration ---
global $boarddir, $db_name;
// Get the FlashChat database config (for the prefix)
include($boarddir . '/chat/inc/config.srv.php');
// Get the proper database prefix (including database name)
$fc_prefix = is_numeric(substr($GLOBALS['fc_config']['db']['pref'], 0, 1)) ? $db_name . '.' . $GLOBALS['fc_config']['db']['pref'] : '`' . $db_name . '`.' . $GLOBALS['fc_config']['db']['pref'];
// Load all the users currently in the chat
$result = db_query("
SELECT
fc.userid, fc.state, fc.color, fc.lang, fc.roomid,
fr.name AS roomName, fr.ispublic,
mem.realName, mem.memberName, mem.showOnline, mg.onlineColor,
mg.ID_GROUP, mg.groupName
FROM {$fc_prefix}connections AS fc
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = fc.userid)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
LEFT JOIN {$fc_prefix}rooms AS fr ON (fc.roomid = fr.id)
WHERE fc.userid IS NOT NULL
ORDER BY mem.realName ASC", __FILE__, __LINE__);

$return['users_chat'] = array();
$return['list_users_chat'] = array();
$return['num_chat'] = mysql_num_rows($result);

// Loop through all users in chat
while ($row = mysql_fetch_assoc($result))
{
// Does their membergroup have a colour?
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userid'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userid'] . '">' . $row['realName'] . '</a>';

// Add them to the 'Users Online' list
$return['users_chat'][$row['memberName']] = array(
'id' => $row['userid'],
'username' => $row['memberName'],
'name' => $row['realName'],
'group' => $row['ID_GROUP'],
'href' => $scripturl . '?action=profile;u=' . $row['userid'],
'link' => $link,
'chat' => array(
'color' => $row['color'],
'lang' => $row['lang'],
'room' => array(
'id' => $row['roomid'],
'name' => $row['roomName'],
'public' => ($row['ispublic'] == 'y' ? true : false),
),
),
);
}
mysql_free_result($result);
// --- End FlashChat integration ---


ค้นหา -->>
โค๊ด: [Select]
echo '
', (empty($return['spiders']) ? '' : $return['num_spiders'] . ' ' . ($return['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $return['guests'], ' ', $return['guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ', $return['num_users'], ' ', $return['num_users'] == 1 ? $txt['user'] : $txt['users'];

แก้เป็น -->>
โค๊ด: [Select]
echo '
', (empty($return['spiders']) ? '' : $return['num_spiders'] . ' ' . ($return['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $return['guests'], ' ', $return['guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ', $return['num_users'], ' ', $return['num_users'] == 1 ? $txt['user'] : $txt['users'], ', ', $return['num_chat'], ' ', $return['num_chat'] == 1 ? $txt['user'] : $txt['users'], ' ', $txt['fc_in_chat'];

file $sourcedir/ModSettings.php

ค้นหา -->>
โค๊ด: [Select]
'',
// Reporting of personal messages?

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
// --- Begin FlashChat Integration ---
'',
// User stuff
array('check', 'fc_showUsers'),
array('check', 'fc_showUserCount'),
// Display FlashChat inside the forum?
array('check', 'fc_inForum'),
// Open chat in new window?
array('check', 'fc_newWindow'),
// Width and height of FlashChat
array('text', 'fc_width', 6),
array('text', 'fc_height', 6, $txt['fc_height2'] . '<div class="smalltext">' . $txt['fc_size_desc'] . '</div>'),
// --- End FlashChat Integration ---

file $sourcedir/Subs.php

ค้นหา -->>
โค๊ด: [Select]
'latest_member' => $context['common_stats']['latest_member'],
);

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
// --- Begin FlashChat Integration ---
// Only bother grabbing the data if we need it (ie. we're on the board
// index, or the information will be shown at the top of the forum).
// !!! $modSettings['fc_showUserCount'] just needs the count, not the whole query!
if (!empty($modSettings['fc_showUsers']) || !empty($modSettings['fc_showUserCount']) || (empty($context['current_action']) || $context['current_action'] == 'boardindex' || $context['current_action'] == 'forum'))
{
global $boarddir, $db_prefix, $db_name;
// Get the FlashChat database config (for the prefix)
include($boarddir . '/chat/inc/config.srv.php');
// Get the proper database prefix (including database name)
$fc_prefix = is_numeric(substr($GLOBALS['fc_config']['db']['pref'], 0, 1)) ? $db_name . '.' . $GLOBALS['fc_config']['db']['pref'] : '`' . $db_name . '`.' . $GLOBALS['fc_config']['db']['pref'];
// Load all the users currently in the chat
$result = db_query("
SELECT
fc.userid, fc.state, fc.color, fc.lang, fc.roomid,
fr.name AS roomName, fr.ispublic,
mem.realName, mem.memberName, mem.showOnline, mg.onlineColor,
mg.ID_GROUP, mg.groupName
FROM {$fc_prefix}connections AS fc
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = fc.userid)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
LEFT JOIN {$fc_prefix}rooms AS fr ON (fc.roomid = fr.id)
WHERE fc.userid IS NOT NULL
AND mem.ID_MEMBER != 0
ORDER BY mem.realName ASC", __FILE__, __LINE__);

$context['users_chat'] = array();
$context['list_users_chat'] = array();
$context['num_chat'] = mysql_num_rows($result);

// Loop through all users in chat
while ($row = mysql_fetch_assoc($result))
{
// Does their membergroup have a colour?
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userid'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userid'] . '">' . $row['realName'] . '</a>';

// Add them to the 'Users Online' list
$context['users_chat'][$row['memberName']] = array(
'id' => $row['userid'],
'username' => $row['memberName'],
'name' => $row['realName'],
'group' => $row['ID_GROUP'],
'href' => $scripturl . '?action=profile;u=' . $row['userid'],
'link' => $link,
'chat' => array(
'color' => $row['color'],
'lang' => $row['lang'],
'room' => array(
'id' => $row['roomid'],
'name' => $row['roomName'],
'public' => ($row['ispublic'] == 'y' ? true : false),
),
),
);

$context['list_users_chat'][$row['memberName']] = $link . ' (' . ($row['ispublic'] != 'y' ? $txt['fc_private_room'] : $row['roomName']) . ')';

// Groups online
if (!isset($context['online_groups'][$row['ID_GROUP']]))
$context['online_groups'][$row['ID_GROUP']] = array(
'id' => $row['ID_GROUP'],
'name' => $row['groupName'],
'color' => $row['onlineColor']
);
}
mysql_free_result($result);
}
// --- End FlashChat Integration ---

file $themedir/BoardIndex.template.php

ค้นหา -->>
โค๊ด: [Select]
echo (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];

แก้เป็น -->>
โค๊ด: [Select]
echo (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], ', ', $context['num_chat'], ' ', $context['num_chat'] == 1 ? $txt['user'] : $txt['users'], ' ', $txt['fc_in_chat'];

ค้นหา -->>
โค๊ด: [Select]
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
// --- Begin FlashChat integration ---
// If there's users in the chat
if (!empty($context['users_chat']))
echo '
<br />
', $txt['fc_users_online'], ':<br />', implode(', ', $context['list_users_chat']);
// --- End FlashChat integration ---

file $themedir/index.template.php

ค้นหา -->>
โค๊ด: [Select]
// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
// --- Begin FlashChat Integration ---
// Do we need to display a list of the users in the chat?
// Are there users online?
if (!empty($modSettings['fc_showUsers']) && !empty($context['users_chat']))
echo '
', $txt['fc_users_online'], ': ', implode(', ', $context['list_users_chat']), '<br />';
// --- End FlashChat Integration ---

ค้นหา -->>
โค๊ด: [Select]
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
if ($context['current_action'] == 'chat')
$current_action = 'chat';

ค้นหา -->>
โค๊ด: [Select]
// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'calendar' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
</td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
// FlashChat!
global $modSettings;
if ($context['user']['is_logged'])
echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'chat' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=chat"', (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' : ''), '>', $txt['fc_chat'], (!empty($modSettings['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' . $context['num_chat'] . ' ' . ($context['num_chat'] == 1 ? $txt['user'] : $txt['users']) . '</strong>]' : ''), '</a>
</td>' , $current_action == 'chat' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

file $languagedir/Modifications.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]
// --- Begin FlashChat Integration ---
$txt['fc_chat'] = 'Chat';
$txt['fc_flashchat'] = 'FlashChat';
$txt['fc_flashchat_settings'] = 'FlashChat Integration Settings';
$txt['fc_in_chat'] = 'in Chat';
$txt['fc_not_found'] = 'FlashChat does not appear to be installed!';
$txt['fc_no_guests'] = 'Sorry, guests aren\'t allowed to use the chat!';
$txt['fc_private_room'] = '<i>private room</i>';
$txt['fc_users_online'] = 'Users currently in chat';
// For 'Who's Online' page
$txt['whoall_chat'] = 'In the <a href="' . $boardurl . '?action=chat">Chatroom</a>';

// Settings for admin panel
$txt['fc_height2'] = 'Height';
$txt['fc_inForum'] = 'Display chat window "inside" forum?';
$txt['fc_newWindow'] = 'Open chat in new window?';
$txt['fc_showUsers'] = 'Display Users in Chat at top of forum?';
$txt['fc_showUserCount'] = 'Show number of users on Chat button?';
$txt['fc_size_desc'] = 'The height and width may be an integer (eg. 600 for 600 pixels) or a percentage (eg. a width of 100% will fill the whole screen horizontally)<br /><strong>Note:</strong> If "' . $txt['fc_inForum'] . '" is turned on, please do not use a percentage for the height. It will not work correctly!';
$txt['fc_width'] = 'Width';
// --- End FlashChat Integration ---

file $languagedir/Help.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]
// --- Begin FlashChat Integration ---
$helptxt['fc_inForum'] = 'If ticked, the chat will be displayed "inside" your forum, using your forum\'s header and footer. If unticked, FlashChat will be displayed standalone, filling the entire screen (much like a default FlashChat installation)';
$helptxt['fc_showUserCount'] = 'Show the number of users in the chat on the chat button in the menu bar. Instead of just saying "Chat", it will say something like "Chat [2 Users]" (assuming 2 users are in the chat).<br /> Note that in order to use this, your theme must be compatible.';
// --- End FlashChat Integration ---

file $boarddir/chat/inc/flashChatTag.php

ค้นหา -->>
โค๊ด: [Select]
$tag .= "'width','".$height."',\n";
$tag .= "'height','".$height."',\n";

แก้เป็น -->>
โค๊ด: [Select]
// Bug fix by Daniel15 for SMF FlashChat Integration
//$tag .= "'width','".$height."',\n";
$tag .= "'width','".$width."',\n";
$tag .= "'height','".$height."',\n";

file $boarddir/chat/inc/cmses/smfCMS2.php

ค้นหา -->>
โค๊ด: [Select]
include($smf_root_path . 'Settings.php');
include($smf_root_path . 'Sources/Load.php');
include($smf_root_path . 'Sources/Subs-Auth.php');
include($smf_root_path . 'Sources/LogInOut.php');

แก้เป็น -->>
โค๊ด: [Select]
require_once($smf_root_path . 'Settings.php');
require_once($smf_root_path . 'Sources/Load.php');
require_once($smf_root_path . 'Sources/Subs-Auth.php');
require_once($smf_root_path . 'Sources/LogInOut.php');

ดาวน์โหลด: FlashChat2.rar
ขออภัย! ท่านไม่สามารถเข้าถึงข้อมูลส่วนนี้ได้ กรุณาอ่าน เงื่อนไขการใช้งาน DexMore.Com

แตกไฟล์แล้วอัพโหลดไปไว้ที่
file Chat.php-->> $sourcedir
file Chat.template.php-->> $themedir
file dologout.php-->> $boarddir

สร้างไฟล์: add_settings.php เพื่อสร้างฐานข้อมูล ไว้ใน $boarddir (ที่เดียวกับไฟล์ SSI.php) รัน http://www.your_url.xxx/$boarddir/add_settings.php -->> Enter เสร็จแล้วลบทิ้ง
โค๊ด: [Select]
<?php
/*******************************************************************************
This is a simplified script to add settings into SMF. It is meant to be
run either from the package manager or directly by URL.

ATTENTION: If you are trying to INSTALL this package, please access
it directly, with a URL like the following:
http://www.yourdomain.tld/forum/add_settings.php (or similar.)
*******************************************************************************/

// Version 1.0
// $Revision$ - $Date$

// Set the below to true to overwrite already existing settings with the defaults. (not recommended.)
$overwrite_old_settings false;

// List settings here in the format: setting_key => default_value.  Escape any "s. (" => \")
$mod_settings = array(
'fc_inForum' => 1,
'fc_newWindow' => 0,
'fc_showUsers' => 0,
'fc_showUserCount' => 0,
'fc_width' => '100%',
'fc_height' => '600',
);

/******************************************************************************/

// If SSI.php is in the same place as this file, and SMF isn't defined, this is being run standalone.
if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
require_once(dirname(__FILE__) . '/SSI.php');
// Hmm... no SSI.php and no SMF?
elseif (!defined('SMF'))
die('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php.');

// Turn the array defined above into a string of MySQL data.
$string '';
foreach (
$mod_settings as $k => $v)
$string .= '
(\'' 
$k '\', \'' $v '\'),';

// Sorted out the array defined above - now insert the data!
if ($string != '')
$result db_query("
. ($overwrite_old_settings 'REPLACE' 'INSERT IGNORE') . " INTO {$db_prefix}settings
(variable, value)
VALUES" 
substr($string0, -1), __FILE____LINE__);

// Uh-oh spaghetti-oh!
if ($result === false)
echo '<b>Error:</b> Database modifications failed!';

?>


ลิงค์หัวข้อ: http://dexmore.com/topic/2082
Windows XP    Firefox 3.6.3   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 2 เมื่อ: 23 มิถุนายน 2553, 13:42:47
สำหรับ SMF 2.0.xx
*เฉพาะที่ติดตั้ง flashchat 4.7.12 เท่านั้น

แก้ไขไฟล์:

file $boarddir/index.php

ค้นหา -->>
โค๊ด: [Select]
'.xml' => array('News.php', 'ShowXmlFeed'),

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
// FlashChat integration
'chat' => array('Chat.php', 'Chat'),

file $sourcedir/Admin.php

ค้นหา -->>
โค๊ด: [Select]
// Mod authors if you want to be "real freaking good" then add any setting pages for your mod BELOW this line!

แก้เป็น -->>
โค๊ด: [Select]
//Start FlashChat integration
array('ModifyFlashChatSettings', 'area=modsettings;sa=flashchat'),
// End FlashCaht integration//

ค้นหา -->>
โค๊ด: [Select]
// Mod Authors for a "ADD AFTER" on this line. Ensure you end your change with a comma. For example:
// 'shout' => array($txt['shout']),
// Note the comma!! The setting with automatically appear with the first mod to be added.

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
//Start FlashChat integration
'flashchat' => array($txt['fc_flashchat']),
      //End FlashChat integration

file $sourcedir/ManageSettings.php

ค้นหา -->>
โค๊ด: [Select]
// Mod authors, once again, if you have a whole section to add do it AFTER this line, and keep a comma at the end.

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
'flashchat' => 'ModifyFlashChatSettings',

ค้นหา -->>
โค๊ด: [Select]
?>

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
// Modify FlashChat Settings
function ModifyFlashChatSettings($return_config = false)
{
         global $txt, $scripturl, $context, $settings, $sc, $modSettings;
        
         $config_vars = array(
            array('check', 'fc_showUsers'),
            array('check', 'fc_showUserCount'),
            // Display FlashChat inside the forum?
            array('check', 'fc_inForum'),
            // Open chat in new window?
            array('check', 'fc_newWindow'),
            // Width and height of FlashChat
            array('text', 'fc_width', 6),
            array('text', 'fc_height', 6, $txt['fc_height2'] . '<div class="smalltext">' . $txt['fc_size_desc'] . '</div>'),
            );
          
          if ($return_config)

                return $config_vars;

        $context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=flashchat';

        $context['settings_title'] = $txt['fc_config'];

         if (empty($config_vars))
           {

                $context['settings_save_dont_show'] = true;
                $context['settings_message'] = '<div style="text-align: center">' . $txt['fc_config'] . '</div>';
            
                return prepareDBSettingContext($config_vars);
           }

        if (isset($_GET['save']))
           {

                checkSession();

                $save_vars = $config_vars;

                saveDBSettings($save_vars);

                redirectexit('action=admin;area=modsettings;sa=flashchat');

           }
     prepareDBSettingContext($config_vars);

}

file $sourcedir/Subs.php

โค๊ด: [Select]
'mlist_search' => array(
'title' => $txt['mlist_search'],
'href' => $scripturl . '?action=mlist;sa=search',
'show' => true,
),
),
),

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
//Start FlashChat integration
'chat' => array(
   'title' => $txt['fc_chat'],
   'href' => $scripturl . '?action=chat"', (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' : ''), '>', $txt['fc_chat'], (!empty($modSettings['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' . $context['num_chat'] . ' ' . ($context['num_chat'] == 1 ? $txt['user'] : $txt['users']) . '</strong>]' : ''),
   'show' => !$user_info['is_guest'],
        'sub_buttons' => array(
   ),
),
//End FlashChat integration

ค้นหา -->>
โค๊ด: [Select]
elseif ($context['current_action'] == 'theme')
   $current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
elseif ($context['current_action'] == 'chat')
   $current_action = 'chat';

ค้นหา -->>
โค๊ด: [Select]
'total_members' => comma_format($modSettings['totalMembers']),
'latest_member' => $context['common_stats']['latest_member'],
);

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
// --- Begin FlashChat Integration ---
    // Only bother grabbing the data if we need it (ie. we're on the board
    // index, or the information will be shown at the top of the forum).
    // !!! $modSettings['fc_showUserCount'] just needs the count, not the whole query!
   if (!empty($modSettings['fc_showUsers']) || !empty($modSettings['fc_showUserCount']) || (empty($context['current_action']) || $context['current_action'] == 'boardindex' || $context['current_action'] == 'forum'))
    {
        global $boarddir, $db_prefix, $db_name;
        global $request, $fc_prefix, $context, $smcFunc, $link, $scripturl, $row;
        // Get the FlashChat database config (for the prefix)
        include($boarddir . '/chat/inc/config.srv.php');
        // Get the proper database prefix (including database name)
        $fc_prefix = is_numeric(substr($GLOBALS['fc_config']['db']['pref'], 0, 1)) ? $db_name . '.' . $GLOBALS['fc_config']['db']['pref'] : '`' . $db_name . '`.' . $GLOBALS['fc_config']['db']['pref'];
      
        // Load all the users currently in the chat
        $request = $smcFunc['db_query']('' , "
            SELECT
                fc.userid, fc.state, fc.color, fc.lang, fc.roomid,
                fr.name AS roomName, fr.ispublic,
                mem.real_name, mem.member_name, mem.show_online, mg.online_color,
                mg.id_group, mg.group_name
            FROM {$fc_prefix}connections AS fc
                LEFT JOIN {$db_prefix}members AS mem ON (mem.id_member = fc.userid)
                LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.id_group = IF(mem.id_group = 0, mem.id_post_group, mem.id_group))
                LEFT JOIN {$fc_prefix}rooms AS fr ON (fc.roomid = fr.id)
            WHERE fc.userid IS NOT NULL
                AND mem.id_member != 0
            ORDER BY mem.real_name ASC");

            
        $context['users_chat'] = array();
        $context['list_users_chat'] = array();
        $context['num_chat'] = $smcFunc['db_num_rows']($request);
        
        // Loop through all users in chat
        while ($row = $smcFunc['db_fetch_assoc']($request))
        {
            // Does their membergroup have a colour?
            if (!empty($row['online_color']))
                $link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userid'] . '" style="color: ' . $row['online_color'] . ';">' . $row['real_name'] . '</a>';
            else
                $link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userid'] . '">' . $row['real_name'] . '</a>';

            // Add them to the 'Users Online' list
            $context['users_chat'][$row['member_name']] = array(
                'id' => $row['userid'],
                'username' => $row['member_name'],
                'name' => $row['real_name'],
                'group' => $row['id_group'],
                'href' => $scripturl . '?action=profile;u=' . $row['userid'],
                'link' => $link,
                'chat' => array(
                    'color' => $row['color'],
                    'lang' => $row['lang'],
                    'room' => array(
                        'id' => $row['roomid'],
                        'name' => $row['roomName'],
                        'public' => ($row['ispublic'] == 'y' ? true : false),
                    ),
                ),
            );
            
            $context['list_users_chat'][$row['member_name']] = $link . ' (' . ($row['ispublic'] != 'y' ? $txt['fc_private_room'] : $row['roomName']) . ')';
            
            // Groups online
            if (!isset($context['online_groups'][$row['id_group']]))
                $context['online_groups'][$row['id_group']] = array(
                    'id' => $row['id_group'],
                    'name' => $row['group_name'],
                    'color' => $row['online_color']
                );
        }
       $smcFunc['db_free_result'];
    }
    // --- End FlashChat Integration ---

file $themedir/BoardIndex.template.php

ค้นหา -->>
โค๊ด: [Select]
echo '
', sprintf($txt['users_active'], $modSettings['lastActive']), ':<br />', implode(', ', $context['list_users_online']);

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
// --- Begin FlashChat integration ---
    // If there's users in the chat
    if (!empty($context['users_chat']))
        echo '
                            <br />
                            ', $txt['fc_users_online'], ':<br />', implode(', ', $context['list_users_chat']);
    // --- End FlashChat integration -

ค้นหา -->>
โค๊ด: [Select]
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];

แก้เป็น -->>
โค๊ด: [Select]
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], ', ', $context['num_chat'], ' ', $context['num_chat'] == 1 ? $txt['user'] : $txt['users'], ' ', $txt['fc_in_chat'];

file $themedir/index.template.php

ค้นหา -->>
โค๊ด: [Select]
// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
// --- Begin FlashChat Integration ---
// Do we need to display a list of the users in the chat?
// Are there users online?
if (!empty($modSettings['fc_showUsers']) && !empty($context['users_chat']))
echo '
', $txt['fc_users_online'], ': ', implode(', ', $context['list_users_chat']), '<br />';
// --- End FlashChat Integration ---

file $boarddir/chat/inc/cmses/smfCMS20.php

ค้นหา -->>
โค๊ด: [Select]
include($smf_root_path . 'Settings.php');
include($smf_root_path . 'Sources/Load.php');
include($smf_root_path . 'Sources/Subs-Auth.php');
include($smf_root_path . 'Sources/LogInOut.php');

แก้เป็น -->>
โค๊ด: [Select]
require_once($smf_root_path . 'Settings.php');
require_once($smf_root_path . 'Sources/Load.php');
require_once($smf_root_path . 'Sources/Subs-Auth.php');
require_once($smf_root_path . 'Sources/LogInOut.php');

file $boarddir/chat/inc/flashChatTag.php

ค้นหา -->>
โค๊ด: [Select]
$tag .= "'width','".$height."',\n";
$tag .= "'height','".$height."',\n";

แก้เป็น -->>
โค๊ด: [Select]
//$tag .= "'width','".$height."',\n";
$tag .= "'width','".$width."',\n";
$tag .= "'height','".$height."',\n";

ดาวน์โหลด: FlashChat3.rar
ขออภัย! ท่านไม่สามารถเข้าถึงข้อมูลส่วนนี้ได้ กรุณาอ่าน เงื่อนไขการใช้งาน DexMore.Com

แตกไฟล์แล้วอัพโหลดไปไว้ที่
file Chat.php-->> $sourcedir
file Chat.template.php-->> $themedir
file dologout.php-->> $boarddir

ลิงค์หัวข้อ: http://dexmore.com/topic/2082
Windows XP    Firefox 3.6.3   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
โรงานปิดคิดฮอดน้อง
*



Thailand   ชาย ออฟไลน์http://facebook.com/tumla
icon message
general ความคิดเห็นที่ 3 เมื่อ: 7 ธันวาคม 2554, 17:13:34
$return['num_users'] = count($return['users']) + $return['hidden'];
$return['total_users'] = $return['num_users'] + $return['guests'];


ใน SMF 1.1.XX  โค้ดนี้ของผมหาไม่เจอ  ...  ไม่ทราบว่าต้องมีอะไรอีกหรือป่าว

ลิงค์หัวข้อ: http://dexmore.com/topic/2082
Windows XP    Firefox 8.0   see ip บันทึกการเข้า
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 4 เมื่อ: 7 ธันวาคม 2554, 17:25:12
อ้างถึง
*เฉพาะที่ติดตั้ง Googlebot & Spiders แล้วเท่านั้น

ติดตั้งแล้วหรือครับ

ลิงค์หัวข้อ: http://dexmore.com/topic/2082
Windows XP    Firefox 8.0   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
โรงานปิดคิดฮอดน้อง
*



Thailand   ชาย ออฟไลน์http://facebook.com/tumla
icon message
general ความคิดเห็นที่ 5 เมื่อ: 7 ธันวาคม 2554, 18:08:40
ติดตั้ง Flashchat แล้วครับ  ผมติดตั้งไว้  อีกที่ 1  เช่น www.youname.com/fchat.php  แบบนี้ครับ  ถ้าจะเอาไปใส่เหมือนภาพข้างบน ต้องไปทำตรงไหน

ลิงค์หัวข้อ: http://dexmore.com/topic/2082
Windows XP    Firefox 8.0   see ip บันทึกการเข้า
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 6 เมื่อ: 7 ธันวาคม 2554, 18:24:04
ขอดูสถานที่จริงครับ..

ลิงค์หัวข้อ: http://dexmore.com/topic/2082
Windows XP    Firefox 8.0   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
โรงานปิดคิดฮอดน้อง
*



Thailand   ชาย ออฟไลน์http://facebook.com/tumla
icon message
general ความคิดเห็นที่ 7 เมื่อ: 11 ธันวาคม 2554, 13:26:43
นี้ครับ http://soomhowfunglum.com/howchat/flashchat.php 

ลิงค์หัวข้อ: http://dexmore.com/topic/2082
Windows XP    Firefox 8.0   see ip บันทึกการเข้า
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 8 เมื่อ: 11 ธันวาคม 2554, 13:47:09
หมายถึง url SMF ของคุณครับ

แล้ว mod นี้มันเป็น Integrat สำหรับ SMF ใช้สำหรับติดตั้งร่วมกับ SMF นะครับ

ลิงค์หัวข้อ: http://dexmore.com/topic/2082
Windows XP    Firefox 8.0   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
โรงานปิดคิดฮอดน้อง
*



Thailand   ชาย ออฟไลน์http://facebook.com/tumla
icon message
general ความคิดเห็นที่ 9 เมื่อ: 11 ธันวาคม 2554, 13:48:41
ตามนี้ครับ      http://soomhowfunglum.com/board/index.php




ลิงค์หัวข้อ: http://dexmore.com/topic/2082
Windows XP    Firefox 8.0   see ip บันทึกการเข้า
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 10 เมื่อ: 11 ธันวาคม 2554, 13:56:19
คุณต้องติดตั้ง FlashChat ใน board นี่แหละครับ โดยกำหนดให้ใช้ฐานข้อมูลเดียวกันกับ board ของคุณ แล้วมาแก้ SMF ตามกระทู้ด้านบน

ลิงค์หัวข้อ: http://dexmore.com/topic/2082
Windows XP    Firefox 8.0   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
ส่งหัวข้อนี้พิมพ์ หน้า: 1 
กระโดดไป:  

Creative Commons License

SMF Thai Translation Powered by SMF © 2006–2012, Simple Machines LLC

WordPress Google เข้าเยี่ยมชมหน้านี้ล่าสุดเมื่อ : 16 พฤษภาคม 2555, 20:13:39

jQuery Plugin Copyright © 2551-2555 Themes Design & Hosting by DexMoreGroup

Sitemap | Thai Simple Machines Forum support SMF Thai

Web Begining | SMF Modifications | SMF Thai Translation Web Begining

Drupal | WordPress | CMS Joomla | jQuery Plugin | Web Graphics CMS Joomla