[RC] Forum Goal แสดง สถิตการเข้าชมกระทู้ต่างๆ

แนะนำ Mod ต่างๆ ของ PHPBB3 แนะนำความสามารถ ของ mod การติดตั้ง การเข้ากันได้กับเวอร์ชั่น

Moderator: mindphp

ภาพประจำตัวสมาชิก
M004
PHP VIP Members
PHP VIP Members
โพสต์: 1323
ลงทะเบียนเมื่อ: 01/01/1970 7:00 am

[RC] Forum Goal แสดง สถิตการเข้าชมกระทู้ต่างๆ

โพสต์ที่ยังไม่ได้อ่าน โดย M004 »

รายละเอียดเกี่ยวกับ [RC] Forum Goal แสดง สถิตการเข้าชมกระทู้ต่างๆ
พัฒนาโดย : Stoker 4.0
Version : 1.0.1
phpBB Version(s) : phpBB 3.0.11
ดาวน์โหลดได้ที่ : https://www.phpbb.com/community/viewtop ... &t=2144743
1.png
1.png (32.79 KiB) Viewed 856 times
2.png
2.png (57.65 KiB) Viewed 856 times
เปิดไฟล์ includes/acp/acp_board.php
ค้นหา

โค้ด: เลือกทั้งหมด

                        'legend2'                => 'ACP_LOAD_SETTINGS', 
เติมก่อน

โค้ด: เลือกทั้งหมด

                        // BEGIN Forum Goals
                        'legend4'                        => 'FORUM_GOALS_SETTINGS',
                        'forum_goals_display_top'        => array('lang' => 'FGDT_ENABLE',    'validate' => 'bool',    'type' => 'radio:yes_no', 'explain' => false),
                        'forum_goals_display_bottom'    => array('lang' => 'FGDB_ENABLE',    'validate' => 'bool',    'type' => 'radio:yes_no', 'explain' => false),
                        'forum_goals_posts_enable'        => array('lang' => 'FGP_ENABLE',    'validate' => 'bool',    'type' => 'radio:yes_no', 'explain' => false),
                        'forum_goals_posts'                => array('lang' => 'FGP_NUMBER',    'validate' => 'int',       'type' => 'text:15:8', 'explain' => false),
                        'forum_goals_topics_enable'        => array('lang' => 'FGT_ENABLE',    'validate' => 'bool',    'type' => 'radio:yes_no', 'explain' => false),
                        'forum_goals_topics'            => array('lang' => 'FGT_NUMBER',    'validate' => 'int',       'type' => 'text:15:8', 'explain' => false),
                        'forum_goals_users_enable'        => array('lang' => 'FUG_ENABLE',    'validate' => 'bool',    'type' => 'radio:yes_no', 'explain' => false),
                        'forum_goals_users'                => array('lang' => 'FUG_NUMBER',    'validate' => 'int',       'type' => 'text:15:8', 'explain' => false),
                        'forum_goals_files_enable'        => array('lang' => 'FFG_ENABLE',    'validate' => 'bool',    'type' => 'radio:yes_no', 'explain' => false),
                        'forum_goals_files'                => array('lang' => 'FFG_NUMBER',    'validate' => 'int',       'type' => 'text:15:8', 'explain' => false),
                        'forum_goals_views_enable'        => array('lang' => 'FTVG_ENABLE',    'validate' => 'bool',    'type' => 'radio:yes_no', 'explain' => false),
                        'forum_goals_views'                => array('lang' => 'FTVG_NUMBER',    'validate' => 'int',       'type' => 'text:15:8', 'explain' => false),
                        'forum_goals_gallery_enable'    => array('lang' => 'FGG_ENABLE',    'validate' => 'bool',    'type' => 'radio:yes_no', 'explain' => false),
                        'forum_goals_gallery'            => array('lang' => 'FGG_NUMBER',    'validate' => 'int',       'type' => 'text:15:8', 'explain' => false),
                        // END Forum Goals 
เปิดไฟล์ language/en/acp/board.php
ค้นหา

โค้ด: เลือกทั้งหมด

    'BOARD_PM_EXPLAIN'            => 'Enable private messaging for all users.', 
เติมหลัง

โค้ด: เลือกทั้งหมด

    // BEGIN Forum Goals
    'FORUM_GOALS_SETTINGS'         => 'Forum Goal Settings',
    'FGDT_ENABLE'                 => 'Display Forum Goals at the top of forum index',
    'FGDB_ENABLE'                 => 'Display Forum Goals at the bottom of forum index',
    'FGP_ENABLE'                 => 'Enable or disable Forum Post Goal',
    'FGP_NUMBER'                => 'Set the goal for Forum Posts',
    'FGT_ENABLE'                 => 'Enable or disable Forum Topic Goal',
    'FGT_NUMBER'                => 'Set the goal for Forum Topics',
    'FUG_ENABLE'                 => 'Enable or disable Forum User Goal',
    'FUG_NUMBER'                => 'Set the goal for Forum Users',
    'FFG_ENABLE'                 => 'Enable or disable Forum File Goal',
    'FFG_NUMBER'                => 'Set the goal for Forum Files (Attachments)',
    'FTVG_ENABLE'                 => 'Enable or disable Forum Views Goal',
    'FTVG_NUMBER'                => 'Set the goal for Forum Views',
    'FGG_ENABLE'                 => 'Enable or disable Forum Image Goal',
    'FGG_NUMBER'                => 'Set the goal for Forum Images (phpBB Gallery ADDON)',
    // END Forum Goals 
เปิดไฟล์ language/en/common.php
ค้นหา เติมก่อน

โค้ด: เลือกทั้งหมด

// BEGIN Forum Goal
$lang = array_merge($lang, array(
    'FORUM_GOALS'                => 'Forum Goals',
    'TOTAL_FORUM_POST_GOAL'        => 'Post goal',
    'GOAL_REMAINING'            => 'Remaining',
    'GOAL_REMAINING_ZERO'        => 'Goal reached!',
    'TOTAL_FORUM_TOPIC_GOAL'    => 'Topic goal',
    'TOTAL_FORUM_USER_GOAL'        => 'User goal',
    'TOTAL_FORUM_FILES_GOAL'    => 'File goal',
    'TOTAL_FORUM_GALLERY_GOAL'    => 'Image goal',
    'TOTAL_FILES_OTHER'            => 'Total files <strong>%d</strong>',
    'TOTAL_FILES_ZERO'            => 'Total files <strong>0</strong>',
    'TOTAL_FORUM_VIEW_GOAL'        => 'Views goal',
    'TOTAL_FORUM_VIEWS'            => 'Total views',
    'TOTAL_FORUM_DONATION_GOAL'        => 'Donation goal',
    'TOTAL_FORUM_DONATIONS'            => 'Total donations',
));
// END Forum Goal 
เปิดไฟล์ styles/prosilver/template/index_body.html
ค้นหา

โค้ด: เลือกทั้งหมด

<!-- INCLUDE forumlist_body.html -->
เติมก่อน

โค้ด: เลือกทั้งหมด

<!-- IF FORUM_GOAL_TOP and (FPG_ENABLE or FTG_ENABLE or FUG_ENABLE or FFG_ENABLE or FGG_ENABLE or FVG_ENABLE or FTVG_ENABLE) -->
<!-- INCLUDE forum_goal_body.html -->
<!-- ENDIF -->
เติมหลัง

โค้ด: เลือกทั้งหมด

<!-- IF FORUM_GOAL_BOTTOM and (FPG_ENABLE or FTG_ENABLE or FUG_ENABLE or FFG_ENABLE or FGG_ENABLE or FVG_ENABLE or FTVG_ENABLE) -->
<!-- INCLUDE forum_goal_body.html -->
<!-- ENDIF -->
เปิดไฟล์
ค้นหา index.php

โค้ด: เลือกทั้งหมด

    'LEGEND'        => $legend, 
เติมก่อน

โค้ด: เลือกทั้งหมด

    'FORUM_GOAL_TOP'    => (!empty($config['forum_goals_display_top'])) ? true : false,
    'FORUM_GOAL_BOTTOM'    => (!empty($config['forum_goals_display_bottom'])) ? true : false, 
ค้นหา

โค้ด: เลือกทั้งหมด

// Output page
เติมก่อน

โค้ด: เลือกทั้งหมด

//-- mod: Forum Goals ---------------------------------------------------------//
    include($phpbb_root_path . 'includes/functions_forum_goals.' . $phpEx);
//-- end: Forum Goals ---------------------------------------------------------// 

ติตตั้งไฟล์

โค้ด: เลือกทั้งหมด

install_forum_goal.php
  • Similar Topics
    ตอบกลับ
    แสดง
    โพสต์ล่าสุด

ผู้ใช้งานขณะนี้

สมาชิกกำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และบุคลทั่วไป 70