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

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

ส่งหัวข้อนี้พิมพ์ หน้า: 1 
icon message ผู้เขียน หัวข้อ: Ranks based on Time Online เลื่อนระดับด้วยเวลาที่อยู่ในระบบ  (อ่าน 1004 ครั้ง)
0 สมาชิก และ 1 ผู้เยี่ยมชม กำลังดูหัวข้อนี้
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
  • ชื่อ: Ranks based on Time Online instead of Post Count
  • ผู้เขียน: Brettflan
  • นำเสนอโดย: DexMoreGroup
  • ประเภท: Profile
  • รองรับ: SMF 1.1.xx, 2.0.xx
  • ปรับปรุงล่าสุด: 17 มีนาคม 2553
  • ต้นฉบับ: Ranks based on Time Online instead of Post Count

รายละเอียด
      เปลี่ยนการเลื่อนระดับสมาชิกจากการนับกระทู้มาเป็นการนับเวลาที่อยู่ในระบบ

สำหรับ SMF 1.1.xx

แก้ไขไฟล์:

file $sourcesdir/Subs.php

ค้นหา -->>
โค๊ด: [Select]
if ($parameter2 !== null && !in_array('posts', $parameter2))

แก้เป็น -->>
โค๊ด: [Select]
if ($parameter2 !== null && !in_array('totalTimeLoggedIn', $parameter2))

ค้นหา -->>
โค๊ด: [Select]
// Set all membergroups from most posts to least posts.
$conditions = '';
foreach ($postgroups as $id => $minPosts)
{
$conditions .= '
WHEN posts >= ' . $minPosts . (!empty($lastMin) ? ' AND posts <= ' . $lastMin : '') . ' THEN ' . $id;
$lastMin = $minPosts;
}

แก้เป็น -->>
โค๊ด: [Select]
// Set all membergroups from most time spent online to least time spent online.
$conditions = '';
foreach ($postgroups as $id => $min_hours)
{
$conditions .= '
WHEN totalTimeLoggedIn >= ' . ($min_hours * 3600) . (!empty($lastMin) ? ' AND totalTimeLoggedIn <= ' . ($lastMin * 3600) : '') . ' THEN ' . $id;
$lastMin = $min_hours;
}

file $languagedir/ManageMembers.thai-utf8.php

เพิ่ม -->>
ขออภัย! ท่านไม่สามารถเข้าถึงข้อมูลส่วนนี้ได้ กรุณาอ่าน เงื่อนไขการใช้งาน DexMore.Com

สร้างไฟล์: rfto_db.php เพื่อสร้างฐานข้อมูล ไว้ใน $boarddir (ที่เดียวกับไฟล์ SSI.php) รัน http://www.your_url.xxx/$boarddir/rfto_db.php -->> Enter เสร็จแล้วลบทิ้ง
โค๊ด: [Select]
<?php

// 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.');


// All we're actually doing here is updating the post group (now "time spent online" based instead) for every member
updateStats('postgroups');

?>



การตั้งค่า: ผู้ดูแล -->> แก้ไขกลุ่มของสมาชิก -->> กลุ่มสมาชิก [แก้ไข] -->> จำนวนชั่วโมงที่ต้องการ [xx]

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


!Personal

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

แก้ไขไฟล์:

file $sourcesdir/Subs.php

ค้นหา -->>
โค๊ด: [Select]
if ($parameter2 !== null && !in_array('posts', $parameter2))

แก้เป็น -->>
โค๊ด: [Select]
if ($parameter2 !== null && !in_array('total_time_logged_in', $parameter2))

ค้นหา -->>
โค๊ด: [Select]
// Set all membergroups from most posts to least posts.
$conditions = '';
foreach ($postgroups as $id => $min_posts)
{
$conditions .= '
WHEN posts >= ' . $min_posts . (!empty($lastMin) ? ' AND posts <= ' . $lastMin : '') . ' THEN ' . $id;
$lastMin = $min_posts;
}

แก้เป็น -->>
โค๊ด: [Select]
// Set all membergroups from most time spent online to least time spent online.
$conditions = '';
foreach ($postgroups as $id => $min_hours)
{
$conditions .= '
WHEN total_time_logged_in >= ' . ($min_hours * 3600) . (!empty($lastMin) ? ' AND total_time_logged_in <= ' . ($lastMin * 3600) : '') . ' THEN ' . $id;
$lastMin = $min_hours;
}

file $languagedir/ManageMembers.thai-utf8.php

เพิ่ม -->>
ขออภัย! ท่านไม่สามารถเข้าถึงข้อมูลส่วนนี้ได้ กรุณาอ่าน เงื่อนไขการใช้งาน DexMore.Com

สร้างไฟล์: rfto_db.php เพื่อสร้างฐานข้อมูล ไว้ใน $boarddir (ที่เดียวกับไฟล์ SSI.php) รัน http://www.your_url.xxx/$boarddir/rfto_db.php -->> Enter เสร็จแล้วลบทิ้ง
โค๊ด: [Select]
<?php

// 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.');


// All we're actually doing here is updating the post group (now "time spent online" based instead) for every member
updateStats('postgroups');

?>



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

Creative Commons License

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

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

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