Permalink
Browse files

Minor update to version 1.1.2; tested with CMSimple 4.7.3 and CMSimpl…

…e XH 1.7.2.
  • Loading branch information...
davidstutz committed Jan 5, 2018
1 parent 7a1383d commit 2198f170cf780db4cd7956ca8551c1f4002a0e24
Showing with 458 additions and 107 deletions.
  1. +1 −1 LICENSE.md
  2. +5 −74 README.md
  3. +9 −7 admin.php
  4. +1 −1 config/config.php
  5. +22 −9 help/help_en.htm
  6. +1 −6 index.php
  7. +1 −1 languages/cs.php
  8. +1 −1 languages/cz.php
  9. +1 −1 languages/de.php
  10. +1 −1 languages/en.php
  11. +3 −3 news.php
  12. +1 −1 rss.php
  13. +33 −0 test/cmsimple/4.7.3/content.php
  14. +165 −0 test/cmsimple/4.7.3/pagedata.php
  15. +8 −0 test/cmsimple/4.7.3/plugins/.htaccess
  16. +1 −0 test/cmsimple/4.7.3/plugins/news/news.cf
  17. +2 −0 test/cmsimple/4.7.3/plugins/news/news.csv
  18. 0 test/{ → cmsimple_xh}/1.5.9/content/content.htm
  19. 0 test/{ → cmsimple_xh}/1.5.9/content/pagedata.php
  20. 0 test/{ → cmsimple_xh}/1.5.9/content/plugins/news/test.cf
  21. 0 test/{ → cmsimple_xh}/1.5.9/content/plugins/news/test.csv
  22. 0 test/{ → cmsimple_xh}/1.6.1/content/content.htm
  23. 0 test/{ → cmsimple_xh}/1.6.1/content/plugins/news/test.cf
  24. 0 test/{ → cmsimple_xh}/1.6.1/content/plugins/news/test.csv
  25. 0 test/{ → cmsimple_xh}/1.6.4/content/content.htm
  26. 0 test/{ → cmsimple_xh}/1.6.4/content/plugins/news/test.cf
  27. 0 test/{ → cmsimple_xh}/1.6.4/content/plugins/news/test.csv
  28. 0 test/{ → cmsimple_xh}/1.6/content/content.htm
  29. 0 test/{ → cmsimple_xh}/1.6/content/plugins/news/test.cf
  30. 0 test/{ → cmsimple_xh}/1.6/content/plugins/news/test.csv
  31. +7 −0 test/cmsimple_xh/1.7.2/content/.htaccess
  32. +191 −0 test/cmsimple_xh/1.7.2/content/content.htm
  33. +1 −0 test/cmsimple_xh/1.7.2/content/plugins/news/news.cf
  34. +2 −0 test/cmsimple_xh/1.7.2/content/plugins/news/news.csv
  35. +1 −1 version.nfo
View
@@ -1,4 +1,4 @@
Copyright 2012 - 2014 David Stutz
Copyright 2012 - 2018 David Stutz
The plugin is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
View
@@ -4,7 +4,9 @@ CMSimple News is a CMSimple plugin for publishing and managing news. The plugin
Project page: [http://davidstutz.de/cmsimple/?News](http://davidstutz.de/cmsimple/?News).
Documentation: [http://davidstutz.github.io/cmsimple-news/help/help_en.htm](http://davidstutz.github.io/cmsimple-news/help/help_en.htm).
Documentation: [http://davidstutz.de/cmsimpledemo/plugins/news/help/help_en.htm](http://davidstutz.de/cmsimpledemo/plugins/news/help/help_en.htm).
Demo: [http://davidstutz.de/cmsimpledemo/?News](http://davidstutz.de/cmsimpledemo/?News)
**Outdated** Sourceforge project: [https://sourceforge.net/projects/cmsimplenews/](https://sourceforge.net/projects/cmsimplenews/).
@@ -17,8 +19,6 @@ Other CMSimple plugins:
Requires PHP 5 or higher.
**Recommended: [CMSimple XH](http://www.cmsimple-xh.org/) 1.5 or higher!**
**Recommended: CMSimple jQuery Plugin** (included in CMSimple XH download, see [here](http://www.cmsimple-xh.org/?CMSimple_XH:Plugins)).
Supports [Hi_updatecheck](http://cmsimple.holgerirmler.de/en/?Plugins:UpdateCheck).
@@ -27,80 +27,11 @@ Also tested on:
* CMSimple XH 1.4.2 and 1.1.4.
* CMSimple Realblog 1.5 or higher.
## Changelog
### 1.1.1
* Minor fixes, additional tests for CMSimple XH 1.6.4.
### 1.1.0
**Beta 17.**
* Bugfix concerning the blog option: [https://sourceforge.net/p/cmsimplenews/discussion/help/thread/0bf9ea05/?limit=25#c615](https://sourceforge.net/p/cmsimplenews/discussion/help/thread/0bf9ea05/?limit=25#c615)
**Beta 16.**
* News category configuration option news_link.
* Minor bug fixes.
* Update to support CMSimple XH 1.6.x.
**Beta 15.**
* Added a newsscroller based on liScroller.
* Updated ID for calling the newsscroller or newsticker to use both for the same category on the same page.
**Beta 14.**
* Updated newsticker to use multiple newsticker on one page including newsticker within templates, see Calling the newsticker in the template.
**Beta 13.**
* Updated RSS feed.
* Added category configuration for rss link.
**Beta 12.**
* Sorting of categories. See 'news_categories_sort_asc' configuration option.
**Beta 11.**
* Minor fixes.
* Added version.nfo.
**Beta 9 and 10.**
* Minor changes (mostly refactoring) and updated documentation.
**Beta 8.**
* Updated to jQuery 1.9.
* Added new call "blockquotes" which displays the entries using the blockquote html tag.
* Used jQuery files in the case jQuery4CMSimple is not installed can be configured.
* Added missing configuration help.
* Minor changes and updated documentation.
**Up to beta 7.**
* Added the 'blog' option to enable/disable the fulltext of entries.
* Added possibility to fix some publishing date in the future.
* Fixed a magic_quotes_gpc issue.
* Got rid of str_getcsv().
* Migrated from functional programming to object-oriented programming.
* Added RSS feed (rss.php).
* Added possibility of category configuration.
* Added pagination in Backend.
* Added instant publishing and taking out of entries.
* Added quick help for some pages.
* Added newsslider.
* Added news archive with pagination.
* Added newscase.
* A lot of minor changes.
* CMSimple 4.7.3.
## License
Copyright 2012 - 2014 David Stutz
Copyright 2012 - 2018 David Stutz
The plugin is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
View
@@ -9,7 +9,7 @@
* @package news
* @see http://sourceforge.net/projects/cmsimplenews/
*
* Copyright 2012 - 2014 David Stutz
* Copyright 2012 - 2018 David Stutz
*
* This file is part of the news plugin for CMSimple.
*
@@ -25,15 +25,17 @@
*
* @see <http://www.gnu.org/licenses/>.
*/
if (!defined('CMSIMPLE_XH_VERSION')) {
header('HTTP/1.0 403 Forbidden');
exit;
}
/*
* Register the plugin menu items.
*/
if (function_exists('XH_registerStandardPluginMenuItems')) {
XH_registerStandardPluginMenuItems(false);
}
if (!class_exists('News')) require dirname(__FILE__) . '/news.php';
if (isset($news))
if (isset($news) OR isset($_GET['news']))

This comment has been minimized.

Show comment
Hide comment
@cmb69

cmb69 Jan 6, 2018

Contributor

Hmm, that somehow defeats the purpose of XH_wantsPluginAdmin() which is to abstract over any particular query parameter. (For instance, something like ?admin/plugin/news&… might be preferable.)

@cmb69

cmb69 Jan 6, 2018

Contributor

Hmm, that somehow defeats the purpose of XH_wantsPluginAdmin() which is to abstract over any particular query parameter. (For instance, something like ?admin/plugin/news&… might be preferable.)

This comment has been minimized.

Show comment
Hide comment
@davidstutz

davidstutz Jan 6, 2018

Owner

Hmm, I wasn't aware of all the new features. Wanted to get it working XH and plain CMSimple first. But just read https://cmsimpleforum.com/viewtopic.php?f=16&t=12828, and will update the corresponding line.

@davidstutz

davidstutz Jan 6, 2018

Owner

Hmm, I wasn't aware of all the new features. Wanted to get it working XH and plain CMSimple first. But just read https://cmsimpleforum.com/viewtopic.php?f=16&t=12828, and will update the corresponding line.

{
global $sn;
View
@@ -8,7 +8,7 @@
* @package news
* @see http://sourceforge.net/projects/cmsimplenews/
*
* Copyright 2012 - 2014 David Stutz
* Copyright 2012 - 2018 David Stutz
*
* This file is part of the news plugin for CMSimple.
*
View
@@ -242,15 +242,15 @@ <h2><a name="introduction">Introduction</a><a class="toplink" href="#">Back to t
<h2><a name="version">Version</a><a class="toplink" href="#">Back to top</a></h2>
<p>This is currently version 1.1.1 of the plugin, released 27th October 2014.</p>
<p>This is currently version 1.1.2 of the plugin, released January 6th 2018.</p>
<h2><a name="requirements">Requirements</a><a class="toplink" href="#">Back to top</a></h2>
<h3><a name="requirements-php">PHP</a><a class="toplink" href="#">Back to top</a></h3>
<p>The plugin works using <code>fgetcsv()</code> and <code>fputcsv()</code> so requires a PHP version 5 or higher, which is supported by most providers.</p>
<h3><a name="requirements-cmsimple">Supported CMSimple versions</a><a class="toplink" href="#">Back to top</a></h3>
<h3><a name="requirements-cmsimple">Supported/Tested CMSimple versions</a><a class="toplink" href="#">Back to top</a></h3>
<ul>
<li><b>CMSimple XH 1.5 or higher (recommended)</b></li>
@@ -259,6 +259,7 @@ <h3><a name="requirements-cmsimple">Supported CMSimple versions</a><a class="top
<li>CMSimple Realblog 1.5 or higher</li>
<li style="text-decoration: line-through;">CMSimple LE 3.4(.1) (Pluginloader needed, see installation guide below)</li>
<li style="text-decoration: line-through;">CMSimple 3.3 (Pluginloader needed, see installation guide below)</li>
<li>CMSimple 4.7.3</li>
</ul>
<h3><a name="requirements-jQuery4cmsimple">jQuery4CMSimple</a><a class="toplink" href="#">Back to top</a></h3>
@@ -299,14 +300,14 @@ <h3><a name="upgrading-from-1-0">Upgrading from version 1.0.x</a><a class="topli
<h2><a name="installation">Installation</a><a class="toplink" href="#">Back to top</a></h2>
<h3><a name="installation-xh">CMSimple XH</a><a class="toplink" href="#">Back to top</a></h3>
<h3><a name="installation-xh">CMSimple XH and CMSimple 4.7</a><a class="toplink" href="#">Back to top</a></h3>
<ul>
<li>Download the plugin.</li>
<li>In the <code>plugins</code> folder, create a new subfolder called <code>news</code></li>
<li>Extract the files into the <code>news</code> folder.</li>
<li>Move <code>rss.php</code> to the CMSimple root.</li>
<li>The plugin stores the categories in CSV files in <code>/content/plugins/news</code>. The folder is created automatically (mostly).This folder needs write and read permissions. The plugin checks this permissions and tries to alter this permissions if needed.</li>
<li>Go into backend and see if the installation is detected correctly.</li>
<li>Go into backend and see if the installation is detected correctly. For CMSimple 4.7, additionally activate the plugin using the plugin manager.</li>
</ul>
<h3><a name="installation-other">CMSimple 3.3 and CMSimple LE</a><a class="toplink" href="#">Back to top</a></h3>
@@ -586,6 +587,7 @@ <h3><a name="usage-calling-plugin">Calling the plugin</a><a class="toplink" href
<ul>
<li>CMSimple scripting: <b>#CMSimple $o .= news('categoryname', 5); #</b></li>
<li>New CMSimple_XH scripting: <b>{{{PLUGIN:news('categoryname', 5);}}}</b></li>
<li>CMSimple 4.7 scripting: <b>{{{plugin:news('categoryname', 5);}}}</b> (old CMSimple scripting partly works, as well)</li>
</ul>
<p>The function expects two parameters: The first one is a string containing a category name, an array with category names, or an empty string if all categories shall be displayed, the second parameter defines the number of entries displayed. There are two options:</p>
@@ -639,7 +641,8 @@ <h3><a name="usage-newsticker">Calling the newsticker</a><a class="toplink" href
<ul>
<li>CMSimple scripting: <b>#CMSimple $o .= newsticker('categoryname', 5); #</b></li>
<li>New CMSimple_XH scripting: <b>{{{PLUGIN:newsticker('categoryname', 5);}}}</b></li>
</ul>
<li>CMSimple 4.7 scripting: <b>{{{plugin:news('categoryname', 5);}}}</b> (old CMSimple scripting partly works, as well)</li>
</ul>
<p>The arguments are more or less the same as calling the news normally.</p>
@@ -674,7 +677,8 @@ <h3><a name="usage-newsscroller">Calling the newsscroller</a><a class="toplink"
<ul>
<li>CMSimple scripting: <b>#CMSimple $o .= newsscroller('categoryname', 5); #</b></li>
<li>New CMSimple_XH scripting: <b>{{{PLUGIN:newsscroller('categoryname', 5);}}}</b></li>
</ul>
<li>CMSimple 4.7 scripting: <b>{{{plugin:news('categoryname', 5);}}}</b> (old CMSimple scripting partly works, as well)</li>
</ul>
<p>The aruments are the same as for the newsticker or the news in general.</p>
@@ -709,7 +713,8 @@ <h3><a name="usage-newsslider">Calling the newsslider</a><a class="toplink" href
<ul>
<li>CMSimple scripting: <b>#CMSimple $o .= newsslider('categoryname', 5); #</b></li>
<li>New CMSimple_XH scripting: <b>{{{PLUGIN:newsslider('categoryname', 5);}}}</b></li>
</ul>
<li>CMSimple 4.7 scripting: <b>{{{plugin:news('categoryname', 5);}}}</b> (old CMSimple scripting partly works, as well)</li>
</ul>
<p>The arguments are more or less the same as calling the news normally.</p>
@@ -740,7 +745,8 @@ <h3><a name="usage-archive">News archive</a><a class="toplink" href="#">Back to
<ul>
<li>CMSimple scripting: <b>#CMSimple $o .= newsarchive('categoryname'); #</b></li>
<li>New CMSimple_XH scripting: <b>{{{PLUGIN:newsarchive('categoryname');}}}</b></li>
</ul>
<li>CMSimple 4.7 scripting: <b>{{{plugin:news('categoryname', 5);}}}</b> (old CMSimple scripting partly works, as well)</li>
</ul>
<p>The function expects one parameter: The category name as string. The string cannot be empty!</p>
@@ -1206,7 +1212,14 @@ <h2><a name="icons">Icons</a><a class="toplink" href="#">Back to top</a></h2>
<h2><a name="changelog">Changelog</a><a class="toplink" href="#">Back to top</a></h2>
<h3><a name="changelog-1-1">Version 1.1</a><a class="toplink" href="#">Back to top</a></h3>
<h4>Version 1.1.2</h4>
<ul>
<li>Updated documentation.</li>
<li>Testing with CMSimple 4.7.3.</li>
</ul>
<h4>Version 1.1.1</h4>
<ul>
View
@@ -9,7 +9,7 @@
* @package news
* @see http://sourceforge.net/projects/cmsimplenews/
*
* Copyright 2012 - 2014 David Stutz
* Copyright 2012 - 2018 David Stutz
*
* This file is part of the news plugin for CMSimple.
*
@@ -25,11 +25,6 @@
*
* @see <http://www.gnu.org/licenses/>.
*/
if (!defined('CMSIMPLE_XH_VERSION')) {
header('HTTP/1.0 403 Forbidden');
exit;
}
if (!class_exists('News')) require dirname(__FILE__) . "/news.php";
View
@@ -8,7 +8,7 @@
* @package news
* @see http://sourceforge.net/projects/cmsimplenews/
*
* Copyright 2012 - 2014 David Stutz
* Copyright 2012 - 2018 David Stutz
*
* This file is part of the news plugin for CMSimple.
*
View
@@ -8,7 +8,7 @@
* @package news
* @see http://sourceforge.net/projects/cmsimplenews/
*
* Copyright 2012 - 2014 David Stutz
* Copyright 2012 - 2018 David Stutz
*
* This file is part of the news plugin for CMSimple.
*
View
@@ -8,7 +8,7 @@
* @package news
* @see http://sourceforge.net/projects/cmsimplenews/
*
* Copyright 2012 - 2014 David Stutz
* Copyright 2012 - 2018 David Stutz
*
* This file is part of the news plugin for CMSimple.
*
View
@@ -8,7 +8,7 @@
* @package news
* @see http://sourceforge.net/projects/cmsimplenews/
*
* Copyright 2012 - 2014 David Stutz
* Copyright 2012 - 2018 David Stutz
*
* This file is part of the news plugin for CMSimple.
*
View
@@ -9,7 +9,7 @@
* @package news
* @see http://sourceforge.net/projects/cmsimplenews/
*
* Copyright 2012 - 2014 David Stutz
* Copyright 2012 - 2018 David Stutz
*
* This file is part of the news plugin for CMSimple.
*
@@ -93,7 +93,7 @@ class News {
/**
* Version.
*/
const VERSION = '1.1.1';
const VERSION = '1.1.2';
/**
* @static
@@ -182,7 +182,7 @@ public static function name()
*/
public static function release_date()
{
return "27th October 2014";
return "January 6th 2018";
}
/**
View
@@ -10,7 +10,7 @@
* @package news
* @see http://sourceforge.net/projects/cmsimplenews/
*
* Copyright 2012 - 2014 David Stutz
* Copyright 2012 - 2018 David Stutz
*
* This file is part of the news plugin for CMSimple.
*
@@ -0,0 +1,33 @@
<?php // utf8-marker = äöü
if(!defined('CMSIMPLE_VERSION') || preg_match('/content.php/i', $_SERVER['SCRIPT_NAME']))
{
die('No direct access');
}
?>
<h1>Overview</h1>
<p>This installation of CMSimple demonstrates a couple of CMSimple plugins using the standard template:</p>
<ul>
<li><a href="" target="_blank">CMSimple News</a>, <a href="" target="_blank">GitHub</a>, <a href="" target="_blank">Documentation</a></li>
<li><a href="" target="_blank">CMSimple Pictures</a>, <a href="" target="_blank">GitHub</a>, <a href="" target="_blank">Documentation</a></li>
<li><a href="" target="_blank">CMSimple Youtube</a>, <a href="" target="_blank">GitHub</a>, <a href="" target="_blank">Documentation</a></li>
<li><a href="" target="_blank">CMSimple BBClone</a>, <a href="" target="_blank">GitHub</a>, <a href="" target="_blank">Documentation</a></li>
</ul>
<p>See the following subpages:</p>
<h1>News</h1>
<p class="cmsimplecore_warning">All plugin calls are wrapped in three opening and closing braces!</p>
<p>The basic plugin call <code>{plugin:news('news', 5);}</code> (with three opening and closing braces, as detailed in the <a href="" target="_blank">documentation</a>) generates the following list of (up to five) news entries:</p>
{{{plugin:news('news', 5);}}}
<h2>Newscase</h2>
<p>A newscase can be called using <code>{plugin:newscase('News', 'news', '-5 years');}</code>. It only shows news entries from the last five years:</p>
{{{plugin:newscase('News', 'news', '-5 years');}}}
<h2>Newsticker</h2>
<p>The newsticker can be called using <code>{plugin:newsticker('news', 5);}</code>:</p>
{{{plugin:newsticker('news', 5);}}}
<h2>Newsscroller</h2>
<p>The newsscroller can be called using <code>{plugin:newsscroller('news', 5);}</code>:</p>
{{{plugin:newsscroller('news', 5);}}}
<h2>Newsslider</h2>
<p>The newsslider can be called using <code>{plugin:newsslider('news', 5, TRUE);}</code>:</p>
{{{plugin:newsslider('news', 5, TRUE);}}}
<h1>Pictures</h1>
<h1>Youtube</h1>
Oops, something went wrong.

0 comments on commit 2198f17

Please sign in to comment.