รายละเอียด เปลี่ยนการเลื่อนระดับสมาชิกจากการนับกระทู้มาเป็นการนับเวลาที่อยู่ในระบบ
สำหรับ SMF 1.1.xxแก้ไขไฟล์:file $sourcesdir/Subs.php
ค้นหา -->>
if ($parameter2 !== null && !in_array('posts', $parameter2))
แก้เป็น -->>
if ($parameter2 !== null && !in_array('totalTimeLoggedIn', $parameter2))
ค้นหา -->>
// 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;
}
แก้เป็น -->>
// 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 เสร็จแล้วลบทิ้ง
<?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