เป็นระบบที่ ให้คะแนนสำหรับผู้แจ้งปัญหาใน web เข้ามา
พัฒนาโดย : Nelsaidi
Version : 1.2
phpBB Version(s) : phpBB 3.0.10 3.0.11
ดาวน์โหลดได้ที่ : https://www.phpbb.com/community/viewtop ... nfractions ขั่นตอนติดตั้ง
เปิดไฟล์ includes/constants.php
ค้นหา
โค้ด: เลือกทั้งหมด
define('ZEBRA_TABLE', $table_prefix . 'zebra');
โค้ด: เลือกทั้งหมด
define('INFRACTIONS_TABLE', $table_prefix . 'infractions');
define('INFRACTION_TEMPLATES_TABLE', $table_prefix . 'infraction_templates');
ค้นหา
โค้ด: เลือกทั้งหมด
<!-- IF postrow.U_WARN --><li class="warn-icon"><a href="{postrow.U_WARN}" title="{L_WARN_USER}"><span>{L_WARN_USER}</span></a></li><!-- ENDIF -->
โค้ด: เลือกทั้งหมด
<!-- IF postrow.U_ISSUE_INFRACTION --><li class="warn-icon"><a href="{postrow.U_ISSUE_INFRACTION}" title="{L_ISSUE_INFRACTION}"><span>{L_ISSUE_INFRACTION}</span></a></li><!-- ENDIF -->
ค้นหา
โค้ด: เลือกทั้งหมด
'U_WARN' => ($auth->acl_get('m_warn') && $poster_id != $user->data['user_id'] && $poster_id != ANONYMOUS) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=warn&mode=warn_post&f=' . $forum_id . '&p=' . $row['post_id'], true, $user->session_id) : '',
โค้ด: เลือกทั้งหมด
'U_ISSUE_INFRACTION' => ($auth->acl_get('m_infractions_issue') && $poster_id != $user->data['user_id'] && $poster_id != ANONYMOUS) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=infractions&mode=issue&post_id=' . $row['post_id']) : '',
ค้นหา
โค้ด: เลือกทั้งหมด
'WARNINGS' => isset($data['user_warnings']) ? $data['user_warnings'] : 0,
โค้ด: เลือกทั้งหมด
'INFRACTION_POINTS' => $data['infraction_points'],
แทนที่
โค้ด: เลือกทั้งหมด
'U_ISSUE_INFRACTION' => ($auth->acl_get('m_infractions_issue')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=infractions&mode=issue&user_id=' . $user_id) : '',
'U_VIEW_INFRACTIONS' => ($auth->acl_get('m_infractions')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=infractions&mode=view&user_id=' . $user_id) : '',
ค้นหา
โค้ด: เลือกทั้งหมด
<dt>{L_WARNINGS}: </dt>
โค้ด: เลือกทั้งหมด
<dt>{L_INFRACTION_POINTS}: </dt>
โค้ด: เลือกทั้งหมด
<dd><strong>{WARNINGS}</strong><!-- IF U_NOTES or U_WARN --> [ <!-- IF U_NOTES --><a href="{U_NOTES}">{L_VIEW_NOTES}</a><!-- ENDIF --> <!-- IF U_WARN --><!-- IF U_NOTES --> | <!-- ENDIF --><a href="{U_WARN}">{L_WARN_USER}</a><!-- ENDIF --> ]<!-- ENDIF --></dd>
โค้ด: เลือกทั้งหมด
<dd><strong>{INFRACTION_POINTS}</strong><!-- IF U_NOTES --> [<a href="{U_NOTES}">{L_VIEW_NOTES}</a>]<!-- ENDIF --><!-- IF U_ISSUE_INFRACTION --> [<a href="{U_ISSUE_INFRACTION}">{L_ISSUE_INFRACTION}</a>]<!-- ENDIF --><!-- IF U_VIEW_INFRACTIONS --> [<a href="{U_VIEW_INFRACTIONS}">{L_VIEW_INFRACTION}</a>]<!-- ENDIF --> </dd>
ค้นหา
โค้ด: เลือกทั้งหมด
$this->add_lang($lang_set);
โค้ด: เลือกทั้งหมด
$this->add_lang('infractions');
include_once($phpbb_root_path . 'includes/functions_infractions.' . $phpEx);
if(isset($config['infractions_installed']))
{
clear_expired_infractions($this->data['user_id']);
}
โค้ด: เลือกทั้งหมด
infractions_umil.php