diff --git a/CHANGELOG.md b/CHANGELOG.md index b6dfda6..3d0b9b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,58 +1,76 @@ -dev -- [ ] literal rank of writer depending of num of com +topWriter 1.3 - 2023.08.13 +=========================================================== +* Require Dotclear 2.27 +* Require PHP 7.4 +* Upgrade to Dotclear 2.27 +* Move third party repository +* Use Dotclear style for CHANGELOG -1.2 - 2023.04.23 -- require dotclear 2.26 -- use latest dotclear namespace -- use sql statement -- fix plural translations -- fix nullsafe warnings +topWriter 1.2 - 2023.04.23 +=========================================================== +* require dotclear 2.26 +* use latest dotclear namespace +* use sql statement +* fix plural translations +* fix nullsafe warnings -1.1 - 2023.03.21 -- require Dotclear 2.25 -- use namespace +topWriter 1.1 - 2023.03.21 +=========================================================== +* require Dotclear 2.25 +* use namespace -1.0 - 2022.12.23 -- use dotclear methods for widgets -- fix permissions +topWriter 1.0 - 2022.12.23 +=========================================================== +* use dotclear methods for widgets +* fix permissions -0.10 - 2022.11.20 -- fix compatibility with Dotclear 2.24 (required) +topWriter 0.10 - 2022.11.20 +=========================================================== +* fix compatibility with Dotclear 2.24 (required) -0.9 - 2021.11.06 -- add dashboard module -- update translations -- update to PSR12 +topWriter 0.9 - 2021.11.06 +=========================================================== +* add dashboard module +* update translations +* update to PSR12 -0.8.1 - 2021.09.17 -- fix plurals and better translation -- update readme file +topWriter 0.8.1 - 2021.09.17 +=========================================================== +* fix plurals and better translation +* update readme file -0.8 - 2021.08.27 -- clean up (PSR2, short array, ...) -- update widget class -- fix translations -- update license +topWriter 0.8 - 2021.08.27 +=========================================================== +* clean up (PSR2, short array, ...) +* update widget class +* fix translations +* update license -0.7 - 25-04-2015 - Pierre Van Glabeke -- Modification url support +topWriter 0.7 - 25-04-2015 - Pierre Van Glabeke +=========================================================== +* Modification url support -0.6 - 23-01-2015 - Pierre Van Glabeke -- Modifications locales pour widget +topWriter 0.6 - 23-01-2015 - Pierre Van Glabeke +=========================================================== +* Modifications locales pour widget -0.5 - 19-01-2015 - Pierre Van Glabeke -- Compatibilité dc2.7 +topWriter 0.5 - 19-01-2015 - Pierre Van Glabeke +=========================================================== +* Compatibilité dc2.7 -0.4 - 2013-11-12 -- Switch to Dotclear 2.6 -- Add widget options -- Use plural forms +topWriter 0.4 - 2013-11-12 +=========================================================== +* Switch to Dotclear 2.6 +* Add widget options +* Use plural forms -0.3 - 2010-10-06 -- Switched to DC 2.2 -- Fixed list order (thanks to Atv') +topWriter 0.3 - 2010-10-06 +=========================================================== +* Switched to DC 2.2 +* Fixed list order (thanks to Atv') -0.2 - 2009-08-10 -- Fixed php 5.3 compatibility -- Fixed PostGreSQL compatibility -- Added option to exclude post authors from comment list \ No newline at end of file +topWriter 0.2 - 2009-08-10 +=========================================================== +* Fixed php 5.3 compatibility +* Fixed PostGreSQL compatibility +* Added option to exclude post authors from comment list \ No newline at end of file diff --git a/README.md b/README.md index 40cdb34..20a51fc 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,10 @@ # README -[![Release](https://img.shields.io/github/v/release/JcDenis/topWriter)](https://github.com/JcDenis/topWriter/releases) -[![Date](https://img.shields.io/github/release-date/JcDenis/topWriter)](https://github.com/JcDenis/topWriter/releases) -[![Issues](https://img.shields.io/github/issues/JcDenis/topWriter)](https://github.com/JcDenis/topWriter/issues) -[![Dotclear](https://img.shields.io/badge/dotclear-v2.26-blue.svg)](https://fr.dotclear.org/download) -[![Dotaddict](https://img.shields.io/badge/dotaddict-official-green.svg)](https://plugins.dotaddict.org/dc2/details/topWriter) -[![License](https://img.shields.io/github/license/JcDenis/topWriter)](https://github.com/JcDenis/topWriter/blob/master/LICENSE) +[![Release](https://img.shields.io/badge/release-1.3-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/topWriter/releases) +[![Date](https://img.shields.io/badge/date-2023.08.13-c44d58.svg)](https://git.dotclear.watch/JcDenis/topWriter/releases) +[![Dotclear](https://img.shields.io/badge/dotclear-v2.27-137bbb.svg)](https://fr.dotclear.org/download) +[![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://plugins.dotaddict.org/dc2/details/topWriter) +[![License](https://img.shields.io/github/license/JcDenis/topWriter)](https://git.dotclear.watch/JcDenis/topWriter/blob/master/LICENSE) ## WHAT IS TOPWRITER ? @@ -18,8 +17,9 @@ Show most active contributor on a widget. _topWriter_ requires: - * permissions to manage widgets - * Dotclear 2.26 +* permissions to manage widgets +* Dotclear 2.27 +* PHP 7.4 ## USAGE @@ -28,17 +28,18 @@ Dotaddict repository. (See Dotclear's documentation to know how do this) Add and configure _Top writer_ from widgets manager. There are two widget: entries and comments. +Or add contents to the backend dashboard from your preferences. ## LINKS - * License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html) - * Source & contribution : [GitHub Page](https://github.com/JcDenis/topWriter) - * Packages & details : [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/topWriter) - * Discuss and help : [Dotclear Forum](http://forum.dotclear.org/viewtopic.php?pid=333002#p333002) +* License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html) +* Source & contribution : [Gitea Page](https://git.dotclear.watch/JcDenis/topWriter) or [GitHub Page](https://github.com/JcDenis/topWriter) +* Packages & details: [Gitea Page](https://git.dotclear.watch/JcDenis/topWriter/releases) or [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/topWriter) +* Discuss and help : [Dotclear Forum](http://forum.dotclear.org/viewtopic.php?pid=333002#p333002) ## CONTRIBUTORS - * Jean-Christian Denis - * Pierre Van Glabeke +* Jean-Christian Denis (author) +* Pierre Van Glabeke - You are welcome to contribute to this code. \ No newline at end of file +You are welcome to contribute to this code. diff --git a/_define.php b/_define.php index cb182dc..51c542e 100644 --- a/_define.php +++ b/_define.php @@ -10,7 +10,7 @@ * @copyright Jean-Christian Denis * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html */ -if (!defined('DC_RC_PATH') || is_null(dcCore::app()->auth)) { +if (!defined('DC_RC_PATH')) { return null; } @@ -18,15 +18,15 @@ $this->registerModule( 'Top writer', 'Ranking of the most prolific writers and/or commentators', 'Jean-Christian Denis, Pierre Van Glabeke', - '1.2', + '1.3', [ - 'requires' => [['core', '2.26']], + 'requires' => [['core', '2.27']], 'permissions' => dcCore::app()->auth->makePermissions([ dcCore::app()->auth::PERMISSION_CONTENT_ADMIN, ]), 'type' => 'plugin', - 'support' => 'http://forum.dotclear.org/viewtopic.php?pid=333002#p333002', - 'details' => 'http://plugins.dotaddict.org/dc2/details/topWriter', - 'repository' => 'https://raw.githubusercontent.com/JcDenis/topWriter/master/dcstore.xml', + 'support' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/issues', + 'details' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/src/branch/master/README.md', + 'repository' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/raw/branch/master/dcstore.xml', ] ); diff --git a/dcstore.xml b/dcstore.xml index 6370d4e..58542aa 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,12 +2,12 @@ Top writer - 1.2 + 1.3 Jean-Christian Denis, Pierre Van Glabeke Ranking of the most prolific writers and/or commentators - https://github.com/JcDenis/topWriter/releases/download/v1.2/plugin-topWriter.zip - 2.26 - http://plugins.dotaddict.org/dc2/details/topWriter - http://forum.dotclear.org/viewtopic.php?pid=333002#p333002 + https://git.dotclear.watch/JcDenis/topWriter/releases/download/v1.3/plugin-topWriter.zip + 2.27 + https://git.dotclear.watch/JcDenis/topWriter/src/branch/master/README.md + https://git.dotclear.watch/JcDenis/topWriter/issues