Skip to content

Commit

Permalink
activate cachecontrol filter plugin for searchresults and (bugfix:) t…
Browse files Browse the repository at this point in the history
…he backend
  • Loading branch information
mrbaseman committed Jul 15, 2019
1 parent bba0a5e commit 4d31039
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
3 changes: 2 additions & 1 deletion wbce/modules/outputfilter_dashboard/CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
Header: Version-History

1.5:
1.5.9 %(mrbaseman, 5 Jul 2019)%
1.5.9 %(mrbaseman, 11 Jul 2019)%
- include edit_area.js only on pages where an editarea exists
- allow 'search' in pages_parent for specifying searchresults
- enable cachecontrol plugin for backend and search by default

1.5.8 %(mrbaseman, 20 Mar 2019)%
- include http_to_https plugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@



<div id=Content><div class="CFile"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="Version-History"></a>Version-History</h1><div class=CBody><h4 class=CHeading>1.5</h4><p>1.5.9 <span class="mypriv_vartype">(mrbaseman, 5 Jul 2019)</span></p><ul><li>include edit_area.js only on pages where an editarea exists</li><li>allow &lsquo;search&rsquo; in pages_parent for specifying searchresults</li></ul><p>1.5.8 <span class="mypriv_vartype">(mrbaseman, 20 Mar 2019)</span></p><ul><li>include http_to_https plugin</li><li>support placeholders in helppath</li><li>automatically install/update plugins from the plugins directory</li><li>support relative path for helppath</li><li>use placeholders in file path when editing a filter</li></ul><p>1.5.7 <span class="mypriv_vartype">(mrbaseman, 07 Mar 2019)</span></p><ul><li>starting with php 7.2 create_function is deprecated</li><li>use <span class="mypriv_var">{SYSVAR:WB_URL}</span>, <span class="mypriv_var">{SYSVAR:WB_PATH}</span>, <span class="mypriv_var">{OPF:PLUGIN_URL}</span>, and <span class="mypriv_var">{OPF:PLUGIN_PATH}</span> when storing to database</li><li>if it exists, use <span class="mypriv_var">/temp</span> directory instead of media folder</li><li>introduce new filter types</li></ul><blockquote><pre class="prettyprint">OPF_TYPE_SECTION_FIRST: is executed before OPF_TYPE_SECTION
<div id=Content><div class="CFile"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="Version-History"></a>Version-History</h1><div class=CBody><h4 class=CHeading>1.5</h4><p>1.5.9 <span class="mypriv_vartype">(mrbaseman, 11 Jul 2019)</span></p><ul><li>include edit_area.js only on pages where an editarea exists</li><li>allow &lsquo;search&rsquo; in pages_parent for specifying searchresults</li><li>enable cachecontrol plugin for backend and search by default</li></ul><p>1.5.8 <span class="mypriv_vartype">(mrbaseman, 20 Mar 2019)</span></p><ul><li>include http_to_https plugin</li><li>support placeholders in helppath</li><li>automatically install/update plugins from the plugins directory</li><li>support relative path for helppath</li><li>use placeholders in file path when editing a filter</li></ul><p>1.5.7 <span class="mypriv_vartype">(mrbaseman, 07 Mar 2019)</span></p><ul><li>starting with php 7.2 create_function is deprecated</li><li>use <span class="mypriv_var">{SYSVAR:WB_URL}</span>, <span class="mypriv_var">{SYSVAR:WB_PATH}</span>, <span class="mypriv_var">{OPF:PLUGIN_URL}</span>, and <span class="mypriv_var">{OPF:PLUGIN_PATH}</span> when storing to database</li><li>if it exists, use <span class="mypriv_var">/temp</span> directory instead of media folder</li><li>introduce new filter types</li></ul><blockquote><pre class="prettyprint">OPF_TYPE_SECTION_FIRST: is executed before OPF_TYPE_SECTION
OPF_TYPE_PAGE_FIRST: is executed before OPF_TYPE_PAGE
OPF_TYPE_PAGE_FINAL: is ececuted after OPF_TYPE_PAGE_LAST</pre></blockquote><ul><li>rewrite of <span class="mypriv_var">opf_filter_get_rel_pos()</span> it did not return reliable results</li><li>introduce internal functions for sysvar replacements</li></ul><p>1.5.6 <span class="mypriv_vartype">(mrbaseman, 04 Nov 2018)</span></p><ul><li>support a legacy module <span class="mypriv_var">opf_simple_backend</span> to switch between basic and advanced backend view</li><li>avoid warning during installation when shipped as core module</li><li>php 7.2 fixes</li><li>add configurl button in the filter edit view, if applicable</li><li>allow multiple uses of the same field type in extra fields</li><li>change the logic when backend filtering shall be offered</li><li>correctly start incrementing position of installed filters</li><li>fix bug in <span class="mypriv_var">opf_filter_get_data()</span> to find index correctly</li><li>fix the logic for the backend filtering - module filtering not for inline filters</li><li>print footer always when an exit() is issued in the backend tool</li></ul><p>1.5.5 <span class="mypriv_vartype">(mrbaseman, 5 Sep 2018)</span></p><ul><li>fix uninstall.php in case MEDIA_DIRECTORY does not start with a slash</li><li>fix ajax drag&amp;drop which caused warning when issued after editing a filter</li><li>fix: hand over <span class="mypriv_var">$OPF_TYPE_ASSIGNMENTS</span> correctly to opf_revert_type_consts</li><li>only apply filter to backend when <span class="mypriv_var">backend</span> is selected - <span class="mypriv_var">ALL</span> is for frontend</li><li>correctly apply filters for special pages like searchresults with <span class="mypriv_var">$pageid==0</span></li><li>fix css for checktree so that indentation works correctly</li><li>bugfix: converting filter types between plugin and inline failed</li><li>updated assignments of modules to the categories</li><li>minor update of the help pages</li></ul><p>1.5.4 <span class="mypriv_vartype">(mrbaseman, 19 Apr 2017)</span></p><ul><li>fix for opf_db functions when previous queries have triggered already an error</li></ul><p>1.5.3 <span class="mypriv_vartype">(mrbaseman, 7 Apr 2017)</span></p><ul><li>added fallbacks in &lt;opf_insert_frontend_files&gt; in case the template lacks head</li><li>improved debug messages for calls to &lt;opf_is_registered&gt;</li></ul><p>1.5.2 <span class="mypriv_vartype">(mrbaseman, 8 Mar 2017)</span></p><ul><li>use <span class="mypriv_var">OPF_TYPE</span> constants when exporting filters</li></ul><p>1.5.1 <span class="mypriv_vartype">(mrbaseman, 25 Jan 2017)</span></p><ul><li>allow arrays for <span class="mypriv_var">$ref_name</span> in <a href="functions_outputfilter-php.html#opf_move_up_before" class=LFunction id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">opf_move_up_before</a></li><li>switch to colon separator in ajax helper</li><li>if <span class="mypriv_var">$ref_name</span> is ommited in <a href="functions_outputfilter-php.html#opf_move_up_before" class=LFunction id=link2 onMouseOver="ShowTip(event, 'tt1', 'link2')" onMouseOut="HideTip('tt1')">opf_move_up_before</a>, move <span class="mypriv_var">$name</span> up to the top</li><li>update patch detection for WBCE and module filter replacement</li><li>suppress warning when <a href="functions_outputfilter-php.html#opf_move_up_before" class=LFunction id=link3 onMouseOver="ShowTip(event, 'tt1', 'link3')" onMouseOut="HideTip('tt1')">opf_move_up_before</a> is called and <span class="mypriv_var">$ref_name</span> not found</li><li>store active/inactive state not only inside opf but also as WBCE Settings value</li><li>add additional hint upon an attempt to install a module filter as a plugin</li><li>trigger upgrade/install of module filters</li><li>in <a href="functions_outputfilter-php.html#opf_filter_is_active" class=LFunction id=link4 onMouseOver="ShowTip(event, 'tt2', 'link4')" onMouseOut="HideTip('tt2')">opf_filter_is_active</a> take settings constants into account</li><li>immediately reflect toggle of the active/inactive state in the dashboard</li></ul><p>1.5.0 <span class="mypriv_vartype">(mrbaseman, 29 Sept 2016)</span></p><ul><li>fetch $page_id from constant <span class="mypriv_var">PAGE_ID</span> for all cases</li><li>automagically initialize the global filter list</li><li>allow to sort filters via drag&amp;drop</li><li>make exported filter human-readable</li><li>improve processing of formatting of documentation</li><li>when exporting a filter create a filter.php file</li><li>during export also insert placeholders introduced in version 1.4.4</li><li>allow to convert between inline filters and plugin filters</li><li>added <a href="functions_outputfilter-php.html#opf_move_up_before" class=LFunction id=link5 onMouseOver="ShowTip(event, 'tt1', 'link5')" onMouseOut="HideTip('tt1')">opf_move_up_before</a> to move filters up in the list during installation</li><li>search for pre-existing module filters during installation of opf</li><li>cleaned up backend_body.js</li><li>support backend filtering, provided that the class &ldquo;Tool&rdquo; exists and the settings have been converted to modules (this relies on developments in the WBCE 2.0-dev Branch, so you might see the checkbox for the backend, but unless the backend is implemented as modules, most probably no filters are going to be applied) In case you have created a filter which screws up the backend completely, add the following line to your global <span class="mypriv_var">config.php</span> of your WBCE installation</li></ul><blockquote><pre class="prettyprint">define('WB_OPF_BE_OFF', 'off');</pre></blockquote><p>The value doesn&rsquo;t really matter, just if the constant is defined, there will no filter be applied to the backend and you have access to the dashboard again and you can fix the filters.</p><h4 class=CHeading>1.4</h4><p><b>this version is a major re-engineering of the module with the goal to use it without PMF.</b>&nbsp; Special thanks to all who have tested and especially to NorHei for fruitful discussions and for providing additional testing ressources.</p><p>1.4.9 <span class="mypriv_vartype">(mrbaseman, 23 Mar 2016)</span></p><ul><li>change cachecontrols filter type to page(last)</li><li>realign code: wrap long lines and set tab width=4</li><li>make help browser work without javascript</li><li>fix css edit for filters that supply css files</li><li>provide export download link when javascript is disabled</li><li>allow to delete filters even without javascript</li><li>added French and Italian language support</li></ul><p>1.4.8 <span class="mypriv_vartype">(mrbaseman, 21 Feb 2016)</span></p><ul><li>remove unused code part from add_filter to fix array conversion warnings</li><li>update plugin filters to use new placeholders introduced in 1.4.4 <b>in order to pick up this change you have to remove the example filters before upgrading OpF</b></li><li>update documentation: added a section which explains the use of the constants and placeholders</li></ul><p>1.4.7 <span class="mypriv_vartype">(mrbaseman, 21 Feb 2016)</span></p><ul><li>a couple of cosmetic bugfixes (correctly display Umlauts in filter list, replace German ss special char with ss in filter description, remove unused filter_id from template parsing, properly initialize TPL_EXTRA_FIELDS_BLOCK in edit_filter, fix for using global LANG inside method in WBCE)</li><li>security fix: check ftan for upload</li><li>several fixes for arrays as additional field (like in correct date example)</li><li>fix css edit for filters that provide css</li></ul><p>1.4.6 <span class="mypriv_vartype">(mrbaseman, 18 Feb 2016)</span></p><ul><li>add module icon for WBCE 1.2</li><li>bugfix: do not allow moving up uppermost filter</li><li>switch from FTANs to IDKEYs in many places of the backend</li></ul><p>1.4.5 <span class="mypriv_vartype">(mrbaseman, 09 Feb 2016)</span></p><ul><li>update documentation layout</li><li>include example plugins again</li><li>update patch check</li><li>merge in Stefek&rsquo;s changes, thanks for your contribution and for your ideas you have contributed</li><li>automatically remove naturaldocs sources during install</li><li>various minor changes to make it working in upcoming wb-classic releases</li></ul><p>1.4.4 <span class="mypriv_vartype">(Stefek, 05 Feb 2016)</span></p><ul><li>added the following tokens to apply instead of hardcoded pathes within OpF-Plugins:</li></ul><blockquote><pre class="prettyprint">{SYSVAR:WB_URL} = will replace with the content of the Constant WB_URL
{SYSVAR:WB_PATH} = will replace with the content of the Constant WB_PATH
Expand Down
2 changes: 1 addition & 1 deletion wbce/modules/outputfilter_dashboard/docs/index/Files.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@


<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt3"><div class=CFile>1.5.9 <span class="mypriv_vartype">(mrbaseman, 5 Jul 2019)</span></div></div><!--END_ND_TOOLTIPS-->
<div class=CToolTip id="tt3"><div class=CFile>1.5.9 <span class="mypriv_vartype">(mrbaseman, 11 Jul 2019)</span></div></div><!--END_ND_TOOLTIPS-->

</div><!--Index-->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@


<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt50"><div class=CFile>1.5.9 <span class="mypriv_vartype">(mrbaseman, 5 Jul 2019)</span></div></div><div class=CToolTip id="tt51"><div class=CGeneric>Vor der Installation von OutputFilter-Dashboard mu&szlig; das alte Frontend-Filter-Admin Modul - wenn vorhanden - deinstalliert werden, nicht zu verwechseln mit dem Frontend-Output-Filter!</div></div><div class=CToolTip id="tt52"><div class=CGeneric>Website Baker 2.8 oder neuer.</div></div><!--END_ND_TOOLTIPS-->
<div class=CToolTip id="tt50"><div class=CFile>1.5.9 <span class="mypriv_vartype">(mrbaseman, 11 Jul 2019)</span></div></div><div class=CToolTip id="tt51"><div class=CGeneric>Vor der Installation von OutputFilter-Dashboard mu&szlig; das alte Frontend-Filter-Admin Modul - wenn vorhanden - deinstalliert werden, nicht zu verwechseln mit dem Frontend-Output-Filter!</div></div><div class=CToolTip id="tt52"><div class=CGeneric>Website Baker 2.8 oder neuer.</div></div><!--END_ND_TOOLTIPS-->

</div><!--Index-->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
Header: Version-History

1.5:
1.5.9 %(mrbaseman, 5 Jul 2019)%
1.5.9 %(mrbaseman, 11 Jul 2019)%
- include edit_area.js only on pages where an editarea exists
- allow 'search' in pages_parent for specifying searchresults
- enable cachecontrol plugin for backend and search by default

1.5.8 %(mrbaseman, 20 Mar 2019)%
- include http_to_https plugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
/*
Header: Version-History
1.0.6 %(mrbaseman; 15 Jul, 2019)%
- use by default in search results, too
- bugfix: correct the previous change
1.0.5 %(mrbaseman; 11 Jul, 2019)%
- activate by default in backend
Expand All @@ -48,7 +52,7 @@

$plugin_directory = 'cachecontrol';
$plugin_name = 'Cache Control';
$plugin_version = '1.0.5';
$plugin_version = '1.0.6';
$plugin_status = 'beta';
$plugin_platform = '2.8';
$plugin_author = 'thorn, mrbaseman';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
'EN' => "Prevent Browsers from delivering outdated files (css, js) from it's cache.\nKeep care that this filter is called last!",
'DE' => "Verhindert, dass Browser veralterte CSS- oder JS-Dateien aus ihrem Cache ausliefern.\nAchten Sie darauf, dass dieser Filter als letzter aufgerufen wird!"
),
'modules' => 'all,backend',
'plugin' => 'cachecontrol',
'active' => 1,
'allowedit' => 0,
'allowedittarget' => 1,
'configurl'=> '',
'pages_parent' => 'all,backend,search'
));

0 comments on commit 4d31039

Please sign in to comment.