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

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

ส่งหัวข้อนี้พิมพ์ หน้า: 1 
icon message ผู้เขียน หัวข้อ: Ghost Members ผีออนไลน์  (อ่าน 1113 ครั้ง)
0 สมาชิก และ 2 ผู้เยี่ยมชม กำลังดูหัวข้อนี้
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general เมื่อ: 3 มีนาคม 2554, 19:49:56
  • ชื่อ: Ghost Members
  • ผู้เขียน: !!kaos!!
  • นำเสนอโดย: DexMoreGroup
  • ประเภท: New Feature
  • รองรับ: SMF 1.1.xx, 2.0.xx
  • ปรับปรุงล่าสุด: 14 มกราคม 2553
  • ต้นฉบับ: Ghost Members

รายละเอียด
      สร้างชื่อผีออนไลน์เพื่อทำให้ดูว่ามีผู้ใช้ออนไลน์มากๆ ไม่รู้ทำทำไมเหมือนกัน นอกจากหลอกคนอื่นแล้วยังหลอกตัวเองอีกต่างหาก แต่เอาเถอะใครทำแล้วสบายใจก็เอาโลด

ตัวอย่าง


สำหรับ SMF 1.1.xx

แก้ไขไฟล์:

file $sourcedir/ModSettings.php

ค้นหา -->>
โค๊ด: [Select]
$context['page_title'] = $txt['modSettings_title'];
$context['sub_template'] = 'show_settings';

$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',

แก้เป็น -->>
โค๊ด: [Select]
$context['page_title'] = $txt['modSettings_title'];
$context['sub_template'] = 'show_settings';

$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
'ghost' => 'ModifyGhostSettings',

โค๊ด: [Select]
'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
'is_last' => true,
),

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
'ghost' => array(
'title' => $txt['ghost_mem_mod'],
'href' => $scripturl . '?action=featuresettings;sa=ghost;sesc=' . $context['session_id'],
),

ค้นหา -->>
โค๊ด: [Select]
// Quick session check...
checkSession();

require_once($sourcedir . '/ManageServer.php');

$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',

แก้เป็น -->>
โค๊ด: [Select]
// Quick session check...
checkSession();

require_once($sourcedir . '/ManageServer.php');

$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
'ghost' => 'ModifyGhostSettings',

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

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
//Begin Ghost Members Mod By !!kaos!! www.simpledestek.com
function ModifyGhostSettings()
{
global $context, $txt, $scripturl, $modSettings;

       loadLanguage('Ghost');

$config_vars = array(
            array('check', 'allow_ghost'),
            array('text', 'ghost_total_members', &$txt['ghost_total_members'], 'ghost_total_members'),
array('text', 'ghost_mem_1', '10', &$txt['ghost_mem_1'], 'ghost_mem_1'),
array('text', 'ghost_mem_2', '10', &$txt['ghost_mem_2'], 'ghost_mem_2'),
array('text', 'ghost_mem_3', '10', &$txt['ghost_mem_3'], 'ghost_mem_3'),
array('text', 'ghost_mem_4', '10', &$txt['ghost_mem_4'], 'ghost_mem_4'),
array('text', 'ghost_mem_5', '10', &$txt['ghost_mem_5'], 'ghost_mem_5'),
array('text', 'ghost_mem_6', '10', &$txt['ghost_mem_6'], 'ghost_mem_6'),
array('text', 'ghost_mem_7', '10', &$txt['ghost_mem_7'], 'ghost_mem_7'),
array('text', 'ghost_mem_8', '10', &$txt['ghost_mem_8'], 'ghost_mem_8'),
array('text', 'ghost_mem_9', '10', &$txt['ghost_mem_9'], 'ghost_mem_9'),
array('text', 'ghost_mem_10', '10', &$txt['ghost_mem_10'], 'ghost_mem_10'),
array('text', 'ghost_mem_11', '10', &$txt['ghost_mem_11'], 'ghost_mem_11'),
array('text', 'ghost_mem_12', '10', &$txt['ghost_mem_12'], 'ghost_mem_12'),
array('text', 'ghost_mem_13', '10', &$txt['ghost_mem_13'], 'ghost_mem_13'),
array('text', 'ghost_mem_14', '10', &$txt['ghost_mem_14'], 'ghost_mem_14'),
array('text', 'ghost_mem_15', '10', &$txt['ghost_mem_15'], 'ghost_mem_15'),
array('text', 'ghost_mem_16', '10', &$txt['ghost_mem_16'], 'ghost_mem_16'),
array('text', 'ghost_mem_17', '10', &$txt['ghost_mem_17'], 'ghost_mem_17'),
array('text', 'ghost_mem_18', '10', &$txt['ghost_mem_18'], 'ghost_mem_18'),
array('text', 'ghost_mem_19', '10', &$txt['ghost_mem_19'], 'ghost_mem_19'),
array('text', 'ghost_mem_20', '10', &$txt['ghost_mem_20'], 'ghost_mem_20'),

'',
            $txt['ghost_mem_pro_title'],
'',
// Ghost members profile

array('int', 'ghost_pro_1', '10', &$txt['ghost_pro_1'], 'ghost_pro_1'),
array('int', 'ghost_pro_2', '10', &$txt['ghost_pro_2'], 'ghost_pro_2'),
array('int', 'ghost_pro_3', '10', &$txt['ghost_pro_3'], 'ghost_pro_3'),
array('int', 'ghost_pro_4', '10', &$txt['ghost_pro_4'], 'ghost_pro_4'),
array('int', 'ghost_pro_5', '10', &$txt['ghost_pro_5'], 'ghost_pro_5'),
array('int', 'ghost_pro_6', '10', &$txt['ghost_pro_6'], 'ghost_pro_6'),
array('int', 'ghost_pro_7', '10', &$txt['ghost_pro_7'], 'ghost_pro_7'),
array('int', 'ghost_pro_8', '10', &$txt['ghost_pro_8'], 'ghost_pro_8'),
array('int', 'ghost_pro_9', '10', &$txt['ghost_pro_9'], 'ghost_pro_9'),
array('int', 'ghost_pro_10', '10', &$txt['ghost_pro_10'], 'ghost_pro_10'),
array('int', 'ghost_pro_11', '10', &$txt['ghost_pro_11'], 'ghost_pro_11'),
array('int', 'ghost_pro_12', '10', &$txt['ghost_pro_12'], 'ghost_pro_12'),
array('int', 'ghost_pro_13', '10', &$txt['ghost_pro_13'], 'ghost_pro_13'),
array('int', 'ghost_pro_14', '10', &$txt['ghost_pro_14'], 'ghost_pro_14'),
array('int', 'ghost_pro_15', '10', &$txt['ghost_pro_15'], 'ghost_pro_15'),
array('int', 'ghost_pro_16', '10', &$txt['ghost_pro_16'], 'ghost_pro_16'),
array('int', 'ghost_pro_17', '10', &$txt['ghost_pro_17'], 'ghost_pro_17'),
array('int', 'ghost_pro_18', '10', &$txt['ghost_pro_18'], 'ghost_pro_18'),
array('int', 'ghost_pro_19', '10', &$txt['ghost_pro_19'], 'ghost_pro_19'),
array('int', 'ghost_pro_20', '10', &$txt['ghost_pro_20'], 'ghost_pro_20'),

);

// Saving?
if (isset($_GET['save']))
{

saveDBSettings($config_vars);
writeLog();

redirectexit('action=featuresettings;sa=ghost');
}

$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=ghost';
$context['settings_title'] = $txt['ghost_mem_mod'];
prepareDBSettingContext($config_vars);

}
//End Ghost Members Mod By !!kaos!! www.simpledestek.com

file $sourcedir/Subs.php

ค้นหา -->>
โค๊ด: [Select]
// Load the language and templates....
loadLanguage('Admin');

แก้เป็น -->>
โค๊ด: [Select]
// Load the language and templates....
loadLanguage('Admin');
      loadLanguage('Ghost');

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]
      if (!(empty($modSettings['ghost_total_members'])))
echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ', $ghostmember = ($context['num_guests'] + $modSettings['ghost_total_members']), ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], ' ';
      else
      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 '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
// Begin Ghost Members
if (!empty($modSettings['allow_ghost']))
{

if (!empty($modSettings['ghost_mem_1']))
echo ',&nbsp;<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_1'], '">', $modSettings['ghost_mem_1'], '</a>';
if (!empty($modSettings['ghost_mem_2']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_2'], '"> ', $modSettings['ghost_mem_2'], '</a>';
if (!empty($modSettings['ghost_mem_3']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_3'], '"> ', $modSettings['ghost_mem_3'], '</a>';
if (!empty($modSettings['ghost_mem_4']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_4'], '"> ', $modSettings['ghost_mem_4'], '</a>';
if (!empty($modSettings['ghost_mem_5']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_5'], '"> ', $modSettings['ghost_mem_5'], '</a>';
if (!empty($modSettings['ghost_mem_6']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_6'], '"> ', $modSettings['ghost_mem_6'], '</a>';
if (!empty($modSettings['ghost_mem_7']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_7'], '"> ', $modSettings['ghost_mem_7'], '</a>';
if (!empty($modSettings['ghost_mem_8']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_8'], '"> ', $modSettings['ghost_mem_8'], '</a>';
if (!empty($modSettings['ghost_mem_9']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_9'], '"> ', $modSettings['ghost_mem_9'], '</a>';
if (!empty($modSettings['ghost_mem_10']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_10'], '"> ', $modSettings['ghost_mem_10'], '</a>';
if (!empty($modSettings['ghost_mem_11']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_11'], '"> ', $modSettings['ghost_mem_11'], '</a>';
if (!empty($modSettings['ghost_mem_12']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_12'], '"> ', $modSettings['ghost_mem_12'], '</a>';
if (!empty($modSettings['ghost_mem_13']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_13'], '"> ', $modSettings['ghost_mem_13'], '</a>';
if (!empty($modSettings['ghost_mem_14']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_14'], '"> ', $modSettings['ghost_mem_14'], '</a>';
if (!empty($modSettings['ghost_mem_15']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_15'], '"> ', $modSettings['ghost_mem_15'], '</a>';
if (!empty($modSettings['ghost_mem_16']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_16'], '"> ', $modSettings['ghost_mem_16'], '</a>';
if (!empty($modSettings['ghost_mem_17']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_17'], '"> ', $modSettings['ghost_mem_17'], '</a>';
if (!empty($modSettings['ghost_mem_18']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_18'], '"> ', $modSettings['ghost_mem_18'], '</a>';
if (!empty($modSettings['ghost_mem_19']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_19'], '"> ', $modSettings['ghost_mem_19'], '</a>';
if (!empty($modSettings['ghost_mem_20']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_20'], '"> ', $modSettings['ghost_mem_20'], '</a>';
}
// End Ghost Members


file $languagesdir/Ghost.thai-utf8
โค๊ด: [Select]
<?php
// File Version: 1.0
// Ghost Members Mod By !!kaos!! www.simpledestek.com

//Begin Ghost Members Mod By !!kaos!! www.simpledestek.com
$txt['ghost_mem_mod'] = 'สมาชิกผี';
$txt['allow_ghost'] = 'เปิดใช้งานสมาชิกผี';
$txt['ghost_total_members'] = 'สมาชิกผีทั้งหมด';
$txt['ghost_mem_pro_title'] = 'หมายเลขสมาชิกผี';
$txt['ghost_mem_1'] = '<span class="smalltext">1. ชื่อผี</span>';
$txt['ghost_mem_2'] = '<span class="smalltext">2. ชื่อผี</span>';
$txt['ghost_mem_3'] = '<span class="smalltext">3. ชื่อผี</span>';
$txt['ghost_mem_4'] = '<span class="smalltext">4. ชื่อผี</span>';
$txt['ghost_mem_5'] = '<span class="smalltext">5. ชื่อผี</span>';
$txt['ghost_mem_6'] = '<span class="smalltext">6. ชื่อผี</span>';
$txt['ghost_mem_7'] = '<span class="smalltext">7. ชื่อผี</span>';
$txt['ghost_mem_8'] = '<span class="smalltext">8. ชื่อผี</span>';
$txt['ghost_mem_9'] = '<span class="smalltext">9. ชื่อผี</span>';
$txt['ghost_mem_10'] = '<span class="smalltext">10. ชื่อผี</span>';
$txt['ghost_mem_11'] = '<span class="smalltext">11. ชื่อผี</span>';
$txt['ghost_mem_12'] = '<span class="smalltext">12. ชื่อผี</span>';
$txt['ghost_mem_13'] = '<span class="smalltext">13. ชื่อผี</span>';
$txt['ghost_mem_14'] = '<span class="smalltext">14. ชื่อผี</span>';
$txt['ghost_mem_15'] = '<span class="smalltext">15. ชื่อผี</span>';
$txt['ghost_mem_16'] = '<span class="smalltext">16. ชื่อผี</span>';
$txt['ghost_mem_17'] = '<span class="smalltext">17. ชื่อผี</span>';
$txt['ghost_mem_18'] = '<span class="smalltext">18. ชื่อผี</span>';
$txt['ghost_mem_19'] = '<span class="smalltext">19. ชื่อผี</span>';
$txt['ghost_mem_20'] = '<span class="smalltext">20. ชื่อผี</span>';

//End Ghost Members Mod By !!kaos!! www.simpledestek.com

//Begin Ghost members profile

$txt['ghost_pro_1'] = '<span class="smalltext">1. หมายเลขผี</span>';
$txt['ghost_pro_2'] = '<span class="smalltext">2. หมายเลขผี</span>';
$txt['ghost_pro_3'] = '<span class="smalltext">3. หมายเลขผี</span>';
$txt['ghost_pro_4'] = '<span class="smalltext">4. หมายเลขผี</span>';
$txt['ghost_pro_5'] = '<span class="smalltext">5. หมายเลขผี</span>';
$txt['ghost_pro_6'] = '<span class="smalltext">6. หมายเลขผี</span>';
$txt['ghost_pro_7'] = '<span class="smalltext">7. หมายเลขผี</span>';
$txt['ghost_pro_8'] = '<span class="smalltext">8. หมายเลขผี</span>';
$txt['ghost_pro_9'] = '<span class="smalltext">9. หมายเลขผี</span>';
$txt['ghost_pro_10'] = '<span class="smalltext">10. หมายเลขผี</span>';
$txt['ghost_pro_11'] = '<span class="smalltext">11. หมายเลขผี</span>';
$txt['ghost_pro_12'] = '<span class="smalltext">12. หมายเลขผี</span>';
$txt['ghost_pro_13'] = '<span class="smalltext">13. หมายเลขผี</span>';
$txt['ghost_pro_14'] = '<span class="smalltext">14. หมายเลขผี</span>';
$txt['ghost_pro_15'] = '<span class="smalltext">15. หมายเลขผี</span>';
$txt['ghost_pro_16'] = '<span class="smalltext">16. หมายเลขผี</span>';
$txt['ghost_pro_17'] = '<span class="smalltext">17. หมายเลขผี</span>';
$txt['ghost_pro_18'] = '<span class="smalltext">18. หมายเลขผี</span>';
$txt['ghost_pro_19'] = '<span class="smalltext">19. หมายเลขผี</span>';
$txt['ghost_pro_20'] = '<span class="smalltext">20. หมายเลขผี</span>';

//End Ghost members profile

?>

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


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


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 1 เมื่อ: 3 มีนาคม 2554, 19:58:25
สำหรับ SMF 2.0.xx

แก้ไขไฟล์:

file $sourcedir/ManageSettings.php

ค้นหา -->>
โค๊ด: [Select]
// Load up all the tabs...
$context[$context['admin_menu_name']]['tab_data'] = array(
'title' => &$txt['admin_modifications'],
'help' => 'modsettings',
'description' => $txt['modification_settings_desc'],
'tabs' => array(
'general' => array(
),

แก้เป็น -->>
โค๊ด: [Select]
// Load up all the tabs...
$context[$context['admin_menu_name']]['tab_data'] = array(
'title' => &$txt['admin_modifications'],
'help' => 'modsettings',
'description' => $txt['modification_settings_desc'],
'tabs' => array(
'general' => array(
),
                  'ghost' => array(
'title' => $txt['ghost_mem_mod'],
),

ค้นหา -->>
โค๊ด: [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]
            'ghost' => 'ModifyGhostSettings',
// 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]
?>

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
//Begin Ghost Members Mod By !!kaos!! www.simpledestek.com
function ModifyGhostSettings()
{
global $context, $txt, $scripturl, $modSettings;

       loadLanguage('Ghost');

$config_vars = array(
            array('check', 'allow_ghost'),
            array('text', 'ghost_total_members', &$txt['ghost_total_members'], 'ghost_total_members'),
array('text', 'ghost_mem_1', '10', &$txt['ghost_mem_1'], 'ghost_mem_1'),
array('text', 'ghost_mem_2', '10', &$txt['ghost_mem_2'], 'ghost_mem_2'),
array('text', 'ghost_mem_3', '10', &$txt['ghost_mem_3'], 'ghost_mem_3'),
array('text', 'ghost_mem_4', '10', &$txt['ghost_mem_4'], 'ghost_mem_4'),
array('text', 'ghost_mem_5', '10', &$txt['ghost_mem_5'], 'ghost_mem_5'),
array('text', 'ghost_mem_6', '10', &$txt['ghost_mem_6'], 'ghost_mem_6'),
array('text', 'ghost_mem_7', '10', &$txt['ghost_mem_7'], 'ghost_mem_7'),
array('text', 'ghost_mem_8', '10', &$txt['ghost_mem_8'], 'ghost_mem_8'),
array('text', 'ghost_mem_9', '10', &$txt['ghost_mem_9'], 'ghost_mem_9'),
array('text', 'ghost_mem_10', '10', &$txt['ghost_mem_10'], 'ghost_mem_10'),
array('text', 'ghost_mem_11', '10', &$txt['ghost_mem_11'], 'ghost_mem_11'),
array('text', 'ghost_mem_12', '10', &$txt['ghost_mem_12'], 'ghost_mem_12'),
array('text', 'ghost_mem_13', '10', &$txt['ghost_mem_13'], 'ghost_mem_13'),
array('text', 'ghost_mem_14', '10', &$txt['ghost_mem_14'], 'ghost_mem_14'),
array('text', 'ghost_mem_15', '10', &$txt['ghost_mem_15'], 'ghost_mem_15'),
array('text', 'ghost_mem_16', '10', &$txt['ghost_mem_16'], 'ghost_mem_16'),
array('text', 'ghost_mem_17', '10', &$txt['ghost_mem_17'], 'ghost_mem_17'),
array('text', 'ghost_mem_18', '10', &$txt['ghost_mem_18'], 'ghost_mem_18'),
array('text', 'ghost_mem_19', '10', &$txt['ghost_mem_19'], 'ghost_mem_19'),
array('text', 'ghost_mem_20', '10', &$txt['ghost_mem_20'], 'ghost_mem_20'),

'',
            $txt['ghost_mem_pro_title'],
'',
// Ghost members profile

array('int', 'ghost_pro_1', '10', &$txt['ghost_pro_1'], 'ghost_pro_1'),
array('int', 'ghost_pro_2', '10', &$txt['ghost_pro_2'], 'ghost_pro_2'),
array('int', 'ghost_pro_3', '10', &$txt['ghost_pro_3'], 'ghost_pro_3'),
array('int', 'ghost_pro_4', '10', &$txt['ghost_pro_4'], 'ghost_pro_4'),
array('int', 'ghost_pro_5', '10', &$txt['ghost_pro_5'], 'ghost_pro_5'),
array('int', 'ghost_pro_6', '10', &$txt['ghost_pro_6'], 'ghost_pro_6'),
array('int', 'ghost_pro_7', '10', &$txt['ghost_pro_7'], 'ghost_pro_7'),
array('int', 'ghost_pro_8', '10', &$txt['ghost_pro_8'], 'ghost_pro_8'),
array('int', 'ghost_pro_9', '10', &$txt['ghost_pro_9'], 'ghost_pro_9'),
array('int', 'ghost_pro_10', '10', &$txt['ghost_pro_10'], 'ghost_pro_10'),
array('int', 'ghost_pro_11', '10', &$txt['ghost_pro_11'], 'ghost_pro_11'),
array('int', 'ghost_pro_12', '10', &$txt['ghost_pro_12'], 'ghost_pro_12'),
array('int', 'ghost_pro_13', '10', &$txt['ghost_pro_13'], 'ghost_pro_13'),
array('int', 'ghost_pro_14', '10', &$txt['ghost_pro_14'], 'ghost_pro_14'),
array('int', 'ghost_pro_15', '10', &$txt['ghost_pro_15'], 'ghost_pro_15'),
array('int', 'ghost_pro_16', '10', &$txt['ghost_pro_16'], 'ghost_pro_16'),
array('int', 'ghost_pro_17', '10', &$txt['ghost_pro_17'], 'ghost_pro_17'),
array('int', 'ghost_pro_18', '10', &$txt['ghost_pro_18'], 'ghost_pro_18'),
array('int', 'ghost_pro_19', '10', &$txt['ghost_pro_19'], 'ghost_pro_19'),
array('int', 'ghost_pro_20', '10', &$txt['ghost_pro_20'], 'ghost_pro_20'),

);

// Saving?
if (isset($_GET['save']))
{

saveDBSettings($config_vars);
writeLog();

redirectexit('action=admin;area=modsettings;sa=ghost');
}

$context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=ghost';
$context['settings_title'] = $txt['ghost_mem_mod'];
prepareDBSettingContext($config_vars);

}
//End Ghost Members Mod By !!kaos!! www.simpledestek.com

file $sourcedir/Admin.php

ค้นหา -->>
โค๊ด: [Select]
'general' => array($txt['mods_cat_modifications_misc']),

แก้เป็น -->>
โค๊ด: [Select]
'general' => array($txt['mods_cat_modifications_misc']),
                                    'ghost' => array(loadlanguage('Ghost') == false ? 'Ghost' : $txt['ghost_mem_mod']),

file $themedir/BoardIndex.template.php

ค้นหา -->>
โค๊ด: [Select]
<div class="windowbg2 sectionbody">
', $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]
<div class="windowbg2 sectionbody">';
if (!(empty($modSettings['ghost_total_members'])))
echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ', $ghostmember = ($context['num_guests'] + $modSettings['ghost_total_members']), ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], ' ';
      else
      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]
<br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']';

แก้เป็น -->>
โค๊ด: [Select]
<br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']';

// Begin Ghost Members
if (!empty($modSettings['allow_ghost']))
{

if (!empty($modSettings['ghost_mem_1']))
echo ',&nbsp;<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_1'], '">', $modSettings['ghost_mem_1'], '</a>';
if (!empty($modSettings['ghost_mem_2']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_2'], '"> ', $modSettings['ghost_mem_2'], '</a>';
if (!empty($modSettings['ghost_mem_3']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_3'], '"> ', $modSettings['ghost_mem_3'], '</a>';
if (!empty($modSettings['ghost_mem_4']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_4'], '"> ', $modSettings['ghost_mem_4'], '</a>';
if (!empty($modSettings['ghost_mem_5']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_5'], '"> ', $modSettings['ghost_mem_5'], '</a>';
if (!empty($modSettings['ghost_mem_6']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_6'], '"> ', $modSettings['ghost_mem_6'], '</a>';
if (!empty($modSettings['ghost_mem_7']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_7'], '"> ', $modSettings['ghost_mem_7'], '</a>';
if (!empty($modSettings['ghost_mem_8']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_8'], '"> ', $modSettings['ghost_mem_8'], '</a>';
if (!empty($modSettings['ghost_mem_9']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_9'], '"> ', $modSettings['ghost_mem_9'], '</a>';
if (!empty($modSettings['ghost_mem_10']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_10'], '"> ', $modSettings['ghost_mem_10'], '</a>';
if (!empty($modSettings['ghost_mem_11']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_11'], '"> ', $modSettings['ghost_mem_11'], '</a>';
if (!empty($modSettings['ghost_mem_12']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_12'], '"> ', $modSettings['ghost_mem_12'], '</a>';
if (!empty($modSettings['ghost_mem_13']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_13'], '"> ', $modSettings['ghost_mem_13'], '</a>';
if (!empty($modSettings['ghost_mem_14']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_14'], '"> ', $modSettings['ghost_mem_14'], '</a>';
if (!empty($modSettings['ghost_mem_15']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_15'], '"> ', $modSettings['ghost_mem_15'], '</a>';
if (!empty($modSettings['ghost_mem_16']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_16'], '"> ', $modSettings['ghost_mem_16'], '</a>';
if (!empty($modSettings['ghost_mem_17']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_17'], '"> ', $modSettings['ghost_mem_17'], '</a>';
if (!empty($modSettings['ghost_mem_18']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_18'], '"> ', $modSettings['ghost_mem_18'], '</a>';
if (!empty($modSettings['ghost_mem_19']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_19'], '"> ', $modSettings['ghost_mem_19'], '</a>';
if (!empty($modSettings['ghost_mem_20']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_20'], '"> ', $modSettings['ghost_mem_20'], '</a>';
}
// End Ghost Members


file $languagesdir/Ghost.thai-utf8
โค๊ด: [Select]
<?php
// File Version: 1.0
// Ghost Members Mod By !!kaos!! www.simpledestek.com

//Begin Ghost Members Mod By !!kaos!! www.simpledestek.com
$txt['ghost_mem_mod'] = 'สมาชิกผี';
$txt['allow_ghost'] = 'เปิดใช้งานสมาชิกผี';
$txt['ghost_total_members'] = 'สมาชิกผีทั้งหมด';
$txt['ghost_mem_pro_title'] = 'หมายเลขสมาชิกผี';
$txt['ghost_mem_1'] = '<span class="smalltext">1. ชื่อผี</span>';
$txt['ghost_mem_2'] = '<span class="smalltext">2. ชื่อผี</span>';
$txt['ghost_mem_3'] = '<span class="smalltext">3. ชื่อผี</span>';
$txt['ghost_mem_4'] = '<span class="smalltext">4. ชื่อผี</span>';
$txt['ghost_mem_5'] = '<span class="smalltext">5. ชื่อผี</span>';
$txt['ghost_mem_6'] = '<span class="smalltext">6. ชื่อผี</span>';
$txt['ghost_mem_7'] = '<span class="smalltext">7. ชื่อผี</span>';
$txt['ghost_mem_8'] = '<span class="smalltext">8. ชื่อผี</span>';
$txt['ghost_mem_9'] = '<span class="smalltext">9. ชื่อผี</span>';
$txt['ghost_mem_10'] = '<span class="smalltext">10. ชื่อผี</span>';
$txt['ghost_mem_11'] = '<span class="smalltext">11. ชื่อผี</span>';
$txt['ghost_mem_12'] = '<span class="smalltext">12. ชื่อผี</span>';
$txt['ghost_mem_13'] = '<span class="smalltext">13. ชื่อผี</span>';
$txt['ghost_mem_14'] = '<span class="smalltext">14. ชื่อผี</span>';
$txt['ghost_mem_15'] = '<span class="smalltext">15. ชื่อผี</span>';
$txt['ghost_mem_16'] = '<span class="smalltext">16. ชื่อผี</span>';
$txt['ghost_mem_17'] = '<span class="smalltext">17. ชื่อผี</span>';
$txt['ghost_mem_18'] = '<span class="smalltext">18. ชื่อผี</span>';
$txt['ghost_mem_19'] = '<span class="smalltext">19. ชื่อผี</span>';
$txt['ghost_mem_20'] = '<span class="smalltext">20. ชื่อผี</span>';

//End Ghost Members Mod By !!kaos!! www.simpledestek.com

//Begin Ghost members profile

$txt['ghost_pro_1'] = '<span class="smalltext">1. หมายเลขผี</span>';
$txt['ghost_pro_2'] = '<span class="smalltext">2. หมายเลขผี</span>';
$txt['ghost_pro_3'] = '<span class="smalltext">3. หมายเลขผี</span>';
$txt['ghost_pro_4'] = '<span class="smalltext">4. หมายเลขผี</span>';
$txt['ghost_pro_5'] = '<span class="smalltext">5. หมายเลขผี</span>';
$txt['ghost_pro_6'] = '<span class="smalltext">6. หมายเลขผี</span>';
$txt['ghost_pro_7'] = '<span class="smalltext">7. หมายเลขผี</span>';
$txt['ghost_pro_8'] = '<span class="smalltext">8. หมายเลขผี</span>';
$txt['ghost_pro_9'] = '<span class="smalltext">9. หมายเลขผี</span>';
$txt['ghost_pro_10'] = '<span class="smalltext">10. หมายเลขผี</span>';
$txt['ghost_pro_11'] = '<span class="smalltext">11. หมายเลขผี</span>';
$txt['ghost_pro_12'] = '<span class="smalltext">12. หมายเลขผี</span>';
$txt['ghost_pro_13'] = '<span class="smalltext">13. หมายเลขผี</span>';
$txt['ghost_pro_14'] = '<span class="smalltext">14. หมายเลขผี</span>';
$txt['ghost_pro_15'] = '<span class="smalltext">15. หมายเลขผี</span>';
$txt['ghost_pro_16'] = '<span class="smalltext">16. หมายเลขผี</span>';
$txt['ghost_pro_17'] = '<span class="smalltext">17. หมายเลขผี</span>';
$txt['ghost_pro_18'] = '<span class="smalltext">18. หมายเลขผี</span>';
$txt['ghost_pro_19'] = '<span class="smalltext">19. หมายเลขผี</span>';
$txt['ghost_pro_20'] = '<span class="smalltext">20. หมายเลขผี</span>';

//End Ghost members profile

?>

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



Thailand   ชาย ออฟไลน์
icon message
general ความคิดเห็นที่ 2 เมื่อ: 13 ตุลาคม 2554, 09:10:46
ถามเรื่อง Ghost Members  ของผม smf v2 rc5 มีอยู่คำสั่งหนึ่ง
ที่แก้ BoardIndex.template.php ตรง
ค้นหา                <div class="windowbg2 sectionbody">
                  ', $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'];

   ของผมไม่มีครับ ของผมเป็น

// "Users online" - in order of activity.
   echo '
         <div class="title_barIC">
            <h4 class="titlebg">
               <span class="ie6_header floatleft">
                  ', $context['show_who'] ? '<a href="' . $scripturl . '?action=who' . '">' : '', '<img class="icon" src="', $settings['images_url'], '/icons/online.png', '" alt="', $txt['online_users'], '" />', $context['show_who'] ? '</a>' : '', '
                  ', $txt['online_users'], '
               </span>
            </h4>
         </div>
         <p class="inline stats">
            ', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', comma_format($context['num_guests']), ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . comma_format($context['num_users_online']), ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
แก้ยังไงครับ
ขอบคุณครับ

ลิงค์หัวข้อ: http://dexmore.com/topic/5121
Windows XP    Firefox 7.0.1   see ip บันทึกการเข้า
โฮสต์ดีๆ บริการด้วยใจ
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 3 เมื่อ: 13 ตุลาคม 2554, 09:29:19
โค้ดนี้ครับ
โค๊ด: [Select]
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', comma_format($context['num_guests']), ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . comma_format($context['num_users_online']), ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];

แทนด้วยโค้ดนี้
โค๊ด: [Select]
if (!(empty($modSettings['ghost_total_members'])))
echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ', $ghostmember = ($context['num_guests'] + $modSettings['ghost_total_members']), ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], ' ';
      else
      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'], ' ';

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



Thailand   ชาย ออฟไลน์
icon message
general ความคิดเห็นที่ 4 เมื่อ: 13 ตุลาคม 2554, 10:19:19
ไม่ได้ครับ ขึ้น
Template เกิดข้อผิดพลาด!
There was a problem loading the \Themes\TotallyPro/BoardIndex.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.



ลิงค์หัวข้อ: http://dexmore.com/topic/5121
Windows XP    Firefox 7.0.1   see ip บันทึกการเข้า
โฮสต์ดีๆ บริการด้วยใจ
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 5 เมื่อ: 13 ตุลาคม 2554, 10:50:08
วางอย่างไรครับ..

กรุณาให้ข้อมูลให้ชัดเจนหน่อยครับ ปัญหาแบบนี้ไม่ใช่นั่งเทียนตอบได้ ข้อผิดพลาดและข้อความที่แจ้งนั่นเป็นผล แต่เหตุจากการวางโค้ดถ้าจะแก้มันต้องที่เหตุครับ

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



Thailand   ชาย ออฟไลน์
icon message
general ความคิดเห็นที่ 6 เมื่อ: 13 ตุลาคม 2554, 11:01:45
ได้แล้วครับ แก้ไปแก้มาได้แล้วอันนั้น แต่ตรงรายชือผมอยากให้ไปอยู่ตรงที่ชือผู้ออนไลน์ ตามรูปครับ แต่งง มันไม่ยอมรวมกับ ผมด้วยครับ เช่นเราให้ออนไลน์10 มันก็ 10ไม่ยอมบวกผมด้วย ผมลืมอับรูป เลยไม่มีรูป จะอับรูปใหม่ แต่บอกรอพรุ่งนี้ครับ

ลิงค์หัวข้อ: http://dexmore.com/topic/5121
« แก้ไขครั้งสุดท้าย: 13 ตุลาคม 2554, 11:09:46 โดย it-ty » Windows XP    Firefox 7.0.1   see ip บันทึกการเข้า
โฮสต์ดีๆ บริการด้วยใจ
ส่งหัวข้อนี้พิมพ์ หน้า: 1 
กระโดดไป:  

Creative Commons License

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

WordPress Google เข้าเยี่ยมชมหน้านี้ล่าสุดเมื่อ : 17 พฤษภาคม 2555, 00:44:44

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