├── screenshot.png ├── styles ├── all │ └── template │ │ ├── event │ │ ├── overall_header_head_append.html │ │ ├── recent_topics_include.html │ │ ├── nickvergessen_newspage_title_after.html │ │ ├── index_body_forumlist_body_after.html │ │ ├── index_body_markforums_before.html │ │ └── ucp_prefs_view_select_menu_append.html │ │ ├── recenttopics.js │ │ └── recent_topics_body.html ├── pbtech │ └── template │ │ └── recent_topics_body.html ├── pbwow3 │ └── template │ │ └── recent_topics_body.html ├── subsilver2 │ └── template │ │ └── recent_topics_body.html └── we_universal │ └── template │ └── recent_topics_body.html ├── adm └── style │ ├── event │ └── acp_forums_normal_settings_append.html │ └── acp_recenttopics.html ├── language ├── ja │ ├── recenttopics.php │ ├── permissions_recenttopics.php │ ├── recenttopics_ucp.php │ └── info_acp_recenttopics.php ├── ru │ ├── recenttopics.php │ ├── permissions_recenttopics.php │ ├── recenttopics_ucp.php │ └── info_acp_recenttopics.php ├── el │ ├── recenttopics.php │ ├── permissions_recenttopics.php │ ├── recenttopics_ucp.php │ └── info_acp_recenttopics.php ├── en │ ├── recenttopics.php │ ├── permissions_recenttopics.php │ ├── recenttopics_ucp.php │ └── info_acp_recenttopics.php ├── it │ ├── recenttopics.php │ ├── permissions_recenttopics.php │ ├── recenttopics_ucp.php │ └── info_acp_recenttopics.php ├── nl │ ├── recenttopics.php │ ├── permissions_recenttopics.php │ ├── recenttopics_ucp.php │ └── info_acp_recenttopics.php ├── tr │ ├── recenttopics.php │ ├── permissions_recenttopics.php │ ├── recenttopics_ucp.php │ └── info_acp_recenttopics.php ├── ro │ ├── recenttopics.php │ ├── permissions_recenttopics.php │ ├── recenttopics_ucp.php │ └── info_acp_recenttopics.php ├── fa │ ├── recenttopics.php │ ├── permissions_recenttopics.php │ ├── recenttopics_ucp.php │ └── info_acp_recenttopics.php ├── de │ ├── recenttopics.php │ ├── permissions_recenttopics.php │ ├── recenttopics_ucp.php │ └── info_acp_recenttopics.php ├── et │ ├── recenttopics.php │ ├── permissions_recenttopics.php │ ├── recenttopics_ucp.php │ └── info_acp_recenttopics.php ├── pl │ ├── recenttopics.php │ ├── permissions_recenttopics.php │ ├── recenttopics_ucp.php │ └── info_acp_recenttopics.php ├── ar │ ├── recenttopics.php │ ├── permissions_recenttopics.php │ ├── recenttopics_ucp.php │ └── info_acp_recenttopics.php ├── sv │ ├── recenttopics.php │ ├── permissions_recenttopics.php │ ├── recenttopics_ucp.php │ └── info_acp_recenttopics.php ├── es │ ├── recenttopics.php │ ├── permissions_recenttopics.php │ ├── recenttopics_ucp.php │ └── info_acp_recenttopics.php └── fr │ ├── recenttopics.php │ ├── permissions_recenttopics.php │ ├── recenttopics_ucp.php │ └── info_acp_recenttopics.php ├── acp ├── recenttopics_info.php └── recenttopics_module.php ├── migrations ├── release_2_0_4.php ├── release_2_0_5.php ├── release_2_0_6.php └── release_2_0_0.php ├── config └── services.yml ├── composer.json ├── README.md ├── event ├── listener.php └── ucp_listener.php ├── license.txt └── core └── recenttopics.php /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PayBas/RecentTopics/HEAD/screenshot.png -------------------------------------------------------------------------------- /styles/all/template/event/overall_header_head_append.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /styles/all/template/event/recent_topics_include.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /styles/all/template/event/nickvergessen_newspage_title_after.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /styles/all/template/event/index_body_forumlist_body_after.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /styles/all/template/event/index_body_markforums_before.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /styles/all/template/recenttopics.js: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * @package Recent Topics Extension 4 | * @copyright (c) 2015 PayBas 5 | * @license GNU General Public License, version 2 (GPL-2.0) 6 | * 7 | * Based on the original NV Recent Topics by Joas Schilling (nickvergessen) 8 | * 9 | */ 10 | jQuery(function($) { 11 | var phpbbCallback = phpbb.ajaxCallbacks['mark_forums_read']; 12 | phpbb.addAjaxCallback('mark_forums_read', function(res) { 13 | phpbbCallback(res); 14 | phpbb.ajaxCallbacks.mark_topics_read.call(this, res, false); 15 | }); 16 | }); 17 | -------------------------------------------------------------------------------- /adm/style/event/acp_forums_normal_settings_append.html: -------------------------------------------------------------------------------- 1 |
2 |

{L_RECENT_TOPICS_LIST_EXPLAIN}
3 |
4 | 5 | 6 |
7 |
8 | -------------------------------------------------------------------------------- /language/ja/recenttopics.php: -------------------------------------------------------------------------------- 1 | '新着トピック', 25 | )); 26 | -------------------------------------------------------------------------------- /language/ru/recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Последние темы', 25 | )); 26 | -------------------------------------------------------------------------------- /language/el/recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Πρόσφατα Θέματα', 25 | )); 26 | -------------------------------------------------------------------------------- /language/en/recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Recent Topics', 25 | )); 26 | -------------------------------------------------------------------------------- /language/it/recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Topic recenti', 25 | )); 26 | -------------------------------------------------------------------------------- /language/nl/recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Recente Onderwerpen', 25 | )); 26 | -------------------------------------------------------------------------------- /language/tr/recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Son Konular', 25 | )); 26 | -------------------------------------------------------------------------------- /language/ro/recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Subiecte în discuţie', 25 | )); -------------------------------------------------------------------------------- /language/fa/recenttopics.php: -------------------------------------------------------------------------------- 1 | 'موضوعات اخیر', 25 | )); 26 | -------------------------------------------------------------------------------- /language/de/recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Aktuelle Themen', 25 | )); 26 | -------------------------------------------------------------------------------- /language/et/recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Hiljutised Teemad', 25 | )); 26 | -------------------------------------------------------------------------------- /language/pl/recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Najnowsze tematy', 25 | )); 26 | -------------------------------------------------------------------------------- /language/ar/recenttopics.php: -------------------------------------------------------------------------------- 1 | 'أحدث المواضيع', 25 | )); 26 | -------------------------------------------------------------------------------- /language/sv/recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Aktuella ämnen', 25 | )); 26 | -------------------------------------------------------------------------------- /language/es/recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Temas Recientes', 26 | )); 27 | -------------------------------------------------------------------------------- /acp/recenttopics_info.php: -------------------------------------------------------------------------------- 1 | '\paybas\recenttopics\recenttopics_module', 20 | 'title' => 'RECENT_TOPICS', 21 | 'modes' => array( 22 | 'recenttopics_config' => array('title' => 'RT_CONFIG', 'auth' => 'ext_paybas/recenttopics && acl_a_board', 'cat' => array('RECENT_TOPICS')), 23 | ), 24 | ); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /language/ar/permissions_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Recent Topics: view (master)', 25 | 'ACL_U_RT_ENABLE' => 'Recent Topics: enable or disable', 26 | 'ACL_U_RT_ALT_LOCATION' => 'Recent Topics: use alternative display location', 27 | 'ACL_U_RT_SORT_START_TIME' => 'Recent Topics: change sort order', 28 | 'ACL_U_RT_UNREAD_ONLY' => 'Recent Topics: use unread-only mode', 29 | )); 30 | -------------------------------------------------------------------------------- /language/de/permissions_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Recent Topics: view (master)', 25 | 'ACL_U_RT_ENABLE' => 'Recent Topics: enable or disable', 26 | 'ACL_U_RT_ALT_LOCATION' => 'Recent Topics: use alternative display location', 27 | 'ACL_U_RT_SORT_START_TIME' => 'Recent Topics: change sort order', 28 | 'ACL_U_RT_UNREAD_ONLY' => 'Recent Topics: use unread-only mode', 29 | )); 30 | -------------------------------------------------------------------------------- /language/el/permissions_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Recent Topics: view (master)', 25 | 'ACL_U_RT_ENABLE' => 'Recent Topics: enable or disable', 26 | 'ACL_U_RT_ALT_LOCATION' => 'Recent Topics: use alternative display location', 27 | 'ACL_U_RT_SORT_START_TIME' => 'Recent Topics: change sort order', 28 | 'ACL_U_RT_UNREAD_ONLY' => 'Recent Topics: use unread-only mode', 29 | )); 30 | -------------------------------------------------------------------------------- /language/en/permissions_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Recent Topics: view (master)', 25 | 'ACL_U_RT_ENABLE' => 'Recent Topics: enable or disable', 26 | 'ACL_U_RT_ALT_LOCATION' => 'Recent Topics: use alternative display location', 27 | 'ACL_U_RT_SORT_START_TIME' => 'Recent Topics: change sort order', 28 | 'ACL_U_RT_UNREAD_ONLY' => 'Recent Topics: use unread-only mode', 29 | )); 30 | -------------------------------------------------------------------------------- /language/es/permissions_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Recent Topics: view (master)', 25 | 'ACL_U_RT_ENABLE' => 'Recent Topics: enable or disable', 26 | 'ACL_U_RT_ALT_LOCATION' => 'Recent Topics: use alternative display location', 27 | 'ACL_U_RT_SORT_START_TIME' => 'Recent Topics: change sort order', 28 | 'ACL_U_RT_UNREAD_ONLY' => 'Recent Topics: use unread-only mode', 29 | )); 30 | -------------------------------------------------------------------------------- /language/et/permissions_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Recent Topics: view (master)', 25 | 'ACL_U_RT_ENABLE' => 'Recent Topics: enable or disable', 26 | 'ACL_U_RT_ALT_LOCATION' => 'Recent Topics: use alternative display location', 27 | 'ACL_U_RT_SORT_START_TIME' => 'Recent Topics: change sort order', 28 | 'ACL_U_RT_UNREAD_ONLY' => 'Recent Topics: use unread-only mode', 29 | )); 30 | -------------------------------------------------------------------------------- /language/fa/permissions_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Recent Topics: view (master)', 25 | 'ACL_U_RT_ENABLE' => 'Recent Topics: enable or disable', 26 | 'ACL_U_RT_ALT_LOCATION' => 'Recent Topics: use alternative display location', 27 | 'ACL_U_RT_SORT_START_TIME' => 'Recent Topics: change sort order', 28 | 'ACL_U_RT_UNREAD_ONLY' => 'Recent Topics: use unread-only mode', 29 | )); 30 | -------------------------------------------------------------------------------- /language/it/permissions_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Recent Topics: view (master)', 25 | 'ACL_U_RT_ENABLE' => 'Recent Topics: enable or disable', 26 | 'ACL_U_RT_ALT_LOCATION' => 'Recent Topics: use alternative display location', 27 | 'ACL_U_RT_SORT_START_TIME' => 'Recent Topics: change sort order', 28 | 'ACL_U_RT_UNREAD_ONLY' => 'Recent Topics: use unread-only mode', 29 | )); 30 | -------------------------------------------------------------------------------- /language/ja/permissions_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Recent Topics: view (master)', 25 | 'ACL_U_RT_ENABLE' => 'Recent Topics: enable or disable', 26 | 'ACL_U_RT_ALT_LOCATION' => 'Recent Topics: use alternative display location', 27 | 'ACL_U_RT_SORT_START_TIME' => 'Recent Topics: change sort order', 28 | 'ACL_U_RT_UNREAD_ONLY' => 'Recent Topics: use unread-only mode', 29 | )); 30 | -------------------------------------------------------------------------------- /language/nl/permissions_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Recent Topics: view (master)', 25 | 'ACL_U_RT_ENABLE' => 'Recent Topics: enable or disable', 26 | 'ACL_U_RT_ALT_LOCATION' => 'Recent Topics: use alternative display location', 27 | 'ACL_U_RT_SORT_START_TIME' => 'Recent Topics: change sort order', 28 | 'ACL_U_RT_UNREAD_ONLY' => 'Recent Topics: use unread-only mode', 29 | )); 30 | -------------------------------------------------------------------------------- /language/pl/permissions_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Recent Topics: view (master)', 25 | 'ACL_U_RT_ENABLE' => 'Recent Topics: enable or disable', 26 | 'ACL_U_RT_ALT_LOCATION' => 'Recent Topics: use alternative display location', 27 | 'ACL_U_RT_SORT_START_TIME' => 'Recent Topics: change sort order', 28 | 'ACL_U_RT_UNREAD_ONLY' => 'Recent Topics: use unread-only mode', 29 | )); 30 | -------------------------------------------------------------------------------- /language/ro/permissions_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Recent Topics: view (master)', 25 | 'ACL_U_RT_ENABLE' => 'Recent Topics: enable or disable', 26 | 'ACL_U_RT_ALT_LOCATION' => 'Recent Topics: use alternative display location', 27 | 'ACL_U_RT_SORT_START_TIME' => 'Recent Topics: change sort order', 28 | 'ACL_U_RT_UNREAD_ONLY' => 'Recent Topics: use unread-only mode', 29 | )); 30 | -------------------------------------------------------------------------------- /language/ru/permissions_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Recent Topics: view (master)', 25 | 'ACL_U_RT_ENABLE' => 'Recent Topics: enable or disable', 26 | 'ACL_U_RT_ALT_LOCATION' => 'Recent Topics: use alternative display location', 27 | 'ACL_U_RT_SORT_START_TIME' => 'Recent Topics: change sort order', 28 | 'ACL_U_RT_UNREAD_ONLY' => 'Recent Topics: use unread-only mode', 29 | )); 30 | -------------------------------------------------------------------------------- /language/sv/permissions_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Recent Topics: view (master)', 25 | 'ACL_U_RT_ENABLE' => 'Recent Topics: enable or disable', 26 | 'ACL_U_RT_ALT_LOCATION' => 'Recent Topics: use alternative display location', 27 | 'ACL_U_RT_SORT_START_TIME' => 'Recent Topics: change sort order', 28 | 'ACL_U_RT_UNREAD_ONLY' => 'Recent Topics: use unread-only mode', 29 | )); 30 | -------------------------------------------------------------------------------- /language/tr/permissions_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Recent Topics: view (master)', 25 | 'ACL_U_RT_ENABLE' => 'Recent Topics: enable or disable', 26 | 'ACL_U_RT_ALT_LOCATION' => 'Recent Topics: use alternative display location', 27 | 'ACL_U_RT_SORT_START_TIME' => 'Recent Topics: change sort order', 28 | 'ACL_U_RT_UNREAD_ONLY' => 'Recent Topics: use unread-only mode', 29 | )); 30 | -------------------------------------------------------------------------------- /migrations/release_2_0_4.php: -------------------------------------------------------------------------------- 1 | config['rt_version']) && version_compare($this->config['rt_version'], '2.0.4', '>='); 19 | } 20 | 21 | static public function depends_on() 22 | { 23 | return array( 24 | '\paybas\recenttopics\migrations\release_2_0_0', 25 | ); 26 | } 27 | 28 | public function update_data() 29 | { 30 | return array( 31 | array('config.update', array('rt_version', '2.0.4')), 32 | array('config.add', array('rt_min_topic_level', 0)), 33 | ); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /migrations/release_2_0_5.php: -------------------------------------------------------------------------------- 1 | config['rt_version']) && version_compare($this->config['rt_version'], '2.0.5', '>='); 19 | } 20 | 21 | static public function depends_on() 22 | { 23 | return array( 24 | '\paybas\recenttopics\migrations\release_2_0_4', 25 | ); 26 | } 27 | 28 | public function update_data() 29 | { 30 | return array( 31 | array('config.update', array('rt_version', '2.0.5')), 32 | array('config.add', array('rt_on_newspage', 0)), 33 | array('config.add', array('rt_sort_start_time', 0)), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /language/ar/recenttopics_ucp.php: -------------------------------------------------------------------------------- 1 | 'Display recent topics', 25 | 'RT_ALT_LOCATION' => 'Use alternative display location', 26 | 'RT_ALT_LOCATION_EXP' => 'Move recent topics to a different location (usually the bottom, but depends on the style used).', 27 | 'RT_SORT_START_TIME' => 'Sort recent topics by topic start time', 28 | 'RT_SORT_START_TIME_EXP' => 'Instead of sorting them by last post time.', 29 | 'RT_UNREAD_ONLY' => 'Only display unread topics in recent topics', 30 | )); 31 | -------------------------------------------------------------------------------- /language/de/recenttopics_ucp.php: -------------------------------------------------------------------------------- 1 | 'Display recent topics', 25 | 'RT_ALT_LOCATION' => 'Use alternative display location', 26 | 'RT_ALT_LOCATION_EXP' => 'Move recent topics to a different location (usually the bottom, but depends on the style used).', 27 | 'RT_SORT_START_TIME' => 'Sort recent topics by topic start time', 28 | 'RT_SORT_START_TIME_EXP' => 'Instead of sorting them by last post time.', 29 | 'RT_UNREAD_ONLY' => 'Only display unread topics in recent topics', 30 | )); 31 | -------------------------------------------------------------------------------- /language/el/recenttopics_ucp.php: -------------------------------------------------------------------------------- 1 | 'Display recent topics', 25 | 'RT_ALT_LOCATION' => 'Use alternative display location', 26 | 'RT_ALT_LOCATION_EXP' => 'Move recent topics to a different location (usually the bottom, but depends on the style used).', 27 | 'RT_SORT_START_TIME' => 'Sort recent topics by topic start time', 28 | 'RT_SORT_START_TIME_EXP' => 'Instead of sorting them by last post time.', 29 | 'RT_UNREAD_ONLY' => 'Only display unread topics in recent topics', 30 | )); 31 | -------------------------------------------------------------------------------- /language/en/recenttopics_ucp.php: -------------------------------------------------------------------------------- 1 | 'Display recent topics', 25 | 'RT_ALT_LOCATION' => 'Use alternative display location', 26 | 'RT_ALT_LOCATION_EXP' => 'Move recent topics to a different location (usually the bottom, but depends on the style used).', 27 | 'RT_SORT_START_TIME' => 'Sort recent topics by topic start time', 28 | 'RT_SORT_START_TIME_EXP' => 'Instead of sorting them by last post time.', 29 | 'RT_UNREAD_ONLY' => 'Only display unread topics in recent topics', 30 | )); 31 | -------------------------------------------------------------------------------- /language/es/recenttopics_ucp.php: -------------------------------------------------------------------------------- 1 | 'Display recent topics', 25 | 'RT_ALT_LOCATION' => 'Use alternative display location', 26 | 'RT_ALT_LOCATION_EXP' => 'Move recent topics to a different location (usually the bottom, but depends on the style used).', 27 | 'RT_SORT_START_TIME' => 'Sort recent topics by topic start time', 28 | 'RT_SORT_START_TIME_EXP' => 'Instead of sorting them by last post time.', 29 | 'RT_UNREAD_ONLY' => 'Only display unread topics in recent topics', 30 | )); 31 | -------------------------------------------------------------------------------- /language/et/recenttopics_ucp.php: -------------------------------------------------------------------------------- 1 | 'Display recent topics', 25 | 'RT_ALT_LOCATION' => 'Use alternative display location', 26 | 'RT_ALT_LOCATION_EXP' => 'Move recent topics to a different location (usually the bottom, but depends on the style used).', 27 | 'RT_SORT_START_TIME' => 'Sort recent topics by topic start time', 28 | 'RT_SORT_START_TIME_EXP' => 'Instead of sorting them by last post time.', 29 | 'RT_UNREAD_ONLY' => 'Only display unread topics in recent topics', 30 | )); 31 | -------------------------------------------------------------------------------- /language/fa/recenttopics_ucp.php: -------------------------------------------------------------------------------- 1 | 'Display recent topics', 25 | 'RT_ALT_LOCATION' => 'Use alternative display location', 26 | 'RT_ALT_LOCATION_EXP' => 'Move recent topics to a different location (usually the bottom, but depends on the style used).', 27 | 'RT_SORT_START_TIME' => 'Sort recent topics by topic start time', 28 | 'RT_SORT_START_TIME_EXP' => 'Instead of sorting them by last post time.', 29 | 'RT_UNREAD_ONLY' => 'Only display unread topics in recent topics', 30 | )); 31 | -------------------------------------------------------------------------------- /language/it/recenttopics_ucp.php: -------------------------------------------------------------------------------- 1 | 'Display recent topics', 25 | 'RT_ALT_LOCATION' => 'Use alternative display location', 26 | 'RT_ALT_LOCATION_EXP' => 'Move recent topics to a different location (usually the bottom, but depends on the style used).', 27 | 'RT_SORT_START_TIME' => 'Sort recent topics by topic start time', 28 | 'RT_SORT_START_TIME_EXP' => 'Instead of sorting them by last post time.', 29 | 'RT_UNREAD_ONLY' => 'Only display unread topics in recent topics', 30 | )); 31 | -------------------------------------------------------------------------------- /language/ja/recenttopics_ucp.php: -------------------------------------------------------------------------------- 1 | 'Display recent topics', 25 | 'RT_ALT_LOCATION' => 'Use alternative display location', 26 | 'RT_ALT_LOCATION_EXP' => 'Move recent topics to a different location (usually the bottom, but depends on the style used).', 27 | 'RT_SORT_START_TIME' => 'Sort recent topics by topic start time', 28 | 'RT_SORT_START_TIME_EXP' => 'Instead of sorting them by last post time.', 29 | 'RT_UNREAD_ONLY' => 'Only display unread topics in recent topics', 30 | )); 31 | -------------------------------------------------------------------------------- /language/nl/recenttopics_ucp.php: -------------------------------------------------------------------------------- 1 | 'Display recent topics', 25 | 'RT_ALT_LOCATION' => 'Use alternative display location', 26 | 'RT_ALT_LOCATION_EXP' => 'Move recent topics to a different location (usually the bottom, but depends on the style used).', 27 | 'RT_SORT_START_TIME' => 'Sort recent topics by topic start time', 28 | 'RT_SORT_START_TIME_EXP' => 'Instead of sorting them by last post time.', 29 | 'RT_UNREAD_ONLY' => 'Only display unread topics in recent topics', 30 | )); 31 | -------------------------------------------------------------------------------- /language/pl/recenttopics_ucp.php: -------------------------------------------------------------------------------- 1 | 'Display recent topics', 25 | 'RT_ALT_LOCATION' => 'Use alternative display location', 26 | 'RT_ALT_LOCATION_EXP' => 'Move recent topics to a different location (usually the bottom, but depends on the style used).', 27 | 'RT_SORT_START_TIME' => 'Sort recent topics by topic start time', 28 | 'RT_SORT_START_TIME_EXP' => 'Instead of sorting them by last post time.', 29 | 'RT_UNREAD_ONLY' => 'Only display unread topics in recent topics', 30 | )); 31 | -------------------------------------------------------------------------------- /language/ro/recenttopics_ucp.php: -------------------------------------------------------------------------------- 1 | 'Display recent topics', 25 | 'RT_ALT_LOCATION' => 'Use alternative display location', 26 | 'RT_ALT_LOCATION_EXP' => 'Move recent topics to a different location (usually the bottom, but depends on the style used).', 27 | 'RT_SORT_START_TIME' => 'Sort recent topics by topic start time', 28 | 'RT_SORT_START_TIME_EXP' => 'Instead of sorting them by last post time.', 29 | 'RT_UNREAD_ONLY' => 'Only display unread topics in recent topics', 30 | )); 31 | -------------------------------------------------------------------------------- /language/ru/recenttopics_ucp.php: -------------------------------------------------------------------------------- 1 | 'Display recent topics', 25 | 'RT_ALT_LOCATION' => 'Use alternative display location', 26 | 'RT_ALT_LOCATION_EXP' => 'Move recent topics to a different location (usually the bottom, but depends on the style used).', 27 | 'RT_SORT_START_TIME' => 'Sort recent topics by topic start time', 28 | 'RT_SORT_START_TIME_EXP' => 'Instead of sorting them by last post time.', 29 | 'RT_UNREAD_ONLY' => 'Only display unread topics in recent topics', 30 | )); 31 | -------------------------------------------------------------------------------- /language/sv/recenttopics_ucp.php: -------------------------------------------------------------------------------- 1 | 'Display recent topics', 25 | 'RT_ALT_LOCATION' => 'Use alternative display location', 26 | 'RT_ALT_LOCATION_EXP' => 'Move recent topics to a different location (usually the bottom, but depends on the style used).', 27 | 'RT_SORT_START_TIME' => 'Sort recent topics by topic start time', 28 | 'RT_SORT_START_TIME_EXP' => 'Instead of sorting them by last post time.', 29 | 'RT_UNREAD_ONLY' => 'Only display unread topics in recent topics', 30 | )); 31 | -------------------------------------------------------------------------------- /language/tr/recenttopics_ucp.php: -------------------------------------------------------------------------------- 1 | 'Display recent topics', 25 | 'RT_ALT_LOCATION' => 'Use alternative display location', 26 | 'RT_ALT_LOCATION_EXP' => 'Move recent topics to a different location (usually the bottom, but depends on the style used).', 27 | 'RT_SORT_START_TIME' => 'Sort recent topics by topic start time', 28 | 'RT_SORT_START_TIME_EXP' => 'Instead of sorting them by last post time.', 29 | 'RT_UNREAD_ONLY' => 'Only display unread topics in recent topics', 30 | )); 31 | -------------------------------------------------------------------------------- /config/services.yml: -------------------------------------------------------------------------------- 1 | services: 2 | paybas.recenttopics.functions: 3 | class: paybas\recenttopics\core\recenttopics 4 | arguments: 5 | - @auth 6 | - @cache 7 | - @config 8 | - @content.visibility 9 | - @dbal.conn 10 | - @dispatcher 11 | - @pagination 12 | - @request 13 | - @template 14 | - @user 15 | - %core.root_path% 16 | - %core.php_ext% 17 | paybas.recenttopics.listener: 18 | class: paybas\recenttopics\event\listener 19 | arguments: 20 | - @paybas.recenttopics.functions 21 | - @config 22 | - @request 23 | tags: 24 | - { name: event.listener } 25 | paybas.recenttopics.ucp_listener: 26 | class: paybas\recenttopics\event\ucp_listener 27 | arguments: 28 | - @auth 29 | - @config 30 | - @request 31 | - @template 32 | - @user 33 | tags: 34 | - { name: event.listener } 35 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "paybas/recenttopics", 3 | "type": "phpbb-extension", 4 | "description": "Adds a list with a number of recent topics to the index.php", 5 | "homepage": "https://github.com/PayBas/RecentTopics", 6 | "version": "2.0.6-dev", 7 | "time": "2015-04-09", 8 | "license": "GPL-2.0", 9 | "authors": [ 10 | { 11 | "name": "PayBas", 12 | "email": "admin@pbwow.com", 13 | "homepage": "http://www.paybas.com", 14 | "role": "Lead Developer" 15 | }, 16 | { 17 | "name": "nickvergessen", 18 | "email": "", 19 | "homepage": "http://www.flying-bits.org/", 20 | "role": "Previous Developer" 21 | } 22 | ], 23 | "require": { 24 | "php": ">=5.3.3", 25 | "composer/installers": "~1.0" 26 | }, 27 | "extra": { 28 | "display-name": "Recent Topics", 29 | "soft-require": { 30 | "phpbb/phpbb": ">=3.1.0,<3.2.*@dev" 31 | }, 32 | "version-check": { 33 | "host": "paybas.github.io", 34 | "directory": "/RecentTopics", 35 | "filename": "version.json" 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /language/fr/recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Sujets récents', 45 | )); 46 | -------------------------------------------------------------------------------- /language/fr/permissions_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Peut voir les « sujets récents ».', 45 | 'ACL_U_RT_ENABLE' => 'Peut activer/désactiver les « sujets récents ».', 46 | 'ACL_U_RT_ALT_LOCATION' => 'Peut afficher les « sujets récents » sur un emplacement alternatif.', 47 | 'ACL_U_RT_SORT_START_TIME' => 'Peut modifier le mode de tri des « sujets récents ».', 48 | 'ACL_U_RT_UNREAD_ONLY' => 'Peut afficher uniquement les sujets non lus dans les « sujets récents ».', 49 | )); 50 | -------------------------------------------------------------------------------- /language/fr/recenttopics_ucp.php: -------------------------------------------------------------------------------- 1 | 'Afficher les « sujets récents »', 45 | 'RT_ALT_LOCATION' => 'Afficher sur un emplacement alternatif', 46 | 'RT_ALT_LOCATION_EXP' => 'Déplace les « sujets récents » vers un emplacement différent (généralement bas, mais cela dépend du style utilisé).', 47 | 'RT_SORT_START_TIME' => 'Trier les « sujets récents » selon la date de création du sujet', 48 | 'RT_SORT_START_TIME_EXP' => 'Trie selon la date de création du sujet, en lieu et place de la date du dernier message.', 49 | 'RT_UNREAD_ONLY' => 'Afficher uniquement les sujets non lus dans les « sujets récents »', 50 | )); 51 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Recent Topics for phpBB 3.1 2 | ============ 3 | 4 | Extension for phpBB 3.1 to display recent topics. 5 | 6 | ![Screenshot](screenshot.png) 7 | 8 | ##### Based on NV Recent Topics for phpBB 3.0, by Joas Schilling ([nickvergessen](https://github.com/nickvergessen)) 9 | 10 | 11 | ## Features 12 | - Adds a list of recent (or unread) topics to the index page. 13 | - ACP module to change: 14 | - number of topics to show 15 | - max. number of pages 16 | - set minimum topic type level to display (normal/sticky/announcement/global) 17 | - exclusion of topics (by ID) 18 | - display parent forums in the row 19 | - only show unread topics 20 | - sort by topic start time, instead of last post time 21 | - UCP permissions and settings so users can choose their own preferences 22 | - Inherits all styling from regular "viewforum" templates 23 | - Tested on: 24 | - prosilver 25 | - subsilver2 26 | - PBWoW 3 27 | - PBTech 28 | - we_universal 29 | 30 | #### Requirements 31 | - phpBB 3.1.0 or higher 32 | - PHP 5.3.3 or higher 33 | 34 | #### Languages supported 35 | - English 36 | - German 37 | - Spanish 38 | - French 39 | - Russian 40 | - Greek 41 | - Dutch 42 | - Italian 43 | - Japanese 44 | - Swedish 45 | - Estonian 46 | - Persian 47 | - Arabic 48 | - Turkish 49 | - Polish 50 | - Romanian 51 | 52 | #### To do list 53 | - Add compatibility for topic prefixes and allow exclusion/inclusion based on predefined prefixes. 54 | - Add option to have stickies/announcements at the top 55 | 56 | ## Installation 57 | 1. [Download the latest release](https://github.com/PayBas/RecentTopics/releases) and unzip it. 58 | 2. Copy the entire contents from the unzipped folder to `/ext/paybas/recenttopics/`. 59 | 3. Navigate in the ACP to `Customise -> Manage extensions`. 60 | 4. Find `Recent Topics` under "Disabled Extensions" and click `Enable`. 61 | 62 | ## Uninstallation 63 | 1. Navigate in the ACP to `Customise -> Manage extensions`. 64 | 2. Click the `Disable` link for `Recent Topics`. 65 | 3. To permanently uninstall, click `Delete Data`, then delete the `recenttopics` folder from `/ext/paybas/`. 66 | 67 | ### License 68 | [GNU General Public License v2](http://opensource.org/licenses/GPL-2.0) 69 | 70 | © 2015 - PayBas 71 | -------------------------------------------------------------------------------- /language/ja/info_acp_recenttopics.php: -------------------------------------------------------------------------------- 1 | '新着トピック', 25 | 'RECENT_TOPICS_EXPLAIN' => 'On this page you can change the settings specific for the Recent Topics extension.

Specific forums can be included or excluded by editing the respective forums in your ACP.
Also be sure to check your user permissions, which allow users to change some of the settings found below for themselves.', 26 | 27 | 'RECENT_TOPICS_LIST' => '"新着トピック" に表示', 28 | 'RECENT_TOPICS_LIST_EXPLAIN' => '"新着トピック"拡張機能でこのフォーラム内にトピックを表示することを許可します。', 29 | 30 | 'RT_CONFIG' => '設定', 31 | 'RT_ALT_LOCATION' => 'Display in alternative location', 32 | 'RT_ALT_LOCATION_EXP' => 'Use alternative location to display recent topics.
Not all styles will support this, for prosilver it will be moved to the bottom of the page.', 33 | 'RT_ANTI_TOPICS' => '除外するトピック', 34 | 'RT_ANTI_TOPICS_EXP' => '除外するトピックのIDをカンマ", "で区切ります (例: 7, 9)
トピックを除外したくない場合、0を入力します。', 35 | 'RT_MIN_TOPIC_LEVEL' => 'トピックタイプの最大レベル', 36 | 'RT_MIN_TOPIC_LEVEL_EXP' => '表示するトピックタイプの最大レベルを決定します。それだけで設定されたレベル以上のトピックが表示されます。
(0 = 通常, 1 = 注目, 2 = 告知, 3 = 全体告知)', 37 | 'RT_NUMBER' => '新着トピック数', 38 | 'RT_NUMBER_EXP' => '表示するトピック数です。', 39 | 'RT_PAGE_NUMBER' => '新着トピックページ数', 40 | 'RT_PAGE_NUMBER_EXP' => 'ページネーションを使用して多くの新着トピックを表示できます。この機能を無効にするには 1 を入力します。0 を入力した場合、掲示板の全てのトピックを表示するために必要なだけのページが存在するでしょう。(お勧めしません)', 41 | 'RT_PARENTS' => '上位フォーラムを表示', 42 | 'RT_PARENTS_EXP' => '新着トピック行の中に上位フォーラムを表示します。', 43 | 'RT_SORT_START_TIME' => 'トピック開始時間でソート', 44 | 'RT_SORT_START_TIME_EXP' => 'トピックの最新投稿時間の代わりに開始時間で新着トピックのソートを可能にします。', 45 | 'RT_UNREAD_ONLY' => '未読トピックのみ表示', 46 | 'RT_UNREAD_ONLY_EXP' => '未読トピックのみの表示を有効にします。(それらが"新着"であるか否か)この機能は通常モードとして同じ設定(フォーラム/トピックなどを除いて)を使用します。注: これはログイン済みユーザーにのみ動作し、ゲストは通常のリストを取得します。', 47 | 48 | 'RT_VIEW_ON' => '新着トピックを表示:', 49 | )); 50 | -------------------------------------------------------------------------------- /styles/all/template/event/ucp_prefs_view_select_menu_append.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 |
5 |
6 |
7 | 8 | 9 |
10 |
11 | 12 | 13 |
14 |

{L_RT_ALT_LOCATION_EXP}
15 |
16 | 17 | 18 |
19 |
20 | 21 | 22 |
23 |

{L_RT_SORT_START_TIME_EXP}
24 |
25 | 26 | 27 |
28 |
29 | 30 | 31 |
32 |
33 |
34 | 35 | 36 |
37 |
38 | 39 | 40 | -------------------------------------------------------------------------------- /event/listener.php: -------------------------------------------------------------------------------- 1 | rt_functions = $functions; 30 | $this->config = $config; 31 | $this->request = $request; 32 | } 33 | 34 | static public function getSubscribedEvents() 35 | { 36 | return array( 37 | 'core.index_modify_page_title' => 'display_rt', 38 | 'nickvergessen.newspage.newspage' => 'display_rt_newspage', 39 | 40 | 'core.acp_manage_forums_request_data' => 'acp_manage_forums_request_data', 41 | 'core.acp_manage_forums_initialise_data' => 'acp_manage_forums_initialise_data', 42 | 'core.acp_manage_forums_display_form' => 'acp_manage_forums_display_form', 43 | ); 44 | } 45 | 46 | // The main magic 47 | public function display_rt() 48 | { 49 | if (isset($this->config['rt_index']) && $this->config['rt_index']) 50 | $this->rt_functions->display_recent_topics(); 51 | } 52 | 53 | // nickvergessen's newspage ext 54 | public function display_rt_newspage() 55 | { 56 | if (isset($this->config['rt_on_newspage']) && $this->config['rt_on_newspage']) 57 | { 58 | $this->rt_functions->display_recent_topics(); 59 | } 60 | } 61 | 62 | // Submit form (add/update) 63 | public function acp_manage_forums_request_data($event) 64 | { 65 | $array = $event['forum_data']; 66 | $array['forum_recent_topics'] = $this->request->variable('forum_recent_topics', 1); 67 | $event['forum_data'] = $array; 68 | } 69 | 70 | // Default settings for new forums 71 | public function acp_manage_forums_initialise_data($event) 72 | { 73 | if ($event['action'] == 'add') 74 | { 75 | $array = $event['forum_data']; 76 | $array['forum_recent_topics'] = '1'; 77 | $event['forum_data'] = $array; 78 | } 79 | } 80 | 81 | // ACP forums template output 82 | public function acp_manage_forums_display_form($event) 83 | { 84 | $array = $event['template_data']; 85 | $array['RECENT_TOPICS'] = $event['forum_data']['forum_recent_topics']; 86 | $event['template_data'] = $array; 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /language/tr/info_acp_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Son Konular', 25 | 'RECENT_TOPICS_EXPLAIN' => 'On this page you can change the settings specific for the Recent Topics extension.

Specific forums can be included or excluded by editing the respective forums in your ACP.
Also be sure to check your user permissions, which allow users to change some of the settings found below for themselves.', 26 | 27 | 'RECENT_TOPICS_LIST' => '"son konular" göster', 28 | 'RECENT_TOPICS_LIST_EXPLAIN' => 'Eğer etkinleştirilmiş ise, bu forum da "son konular" eklentisi görüntülenir.', 29 | 30 | 'RT_CONFIG' => 'Ayarlar', 31 | 'RT_ALT_LOCATION' => 'Display in alternative location', 32 | 'RT_ALT_LOCATION_EXP' => 'Use alternative location to display recent topics.
Not all styles will support this, for prosilver it will be moved to the bottom of the page.', 33 | 'RT_ANTI_TOPICS' => 'Dışlanan konular', 34 | 'RT_ANTI_TOPICS_EXP' => 'Ayraç ", " (Örnek: 7, 9)
Sıfır "0" değeri bu özelliği devre dışı bırakır.', 35 | 'RT_MIN_TOPIC_LEVEL' => 'Konu türü', 36 | 'RT_MIN_TOPIC_LEVEL_EXP' => 'Gösterilecek konu türünü belirler.
(0 = Normal, 1 = Sabit, 2 = Duyuru, 3 = Genel Duyuru)', 37 | 'RT_NUMBER' => 'Son Konular', 38 | 'RT_NUMBER_EXP' => 'Sayfada gösterilecek konu sayısı.', 39 | 'RT_PAGE_NUMBER' => 'Son konular sayfalama', 40 | 'RT_PAGE_NUMBER_EXP' => 'Daha fazla konu görüntülemek için sayfalama özelliğini kullanın. Bu özelliği kapatmak için "1" giriniz. Sıfır "0" gireseniz forumdaki tüm konular gösterilecektir (tavsiye edilmez).', 41 | 'RT_PARENTS' => 'Ana forumu göster', 42 | 'RT_PARENTS_EXP' => 'Son Konular listesisinde konunun ait olduğu ana forumu gösterir.', 43 | 'RT_SORT_START_TIME' => 'Başlangıç tarihine göre sırala', 44 | 'RT_SORT_START_TIME_EXP' => 'Son Konuları gönderilen son mesajın tarihi yerine, konunun başlangıç tarihine göre sıralamak için etkinleştirin.', 45 | 'RT_UNREAD_ONLY' => 'Sadece okunmamış konuları göster', 46 | 'RT_UNREAD_ONLY_EXP' => 'Bu seçeneğin etkinleştirilmesi sadece okunmamış konuların görüntülenmesini sağlar. Konu türü ayrımı olmayacaktır.
NOT: Bu özellik giriş yapmış kullanıcılar için geçerlidir; Misafirler normal "Son Konular" listesini görecektir.', 47 | 48 | 'RT_VIEW_ON' => 'Son Konuları göster:', 49 | )); 50 | -------------------------------------------------------------------------------- /language/fa/info_acp_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'موضوعات اخیر', 25 | 'RECENT_TOPICS_EXPLAIN' => 'On this page you can change the settings specific for the Recent Topics extension.

Specific forums can be included or excluded by editing the respective forums in your ACP.
Also be sure to check your user permissions, which allow users to change some of the settings found below for themselves.', 26 | 27 | 'RECENT_TOPICS_LIST' => 'نمایش در " موضوعات اخیر"', 28 | 'RECENT_TOPICS_LIST_EXPLAIN' => 'فعال سازی نمایش موضوعات این انجمن در افزونه " موضوعات اخیر"', 29 | 30 | 'RT_CONFIG' => 'پیکربندی', 31 | 'RT_ALT_LOCATION' => 'Display in alternative location', 32 | 'RT_ALT_LOCATION_EXP' => 'Use alternative location to display recent topics.
Not all styles will support this, for prosilver it will be moved to the bottom of the page.', 33 | 'RT_ANTI_TOPICS' => 'موضوعات چشم پوشی شده', 34 | 'RT_ANTI_TOPICS_EXP' => 'جداسازی" توسط کاما ", ” (به عنوان مثال: “7,9”)
اگر تمایل به چشم پوشی موضوعی ندارید عدد 0 را وارد کنید.', 35 | 'RT_MIN_TOPIC_LEVEL' => 'حداقل سطح نوع موضوعات', 36 | 'RT_MIN_TOPIC_LEVEL_EXP' => 'حداقل سطح نمایش موضوع برای نمایش را انتخاب کنید. موضوعات بر اساس سطح و اهمیت نمایش داده خواهند شد.
(0 = استاندارد, 1 = مهم, 2 = اطلاعیه, 3 =اطلاعیه سراسری)', 37 | 'RT_NUMBER' => 'موضوعات اخیر', 38 | 'RT_NUMBER_EXP' => 'نمایش تعداد موضوعات در صفحه اصلی تالار', 39 | 'RT_PAGE_NUMBER' => 'صفحات موضوعات اخیر', 40 | 'RT_PAGE_NUMBER_EXP' => 'جهت نمایش موضوعات بیشتر می توانید از صفحه بندی استفاده کنید. جهت غیر فعال کردن ، کافیست عدد 1 را وارد کنید. چنانچه عدد 0 را وارد کنید تمامی موضوعات انجمن شامل آن خواهد بود که توصیه نمیشود.', 41 | 'RT_PARENTS' => 'نمایش انجمن های والد', 42 | 'RT_PARENTS_EXP' => 'نمایش انجمن های والد در کنار موضوعات', 43 | 'RT_SORT_START_TIME' => 'مرتب سازی بر اساس تاریخ ایجاد', 44 | 'RT_SORT_START_TIME_EXP' => 'فعال کردن گزینه مرتب سازی بر اساس تاریخ ایجاد موضوع ، به جای استفاده از آخرین زمان ارسال', 45 | 'RT_UNREAD_ONLY' => 'تنها نمایش موضوعات خوانده نشده', 46 | 'RT_UNREAD_ONLY_EXP' => 'فعال سازی جهت نمایش تنها موضوعات خوانده نشده (حتی اگر جدید یا اخیر هم نباشد). این عملکرد شامل تنظیمات مشابه نیز میباشد (چشم پوشی کردن از انجمن ها و موضوعات) در حالت معمولی. توجه: این امکان تنها برای کاربران وارد شده قابل استفاده میباشد; و مهمانان لیست معمولی را خواهند داشت', 47 | 48 | 'RT_VIEW_ON' => 'نمایش موضوعات مشابه روی:', 49 | )); 50 | -------------------------------------------------------------------------------- /language/en/info_acp_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Recent Topics', 25 | 'RECENT_TOPICS_EXPLAIN' => 'On this page you can change the settings specific for the Recent Topics extension.

Specific forums can be included or excluded by editing the respective forums in your ACP.
Also be sure to check your user permissions, which allow users to change some of the settings found below for themselves.', 26 | 27 | 'RECENT_TOPICS_LIST' => 'Display on "recent topics"', 28 | 'RECENT_TOPICS_LIST_EXPLAIN' => 'Enable to display topics in this forum in the "recent topics" extension.', 29 | 30 | 'RT_CONFIG' => 'Configuration', 31 | 'RT_ALT_LOCATION' => 'Display in alternative location', 32 | 'RT_ALT_LOCATION_EXP' => 'Use alternative location to display recent topics.
Not all styles will support this, for prosilver it will be moved to the bottom of the page.', 33 | 'RT_ANTI_TOPICS' => 'Excluded topics', 34 | 'RT_ANTI_TOPICS_EXP' => 'The IDs of topics to exclude, seperated by ", " (Example: 7, 9)
If you don't want to exclude a topic, just enter 0.', 35 | 'RT_MIN_TOPIC_LEVEL' => 'Minimum topic type level', 36 | 'RT_MIN_TOPIC_LEVEL_EXP' => 'Determines the minimum level of the topic-type to display. It will only display topics of the set level, and higher.
(0 = normal, 1 = sticky, 2 = announcement, 3 = global announcement)', 37 | 'RT_NUMBER' => 'Recent topics', 38 | 'RT_NUMBER_EXP' => 'Number of topics to display.', 39 | 'RT_PAGE_NUMBER' => 'Recent topics pages', 40 | 'RT_PAGE_NUMBER_EXP' => 'You can display more recent topics using pagination. Just enter 1 to disable this feature. If you enter 0 there will be as much pages as needed to display all topics of your forum (not advised).', 41 | 'RT_PARENTS' => 'Display parent forums', 42 | 'RT_PARENTS_EXP' => 'Display parent forums inside the topic row of recent topics.', 43 | 'RT_SORT_START_TIME' => 'Sort by topic start time', 44 | 'RT_SORT_START_TIME_EXP' => 'Enable to sort recent topics by the starting time of the topic, instead of the last post time.', 45 | 'RT_UNREAD_ONLY' => 'Only display unread topics', 46 | 'RT_UNREAD_ONLY_EXP' => 'Enable to only display unread topics (whether they are "recent" or not). This function uses the same settings (excluding forums/topics etc.) as normal mode. Note: this only works for logged-in users; guests will get the normal list.', 47 | 48 | 'RT_VIEW_ON' => 'Display recent topics on:', 49 | )); 50 | -------------------------------------------------------------------------------- /language/sv/info_acp_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Aktuella ämnen', 25 | 'RECENT_TOPICS_EXPLAIN' => 'On this page you can change the settings specific for the Recent Topics extension.

Specific forums can be included or excluded by editing the respective forums in your ACP.
Also be sure to check your user permissions, which allow users to change some of the settings found below for themselves.', 26 | 27 | 'RECENT_TOPICS_LIST' => 'Visa i "Aktuella ämnen"', 28 | 'RECENT_TOPICS_LIST_EXPLAIN' => 'Aktivera denna funktion för att visa ämnen i tillägget "Aktuella ämnen".', 29 | 30 | 'RT_CONFIG' => 'Inställningar', 31 | 'RT_ALT_LOCATION' => 'Display in alternative location', 32 | 'RT_ALT_LOCATION_EXP' => 'Use alternative location to display recent topics.
Not all styles will support this, for prosilver it will be moved to the bottom of the page.', 33 | 'RT_ANTI_TOPICS' => 'Uteslutna ämnen', 34 | 'RT_ANTI_TOPICS_EXP' => 'Separerade med ", " (exampel: 7, 9)
Ange 0 om du ej vill utesluta ämnen.', 35 | 'RT_MIN_TOPIC_LEVEL' => 'Minsta nivå av ämnestyp', 36 | 'RT_MIN_TOPIC_LEVEL_EXP' => 'Anger minsta nivå av ämnestyp som skall visas. Den inställda nivån och högre kommer att visas.
(0 = normal, 1 = klistrat, 2 = anslag, 3 = globalt anslag)', 37 | 'RT_NUMBER' => 'Antal ämnen', 38 | 'RT_NUMBER_EXP' => 'Antalet aktuella ämnen som ska visas på forumets startsida.', 39 | 'RT_PAGE_NUMBER' => 'Sidor med aktuella ämnen', 40 | 'RT_PAGE_NUMBER_EXP' => 'Du kan visa fler aktuella ämnen genom att föredela dem på flera sidor. Ange 1 för att deaktivera denna funktion. Om du anger 0 så kommer antalet sidor att anpassas till antalet ämnen i ditt forum (rekommenderas ej).', 41 | 'RT_PARENTS' => 'Visa överordnade forum', 42 | 'RT_PARENTS_EXP' => 'Visa överordnade forum inom ämnesraden för aktuella ämnen.', 43 | 'RT_SORT_START_TIME' => 'Sortera efter ämnenas startdatum', 44 | 'RT_SORT_START_TIME_EXP' => 'Aktivera detta för att sortera efter ämnenas startdatum istället för senaste svar.', 45 | 'RT_UNREAD_ONLY' => 'Visa endast olästa ämnen', 46 | 'RT_UNREAD_ONLY_EXP' => 'Aktivera denna funktion för att endast visa olästa ämnen (oavsett om de är "aktuella" eller ej). Denna funktion använder samma inställningar (uteslutna ämnen/forum osv.) som det normala läget. Notera: detta fungerar endast för inloggade användare; gäster kommer att se den normala listan.', 47 | 48 | 'RT_VIEW_ON' => 'Visa aktuella ämnen på:', 49 | )); 50 | -------------------------------------------------------------------------------- /language/it/info_acp_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Topic recenti', 25 | 'RECENT_TOPICS_EXPLAIN' => 'On this page you can change the settings specific for the Recent Topics extension.

Specific forums can be included or excluded by editing the respective forums in your ACP.
Also be sure to check your user permissions, which allow users to change some of the settings found below for themselves.', 26 | 27 | 'RECENT_TOPICS_LIST' => 'Mostra in "Topic recenti"', 28 | 'RECENT_TOPICS_LIST_EXPLAIN' => 'I topic di questo forum saranno mostrati nell’elenco "Topic recenti".', 29 | 30 | 'RT_CONFIG' => 'Configurazione', 31 | 'RT_ALT_LOCATION' => 'Display in alternative location', 32 | 'RT_ALT_LOCATION_EXP' => 'Use alternative location to display recent topics.
Not all styles will support this, for prosilver it will be moved to the bottom of the page.', 33 | 'RT_ANTI_TOPICS' => 'Topic esclusi', 34 | 'RT_ANTI_TOPICS_EXP' => 'Gli ID dei topic da escludere, separati da una virgola (es.: 7, 9)
Per non escudere alcun topic, digitare 0.', 35 | 'RT_MIN_TOPIC_LEVEL' => 'Livello minimo topic', 36 | 'RT_MIN_TOPIC_LEVEL_EXP' => 'Determina il livello minimo dei topic da mostrare: saranno mostrati i topic del livello specificato e superiori.
(0 = argomento semplice, 1 = importante, 2 = annuncio, 3 = annuncio globale)', 37 | 'RT_NUMBER' => 'Topic recenti', 38 | 'RT_NUMBER_EXP' => 'Numero di topic mostrati nella pagina principale.', 39 | 'RT_PAGE_NUMBER' => 'Pagine di topic recenti', 40 | 'RT_PAGE_NUMBER_EXP' => 'È possibile mostrare più pagine di topic recenti; per disabilitare questa funzione, digitare 1. Impostando il valore a 0, saranno create tante pagine quante ne servono per mostrare tutti i topic del forum (non consigliato).', 41 | 'RT_PARENTS' => 'Mostra forum genitore', 42 | 'RT_PARENTS_EXP' => 'Mostra il topic genitore nella riga del topic dell’elenco dei topic recenti', 43 | 'RT_SORT_START_TIME' => 'Ordina per data d’apertura', 44 | 'RT_SORT_START_TIME_EXP' => 'Abilitare per mostrare i topic in base alla loro data d’apertura e non per l’ultimo post.', 45 | 'RT_UNREAD_ONLY' => 'Mostra solo non letti', 46 | 'RT_UNREAD_ONLY_EXP' => 'Abilita per mostrare solo i topic non letti, recenti o meno; questa funzione usa le stesse impostazioni (esclusione di forum, topic eccetera) della modalità normale.
Nota: funziona solo per gli utenti registrati; gli ospiti vedranno l’elenco normale.', 47 | 48 | 'RT_VIEW_ON' => 'Mostra i topic recenti in:', 49 | )); 50 | -------------------------------------------------------------------------------- /language/ar/info_acp_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'أحدث المواضيع', 25 | 'RECENT_TOPICS_EXPLAIN' => 'On this page you can change the settings specific for the Recent Topics extension.

Specific forums can be included or excluded by editing the respective forums in your ACP.
Also be sure to check your user permissions, which allow users to change some of the settings found below for themselves.', 26 | 27 | 'RECENT_TOPICS_LIST' => 'العرض في "أحدث المواضيع" ', 28 | 'RECENT_TOPICS_LIST_EXPLAIN' => 'السماح بعرض مواضيع هذا المنتدى في قائمة "أحدث المواضيع"', 29 | 30 | 'RT_CONFIG' => 'الإعدادات', 31 | 'RT_ALT_LOCATION' => 'Display in alternative location', 32 | 'RT_ALT_LOCATION_EXP' => 'Use alternative location to display recent topics.
Not all styles will support this, for prosilver it will be moved to the bottom of the page.', 33 | 'RT_ANTI_TOPICS' => 'المواضيع المُستبعدة ', 34 | 'RT_ANTI_TOPICS_EXP' => 'اكتب علامة الفاصلة ", " بين أرقام المواضيع التي تريد عدم ظهورها في "أحدث المواضيع" (مثال : "7, 9")
اكتب القيمة "صفر" لتعطيل هذا الخيار.', 35 | 'RT_MIN_TOPIC_LEVEL' => 'نوع المواضيع ', 36 | 'RT_MIN_TOPIC_LEVEL_EXP' => 'تحديد نوع المواضيع التي تريد عرضها. سيتم العرض من الأقل إلى الأكثر.
( اكتب القيمة صفر لعرض المواضيع العادية / 1 للمُثبتة / 2 للإعلانات / 3 للإعلانات العامة )', 37 | 'RT_NUMBER' => 'عدد المواضيع ', 38 | 'RT_NUMBER_EXP' => 'عدد "أحدث المواضيع" التي ستظهر في الصفحة الرئيسية للمنتدى.', 39 | 'RT_PAGE_NUMBER' => 'عدد الصفحات ', 40 | 'RT_PAGE_NUMBER_EXP' => 'تستطيع عرض الكثير من "أحدث المواضيع" باستخدام ترقيم الصفحات. اكتب رقم 1 لتعطيل هذا الخيار. القيمة صفر تعني أن عدد الصفحات ستكون كثيرة جداً بحسب احتياجها لعرض جميع المواضيع الموجودة في منتداك ( لا يُنصح بهذا ).', 41 | 'RT_PARENTS' => 'إظهار المنتدى الأب ', 42 | 'RT_PARENTS_EXP' => 'إظهار إسم "المنتدى الأب" في التفاصيل المذكورة تحت أسم الموضوع.', 43 | 'RT_SORT_START_TIME' => 'الترتيب حسب وقت إضافة الموضوع ', 44 | 'RT_SORT_START_TIME_EXP' => 'اختيارك "نعم" يعني ترتيب أحدث المواضيع بحسب وقت إضافة الموضوع , بدلاً من الترتيب بحسب وقت آخر مشاركة.', 45 | 'RT_UNREAD_ONLY' => 'عرض المواضيع الغير مقروءة فقط ', 46 | 'RT_UNREAD_ONLY_EXP' => 'تفعيل هذا الخيار يعني اظهار المواضيع الغير مقروءة فقط ( بغض النظر لو هذه المواضيع حديثة أو قديمة ). هذا الخيار يستخدم نفس اعدادات الطريقة العادية ( استبعاد المنتدىات/المواضيع..الخ ).
ملاحظة : هذا الخيار يظهر فقط للأعضاء المسجلين دخولهم للمنتدى. الزائرين سيُشاهدون القائمة العادية.', 47 | 48 | 'RT_VIEW_ON' => 'إظهار أحدث المواضيع في :', 49 | )); 50 | -------------------------------------------------------------------------------- /language/es/info_acp_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Temas Recientes', 25 | 'RECENT_TOPICS_EXPLAIN' => 'On this page you can change the settings specific for the Recent Topics extension.

Specific forums can be included or excluded by editing the respective forums in your ACP.
Also be sure to check your user permissions, which allow users to change some of the settings found below for themselves.', 26 | 27 | 'RECENT_TOPICS_LIST' => 'Ver en "temas recientes"', 28 | 'RECENT_TOPICS_LIST_EXPLAIN' => 'Serán los temas de este foro los que se mostrarán en el índice de "temas recientes"?', 29 | 30 | 'RT_CONFIG' => 'Configuracón', 31 | 'RT_ALT_LOCATION' => 'Display in alternative location', 32 | 'RT_ALT_LOCATION_EXP' => 'Use alternative location to display recent topics.
Not all styles will support this, for prosilver it will be moved to the bottom of the page.', 33 | 'RT_ANTI_TOPICS' => 'Temas excluidos', 34 | 'RT_ANTI_TOPICS_EXP' => 'Separados por ", " (Por ejemplo: 7, 9)
Si no quiere excluir un tema, simplemente introduzca 0.', 35 | 'RT_MIN_TOPIC_LEVEL' => 'Tipo de nivel mínimo del tema', 36 | 'RT_MIN_TOPIC_LEVEL_EXP' => 'Determina el tipo de nivel mínimo del tema a mostrar. Se mostrará temas del nivel establecido, y superior.
(0 = normal, 1 = nota, 2 = anuncio, 3 = anuncio global).', 37 | 'RT_NUMBER' => 'Temas recientes', 38 | 'RT_NUMBER_EXP' => 'Número de temas mostrados en el índice.', 39 | 'RT_PAGE_NUMBER' => 'Páginas de temas recientes', 40 | 'RT_PAGE_NUMBER_EXP' => 'Puede mostrar más temas recientes usando una pequeña paginación. Solo tiene que introducir 1 para desactivar esta función. Si introduce 0, habrá tantas páginas como sean necesarias para mostrar todos los temas.', 41 | 'RT_PARENTS' => 'Mostrar foros padre', 42 | 'RT_PARENTS_EXP' => 'Mostrar foros padre dentro de la fila tema, de temas recientes.', 43 | 'RT_SORT_START_TIME' => 'Ordenar temas por la hora de inicio', 44 | 'RT_SORT_START_TIME_EXP' => 'Habilitar para ordenar los temas recientes sobre la hora de inicio del tema, en lugar de la última que se respondió.', 45 | 'RT_UNREAD_ONLY' => 'Mostrar sólo temas no leídos', 46 | 'RT_UNREAD_ONLY_EXP' => 'Esta opción sólo mostrará temas no leídos (tanto si son "recientes" o no). Esta función utiliza la misma configuración (excluyendo forums/topics etc.) que el modo normal. Nota: esto sólo funciona para usuarios registrados e identificados; los invitados podrán obtener la lista normal.', 47 | 48 | 'RT_VIEW_ON' => 'Ver temas recientes en:', 49 | )); 50 | -------------------------------------------------------------------------------- /language/ro/info_acp_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Discuţii recente', 25 | 'RECENT_TOPICS_EXPLAIN' => 'On this page you can change the settings specific for the Recent Topics extension.

Specific forums can be included or excluded by editing the respective forums in your ACP.
Also be sure to check your user permissions, which allow users to change some of the settings found below for themselves.', 26 | 27 | 'RECENT_TOPICS_LIST' => 'Afişare pe "subiecte recente"', 28 | 'RECENT_TOPICS_LIST_EXPLAIN' => 'Activați pentru a afișa subiectele acestui forum în extensia "subiecte recente".', 29 | 30 | 'RT_CONFIG' => 'Configurare', 31 | 'RT_ALT_LOCATION' => 'Display in alternative location', 32 | 'RT_ALT_LOCATION_EXP' => 'Use alternative location to display recent topics.
Not all styles will support this, for prosilver it will be moved to the bottom of the page.', 33 | 'RT_ANTI_TOPICS' => 'Excludere subiecte', 34 | 'RT_ANTI_TOPICS_EXP' => 'ID-ul subiectelor ce vor fi excluse, separate prin ", " (Exemplu: 7, 9)
Dacă nu vreţi să excludeţi subiecte, introduceţi 0.', 35 | 'RT_MIN_TOPIC_LEVEL' => 'Nivel minim subiect', 36 | 'RT_MIN_TOPIC_LEVEL_EXP' => 'Determină nivelul minim al tipurilor de subiecte afişate. Această opţiune va determina afişarea doar a subiectelor de nivelul introdus si mai mare.
(0 = normal, 1 = lipicios, 2 = anunţuri, 3 = anunţuri globale)', 37 | 'RT_NUMBER' => 'Subiecte recente', 38 | 'RT_NUMBER_EXP' => 'Număr de subiecte afişate.', 39 | 'RT_PAGE_NUMBER' => 'Pagini cu subiecte recente', 40 | 'RT_PAGE_NUMBER_EXP' => 'Puteţi afişa mai multe subiecte recente folosind paginarea. Introduceţi 1 pentru dezactivarea acestei facilităţi. Dacă introduceţi 0 vor fi afişate multe pagini pentru a se afişa toate subiectele din forum (nerecomandat).', 41 | 'RT_PARENTS' => 'Afişare forum parinte', 42 | 'RT_PARENTS_EXP' => 'Afişarea forumului parinte în interiorul rândului cu subiectul din discuţii recente.', 43 | 'RT_SORT_START_TIME' => 'Sortare după data subiectului', 44 | 'RT_SORT_START_TIME_EXP' => 'Activarea sortării subiectelor recente în funcţie de data creării acestora în loc de data ultimului mesaj.', 45 | 'RT_UNREAD_ONLY' => 'Afişază doar subiecte necitite', 46 | 'RT_UNREAD_ONLY_EXP' => 'Activarea afişării doar a subiectelor necitite (indiferent dacă acestea sunt "recente" sau nu). Această funcție utilizează aceleași setări (cu excepția forumuri / subiecte etc.) ca în mod normal. Notă: Aceasta funcționează doar pentru utilizatorii autentificați; vizitatorii vor vedea lista normală.', 47 | 48 | 'RT_VIEW_ON' => 'Afişarea subiectelor recente pe:', 49 | )); 50 | -------------------------------------------------------------------------------- /language/el/info_acp_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Πρόσφατα Θέματα', 25 | 'RECENT_TOPICS_EXPLAIN' => 'On this page you can change the settings specific for the Recent Topics extension.

Specific forums can be included or excluded by editing the respective forums in your ACP.
Also be sure to check your user permissions, which allow users to change some of the settings found below for themselves.', 26 | 27 | 'RECENT_TOPICS_LIST' => 'Εμφάνιση στα "πρόσφατα θέματα"', 28 | 'RECENT_TOPICS_LIST_EXPLAIN' => 'Να εμφανίζονται τα θέματα αυτής της συζήτησης στα "πρόσφατα θέματα".', 29 | 30 | 'RT_CONFIG' => 'Ρυθμίσεις', 31 | 'RT_ALT_LOCATION' => 'Display in alternative location', 32 | 'RT_ALT_LOCATION_EXP' => 'Use alternative location to display recent topics.
Not all styles will support this, for prosilver it will be moved to the bottom of the page.', 33 | 'RT_ANTI_TOPICS' => 'Εξαιρούμενα θέματα', 34 | 'RT_ANTI_TOPICS_EXP' => 'Χωρισμένα με ", " (Παράδειγμα: 7, 9)
Εάν δεν θέλετε να εξαιρέσετε κάποιο θέμα, απλώς εισάγετε 0.', 35 | 'RT_MIN_TOPIC_LEVEL' => 'Ελάχιστο επίπεδο τύπου θέματος', 36 | 'RT_MIN_TOPIC_LEVEL_EXP' => 'Καθορίζει το ελάχιστο επίπεδο του τύπου θεμάτων που θα εμφανίζονται. Θα εμφανίζονται θέματα από το ορισμένο επίπεδο και πάνω.
(0 = κανονικό, 1 = σημείωση, 2 = ανακοίνωση, 3 = γενική ανακοίνωση)', 37 | 'RT_NUMBER' => 'Πρόσφατα θέματα', 38 | 'RT_NUMBER_EXP' => 'Πλήθος θεμάτων εμφανιζόμενα στο ευρετήριο.', 39 | 'RT_PAGE_NUMBER' => 'Σελίδες προσφάτων θεμάτων', 40 | 'RT_PAGE_NUMBER_EXP' => 'Μπορείτε να εμφανίσετε μερικά ακόμα πρόσφατα θέματα μοιράζοντάς τα σε σελίδες. Απλώς εισάγετε 1 για να απενεργοποιήσετε αυτή τη λειτουργία. Εάν εισάγετε 0 θα υπάρχουν τόσες σελίδες όσες χρειάζονται για να εμφανίζονται όλα τα θέματα.', 41 | 'RT_PARENTS' => 'Εμφάνιση μητρικών συζητήσεων', 42 | 'RT_PARENTS_EXP' => 'Εμφάνιση των μητρικών συζητήσεων (parent forums) στη γραμμή κάθε θέματος στα πρόσφατα θέματα.', 43 | 'RT_SORT_START_TIME' => 'Ταξινόμηση ανά χρόνο δημιουργίας των θεμάτων', 44 | 'RT_SORT_START_TIME_EXP' => 'Ενεργοποιήστε για να ταξινομούνται τα θέματα με βάση τον χρόνο δημιουργίας τους, αντί για τον χρόνο της τελευταίας δημοσίευσης.', 45 | 'RT_UNREAD_ONLY' => 'Εμφάνιση μόνο μη-αναγνωσμένων θεμάτων', 46 | 'RT_UNREAD_ONLY_EXP' => 'Αυτή η λειτουργία θα εμφανίζει μόνο μη-αναγνωσμένα θέματα (είτε είναι "πρόσφατα" είτε όχι). Αυτή η λειτουργία χρησιμοποιεί τις ίδιες ρυθμίσεις (εξαιρούμενες συζητήσεις/θέματα κτλ.) με την κανονική. Σημείωση: αυτό λειτουργεί μονάχα για συνδεδεμένους χρήστες. Οι επισκέπτες θα βλέπουν την κανονική λίστα.', 47 | 48 | 'RT_VIEW_ON' => 'Εμφάνιση προσφάτων θεμάτων σε:', 49 | )); 50 | -------------------------------------------------------------------------------- /language/de/info_acp_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Aktuelle Themen', 25 | 'RECENT_TOPICS_EXPLAIN' => 'On this page you can change the settings specific for the Recent Topics extension.

Specific forums can be included or excluded by editing the respective forums in your ACP.
Also be sure to check your user permissions, which allow users to change some of the settings found below for themselves.', 26 | 27 | 'RECENT_TOPICS_LIST' => 'In „aktuelle Themen“ anzeigen', 28 | 'RECENT_TOPICS_LIST_EXPLAIN' => 'Sollen Themen aus diesem Forum in „aktuelle Themen“ angezeigt werden?', 29 | 30 | 'RT_CONFIG' => 'Konfiguration von aktuelle Themen', 31 | 'RT_ALT_LOCATION' => 'Display in alternative location', 32 | 'RT_ALT_LOCATION_EXP' => 'Use alternative location to display recent topics.
Not all styles will support this, for prosilver it will be moved to the bottom of the page.', 33 | 'RT_ANTI_TOPICS' => 'Ausgeschlossene Themen', 34 | 'RT_ANTI_TOPICS_EXP' => 'Mit „, “ trennen (Beispiel: 7, 9)
Wenn kein Thema ausgeschlossen werden soll „1“ eingeben. Wenn du „0“ eingibst, werden so viele Seiten angezeigt, wie benötigt werden, um alle Themen auszugeben.', 35 | 'RT_MIN_TOPIC_LEVEL' => 'Minimaler Thementyp', 36 | 'RT_MIN_TOPIC_LEVEL_EXP' => 'Definiert das Minimum eines Thementyps, der angezeigt wird. Wenn du ein Thementyp angibst, werden nur Themen dieses oder eines höheren Typs angezeigt.
(0 = Normal, 1 = Wichtig, 2 = Ankündigung, 3 = Globale Ankündigung)', 37 | 'RT_NUMBER' => 'Aktuelle Themen', 38 | 'RT_NUMBER_EXP' => 'Anzahl der Themen, die angezeigt werden', 39 | 'RT_PAGE_NUMBER' => 'Seitenanzahl „Aktuelle Themen“', 40 | 'RT_PAGE_NUMBER_EXP' => 'Du kannst weitere aktuelle Themen mit einer kleinen Seitennavigation anzeigen lassen. Um das Feature zu deaktivieren einfach „0“ eintragen.', 41 | 'RT_PARENTS' => 'Übergeordnete Foren anzeigen', 42 | 'RT_PARENTS_EXP' => 'Übergeordnete Foren in der Liste der aktuellen Themen anzeigen.', 43 | 'RT_SORT_START_TIME' => 'Nach Themen Startzeit sortieren', 44 | 'RT_SORT_START_TIME_EXP' => 'Wenn diese Option aktiviert ist, werden die Themen nach dem Datum des ersten Beitrags anstelle des letzten Beitrags sortiert.', 45 | 'RT_UNREAD_ONLY' => 'Nur ungelesene Themen anzeigen', 46 | 'RT_UNREAD_ONLY_EXP' => 'Diese Option zeigt nur ungelesene Themen an (egal ob diese aktuell sind oder nicht). Diese Funktion nutzt die gleichen Einstellungen (Ausgeschlossene Foren / Themen, etc.) wie die normale Version. Hinweis: diese Funktion steht nur eingeloggten Benutzern zur Verfügung; Gäste sehen die normale „Aktuelle Themen“ Liste.', 47 | 48 | 'RT_VIEW_ON' => 'Recent topics anzeigen:', 49 | )); 50 | -------------------------------------------------------------------------------- /language/et/info_acp_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Hiljutised Teemad', 25 | 'RECENT_TOPICS_EXPLAIN' => 'On this page you can change the settings specific for the Recent Topics extension.

Specific forums can be included or excluded by editing the respective forums in your ACP.
Also be sure to check your user permissions, which allow users to change some of the settings found below for themselves.', 26 | 27 | 'RECENT_TOPICS_LIST' => 'Foorumi teemad "hiljutised teemad" laienduses', 28 | 'RECENT_TOPICS_LIST_EXPLAIN' => 'Väärtus "Jah" näitab selle foorumi uusi postitusi laienduses "Hiljutised teemad".', 29 | 30 | 'RT_CONFIG' => 'Seadistus', 31 | 'RT_ALT_LOCATION' => 'Display in alternative location', 32 | 'RT_ALT_LOCATION_EXP' => 'Use alternative location to display recent topics.
Not all styles will support this, for prosilver it will be moved to the bottom of the page.', 33 | 'RT_ANTI_TOPICS' => 'Välistatud teemad', 34 | 'RT_ANTI_TOPICS_EXP' => 'Eraldatud "," (Näiteks: 7, 9)
Kui sa aga ei soovi mingit kindlat teemat välistada, siis sisesta väärtuseks 0', 35 | 'RT_MIN_TOPIC_LEVEL' => 'Näita "Hiljutised teemad" laienduses ainult kindlat teema tüüpi', 36 | 'RT_MIN_TOPIC_LEVEL_EXP' => 'Määra millist teemade tüüpi tuleks ainult näidata "Hiljutised teemad" laienduses. Antud seadistus näitab teemasi alates määratletud teematüübist, nt kleebis ja sellest kõrgema teema tüübiga teemad.
(0 = tavaline, 1 = kleebis, 2 = teadaanne, 3 = üldteadaanne)', 37 | 'RT_NUMBER' => 'Hiljutiste teemade arv', 38 | 'RT_NUMBER_EXP' => 'Teemade arv, mida näidatakse esilehel laienduse ühel leheküljel.', 39 | 'RT_PAGE_NUMBER' => 'Lehekülgede arv', 40 | 'RT_PAGE_NUMBER_EXP' => 'Saad näidata rohkem teemasi kasutades lehekülgesi laienduses. Sisesta väärtuseks 1, et keelata antud funktsioon. Kui aga sisestad väärtuseks 0, siis kasutatakse nii palju lehekülgi, et näidata kõiki teemasi foorumis (ei ole soovitatav).', 41 | 'RT_PARENTS' => 'Näita vanem foorumit', 42 | 'RT_PARENTS_EXP' => 'Näitab vanem foorumit hiljutistes teemades.', 43 | 'RT_SORT_START_TIME' => 'Näita teemasi nende postitamise aja järgi', 44 | 'RT_SORT_START_TIME_EXP' => 'Luba sorteerida teemad nende tegemise järgi, mitte aga viimase postituste järgi.', 45 | 'RT_UNREAD_ONLY' => 'Näita ainult lugemata teemasi', 46 | 'RT_UNREAD_ONLY_EXP' => 'Lubades selle, näidatakse ainult lugemata teemasi (ükskõik kas nad on "hiljutised" või mitte). Antud funktsioon kasutab samu seadeid (va foorumid/teemad jne.) nagu tavaline vaadegi. Märkus: see töötab ainult registreeritud kasutajatel; külalised näevad ikka tavalist vaadet.', 47 | 48 | 'RT_VIEW_ON' => 'Näita "Hiljutised teemad" laiendust:', 49 | )); 50 | -------------------------------------------------------------------------------- /language/nl/info_acp_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Recente Onderwerpen', 25 | 'RECENT_TOPICS_EXPLAIN' => 'On this page you can change the settings specific for the Recent Topics extension.

Specific forums can be included or excluded by editing the respective forums in your ACP.
Also be sure to check your user permissions, which allow users to change some of the settings found below for themselves.', 26 | 27 | 'RECENT_TOPICS_LIST' => 'Weergeven in "recent onderwerpen" lijst', 28 | 'RECENT_TOPICS_LIST_EXPLAIN' => 'Moeten onderwerpen uit dit forum worden weergegeven in de "recente onderwerpen" lijst?', 29 | 30 | 'RT_CONFIG' => 'Configuratie', 31 | 'RT_ALT_LOCATION' => 'Display in alternative location', 32 | 'RT_ALT_LOCATION_EXP' => 'Use alternative location to display recent topics.
Not all styles will support this, for prosilver it will be moved to the bottom of the page.', 33 | 'RT_ANTI_TOPICS' => 'Uitgesloten onderwerpen', 34 | 'RT_ANTI_TOPICS_EXP' => 'Gescheiden door een ", " (Voorbeeld: 7, 9)
Als je geen onderwerpen wilt uitsluiten, vul een 0 in.', 35 | 'RT_MIN_TOPIC_LEVEL' => 'Minimum topic type level', 36 | 'RT_MIN_TOPIC_LEVEL_EXP' => 'Determines the minimum level of the topic type to display. It will display topics of the set level, and higher.
(0 = normal, 1 = sticky, 2 = announcement, 3 = global announcement)', 37 | 'RT_NUMBER' => 'Aantal recente onderwerpen', 38 | 'RT_NUMBER_EXP' => 'Aantal onderwerpen dat weergegeven wordt op de forumindex.', 39 | 'RT_PAGE_NUMBER' => 'Aantal recente onderwerpen pagina's', 40 | 'RT_PAGE_NUMBER_EXP' => 'Je kan bij het weergeven van meerdere pagina's aan recente onderwerpen aangeven hoeveel pagina's je dit wilt tonen. Vul 1 in om deze functie uit te schakelen. Als je een 0 invoert worden er net zoveel pagina's gebruikt als nodig om alle onderwerpen weer te geven.', 41 | 'RT_PARENTS' => 'Weergeven van hoofdforums', 42 | 'RT_PARENTS_EXP' => 'Geeft de hoofdforums weer in de onderwerpregel van de recente onderwerpen.', 43 | 'RT_SORT_START_TIME' => 'Sorteer op start-tijd', 44 | 'RT_SORT_START_TIME_EXP' => 'Met deze optie worden recente onderwerpen gesorteerd op tijd van plaatsing, in plaats van de tijd van het laatste bericht.', 45 | 'RT_UNREAD_ONLY' => 'Alleen ongelezen onderwerpen weergeven', 46 | 'RT_UNREAD_ONLY_EXP' => 'Deze optie zorgt ervoor dat alleen de ongelezen onderwerpen worden weergegeven (ongeacht of ze recent zijn). Deze functie gebruikt dezelfde instellingen (uitsluiting van forums/onderwerpen etc.) als in de normale situatie. NB: dit werkt alleen bij ingelogde gebruikers; gasten krijgen de normale lijst te zien.', 47 | 48 | 'RT_VIEW_ON' => 'Geef recente onderwerpen weer bij:', 49 | )); 50 | -------------------------------------------------------------------------------- /language/ru/info_acp_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Последние темы', 25 | 'RECENT_TOPICS_EXPLAIN' => 'On this page you can change the settings specific for the Recent Topics extension.

Specific forums can be included or excluded by editing the respective forums in your ACP.
Also be sure to check your user permissions, which allow users to change some of the settings found below for themselves.', 26 | 27 | 'RECENT_TOPICS_LIST' => 'Показывать последние темы', 28 | 'RECENT_TOPICS_LIST_EXPLAIN' => 'Если включено, то темы этого форума будут отображаться в списке последних тем.', 29 | 30 | 'RT_CONFIG' => 'Настройка', 31 | 'RT_ALT_LOCATION' => 'Display in alternative location', 32 | 'RT_ALT_LOCATION_EXP' => 'Use alternative location to display recent topics.
Not all styles will support this, for prosilver it will be moved to the bottom of the page.', 33 | 'RT_ANTI_TOPICS' => 'Исключённые темы', 34 | 'RT_ANTI_TOPICS_EXP' => 'Разделённый запятыми список идентификаторов тем, которые не должны отображаться в списке последних тем (например: 7, 9)
Установите 0 для отключения данной функции.', 35 | 'RT_MIN_TOPIC_LEVEL' => 'Минимальный статус темы', 36 | 'RT_MIN_TOPIC_LEVEL_EXP' => 'Минимальный статус темы для отображения. В списке последних тем будут отображены темы, имеющие указанный статус, и выше.
(0 = обычная, 1 = прилепленная, 2 = объявление, 3 = важная)', 37 | 'RT_NUMBER' => 'Число тем в списке', 38 | 'RT_NUMBER_EXP' => 'Количество тем, отображаемых на главной странице.', 39 | 'RT_PAGE_NUMBER' => 'Число страниц в списке тем', 40 | 'RT_PAGE_NUMBER_EXP' => 'Можно отображать большее число тем при использовании постраничного разбиения списка. Установите 1 для отключения данной функции. Если установлено значение 0, список будет иметь столько страниц, сколько необходимо для отображения всех тем на конференции (не рекомендуется).', 41 | 'RT_PARENTS' => 'Показывать родительские форумы', 42 | 'RT_PARENTS_EXP' => 'Если включено, будут отображены названия родительских форумов для тем в списке.', 43 | 'RT_SORT_START_TIME' => 'Сортировать по дате создания', 44 | 'RT_SORT_START_TIME_EXP' => 'Если включено, темы будут отсортированы по дате их создания, а не по дате последнего сообщения.', 45 | 'RT_UNREAD_ONLY' => 'Только непрочтённые', 46 | 'RT_UNREAD_ONLY_EXP' => 'Если включено, в списке последних тем будут отображены только темы с непрочтёнными сообщениями, независимо от того, являются они последними или нет. При этом будут использованы те же настройки (исключённые темы, форумы и т.д.), что и в обычном режиме. Учтите, что данная функция работает только для зарегистрированных пользователей. Для гостей будет отображён обычный список.', 47 | 48 | 'RT_VIEW_ON' => 'Размещение списка последних тем:', 49 | )); 50 | -------------------------------------------------------------------------------- /language/pl/info_acp_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Najnowsze tematy', 25 | 'RECENT_TOPICS_EXPLAIN' => 'On this page you can change the settings specific for the Recent Topics extension.

Specific forums can be included or excluded by editing the respective forums in your ACP.
Also be sure to check your user permissions, which allow users to change some of the settings found below for themselves.', 26 | 27 | 'RECENT_TOPICS_LIST' => 'Wyświetlaj najnowsze tematy', 28 | 'RECENT_TOPICS_LIST_EXPLAIN' => 'Jeśli wybrano Tak, tematy zamieszczone na tym forum będą wyświetlane na liście najnowszych tematów.', 29 | 30 | 'RT_CONFIG' => 'Ustawienia', 31 | 'RT_ALT_LOCATION' => 'Display in alternative location', 32 | 'RT_ALT_LOCATION_EXP' => 'Use alternative location to display recent topics.
Not all styles will support this, for prosilver it will be moved to the bottom of the page.', 33 | 'RT_ANTI_TOPICS' => 'Pomiń tematy', 34 | 'RT_ANTI_TOPICS_EXP' => 'Podaj identyfikatory tematów do pominięcia, oddzielając je przecinkiem np. 7, 9. Wartość zero (0) wyłącza tę funkcję.', 35 | 'RT_MIN_TOPIC_LEVEL' => 'Minimalny typ tematu', 36 | 'RT_MIN_TOPIC_LEVEL_EXP' => 'Tylko tematy o podanym i większym typie będą wyświetlane na liście najnowszych tematów (0 – zwykły temat, 1 – przyklejony temat, 2 – ogłoszenie, 3 – ogłoszenie globalne).', 37 | 'RT_NUMBER' => 'Liczba najnowszych tematów na stronie', 38 | 'RT_NUMBER_EXP' => 'Limit najnowszych tematów wyświetlanych na każdej stronie.', 39 | 'RT_PAGE_NUMBER' => 'Maksymalna liczba stron', 40 | 'RT_PAGE_NUMBER_EXP' => 'Limit stron, na które podzielona zostanie lista najnowszych tematów. Wartość jeden (1) wyłącza tę funkcję. Wartość zero (0) spowoduje wyświetlenie tylu stron, ile potrzeba do wyświetlenia wszystkich tematów na forum (niezalecane).', 41 | 'RT_PARENTS' => 'Wyświetlaj macierzyste fora', 42 | 'RT_PARENTS_EXP' => 'Włączenie tej funkcji spowoduje wyświetlanie nazw macierzystych forów jako odnośników pod nazwą tematu.', 43 | 'RT_SORT_START_TIME' => 'Wyświetlaj wg daty rozpoczęcia tematu', 44 | 'RT_SORT_START_TIME_EXP' => 'Włączenie tej funkcji spowoduje sortowanie najnowszych tematów wg daty rozpoczęcia tematu, zamiast domyślnego sortowania wg daty ostatniego posta.', 45 | 'RT_UNREAD_ONLY' => 'Wyświetlaj tylko nieprzeczytane tematy', 46 | 'RT_UNREAD_ONLY_EXP' => 'Włączenie tej funkcji spowoduje wyświetlanie na liście tylko nieprzeczytanych tematów. Ta opcja wykorzystuje te same ustawienia co tryb najnowszych tematów. Informacja: Opcja działa tylko dla zalogowanych użytkowników. Dla gości nadal jest wyświetlana lista najnowszych tematów.', 47 | 48 | 'RT_VIEW_ON' => 'Wyświetlanie najnowszych tematów', 49 | )); 50 | -------------------------------------------------------------------------------- /acp/recenttopics_module.php: -------------------------------------------------------------------------------- 1 | add_lang('acp/common'); 23 | $this->tpl_name = 'acp_recenttopics'; 24 | $this->page_title = $user->lang('RECENT_TOPICS'); 25 | 26 | $form_key = 'acp_recenttopics'; 27 | add_form_key($form_key); 28 | 29 | if ($request->is_set_post('submit')) 30 | { 31 | if (!check_form_key($form_key)) 32 | { 33 | trigger_error($user->lang('FORM_INVALID') . adm_back_link($this->u_action), E_USER_WARNING); 34 | } 35 | 36 | $rt_alt_location = $request->variable('rt_alt_location', false); 37 | $config->set('rt_alt_location', $rt_alt_location); 38 | 39 | // variable should be '' as it is a string ("1, 2, 3928") here, not an integer. 40 | $rt_anti_topics = $request->variable('rt_anti_topics', '0'); 41 | $config->set('rt_anti_topics', $rt_anti_topics); 42 | 43 | $rt_min_topic_level = $request->variable('rt_min_topic_level', 0); 44 | $config->set('rt_min_topic_level', $rt_min_topic_level); 45 | 46 | $rt_number = $request->variable('rt_number', 5); 47 | $config->set('rt_number', $rt_number); 48 | 49 | $rt_page_number = $request->variable('rt_page_number', 0); 50 | $config->set('rt_page_number', $rt_page_number); 51 | 52 | $rt_parents = $request->variable('rt_parents', false); 53 | $config->set('rt_parents', $rt_parents); 54 | 55 | $rt_sort_start_time = $request->variable('rt_sort_start_time', false); 56 | $config->set('rt_sort_start_time', $rt_sort_start_time); 57 | 58 | $rt_unread_only = $request->variable('rt_unread_only', false); 59 | $config->set('rt_unread_only', $rt_unread_only); 60 | 61 | $rt_index = $request->variable('rt_index', 0); 62 | $config->set('rt_index', $rt_index); 63 | 64 | // Enable on other extension pages? 65 | $rt_on_newspage = $request->variable('rt_on_newspage', 0); 66 | $config->set('rt_on_newspage', $rt_on_newspage); 67 | 68 | trigger_error($user->lang['CONFIG_UPDATED'] . adm_back_link($this->u_action)); 69 | } 70 | 71 | $template->assign_vars(array( 72 | 'RT_ALT_LOCATION' => isset($config['rt_alt_location']) ? $config['rt_alt_location'] : false, 73 | 'RT_ANTI_TOPICS' => isset($config['rt_anti_topics']) ? $config['rt_anti_topics'] : '', 74 | 'RT_MIN_TOPIC_LEVEL' => isset($config['rt_min_topic_level']) ? $config['rt_min_topic_level'] : '', 75 | 'RT_NUMBER' => isset($config['rt_number']) ? $config['rt_number'] : '', 76 | 'RT_PAGE_NUMBER' => isset($config['rt_page_number']) ? $config['rt_page_number'] : '', 77 | 'RT_PARENTS' => isset($config['rt_parents']) ? $config['rt_parents'] : false, 78 | 'RT_UNREAD_ONLY' => isset($config['rt_unread_only']) ? $config['rt_unread_only'] : false, 79 | 'RT_SORT_START_TIME' => isset($config['rt_sort_start_time']) ? $config['rt_sort_start_time'] : false, 80 | 81 | 'RT_INDEX' => isset($config['rt_index']) ? $config['rt_index'] : false, 82 | 'RT_ON_NEWSPAGE' => isset($config['rt_on_newspage']) ? $config['rt_on_newspage'] : false, 83 | 'S_RT_NEWSPAGE' => $phpbb_extension_manager->is_enabled('nickvergessen/newspage'), 84 | 85 | 'U_ACTION' => $this->u_action, 86 | )); 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /styles/pbtech/template/recent_topics_body.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |

{L_RECENT_TOPICS}

4 |
5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 48 | 49 | 50 |
51 |
52 | {L_NO_TOPICS} 53 |
54 |
55 | 56 | 57 | 58 |
59 | 62 |
63 | 64 | 65 |
66 |
67 | -------------------------------------------------------------------------------- /styles/pbwow3/template/recent_topics_body.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |

{L_RECENT_TOPICS}

4 |
5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 48 | 49 | 50 |
51 |
52 | {L_NO_TOPICS} 53 |
54 |
55 | 56 | 57 | 58 |
59 | 62 |
63 | 64 | 65 |
66 |
67 | -------------------------------------------------------------------------------- /migrations/release_2_0_6.php: -------------------------------------------------------------------------------- 1 | db_tools->sql_column_exists($this->table_prefix . 'users', 'user_rt____'); 19 | } 20 | 21 | static public function depends_on() 22 | { 23 | return array( 24 | '\paybas\recenttopics\migrations\release_2_0_5', 25 | ); 26 | } 27 | 28 | public function update_schema() 29 | { 30 | return array( 31 | 'add_columns' => array( 32 | $this->table_prefix . 'users' => array( 33 | 'user_rt_enable' => array('BOOL', 1), 34 | 'user_rt_alt_location' => array('BOOL', 0), 35 | 'user_rt_sort_start_time' => array('BOOL', 0), 36 | 'user_rt_unread_only' => array('BOOL', 0), 37 | ), 38 | ), 39 | ); 40 | } 41 | 42 | public function revert_schema() 43 | { 44 | return array( 45 | 'drop_columns' => array( 46 | $this->table_prefix . 'users' => array( 47 | 'user_rt_enable', 48 | 'user_rt_alt_location', 49 | 'user_rt_sort_start_time', 50 | 'user_rt_unread_only', 51 | ), 52 | ), 53 | ); 54 | } 55 | 56 | public function update_data() 57 | { 58 | return array( 59 | array('config.remove', array('rt_unreadonly')), 60 | array('config.add', array('rt_unread_only', 0)), 61 | array('config.add', array('rt_alt_location', 0)), 62 | array('config.update', array('rt_version', '2.0.6')), 63 | 64 | array('permission.add', array('u_rt_view')), 65 | array('permission.add', array('u_rt_enable')), 66 | array('permission.add', array('u_rt_alt_location')), 67 | array('permission.add', array('u_rt_sort_start_time')), 68 | array('permission.add', array('u_rt_unread_only')), 69 | 70 | array('permission.permission_set', array('ROLE_USER_FULL', 'u_rt_view')), 71 | array('permission.permission_set', array('ROLE_USER_FULL', 'u_rt_enable')), 72 | array('permission.permission_set', array('ROLE_USER_FULL', 'u_rt_alt_location')), 73 | array('permission.permission_set', array('ROLE_USER_FULL', 'u_rt_sort_start_time')), 74 | array('permission.permission_set', array('ROLE_USER_FULL', 'u_rt_unread_only')), 75 | array('permission.permission_set', array('ROLE_USER_STANDARD', 'u_rt_view')), 76 | array('permission.permission_set', array('ROLE_USER_NOPM', 'u_rt_view')), 77 | array('permission.permission_set', array('ROLE_USER_NOAVATAR', 'u_rt_view')), 78 | array('permission.permission_set', array('ROLE_USER_NEW_MEMBER', 'u_rt_view')), 79 | array('permission.permission_set', array('ROLE_USER_NOAVATAR', 'u_rt_view')), 80 | array('permission.permission_set', array('GUESTS', 'u_rt_view', 'group')), 81 | ); 82 | } 83 | 84 | public function revert_data() 85 | { 86 | return array( 87 | array('config.adde', array('rt_unreadonly', 0)), 88 | array('config.remove', array('rt_unread_only')), 89 | array('config.remove', array('rt_alt_location')), 90 | array('config.update', array('rt_version', '2.0.5')), 91 | 92 | array('permission.remove', array('u_rt_view')), 93 | array('permission.remove', array('u_rt_enable')), 94 | array('permission.remove', array('u_rt_alt_location')), 95 | array('permission.remove', array('u_rt_sort_start_time')), 96 | array('permission.remove', array('u_rt_unread_only')), 97 | ); 98 | } 99 | } 100 | -------------------------------------------------------------------------------- /event/ucp_listener.php: -------------------------------------------------------------------------------- 1 | auth = $auth; 36 | $this->config = $config; 37 | $this->request = $request; 38 | $this->template = $template; 39 | $this->user = $user; 40 | } 41 | 42 | static public function getSubscribedEvents() 43 | { 44 | return array( 45 | 'core.ucp_prefs_view_data' => 'ucp_prefs_get_data', 46 | 'core.ucp_prefs_view_update_data' => 'ucp_prefs_set_data', 47 | ); 48 | } 49 | 50 | public function ucp_prefs_get_data($event) 51 | { 52 | // Request the user option vars and add them to the data array 53 | $event['data'] = array_merge($event['data'], array( 54 | 'rt_enable' => $this->request->variable('rt_enable', (int)$this->user->data['user_rt_enable']), 55 | 'rt_alt_location' => $this->request->variable('rt_alt_location', (int)$this->user->data['user_rt_alt_location']), 56 | 'rt_sort_start_time' => $this->request->variable('rt_sort_start_time', (int)$this->user->data['user_rt_sort_start_time']), 57 | 'rt_unread_only' => $this->request->variable('rt_unread_only', (int)$this->user->data['user_rt_unread_only']), 58 | )); 59 | 60 | // Output the data vars to the template (except on form submit) 61 | if (!$event['submit'] && $this->auth->acl_get('u_rt_view')) 62 | { 63 | $this->user->add_lang_ext('paybas/recenttopics', 'recenttopics_ucp'); 64 | $template_vars = array(); 65 | 66 | if ($this->auth->acl_get('u_rt_enable') || $this->auth->acl_get('u_rt_alt_location') || $this->auth->acl_get('u_rt_sort_start_time') || $this->auth->acl_get('u_rt_unread_only')) 67 | { 68 | $template_vars += array( 69 | 'S_RT_SHOW' => true, 70 | ); 71 | } 72 | 73 | if ($this->auth->acl_get('u_rt_enable')) 74 | { 75 | $template_vars += array( 76 | 'A_RT_ENABLE' => true, 77 | 'S_RT_ENABLE' => $event['data']['rt_enable'], 78 | ); 79 | } 80 | 81 | if ($this->auth->acl_get('u_rt_alt_location')) 82 | { 83 | $template_vars += array( 84 | 'A_RT_ALT_LOCATION' => true, 85 | 'S_RT_ALT_LOCATION' => $event['data']['rt_alt_location'], 86 | ); 87 | } 88 | 89 | if ($this->auth->acl_get('u_rt_sort_start_time')) 90 | { 91 | $template_vars += array( 92 | 'A_RT_SORT_START_TIME' => true, 93 | 'S_RT_SORT_START_TIME' => $event['data']['rt_sort_start_time'], 94 | ); 95 | } 96 | 97 | if ($this->auth->acl_get('u_rt_unread_only')) 98 | { 99 | $template_vars += array( 100 | 'A_RT_UNREAD_ONLY' => true, 101 | 'S_RT_UNREAD_ONLY' => $event['data']['rt_unread_only'], 102 | ); 103 | } 104 | 105 | $this->template->assign_vars($template_vars); 106 | } 107 | } 108 | 109 | public function ucp_prefs_set_data($event) 110 | { 111 | $event['sql_ary'] = array_merge($event['sql_ary'], array( 112 | 'user_rt_enable' => $event['data']['rt_enable'], 113 | 'user_rt_alt_location' => $event['data']['rt_alt_location'], 114 | 'user_rt_sort_start_time' => $event['data']['rt_sort_start_time'], 115 | 'user_rt_unread_only' => $event['data']['rt_unread_only'], 116 | )); 117 | } 118 | } 119 | -------------------------------------------------------------------------------- /language/fr/info_acp_recenttopics.php: -------------------------------------------------------------------------------- 1 | 'Sujets récents', 45 | 'RECENT_TOPICS_EXPLAIN' => 'Sur cette page il est possible de modifier les paramètres spécifiques de l’extension « Sujets récents ».

Des forums spécifiques peuvent être inclus ou exclus en modifiant les paramètres des forums respectifs depuis le PCA.
Il est recommander de vérifier les autorisations des utilisateurs, leur permettant de modifier par eux-mêmes certains paramètres présents ci-dessous.', 46 | 47 | 'RECENT_TOPICS_LIST' => 'Afficher les « sujets récents »', 48 | 'RECENT_TOPICS_LIST_EXPLAIN' => 'Affiche les sujets de ce forum au moyen de l’extension « Sujets récents ».', 49 | 50 | 'RT_CONFIG' => 'Configuration', 51 | 'RT_ALT_LOCATION' => 'Afficher sur un emplacement alternatif', 52 | 'RT_ALT_LOCATION_EXP' => 'Utilise un emplacement alternatif pour afficher les « sujets récents ».
Tous les styles ne supportent pas cette fonctionnalité, pour le style prosilver et ses styles enfants l’affichage sera déplacé vers le bas de la page.', 53 | 'RT_ANTI_TOPICS' => 'Sujets exclus', 54 | 'RT_ANTI_TOPICS_EXP' => 'Saisir les ID des sujets séparés par : « , » (exemple : 7, 9).
Pour ne pas exclure de sujet saisir simplement 0.', 55 | 'RT_MIN_TOPIC_LEVEL' => 'Niveau minimum du type de sujet', 56 | 'RT_MIN_TOPIC_LEVEL_EXP' => 'Détermine le niveau minimum du type de sujet à afficher. Cela affichera les sujets correspondants au niveau paramétré et aux niveaux supérieurs.
(0 = Normal, 1 = Post-it, 2 = Annonce, 3 = Annonce globale)', 57 | 'RT_NUMBER' => 'Sujets récents', 58 | 'RT_NUMBER_EXP' => 'Nombre de sujets à afficher sur l’index.', 59 | 'RT_PAGE_NUMBER' => 'Nombre de pages pour les « sujets récents »', 60 | 'RT_PAGE_NUMBER_EXP' => 'Affiche davantage de « sujets récents » en utilisant la pagination. Saisir la valeur 1 pour désactiver cette option. Si la valeur 0 est saisie, il y aura autant de pages que nécessaire pour afficher tous les sujets de votre forum (non recommandé).', 61 | 'RT_PARENTS' => 'Afficher les forums parents', 62 | 'RT_PARENTS_EXP' => 'Affiche les forums parents dans la liste des « sujets récents ».', 63 | 'RT_SORT_START_TIME' => 'Trier selon la date de création du sujet', 64 | 'RT_SORT_START_TIME_EXP' => 'Trie selon la date de création du sujet, en lieu et place de la date du dernier message.', 65 | 'RT_UNREAD_ONLY' => 'Afficher uniquement les sujets non lus', 66 | 'RT_UNREAD_ONLY_EXP' => 'Affiche uniquement les sujets non lus (qu’ils soient « récents » ou non). Cette fonctionnalité utilise les mêmes paramètres que le mode normal (en excluant les forums / sujets, etc…). Note : Cela fonctionne uniquement pour les utilisateurs connectés; les invités verront la liste normale.', 67 | 68 | 'RT_VIEW_ON' => 'Afficher les « sujets récents » sur :', 69 | )); 70 | -------------------------------------------------------------------------------- /styles/subsilver2/template/recent_topics_body.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 5 | 6 | 7 | 8 | 9 |
{RECENT_TOPICS_PAGINATION}
10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 52 | 53 | 54 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 |
 {L_TOPICS}  {L_TOPICS}  {L_REPLIES}  {L_VIEWS}  {L_LAST_POST} 
{recent_topics.TOPIC_FOLDER_IMG} 34 | {NEWEST_POST_IMG} 35 | {recent_topics.ATTACH_ICON_IMG} {recent_topics.TOPIC_TYPE} {recent_topics.TOPIC_TITLE} 36 | 37 | {recent_topics.UNAPPROVED_IMG}  38 | 39 | 40 | {recent_topics.REPORTED_IMG}  41 | 42 | 43 |

[ {GOTO_PAGE_IMG}{L_GOTO_PAGE}: {recent_topics.PAGINATION} ]

44 | 45 |

{L_POST_BY_AUTHOR} {recent_topics.TOPIC_AUTHOR_FULL} 46 | » {recent_topics.FIRST_POST_TIME} 47 | 48 | {L_IN} {recent_topics.parent_forums.FORUM_NAME} » {recent_topics.FORUM_NAME} 49 | 50 |

51 |

{recent_topics.REPLIES}

{recent_topics.VIEWS}

55 |

{recent_topics.LAST_POST_TIME}

56 |

{recent_topics.LAST_POST_AUTHOR_FULL} 57 | {LAST_POST_IMG} 58 |

59 |
{L_NO_TOPICS}{L_NO_TOPICS_TIME_FRAME}{L_NO_TOPICS}{L_NO_TOPICS_TIME_FRAME}
74 |
75 |
76 | -------------------------------------------------------------------------------- /adm/style/acp_recenttopics.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |

{L_RECENT_TOPICS}

4 |

{L_RECENT_TOPICS_EXPLAIN}

5 | 6 |
7 |
8 |
9 |

{L_RT_NUMBER_EXP}
10 |
11 |
12 |
13 |

{L_RT_PAGE_NUMBER_EXP}
14 |
15 |
16 |
17 |

{L_RT_MIN_TOPIC_LEVEL_EXP}
18 |
19 |
20 |
21 |

{L_RT_ANTI_TOPICS_EXP}
22 |
23 |
24 |
25 |

{L_RT_ALT_LOCATION_EXP}
26 |
27 | 28 | 29 |
30 |
31 |
32 |

{L_RT_PARENTS_EXP}
33 |
34 | 35 | 36 |
37 |
38 |
39 |

{L_RT_UNREAD_ONLY_EXP}
40 |
41 | 42 | 43 |
44 |
45 |
46 |

{L_RT_SORT_START_TIME_EXP}
47 |
48 | 49 | 50 |
51 |
52 |
53 |
54 | {L_RT_VIEW_ON} 55 |
56 |
57 |
58 | 59 | 60 |
61 |
62 | 63 |
64 |
65 |
66 | 67 | 68 |
69 |
70 | 71 |
72 |
73 | {L_ACP_SUBMIT_CHANGES} 74 |

75 |   76 | 77 |

78 | {S_FORM_TOKEN} 79 |
80 |
81 | 82 | -------------------------------------------------------------------------------- /migrations/release_2_0_0.php: -------------------------------------------------------------------------------- 1 | config['rt_version']) && version_compare($this->config['rt_version'], '2.0.0', '>='); 19 | } 20 | 21 | public function update_schema() 22 | { 23 | return array( 24 | 'add_columns' => array( 25 | $this->table_prefix . 'forums' => array( 26 | 'forum_recent_topics' => array('TINT:1', 1), 27 | ), 28 | ), 29 | ); 30 | } 31 | 32 | public function revert_schema() 33 | { 34 | return array( 35 | 'drop_columns' => array( 36 | $this->table_prefix . 'forums' => array( 37 | 'forum_recent_topics', 38 | ), 39 | ), 40 | ); 41 | } 42 | 43 | public function update_data() 44 | { 45 | return array( 46 | 47 | // Remove old config if it exists 48 | array('if', array( 49 | (isset($this->config['recenttopics'])), 50 | array('config.remove', array('recenttopics')), 51 | )), 52 | array('if', array( 53 | (isset($this->config['rt_mod_version'])), 54 | array('config.remove', array('rt_mod_version')), 55 | )), 56 | array('if', array( 57 | (isset($this->config['rt_version'])), 58 | array('config.remove', array('rt_version')), 59 | )), 60 | array('if', array( 61 | (isset($this->config['rt_number'])), 62 | array('config.remove', array('rt_number')), 63 | )), 64 | array('if', array( 65 | (isset($this->config['rt_page_number'])), 66 | array('config.remove', array('rt_page_number')), 67 | )), 68 | array('if', array( 69 | (isset($this->config['rt_anti_topics'])), 70 | array('config.remove', array('rt_anti_topics')), 71 | )), 72 | array('if', array( 73 | (isset($this->config['rt_parents'])), 74 | array('config.remove', array('rt_parents')), 75 | )), 76 | array('if', array( 77 | (isset($this->config['rt_index'])), 78 | array('config.remove', array('rt_index')), 79 | )), 80 | 81 | // Add new config vars 82 | array('config.add', array('rt_version', '2.0.0')), 83 | array('config.add', array('rt_number', 5)), 84 | array('config.add', array('rt_page_number', 0)), 85 | array('config.add', array('rt_anti_topics', 0)), 86 | array('config.add', array('rt_parents', 1)), 87 | array('config.add', array('rt_unreadonly', 0)), 88 | array('config.add', array('rt_index', 1)), 89 | 90 | // Remove old (v1) modules 91 | array('if', array( 92 | array('module.exists', array('acp', 'RECENT_TOPICS_MOD', array( 93 | 'module_basename' => 'recenttopics', 94 | 'modes' => array('overview'), 95 | ), 96 | )), 97 | array('module.remove', array('acp', 'RECENT_TOPICS_MOD', array( 98 | 'module_basename' => 'recenttopics', 99 | 'modes' => array('overview'), 100 | ), 101 | )), 102 | )), 103 | array('if', array( 104 | array('module.exists', array('acp', 'ACP_CAT_DOT_MODS', 'RECENT_TOPICS_MOD')), 105 | array('module.remove', array('acp', 'ACP_CAT_DOT_MODS', 'RECENT_TOPICS_MOD')), 106 | )), 107 | 108 | // Remove early beta modules 109 | array('if', array( 110 | array('module.exists', array('acp', 'RECENT_TOPICS_EXT', array( 111 | 'module_basename' => '\paybas\recenttopics\acp\recenttopics_module', 112 | 'modes' => array('recenttopics_config'), 113 | ), 114 | )), 115 | array('module.remove', array('acp', 'RECENT_TOPICS_EXT', array( 116 | 'module_basename' => '\paybas\recenttopics\acp\recenttopics_module', 117 | 'modes' => array('recenttopics_config'), 118 | ), 119 | )), 120 | )), 121 | array('if', array( 122 | array('module.exists', array('acp', 'ACP_CAT_DOT_MODS', 'RECENT_TOPICS_EXT')), 123 | array('module.remove', array('acp', 'ACP_CAT_DOT_MODS', 'RECENT_TOPICS_EXT')), 124 | )), 125 | 126 | // Add new modules 127 | array('module.add', array( 128 | 'acp', 129 | 'ACP_CAT_DOT_MODS', 130 | 'RECENT_TOPICS' 131 | )), 132 | 133 | array('module.add', array( 134 | 'acp', 135 | 'RECENT_TOPICS', 136 | array( 137 | 'module_basename' => '\paybas\recenttopics\acp\recenttopics_module', 138 | 'modes' => array('recenttopics_config'), 139 | ), 140 | )), 141 | ); 142 | } 143 | 144 | public function revert_data() 145 | { 146 | return array( 147 | array('config.remove', array('rt_version')), 148 | array('config.remove', array('rt_number')), 149 | array('config.remove', array('rt_page_number')), 150 | array('config.remove', array('rt_anti_topics')), 151 | array('config.remove', array('rt_parents')), 152 | array('config.remove', array('rt_unreadonly')), 153 | array('config.remove', array('rt_index')), 154 | 155 | array('module.remove', array( 156 | 'acp', 157 | 'RECENT_TOPICS', 158 | array( 159 | 'module_basename' => '\paybas\recenttopics\acp\recenttopics_module', 160 | 'modes' => array('recenttopics_config'), 161 | ), 162 | )), 163 | array('module.remove', array( 164 | 'acp', 165 | 'ACP_CAT_DOT_MODS', 166 | 'RECENT_TOPICS' 167 | )), 168 | ); 169 | } 170 | } 171 | -------------------------------------------------------------------------------- /styles/we_universal/template/recent_topics_body.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 |
20 | 29 | 89 |
90 |
91 | 92 | 93 | 94 |
95 |
96 | {L_NO_TOPICS} 97 |
98 |
99 | 100 | -------------------------------------------------------------------------------- /styles/all/template/recent_topics_body.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 |
20 | 30 | 87 |
88 |
89 | 90 | 91 | 92 |
93 |
94 | {L_NO_TOPICS} 95 |
96 |
97 | 98 | 99 | 100 |
101 | 104 |
105 | 106 | -------------------------------------------------------------------------------- /license.txt: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | 294 | Copyright (C) 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | , 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | -------------------------------------------------------------------------------- /core/recenttopics.php: -------------------------------------------------------------------------------- 1 | auth = $auth; 55 | $this->cache = $cache; 56 | $this->config = $config; 57 | $this->content_visibility = $content_visibility; 58 | $this->db = $db; 59 | $this->dispatcher = $dispatcher; 60 | $this->pagination = $pagination; 61 | $this->request = $request; 62 | $this->template = $template; 63 | $this->user = $user; 64 | $this->root_path = $root_path; 65 | $this->phpEx = $phpEx; 66 | } 67 | 68 | public function display_recent_topics($tpl_loopname = 'recent_topics', $spec_forum_id = 0, $include_subforums = true) 69 | { 70 | $this->user->add_lang_ext('paybas/recenttopics', 'recenttopics'); 71 | 72 | /** 73 | * Set some internal needed variables 74 | */ 75 | $topics_per_page = $this->config['rt_number']; 76 | $num_pages = $this->config['rt_page_number']; 77 | $min_topic_level = $this->config['rt_min_topic_level']; 78 | $excluded_topics = explode(', ', $this->config['rt_anti_topics']); 79 | $alt_location = $this->config['rt_alt_location']; 80 | $display_parent_forums = $this->config['rt_parents']; 81 | $sort_topics = ($this->config['rt_sort_start_time']) ? 'topic_time' : 'topic_last_post_time'; 82 | $unread_only = $this->config['rt_unread_only']; 83 | 84 | $start = $this->request->variable($tpl_loopname . '_start', 0); 85 | $total_topics_limit = $topics_per_page * $num_pages; 86 | $sql_forum_include_val = 1; 87 | 88 | if (!function_exists('display_forums')) 89 | { 90 | include($this->root_path . 'includes/functions_display.' . $this->phpEx); 91 | } 92 | 93 | /** 94 | * Get the user's display preferences 95 | */ 96 | if ($this->auth->acl_get('u_rt_view')) 97 | { 98 | if ($this->auth->acl_get('u_rt_enable') && isset($this->user->data['user_rt_enable']) && !$this->user->data['user_rt_enable']) 99 | { 100 | return; 101 | } 102 | 103 | if ($this->auth->acl_get('u_rt_alt_location') && isset($this->user->data['user_rt_alt_location'])) 104 | { 105 | $alt_location = $this->user->data['user_rt_alt_location']; 106 | } 107 | 108 | if ($this->auth->acl_get('u_rt_sort_start_time') && isset($this->user->data['user_rt_sort_start_time'])) 109 | { 110 | $sort_topics = ($this->user->data['user_rt_sort_start_time']) ? 'topic_time' : 'topic_last_post_time'; 111 | } 112 | 113 | if ($this->auth->acl_get('u_rt_unread_only') && isset($this->user->data['user_rt_unread_only'])) 114 | { 115 | $unread_only = $this->user->data['user_rt_unread_only']; 116 | } 117 | } 118 | 119 | /** 120 | * Get the forums we take our topics from 121 | */ 122 | // Get the allowed forums 123 | $forum_ary = array(); 124 | $forum_read_ary = $this->auth->acl_getf('f_read'); 125 | foreach ($forum_read_ary as $forum_id => $allowed) 126 | { 127 | if ($allowed['f_read']) 128 | { 129 | $forum_ary[] = (int)$forum_id; 130 | } 131 | } 132 | $forum_ids = array_unique($forum_ary); 133 | 134 | // No forums with f_read 135 | if (!sizeof($forum_ids)) 136 | { 137 | return; 138 | } 139 | 140 | $sql = 'SELECT forum_id 141 | FROM ' . FORUMS_TABLE . ' 142 | WHERE ' . $this->db->sql_in_set('forum_id', $forum_ids) . ' 143 | AND forum_recent_topics = ' . $sql_forum_include_val; 144 | $result = $this->db->sql_query($sql); 145 | 146 | $forum_ids = array(); 147 | while ($row = $this->db->sql_fetchrow($result)) 148 | { 149 | $forum_ids[] = $row['forum_id']; 150 | } 151 | $this->db->sql_freeresult($result); 152 | $forum_ids = array_unique($forum_ids); 153 | 154 | // No forums with f_read or recent topics enabled 155 | if (!sizeof($forum_ids)) 156 | { 157 | return; 158 | } 159 | 160 | $forums = $topic_list = array(); 161 | $topics_count = 0; 162 | $obtain_icons = false; 163 | 164 | // Either use the phpBB core function to get unread topics, or the custom function for default behavior 165 | if ($unread_only && $this->user->data['user_id'] != ANONYMOUS) 166 | { 167 | // Get unread topics 168 | $sql_extra = ' AND ' . $this->db->sql_in_set('t.topic_id', $excluded_topics, true); 169 | $sql_extra .= ' AND ' . $this->content_visibility->get_forums_visibility_sql('topic', $forum_ids, $table_alias = 't.'); 170 | $unread_topics = get_unread_topics(false, $sql_extra, '', $total_topics_limit); 171 | 172 | foreach ($unread_topics as $topic_id => $mark_time) 173 | { 174 | $topics_count++; 175 | if (($topics_count > $start) && ($topics_count <= ($start + $topics_per_page))) 176 | { 177 | $topic_list[] = $topic_id; 178 | } 179 | } 180 | } 181 | else 182 | { 183 | // Get the allowed topics 184 | $sql_array = array( 185 | 'SELECT' => 't.forum_id, t.topic_id, t.topic_type, t.icon_id, tt.mark_time, ft.mark_time as f_mark_time', 186 | 'FROM' => array(TOPICS_TABLE => 't'), 187 | 'LEFT_JOIN' => array( 188 | array( 189 | 'FROM' => array(TOPICS_TRACK_TABLE => 'tt'), 190 | 'ON' => 'tt.topic_id = t.topic_id AND tt.user_id = ' . $this->user->data['user_id'], 191 | ), 192 | array( 193 | 'FROM' => array(FORUMS_TRACK_TABLE => 'ft'), 194 | 'ON' => 'ft.forum_id = t.forum_id AND ft.user_id = ' . $this->user->data['user_id'], 195 | ), 196 | ), 197 | 'WHERE' => $this->db->sql_in_set('t.topic_id', $excluded_topics, true) . ' 198 | AND t.topic_status <> ' . ITEM_MOVED . ' 199 | AND ' . $this->content_visibility->get_forums_visibility_sql('topic', $forum_ids, $table_alias = 't.'), 200 | 'ORDER_BY' => 't.' . $sort_topics . ' DESC', 201 | ); 202 | 203 | // Check if we want all topics, or only stickies/announcements/globals 204 | if ($min_topic_level > 0) 205 | { 206 | $sql_array['WHERE'] .= ' AND t.topic_type >= ' . $min_topic_level; 207 | } 208 | 209 | /** 210 | * Event to modify the SQL query before the allowed topics list data is retrieved 211 | * 212 | * @event paybas.recenttopics.sql_pull_topics_list 213 | * @var array sql_array The SQL array 214 | * @since 2.0.4 215 | */ 216 | $vars = array('sql_array'); 217 | extract($this->dispatcher->trigger_event('paybas.recenttopics.sql_pull_topics_list', compact($vars))); 218 | 219 | $sql = $this->db->sql_build_query('SELECT', $sql_array); 220 | $result = $this->db->sql_query_limit($sql, $total_topics_limit); 221 | 222 | while ($row = $this->db->sql_fetchrow($result)) 223 | { 224 | $topics_count++; 225 | if (($topics_count > $start) && ($topics_count <= ($start + $topics_per_page))) 226 | { 227 | $topic_list[] = $row['topic_id']; 228 | 229 | $rowset[$row['topic_id']] = $row; 230 | if (!isset($forums[$row['forum_id']]) && $this->user->data['is_registered'] && $this->config['load_db_lastread']) 231 | { 232 | $forums[$row['forum_id']]['mark_time'] = $row['f_mark_time']; 233 | } 234 | $forums[$row['forum_id']]['topic_list'][] = $row['topic_id']; 235 | $forums[$row['forum_id']]['rowset'][$row['topic_id']] = & $rowset[$row['topic_id']]; 236 | 237 | if ($row['icon_id'] && $this->auth->acl_get('f_icons', $row['forum_id'])) 238 | { 239 | $obtain_icons = true; 240 | } 241 | } 242 | } 243 | $this->db->sql_freeresult($result); 244 | } 245 | 246 | // No topics to display 247 | if (!sizeof($topic_list)) 248 | { 249 | return; 250 | } 251 | 252 | // Grab icons 253 | if ($obtain_icons) 254 | { 255 | $icons = $this->cache->obtain_icons(); 256 | } 257 | else 258 | { 259 | $icons = array(); 260 | } 261 | 262 | // Borrowed from search.php 263 | foreach ($forums as $forum_id => $forum) 264 | { 265 | if ($this->user->data['is_registered'] && $this->config['load_db_lastread']) 266 | { 267 | $topic_tracking_info[$forum_id] = get_topic_tracking($forum_id, $forum['topic_list'], $forum['rowset'], array($forum_id => $forum['mark_time']), ($forum_id) ? false : $forum['topic_list']); 268 | } 269 | else if ($this->config['load_anon_lastread'] || $this->user->data['is_registered']) 270 | { 271 | $tracking_topics = $this->request->variable($this->config['cookie_name'] . '_track', '', true, \phpbb\request\request_interface::COOKIE); 272 | $tracking_topics = ($tracking_topics) ? tracking_unserialize($tracking_topics) : array(); 273 | 274 | $topic_tracking_info[$forum_id] = get_complete_topic_tracking($forum_id, $forum['topic_list'], ($forum_id) ? false : $forum['topic_list']); 275 | 276 | if (!$this->user->data['is_registered']) 277 | { 278 | $this->user->data['user_lastmark'] = (isset($tracking_topics['l'])) ? (int)(base_convert($tracking_topics['l'], 36, 10) + $this->config['board_startdate']) : 0; 279 | } 280 | } 281 | } 282 | 283 | // Now only pull the data of the requested topics 284 | $sql_array = array( 285 | 'SELECT' => 't.*, tp.topic_posted, f.forum_name', 286 | 'FROM' => array(TOPICS_TABLE => 't'), 287 | 'LEFT_JOIN' => array( 288 | array( 289 | 'FROM' => array(TOPICS_POSTED_TABLE => 'tp'), 290 | 'ON' => 't.topic_id = tp.topic_id AND tp.user_id = ' . $this->user->data['user_id'], 291 | ), 292 | array( 293 | 'FROM' => array(FORUMS_TABLE => 'f'), 294 | 'ON' => 'f.forum_id = t.forum_id', 295 | ), 296 | ), 297 | 'WHERE' => $this->db->sql_in_set('t.topic_id', $topic_list), 298 | 'ORDER_BY' => 't.' . $sort_topics . ' DESC', 299 | ); 300 | 301 | if ($display_parent_forums) 302 | { 303 | $sql_array['SELECT'] .= ', f.parent_id, f.forum_parents, f.left_id, f.right_id'; 304 | } 305 | 306 | /** 307 | * Event to modify the SQL query before the topics data is retrieved 308 | * 309 | * @event paybas.recenttopics.sql_pull_topics_data 310 | * @var array sql_array The SQL array 311 | * @since 2.0.0 312 | */ 313 | $vars = array('sql_array'); 314 | extract($this->dispatcher->trigger_event('paybas.recenttopics.sql_pull_topics_data', compact($vars))); 315 | 316 | $sql = $this->db->sql_build_query('SELECT', $sql_array); 317 | $result = $this->db->sql_query_limit($sql, $topics_per_page); 318 | 319 | $rowset = $topic_icons = array(); 320 | 321 | while ($row = $this->db->sql_fetchrow($result)) 322 | { 323 | $rowset[] = $row; 324 | } 325 | $this->db->sql_freeresult($result); 326 | 327 | // No topics returned by the DB 328 | if (!sizeof($rowset)) 329 | { 330 | return; 331 | } 332 | 333 | /** 334 | * Event to modify the topics list data before we start the display loop 335 | * 336 | * @event paybas.recenttopics.modify_topics_list 337 | * @var array topic_list Array of all the topic IDs 338 | * @var array rowset The full topics list array 339 | * @since 2.0.1 340 | */ 341 | $vars = array('topic_list', 'rowset'); 342 | extract($this->dispatcher->trigger_event('paybas.recenttopics.modify_topics_list', compact($vars))); 343 | 344 | foreach ($rowset as $row) 345 | { 346 | $topic_id = $row['topic_id']; 347 | $forum_id = $row['forum_id']; 348 | 349 | $s_type_switch_test = ($row['topic_type'] == POST_ANNOUNCE || $row['topic_type'] == POST_GLOBAL) ? 1 : 0; 350 | //$replies = ($this->auth->acl_get('m_approve', $forum_id)) ? $row['topic_replies_real'] : $row['topic_replies']; 351 | $replies = $this->content_visibility->get_count('topic_posts', $row, $forum_id) - 1; 352 | 353 | if ($unread_only) 354 | { 355 | topic_status($row, $replies, true, $folder_img, $folder_alt, $topic_type); 356 | $unread_topic = true; 357 | } 358 | else 359 | { 360 | topic_status($row, $replies, (isset($topic_tracking_info[$forum_id][$row['topic_id']]) && $row['topic_last_post_time'] > $topic_tracking_info[$forum_id][$row['topic_id']]) ? true : false, $folder_img, $folder_alt, $topic_type); 361 | $unread_topic = (isset($topic_tracking_info[$forum_id][$row['topic_id']]) && $row['topic_last_post_time'] > $topic_tracking_info[$forum_id][$row['topic_id']]) ? true : false; 362 | } 363 | 364 | $view_topic_url = append_sid("{$this->root_path}viewtopic.$this->phpEx", 'f=' . $forum_id . '&t=' . $topic_id); 365 | $view_forum_url = append_sid("{$this->root_path}viewforum.$this->phpEx", 'f=' . $forum_id); 366 | 367 | $topic_unapproved = ($row['topic_visibility'] == ITEM_UNAPPROVED && $this->auth->acl_get('m_approve', $forum_id)); 368 | $posts_unapproved = ($row['topic_visibility'] == ITEM_APPROVED && $row['topic_posts_unapproved'] && $this->auth->acl_get('m_approve', $forum_id)); 369 | 370 | $u_mcp_queue = ($topic_unapproved || $posts_unapproved) ? append_sid("{$this->root_path}mcp.$this->phpEx", 'i=queue&mode=' . (($topic_unapproved) ? 'approve_details' : 'unapproved_posts') . "&t=$topic_id", true, $this->user->session_id) : ''; 371 | $s_type_switch = ($row['topic_type'] == POST_ANNOUNCE || $row['topic_type'] == POST_GLOBAL) ? 1 : 0; 372 | 373 | if (!empty($icons[$row['icon_id']])) 374 | { 375 | $topic_icons[] = $topic_id; 376 | } 377 | 378 | // Get folder img, topic status/type related information 379 | $folder_img = $folder_alt = $topic_type = ''; 380 | topic_status($row, $replies, $unread_topic, $folder_img, $folder_alt, $topic_type); 381 | 382 | $tpl_ary = array( 383 | 'FORUM_ID' => $forum_id, 384 | 'TOPIC_ID' => $topic_id, 385 | 'TOPIC_AUTHOR' => get_username_string('username', $row['topic_poster'], $row['topic_first_poster_name'], $row['topic_first_poster_colour']), 386 | 'TOPIC_AUTHOR_COLOUR' => get_username_string('colour', $row['topic_poster'], $row['topic_first_poster_name'], $row['topic_first_poster_colour']), 387 | 'TOPIC_AUTHOR_FULL' => get_username_string('full', $row['topic_poster'], $row['topic_first_poster_name'], $row['topic_first_poster_colour']), 388 | 'FIRST_POST_TIME' => $this->user->format_date($row['topic_time']), 389 | 390 | 'LAST_POST_SUBJECT' => censor_text($row['topic_last_post_subject']), 391 | 'LAST_POST_TIME' => $this->user->format_date($row['topic_last_post_time']), 392 | 'LAST_VIEW_TIME' => $this->user->format_date($row['topic_last_view_time']), 393 | 'LAST_POST_AUTHOR' => get_username_string('username', $row['topic_last_poster_id'], $row['topic_last_poster_name'], $row['topic_last_poster_colour']), 394 | 'LAST_POST_AUTHOR_COLOUR' => get_username_string('colour', $row['topic_last_poster_id'], $row['topic_last_poster_name'], $row['topic_last_poster_colour']), 395 | 'LAST_POST_AUTHOR_FULL' => get_username_string('full', $row['topic_last_poster_id'], $row['topic_last_poster_name'], $row['topic_last_poster_colour']), 396 | 397 | 'REPLIES' => $replies, 398 | 'VIEWS' => $row['topic_views'], 399 | 'TOPIC_TITLE' => censor_text($row['topic_title']), 400 | 'FORUM_NAME' => $row['forum_name'], 401 | 402 | 'TOPIC_TYPE' => $topic_type, 403 | 'TOPIC_IMG_STYLE' => $folder_img, 404 | 'TOPIC_FOLDER_IMG' => $this->user->img($folder_img, $folder_alt), 405 | 'TOPIC_FOLDER_IMG_ALT' => $this->user->lang[$folder_alt], 406 | 407 | //'NEWEST_POST_IMG' => $this->user->img('icon_topic_newest', 'VIEW_NEWEST_POST'), // dupe? 408 | 'TOPIC_ICON_IMG' => (!empty($icons[$row['icon_id']])) ? $icons[$row['icon_id']]['img'] : '', 409 | 'TOPIC_ICON_IMG_WIDTH' => (!empty($icons[$row['icon_id']])) ? $icons[$row['icon_id']]['width'] : '', 410 | 'TOPIC_ICON_IMG_HEIGHT' => (!empty($icons[$row['icon_id']])) ? $icons[$row['icon_id']]['height'] : '', 411 | 'ATTACH_ICON_IMG' => ($this->auth->acl_get('u_download') && $this->auth->acl_get('f_download', $forum_id) && $row['topic_attachment']) ? $this->user->img('icon_topic_attach', $this->user->lang['TOTAL_ATTACHMENTS']) : '', 412 | 'UNAPPROVED_IMG' => ($topic_unapproved || $posts_unapproved) ? $this->user->img('icon_topic_unapproved', ($topic_unapproved) ? 'TOPIC_UNAPPROVED' : 'POSTS_UNAPPROVED') : '', 413 | 'REPORTED_IMG' => ($row['topic_reported'] && $this->auth->acl_get('m_report', $forum_id)) ? $this->user->img('icon_topic_reported', 'TOPIC_REPORTED') : '', 414 | 'S_HAS_POLL' => ($row['poll_start']) ? true : false, 415 | 416 | 'S_TOPIC_TYPE' => $row['topic_type'], 417 | 'S_USER_POSTED' => (isset($row['topic_posted']) && $row['topic_posted']) ? true : false, 418 | 'S_UNREAD_TOPIC' => $unread_topic, 419 | 'S_TOPIC_REPORTED' => ($row['topic_reported'] && $this->auth->acl_get('m_report', $forum_id)) ? true : false, 420 | 'S_TOPIC_UNAPPROVED' => $topic_unapproved, 421 | 'S_POSTS_UNAPPROVED' => $posts_unapproved, 422 | 'S_POST_ANNOUNCE' => ($row['topic_type'] == POST_ANNOUNCE) ? true : false, 423 | 'S_POST_GLOBAL' => ($row['topic_type'] == POST_GLOBAL) ? true : false, 424 | 'S_POST_STICKY' => ($row['topic_type'] == POST_STICKY) ? true : false, 425 | 'S_TOPIC_LOCKED' => ($row['topic_status'] == ITEM_LOCKED) ? true : false, 426 | 'S_TOPIC_MOVED' => ($row['topic_status'] == ITEM_MOVED) ? true : false, 427 | 'S_TOPIC_TYPE_SWITCH' => ($s_type_switch == $s_type_switch_test) ? -1 : $s_type_switch_test, 428 | 429 | 'U_NEWEST_POST' => $view_topic_url . '&view=unread#unread', 430 | 'U_LAST_POST' => $view_topic_url . '&p=' . $row['topic_last_post_id'] . '#p' . $row['topic_last_post_id'], 431 | 'U_LAST_POST_AUTHOR' => get_username_string('profile', $row['topic_last_poster_id'], $row['topic_last_poster_name'], $row['topic_last_poster_colour']), 432 | 'U_TOPIC_AUTHOR' => get_username_string('profile', $row['topic_poster'], $row['topic_first_poster_name'], $row['topic_first_poster_colour']), 433 | 'U_VIEW_TOPIC' => $view_topic_url, 434 | 'U_VIEW_FORUM' => $view_forum_url, 435 | 'U_MCP_REPORT' => append_sid("{$this->root_path}mcp.$this->phpEx", 'i=reports&mode=reports&f=' . $forum_id . '&t=' . $topic_id, true, $this->user->session_id), 436 | 'U_MCP_QUEUE' => $u_mcp_queue, 437 | ); 438 | 439 | /** 440 | * Modify the topic data before it is assigned to the template 441 | * 442 | * @event paybas.recenttopics.modify_tpl_ary 443 | * @var array row Array with topic data 444 | * @var array tpl_ary Template block array with topic data 445 | * @since 2.0.0 446 | */ 447 | $vars = array('row', 'tpl_ary'); 448 | extract($this->dispatcher->trigger_event('paybas.recenttopics.modify_tpl_ary', compact($vars))); 449 | 450 | $this->template->assign_block_vars($tpl_loopname, $tpl_ary); 451 | 452 | $this->pagination->generate_template_pagination($view_topic_url, $tpl_loopname . '.pagination', 'start', $replies + 1, $this->config['posts_per_page'], 1, true, true); 453 | 454 | if ($display_parent_forums) 455 | { 456 | $forum_parents = get_forum_parents($row); 457 | 458 | foreach ($forum_parents as $parent_id => $data) 459 | { 460 | $this->template->assign_block_vars($tpl_loopname . '.parent_forums', array( 461 | 'FORUM_ID' => $parent_id, 462 | 'FORUM_NAME' => $data[0], 463 | 'U_VIEW_FORUM' => append_sid("{$this->root_path}viewforum.$this->phpEx", 'f=' . $parent_id), 464 | )); 465 | } 466 | } 467 | } 468 | 469 | // Get URL-parameters for pagination 470 | $url_params = explode('&', $this->user->page['query_string']); 471 | $append_params = false; 472 | foreach ($url_params as $param) 473 | { 474 | if (!$param) 475 | { 476 | continue; 477 | } 478 | if (strpos($param, '=') === false) 479 | { 480 | // Fix MSSTI Advanced BBCode MOD 481 | $append_params[$param] = '1'; 482 | continue; 483 | } 484 | list($name, $value) = explode('=', $param); 485 | if ($name != $tpl_loopname . '_start') 486 | { 487 | $append_params[$name] = $value; 488 | } 489 | } 490 | 491 | // Some styles simply aren't compatible with alternative display locations 492 | $alt_loc_incomp_list = array('pbtech','pbwow3','pbwow3_battlecry','pbwow3_diablo','pbwow3_garrison','pbwow3_heroes','pbwow3_pandaria','pbwow3_tbc','pbwow3_tech','pbwow3_tribute','pbwow3_warlords','pbwow3_wildstar','pbwow3_wotlk','pbwow3_xmas'); 493 | if (in_array($this->user->style['style_path'], $alt_loc_incomp_list)) 494 | { 495 | $alt_location = false; 496 | } 497 | 498 | $pagination_url = append_sid($this->root_path . $this->user->page['page_name'], $append_params); 499 | $this->pagination->generate_template_pagination($pagination_url, 'pagination', $tpl_loopname . '_start', $topics_count, $topics_per_page, $start); 500 | 501 | $this->template->assign_vars(array( 502 | 'RT_SORT_START_TIME' => ($sort_topics === 'topic_time') ? true : false, 503 | 'RT_ALT_LOCATION' => $alt_location, 504 | 'S_TOPIC_ICONS' => (sizeof($topic_icons)) ? true : false, 505 | 'NEWEST_POST_IMG' => $this->user->img('icon_topic_newest', 'VIEW_NEWEST_POST'), 506 | 'LAST_POST_IMG' => $this->user->img('icon_topic_latest', 'VIEW_LATEST_POST'), 507 | 'POLL_IMG' => $this->user->img('icon_topic_poll', 'TOPIC_POLL'), 508 | strtoupper($tpl_loopname) . '_DISPLAY' => true, 509 | )); 510 | } 511 | } 512 | --------------------------------------------------------------------------------