พัฒนาโดย : Stoker 4.0
Version : 1.0.1
phpBB Version(s) : phpBB 3.0.11
ดาวน์โหลดได้ที่ : https://www.phpbb.com/community/viewtop ... &t=2144743 เปิดไฟล์ 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
ค้นหา
โค้ด: เลือกทั้งหมด
'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
ค้นหา
โค้ด: เลือกทั้งหมด
?>
โค้ด: เลือกทั้งหมด
// 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
ค้นหา
โค้ด: เลือกทั้งหมด
<!-- 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