From b8a4a07cf26e339791e8ad0b1e4f9b703996b3a1 Mon Sep 17 00:00:00 2001 From: MikeyGMT Date: Sat, 5 Nov 2016 09:33:16 +0000 Subject: [PATCH 01/19] Fixes #1998 Minor Bug: Error detected in e107_e107_admin/header.php Viewport Content Fixes #1998 Minor Bug: Error detected in e107_e107_admin/header.php Viewport Content --- e107_admin/header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_admin/header.php b/e107_admin/header.php index 181580ddb..601603e27 100644 --- a/e107_admin/header.php +++ b/e107_admin/header.php @@ -179,7 +179,7 @@ else // XHTML * */ -echo "\n"; // Works better for iOS but still has some issues. +echo "\n"; // Works better for iOS but still has some issues. // echo (defined("VIEWPORT")) ? "\n" : ""; echo "".(defined("e_PAGETITLE") ? e_PAGETITLE." - " : (defined("PAGE_NAME") ? PAGE_NAME." - " : "")).LAN_HEADER_04." :: ".SITENAME."\n"; From 6ef7c9d230d4ab1559554de6c596ac2110d835ed Mon Sep 17 00:00:00 2001 From: MikeyGMT Date: Sat, 5 Nov 2016 10:03:44 +0000 Subject: [PATCH 02/19] Added missing LAN_PLUGIN_DOWNLOAD_NAME from frontend #6 Added missing LAN_PLUGIN_DOWNLOAD_NAME from frontend #6 --- e107_languages/English/English.php | 1 + 1 file changed, 1 insertion(+) diff --git a/e107_languages/English/English.php b/e107_languages/English/English.php index 124d98bb4..85ad1d801 100644 --- a/e107_languages/English/English.php +++ b/e107_languages/English/English.php @@ -104,6 +104,7 @@ define("LAN_FILES","Files"); define("LAN_SIZE", "Size"); define("LAN_VERSION", "Version"); define("LAN_DOWNLOAD", "Download"); +define("LAN_PLUGIN_DOWNLOAD_NAME", "Plugin Download Name"); define("LAN_COMMENTS", "Comments"); define("LAN_LOCATION", "Location"); define("LAN_NO_RECORDS_FOUND","No Records Found"); From 12830e5b83cf75932b3cf68ee0fb87b4dfeec3fc Mon Sep 17 00:00:00 2001 From: MikeyGMT Date: Sun, 6 Nov 2016 11:00:51 +0000 Subject: [PATCH 03/19] Revert "Added missing LAN_PLUGIN_DOWNLOAD_NAME from frontend #6" This reverts commit 6ef7c9d230d4ab1559554de6c596ac2110d835ed. --- e107_languages/English/English.php | 1 - 1 file changed, 1 deletion(-) diff --git a/e107_languages/English/English.php b/e107_languages/English/English.php index 85ad1d801..124d98bb4 100644 --- a/e107_languages/English/English.php +++ b/e107_languages/English/English.php @@ -104,7 +104,6 @@ define("LAN_FILES","Files"); define("LAN_SIZE", "Size"); define("LAN_VERSION", "Version"); define("LAN_DOWNLOAD", "Download"); -define("LAN_PLUGIN_DOWNLOAD_NAME", "Plugin Download Name"); define("LAN_COMMENTS", "Comments"); define("LAN_LOCATION", "Location"); define("LAN_NO_RECORDS_FOUND","No Records Found"); From 80feec587aa18bdfb008de405716c0fe98f4d286 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor?= Date: Sun, 6 Nov 2016 12:54:31 +0100 Subject: [PATCH 04/19] Update lan_admin.php --- e107_languages/English/admin/lan_admin.php | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/e107_languages/English/admin/lan_admin.php b/e107_languages/English/admin/lan_admin.php index 49e7511f3..668339780 100644 --- a/e107_languages/English/admin/lan_admin.php +++ b/e107_languages/English/admin/lan_admin.php @@ -5,7 +5,15 @@ * Admin Language File * */ - +define("RL_LAN_088", "Filter the results below"); +define("RL_LAN_127", "Past Hour"); +define("RL_LAN_128", "Past 24 hours"); +define("RL_LAN_129", "Past Week"); +define("RL_LAN_130", "Past Month"); +define("RL_LAN_131", "Past Year"); +define("ADLAN_0", "News"); +define("ADLAN_1", "Manage news items"); +define("ADLAN_2", "Create news item"); define("ADLAN_0", "News"); define("ADLAN_1", "Manage news items"); define("ADLAN_2", "Create news item"); @@ -455,3 +463,14 @@ define("LAN_PERSONALIZE", "Personalize"); define("LAN_SELECT_COLUMNS_TO_DISPLAY", "Select columns to display"); define("LAN_DISPLAY_COLUMNS", "Display Columns"); define("LAN_SETTINGS_NOT_SAVED_NO_CHANGES_MADE", "Settings not saved as no changes were made."); +define("LAN_AFTER_SUBMIT", "After submit:"); +define("LAN_UNAVAILABLE", "Unavailable"); +define("LAN_READY_UP_FOLDER_FIELDS", "Ready to use upload form fields, optional - file list view"); +define("LAN_NO_LABEL_PROVIDED", "No Label Provided"); +define("LAN_NOT_FOUND", "Not Found!"); +define("LAN_QUICK_VIEW", "Quick View"); +define("LAN_GO_TO_USER_PROFILE", "Go to user profile"); +define("LAN_MULTI_LANGUAGE_FIELD", "Multi-language field"); +define("LAN_GO_TO_LIST", "go to list"); +define("LAN_CREATE_ANOTHER", "create another"); +define("LAN_EDIT_CURRENT", "edit current"); From e305bbb31f8b5e6699b5240705b299448134b109 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor?= Date: Sun, 6 Nov 2016 12:58:58 +0100 Subject: [PATCH 05/19] Update lan_admin_log.php --- e107_languages/English/admin/lan_admin_log.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/e107_languages/English/admin/lan_admin_log.php b/e107_languages/English/admin/lan_admin_log.php index 105c5dff8..0a0040adf 100644 --- a/e107_languages/English/admin/lan_admin_log.php +++ b/e107_languages/English/admin/lan_admin_log.php @@ -85,7 +85,7 @@ define("RL_LAN_084", "Temporary accounts"); define("RL_LAN_085", "[x] record(s) successfully deleted!"); define("RL_LAN_086", "[x] records not found and not deleted!"); define("RL_LAN_087", "Details"); -define("RL_LAN_088", "Filter the results below"); +//define("RL_LAN_088", "Filter the results below"); // Moved to lan_admin.php // Intentional gap define("RL_LAN_090", "Download ID"); define("RL_LAN_091", "Detailed timings"); @@ -126,11 +126,11 @@ define("RL_LAN_123", "User audit trail class"); define("RL_LAN_124", "User audit trail actions"); define("RL_LAN_125", "System Logs Maintenance"); define("RL_LAN_126", "Total [x] entries matching search condition"); -define("RL_LAN_127", "Past Hour"); -define("RL_LAN_128", "Past 24 hours"); -define("RL_LAN_129", "Past Week"); -define("RL_LAN_130", "Past Month"); -define("RL_LAN_131", "Past Year"); +//define("RL_LAN_127", "Past Hour"); // Moved to lan_admin.php +//define("RL_LAN_128", "Past 24 hours"); // Moved to lan_admin.php +//define("RL_LAN_129", "Past Week"); // Moved to lan_admin.php +//define("RL_LAN_130", "Past Month"); // Moved to lan_admin.php +//define("RL_LAN_131", "Past Year"); // Moved to lan_admin.php define("RL_LAN_132", "Informative"); define("RL_LAN_133", "Notice"); define("RL_LAN_134", "Warning"); From 0c64bca21ec0fac4a1ee2bf9abae1d8c09ff1bd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor?= Date: Mon, 7 Nov 2016 08:08:20 +0100 Subject: [PATCH 06/19] Update lan_admin.php --- e107_languages/English/admin/lan_admin.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/e107_languages/English/admin/lan_admin.php b/e107_languages/English/admin/lan_admin.php index 668339780..c94ff1d9e 100644 --- a/e107_languages/English/admin/lan_admin.php +++ b/e107_languages/English/admin/lan_admin.php @@ -5,12 +5,12 @@ * Admin Language File * */ -define("RL_LAN_088", "Filter the results below"); -define("RL_LAN_127", "Past Hour"); -define("RL_LAN_128", "Past 24 hours"); -define("RL_LAN_129", "Past Week"); -define("RL_LAN_130", "Past Month"); -define("RL_LAN_131", "Past Year"); +define("LAN_FILTER_THE_RESULTS_BELOW", "Filter the results below"); +define("LAN_UI_PAST_HOUR", "Past Hour"); +define("LAN_UI_PAST_24_HOURS", "Past 24 hours"); +define("LAN_UI_PAST_WEEK", "Past Week"); +define("LAN_UI_PAST_MONTH", "Past Month"); +define("LAN_UI_PAST_YEAR", "Past Year"); define("ADLAN_0", "News"); define("ADLAN_1", "Manage news items"); define("ADLAN_2", "Create news item"); From 1acbbbc1e08404cd27fa18fae3f9b87d8e54de03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor?= Date: Mon, 7 Nov 2016 08:09:24 +0100 Subject: [PATCH 07/19] Update lan_admin_log.php --- e107_languages/English/admin/lan_admin_log.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/e107_languages/English/admin/lan_admin_log.php b/e107_languages/English/admin/lan_admin_log.php index 0a0040adf..39219a69c 100644 --- a/e107_languages/English/admin/lan_admin_log.php +++ b/e107_languages/English/admin/lan_admin_log.php @@ -85,7 +85,7 @@ define("RL_LAN_084", "Temporary accounts"); define("RL_LAN_085", "[x] record(s) successfully deleted!"); define("RL_LAN_086", "[x] records not found and not deleted!"); define("RL_LAN_087", "Details"); -//define("RL_LAN_088", "Filter the results below"); // Moved to lan_admin.php + // Intentional gap define("RL_LAN_090", "Download ID"); define("RL_LAN_091", "Detailed timings"); @@ -126,11 +126,7 @@ define("RL_LAN_123", "User audit trail class"); define("RL_LAN_124", "User audit trail actions"); define("RL_LAN_125", "System Logs Maintenance"); define("RL_LAN_126", "Total [x] entries matching search condition"); -//define("RL_LAN_127", "Past Hour"); // Moved to lan_admin.php -//define("RL_LAN_128", "Past 24 hours"); // Moved to lan_admin.php -//define("RL_LAN_129", "Past Week"); // Moved to lan_admin.php -//define("RL_LAN_130", "Past Month"); // Moved to lan_admin.php -//define("RL_LAN_131", "Past Year"); // Moved to lan_admin.php + define("RL_LAN_132", "Informative"); define("RL_LAN_133", "Notice"); define("RL_LAN_134", "Warning"); From d452b442e0de9400f7c78e684e779c7e28ed0fa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor?= Date: Mon, 7 Nov 2016 08:24:45 +0100 Subject: [PATCH 08/19] Update admin_ui.php --- e107_handlers/admin_ui.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/e107_handlers/admin_ui.php b/e107_handlers/admin_ui.php index 5d32adee0..21c82c5c3 100644 --- a/e107_handlers/admin_ui.php +++ b/e107_handlers/admin_ui.php @@ -6068,7 +6068,7 @@ class e_admin_form_ui extends e_form ".$this->text('searchquery', $current_query[0], 50, $input_options)." - ".$this->select_open('filter_options', array('class' => 'form-control e-tip tbox select filter', 'id' => false, 'title'=>RL_LAN_088))." + ".$this->select_open('filter_options', array('class' => 'form-control e-tip tbox select filter', 'id' => false, 'title'=>LAN_FILTER_THE_RESULTS_BELOW))." ".$this->option(LAN_FILTER_LABEL_DISPLAYALL, '')." ".$this->option(LAN_FILTER_LABEL_CLEAR, '___reset___')." ".$this->renderBatchFilter('filter', $current_query[1])." @@ -6502,11 +6502,11 @@ class e_admin_form_ui extends e_form //TODO today, yesterday, this-month, last-month . $dateFilters = array ( - 'hour' => RL_LAN_127, - "day" => RL_LAN_128, - "week" => RL_LAN_129, - "month" => RL_LAN_130, - "year" => RL_LAN_131 + 'hour' => LAN_UI_PAST_HOUR, + "day" => LAN_UI_PAST_24_HOURS, + "week" => LAN_UI_PAST_WEEK, + "month" => LAN_UI_PAST_MONTH, + "year" => LAN_UI_PAST_YEAR ); foreach($dateFilters as $k => $name) From dd069b04779ce49425e59e2a0837a3411ab84e11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor?= Date: Wed, 9 Nov 2016 08:31:29 +0100 Subject: [PATCH 09/19] Update admin_ui.php --- e107_handlers/admin_ui.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_handlers/admin_ui.php b/e107_handlers/admin_ui.php index 21c82c5c3..eb7c81f8a 100644 --- a/e107_handlers/admin_ui.php +++ b/e107_handlers/admin_ui.php @@ -6068,7 +6068,7 @@ class e_admin_form_ui extends e_form ".$this->text('searchquery', $current_query[0], 50, $input_options)." - ".$this->select_open('filter_options', array('class' => 'form-control e-tip tbox select filter', 'id' => false, 'title'=>LAN_FILTER_THE_RESULTS_BELOW))." + ".$this->select_open('filter_options', array('class' => 'form-control e-tip tbox select filter', 'id' => false, 'title'=>LAN_UI_FILTER))." ".$this->option(LAN_FILTER_LABEL_DISPLAYALL, '')." ".$this->option(LAN_FILTER_LABEL_CLEAR, '___reset___')." ".$this->renderBatchFilter('filter', $current_query[1])." From 54b028a85b50290cfe3f5b78f3e7d3ae5ce65c66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor?= Date: Wed, 9 Nov 2016 08:36:33 +0100 Subject: [PATCH 10/19] Update lan_admin.php --- e107_languages/English/admin/lan_admin.php | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/e107_languages/English/admin/lan_admin.php b/e107_languages/English/admin/lan_admin.php index c94ff1d9e..6f14b3c15 100644 --- a/e107_languages/English/admin/lan_admin.php +++ b/e107_languages/English/admin/lan_admin.php @@ -5,15 +5,6 @@ * Admin Language File * */ -define("LAN_FILTER_THE_RESULTS_BELOW", "Filter the results below"); -define("LAN_UI_PAST_HOUR", "Past Hour"); -define("LAN_UI_PAST_24_HOURS", "Past 24 hours"); -define("LAN_UI_PAST_WEEK", "Past Week"); -define("LAN_UI_PAST_MONTH", "Past Month"); -define("LAN_UI_PAST_YEAR", "Past Year"); -define("ADLAN_0", "News"); -define("ADLAN_1", "Manage news items"); -define("ADLAN_2", "Create news item"); define("ADLAN_0", "News"); define("ADLAN_1", "Manage news items"); define("ADLAN_2", "Create news item"); @@ -433,6 +424,11 @@ define("LAN_UI_BATCH_CREATELINK", "Create Link"); define("LAN_UI_USING_DATABASE_TABLE", "Using [x] database table"); define("LAN_UI_TOTAL_RECORDS", "Total Records: [x]"); +define("LAN_UI_PAST_HOUR", "Past Hour"); +define("LAN_UI_PAST_24_HOURS", "Past 24 hours"); +define("LAN_UI_PAST_WEEK", "Past Week"); +define("LAN_UI_PAST_MONTH", "Past Month"); +define("LAN_UI_PAST_YEAR", "Past Year"); define("LAN_USER_MANAGEALL", "Manage all User, Userclass and Extended User-Field settings"); define("LAN_USER_LIST", "User List"); From 81ff24a75b2a1e9850cff2856a47a3cbbd40bc76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor?= Date: Wed, 9 Nov 2016 09:27:01 +0100 Subject: [PATCH 11/19] Update lan_admin.php --- e107_languages/English/admin/lan_admin.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/e107_languages/English/admin/lan_admin.php b/e107_languages/English/admin/lan_admin.php index 6f14b3c15..1a72e1e9d 100644 --- a/e107_languages/English/admin/lan_admin.php +++ b/e107_languages/English/admin/lan_admin.php @@ -470,3 +470,5 @@ define("LAN_MULTI_LANGUAGE_FIELD", "Multi-language field"); define("LAN_GO_TO_LIST", "go to list"); define("LAN_CREATE_ANOTHER", "create another"); define("LAN_EDIT_CURRENT", "edit current"); +define("LAN_MAINTENANCE", "Maintenance"); + From c22f5376f2a6893de77b674baf3dfc6ae43fd843 Mon Sep 17 00:00:00 2001 From: rica-carv Date: Thu, 10 Nov 2016 19:41:38 +0000 Subject: [PATCH 12/19] Forum overrides bug... --- e107_plugins/forum/forum.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_plugins/forum/forum.php b/e107_plugins/forum/forum.php index 7fdd39077..b536926c1 100644 --- a/e107_plugins/forum/forum.php +++ b/e107_plugins/forum/forum.php @@ -527,7 +527,7 @@ function parse_forum($f, $restricted_string = '') --*/ //-- return $tp->simpleParse($FORUM_MAIN_FORUM, $fVars); - return $tp->parseTemplate($FORUM_MAIN_FORUM, false, $sc); + return $tp->parseTemplate($FORUM_MAIN_FORUM, true, $sc); } From ee3735bfaad2b30dd50c16f2b74a731087bc080b Mon Sep 17 00:00:00 2001 From: rica-carv Date: Thu, 10 Nov 2016 20:51:24 +0000 Subject: [PATCH 13/19] Viewable_by shortcode wrapper enabled Viewable_by shortcode wrapper enabled --- .../forum/shortcodes/batch/viewforum_shortcodes.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php b/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php index 1aae23cef..74b60dd9f 100644 --- a/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php +++ b/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php @@ -225,7 +225,11 @@ if(!empty($viewable)) //else //{ //-- Possible candidate for wrapper???? - return empty($viewable)?'':"
".LAN_FORUM_8012."
".$viewable."
"; +/* WORKING WRAPPER + $SC_WRAPPER['VIEWABLE_BY'] = "
".LAN_FORUM_8012."
{---}
"; + +*/ + return empty($viewable)?'':$viewable; } function sc_search() From 739b84d6c26df6d5316c9ceeca3eb228086923ed Mon Sep 17 00:00:00 2001 From: rica-carv Date: Thu, 10 Nov 2016 20:56:06 +0000 Subject: [PATCH 14/19] Update forum_viewforum_template.php --- e107_plugins/forum/templates/forum_viewforum_template.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/e107_plugins/forum/templates/forum_viewforum_template.php b/e107_plugins/forum/templates/forum_viewforum_template.php index ea7f1c5a9..42ba5ced9 100644 --- a/e107_plugins/forum/templates/forum_viewforum_template.php +++ b/e107_plugins/forum/templates/forum_viewforum_template.php @@ -343,6 +343,8 @@ $FORUM_VIEWFORUM_TEMPLATE['sub-footer'] = ""; $FORUM_VIEWFORUM_TEMPLATE['divider-important'] = "".LAN_FORUM_1006."".LAN_FORUM_0003."".LAN_FORUM_1005."".LAN_FORUM_0004.""; $FORUM_VIEWFORUM_TEMPLATE['divider-normal'] = "".LAN_FORUM_1007."".LAN_FORUM_0003."".LAN_FORUM_1005."".LAN_FORUM_0004.""; +$SC_WRAPPER['VIEWABLE_BY'] = "
".LAN_FORUM_8012."
{---}
"; + $FORUM_VIEWFORUM_TEMPLATE['footer'] = "
From a4f4f205e7c622b624953176d908db074674820d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor?= Date: Fri, 11 Nov 2016 08:10:56 +0100 Subject: [PATCH 15/19] Update admin_ui.php --- e107_handlers/admin_ui.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_handlers/admin_ui.php b/e107_handlers/admin_ui.php index eb7c81f8a..29545c43e 100644 --- a/e107_handlers/admin_ui.php +++ b/e107_handlers/admin_ui.php @@ -6068,7 +6068,7 @@ class e_admin_form_ui extends e_form ".$this->text('searchquery', $current_query[0], 50, $input_options)." - ".$this->select_open('filter_options', array('class' => 'form-control e-tip tbox select filter', 'id' => false, 'title'=>LAN_UI_FILTER))." + ".$this->select_open('filter_options', array('class' => 'form-control e-tip tbox select filter', 'id' => false, 'title'=>LAN_FILTER))." ".$this->option(LAN_FILTER_LABEL_DISPLAYALL, '')." ".$this->option(LAN_FILTER_LABEL_CLEAR, '___reset___')." ".$this->renderBatchFilter('filter', $current_query[1])." From d1ba7f8f7ba848db2041b7379311fd5e77a0d9d0 Mon Sep 17 00:00:00 2001 From: Cameron Date: Fri, 11 Nov 2016 17:07:32 -0800 Subject: [PATCH 16/19] Issue #2023 - Main Forum template missing wrapper identifiers. --- e107_plugins/forum/forum.php | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/e107_plugins/forum/forum.php b/e107_plugins/forum/forum.php index b536926c1..c87410a3d 100644 --- a/e107_plugins/forum/forum.php +++ b/e107_plugins/forum/forum.php @@ -366,7 +366,9 @@ foreach ($forumList['parents'] as $parent) //---- $sc->parentname = $parent['forum_name']; //-- $forum_string .= $tp->simpleParse($FORUM_MAIN_PARENT, $pVars); // $sc->fparent = $parent; - $sc->setVars($parent); + + $sc->setVars($parent); + $sc->wrapper('forum/main/parent'); $forum_string .= $tp->parseTemplate($FORUM_MAIN_PARENT, false, $sc); if (!count($forumList['forums'][$parent['forum_id']])) { @@ -527,6 +529,8 @@ function parse_forum($f, $restricted_string = '') --*/ //-- return $tp->simpleParse($FORUM_MAIN_FORUM, $fVars); + $sc->wrapper('forum/main/forum'); + return $tp->parseTemplate($FORUM_MAIN_FORUM, true, $sc); } @@ -638,8 +642,11 @@ $breadarray = array( //-- $fVars->FORUM_BREADCRUMB = $frm->breadcrumb($breadarray); //-- $forum_main_start = $tp->simpleParse($FORUM_MAIN_START, $fVars); +$sc->wrapper('forum/main/start'); $forum_main_start = $tp->parseTemplate($FORUM_MAIN_START, false, $sc); //-- $forum_main_end = $tp->simpleParse($FORUM_MAIN_END, $fVars); + +$sc->wrapper('forum/main/end'); $forum_main_end = $tp->parseTemplate($FORUM_MAIN_END, false, $sc); if ($forum->prefs->get('enclose')) @@ -795,7 +802,8 @@ function forum_track() $data['UNTRACK'] = "".IMAGE_track.""; - $forum_trackstring .= $tp->simpleParse($FORUM_TRACK_MAIN, $data); + $data['_WRAPPER_'] = 'forum/track/item'; + $forum_trackstring .= $tp->parseTemplate($FORUM_TRACK_MAIN, true, $data); } } // print_a($FORUM_TRACK_START); @@ -811,9 +819,12 @@ function forum_track() $data['FORUM_BREADCRUMB'] = e107::getForm()->breadcrumb($breadarray); } + $data['_WRAPPER_'] = 'forum/track/start'; + $forum_track_start = $tp->parseTemplate($FORUM_TRACK_START, true, $data); + + $data['_WRAPPER_'] = 'forum/track/end'; + $forum_track_end = $tp->parseTemplate($FORUM_TRACK_END, true, $data); - $forum_track_start = $tp->simpleParse($FORUM_TRACK_START, $data); - $forum_track_end = $tp->simpleParse($FORUM_TRACK_END, $data); // if ($forum->prefs->get('enclose')) { From 38a1d8399f6f9829a5f7d723eb6841739b504556 Mon Sep 17 00:00:00 2001 From: Cameron Date: Fri, 11 Nov 2016 17:48:46 -0800 Subject: [PATCH 17/19] Issue #2018 - Figcaption problem when not using WYSIWYG. --- e107_core/bbcodes/bb_img.php | 2 +- e107_handlers/e_parse_class.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/e107_core/bbcodes/bb_img.php b/e107_core/bbcodes/bb_img.php index d06169905..60ec525ba 100644 --- a/e107_core/bbcodes/bb_img.php +++ b/e107_core/bbcodes/bb_img.php @@ -23,7 +23,7 @@ class bb_img extends e_bb_base if(vartrue($parms['class'])) $safe['class'] = eHelper::secureClassAttr($parms['class']); if(vartrue($parms['id'])) $safe['id'] = eHelper::secureIdAttr($parms['id']); if(vartrue($parms['style'])) $safe['style'] = eHelper::secureStyleAttr($parms['style']); - if(vartrue($parms['alt'])) $safe['alt'] = e107::getParser()->filter($parms['style'],'str'); + if(vartrue($parms['alt'])) $safe['alt'] = e107::getParser()->filter($parms['alt'],'str'); if($safe) { diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php index ffedef130..e10819b93 100644 --- a/e107_handlers/e_parse_class.php +++ b/e107_handlers/e_parse_class.php @@ -792,6 +792,7 @@ class e_parse extends e_parser if (e107::wysiwyg() !== true) { // fix for utf-8 issue with html_entity_decode(); ??? + $text = urldecode($text); // $text = str_replace(" ", " ", $text); } return $text; From 69e41fa93afb471cfca77b825340d6cff9bc4e0c Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 14 Nov 2016 16:14:23 -0800 Subject: [PATCH 18/19] Issue #2023 - Corrected loading of forum template for wrapper use. --- e107_plugins/forum/forum.php | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/e107_plugins/forum/forum.php b/e107_plugins/forum/forum.php index c87410a3d..923e4b2f6 100644 --- a/e107_plugins/forum/forum.php +++ b/e107_plugins/forum/forum.php @@ -303,18 +303,24 @@ str_replace("[x]", ($total_topics+$total_replies), LAN_FORUM_0031)." ($total_top ".(!defined("e_TRACKING_DISABLED") ? "" : "
".$users." ".($users == 1 ? LAN_FORUM_0059 : LAN_FORUM_0060)." (".$member_users." ".($member_users == 1 ? LAN_FORUM_0061 : LAN_FORUM_0062).", ".$guest_users." ".($guest_users == 1 ? LAN_FORUM_0063 : LAN_FORUM_0064).")
".LAN_FORUM_0066." ".$total_members."
".LAN_FORUM_0065." ".$nuser_name.".\n"); // FIXME cannot find other references to e_TRACKING_DISABLED, use pref? --*/ -// FIX - core template always override theme template -// Include core template -include(e_PLUGIN.'forum/templates/forum_template.php'); -// Override with theme template -if (file_exists(THEME.'forum_template.php')) + + +$FORUM_TEMPLATE = e107::getTemplate('forum','forum'); // required to use v2.x wrapper shortcode wrappers. + +if(empty($FORUM_TEMPLATE)) //v1.x fallback. { - include_once(THEME.'forum_template.php'); -} -elseif(file_exists(THEME.'templates/forum/forum_template.php')) -{ - require_once(THEME.'templates/forum/forum_template.php'); + include(e_PLUGIN.'forum/templates/forum_template.php'); + + // Override with theme template + if (file_exists(THEME.'forum_template.php')) + { + include_once(THEME.'forum_template.php'); + } + elseif(file_exists(THEME.'templates/forum/forum_template.php')) + { + require_once(THEME.'templates/forum/forum_template.php'); + } } if(is_array($FORUM_TEMPLATE) && deftrue('BOOTSTRAP',false)) // new v2.x format. From d2a0685a671ae041aade8f75f9c5e187bfe07fc5 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 14 Nov 2016 16:41:07 -0800 Subject: [PATCH 19/19] Issue #6 #2005 Minor adjustment to LAN names. --- e107_handlers/admin_ui.php | 10 +++++----- e107_languages/English/admin/lan_admin.php | 11 +++++------ 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/e107_handlers/admin_ui.php b/e107_handlers/admin_ui.php index f4f9c217e..0846bf3e8 100644 --- a/e107_handlers/admin_ui.php +++ b/e107_handlers/admin_ui.php @@ -6513,11 +6513,11 @@ class e_admin_form_ui extends e_form //TODO today, yesterday, this-month, last-month . $dateFilters = array ( - 'hour' => LAN_UI_PAST_HOUR, - "day" => LAN_UI_PAST_24_HOURS, - "week" => LAN_UI_PAST_WEEK, - "month" => LAN_UI_PAST_MONTH, - "year" => LAN_UI_PAST_YEAR + 'hour' => LAN_UI_FILTER_PAST_HOUR, + "day" => LAN_UI_FILTER_PAST_24_HOURS, + "week" => LAN_UI_FILTER_PAST_WEEK, + "month" => LAN_UI_FILTER_PAST_MONTH, + "year" => LAN_UI_FILTER_PAST_YEAR ); foreach($dateFilters as $k => $name) diff --git a/e107_languages/English/admin/lan_admin.php b/e107_languages/English/admin/lan_admin.php index 1a72e1e9d..544f148f1 100644 --- a/e107_languages/English/admin/lan_admin.php +++ b/e107_languages/English/admin/lan_admin.php @@ -400,7 +400,6 @@ define("LAN_FILTER_LABEL_DISPLAYALL", "Display All"); define("LAN_FILTER_LABEL_CLEAR", "Clear Filter"); define("LAN_FILTER_LABEL_TYPED", "(typed)"); -//FIXME Remove html define("LAN_UI_NOPID_ERROR", "There is no [b]Primary ID[/b] set"); define("LAN_UI_BATCHDEL_ERROR", "Batch delete not allowed!"); define("LAN_UI_404_BODY_ERROR", "Requested page was not found!"); @@ -424,11 +423,11 @@ define("LAN_UI_BATCH_CREATELINK", "Create Link"); define("LAN_UI_USING_DATABASE_TABLE", "Using [x] database table"); define("LAN_UI_TOTAL_RECORDS", "Total Records: [x]"); -define("LAN_UI_PAST_HOUR", "Past Hour"); -define("LAN_UI_PAST_24_HOURS", "Past 24 hours"); -define("LAN_UI_PAST_WEEK", "Past Week"); -define("LAN_UI_PAST_MONTH", "Past Month"); -define("LAN_UI_PAST_YEAR", "Past Year"); +define("LAN_UI_FILTER_PAST_HOUR", "Past Hour"); +define("LAN_UI_FILTER_PAST_24_HOURS", "Past 24 hours"); +define("LAN_UI_FILTER_PAST_WEEK", "Past Week"); +define("LAN_UI_FILTER_PAST_MONTH", "Past Month"); +define("LAN_UI_FILTER_PAST_YEAR", "Past Year"); define("LAN_USER_MANAGEALL", "Manage all User, Userclass and Extended User-Field settings"); define("LAN_USER_LIST", "User List");