Announcement

#1 2021-11-06 21:00:21

erAck
Only trying to help
2015-09-06
2130

Patches for plugin compatibility in Piwigo 12

Hello/Hi/Greetings,

I accumulated plugin patches of three installations that at least make the plugin settings available again. The plugins seem to work. Where applicable I submitted GitHub merge requests (not hoping that would be successful for plugins that haven't been touched for four years, but..):

AStat merged
GrumPluginClasses merged
piwigo-akismet merged
Piwigo-GThumb merged
Piwigo-Smilies-Support obsoleted
piwigo-videojs merged
Piwigo-virtualize merged
UpdateAlbum-Piwigo merged
read-metadata-plus

For plugins that are still in Trac or in no versioning system at all I did not bother to chase those down, but some are included in this patch.

Make sure your plugins are all updated to today's current, copy&paste the second code listing to a file, for example in your home directory plugins.patch and then cd into your piwigo/plugins directory and execute the command

Code:

patch -f -p0 -i ~/plugins.patch

And the patch is:

Code:

--- piwigo-videojs/main.inc.php.orig  2018-08-04 11:11:32.000000000 +0200
+++ piwigo-videojs/main.inc.php  2021-11-05 00:05:15.802598809 +0100
@@ -6,6 +6,7 @@
 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=610
 Author: xbmgsharp
 Author URI: https://github.com/xbgmsharp/piwigo-videojs
+Has Settings: true
 */
 
 // Check whether we are indeed included by Piwigo.
--- log_failed_logins/main.inc.php.orig  2015-06-26 20:54:04.000000000 +0200
+++ log_failed_logins/main.inc.php  2021-11-05 00:12:35.663946154 +0100
@@ -6,6 +6,7 @@
 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=801
 Author: tomass
 Author URI: http://piwigo.org/
+Has Settings: webmaster
 */
 
 defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
--- read-metadata-plus/initadmin.php.orig
+++ read-metadata-plus/initadmin.php
@@ -46,7 +46,7 @@ function read_metadataprefiltre(){
   }
 }
 
-function read_metadataprefiltreT($content, &$smarty){
+function read_metadataprefiltreT($content){
   $search = '#          </ul>
         </td>
       </tr>

Update 2021-11-08T19:09+01:00
* Adapt to GDThumb 1.0.23 as of 2021-11-05
Update 2021-11-09T01:34+01:00
* Remove GrumPluginClasses, fixed with 3.5.13 as of 2021-11-08
* Remove AStat, fixed with 2.4.7 as of 2021-11-08
Update 2021-11-09T14:17+01:00
* Remove GThumb, fixed with 12.a as of 2021-11-09
* Remove virtualize, fixed with 12.a as of 2021-11-09
Update 2021-11-09T16:20+01:00
* Add PersoFavicon removing second prefilter parameter
Update 2021-11-10T11:31+01:00
* Remove GDThumb, fixed with 1.0.24 as of 2021-11-10
* Remove greydragon, fixed with 1.3.7 as of 2021-11-10
Update 2021-11-18T17:43+01:00
* Remove Fotorama, fixed with 12.a as of 2021-11-18
Update 2021-11-23T01:20+01:00
* Add read_metadata
* Add read-metadata-plus
Update 2021-11-26T21:57+01:00
* Remove Admin_Messages, fixed with 12.a as of 2021-11-25
Update 2021-12-04T15:50+01:00
* Remove SmiliesSupport, fixed with 2.7 as of 2021-11-29
Update 2021-12-06T18:10+01:00
* Remove PersoFavicon, fixed with 12.0.a as of 2021-12-06
Update 2021-12-11T12:45+01:00
* Remove read_metadata, fixed with 12.0.a as of 2021-12-11
Update 2021-12-21T14:51+01:00
* Remove Mobile_Theme_for_Tablets, fixed with 12.a as of 2021-12-21
Update 2021-12-29T03:22+01:00
* Remove rv_akismet, fixed with 12.a as of 2021-12-28
Update 2022-01-16T12:16+01:00
* Remove UpdateAlbum, fixed with 1.3.a as of 2022-01-15


Running Piwigo at https://erack.net/gallery/

Offline

 

#2 2021-11-09 13:26:14

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13823

Re: Patches for plugin compatibility in Piwigo 12

I published new versions for AStat, GPC, GThumb, Virtualize. Thank you erAck for your pull-requests :-)

Offline

 

#3 2021-11-10 17:38:44

deemon
Member
2021-05-03
45

Re: Patches for plugin compatibility in Piwigo 12

plg wrote:

I published new versions for AStat, GPC, GThumb, Virtualize. Thank you erAck for your pull-requests :-)

Could you please publish also those added later:

Update 2021-11-09T16:20+01:00
* Add PersoFavicon removing second prefilter parameter
Update 2021-11-10T11:31+01:00
* Remove GDThumb, fixed with 1.0.24 as of 2021-11-10
* Remove greydragon, fixed with 1.3.7 as of 2021-11-10


especially the PersoFavicon.

? :-)

Offline

 

#4 2021-11-11 00:33:09

erAck
Only trying to help
2015-09-06
2130

Re: Patches for plugin compatibility in Piwigo 12

GDThumb and greydragon *are* published, that's the reason why I removed those patches. They are just not maintained by plg. See
[extension by Serge D] gdThumb
[extension by Serge D] GreyDragon Theme

[extension by ddtddt] PersoFavicon is behind, hence still included in the patch set; whoever has access to its Trac repository except ddtddt I don't know.


Running Piwigo at https://erack.net/gallery/

Offline

 

#5 2021-12-09 20:45:17

chazzo
Member
2014-10-17
15

Re: Patches for plugin compatibility in Piwigo 12

Thank you so much for this, @erAck. I seem to have got piwigo-akismet running, which was important to me because my fallback, Crypto Captcha, has been getting bypassed recently.

I don't have SSH access but was able to run the patch locally and upload it by FTP.

I was initially confused about piwigo-akismet, because I was using rv-akismet. But if I'm not mistaken, piwigo-akismet is the new name for the same project and the plugin still identifies itself as rv-akismet.

I see you've submitted a request on GitHub. Let's hope it's accepted.

Offline

 

#6 2021-12-10 00:05:25

erAck
Only trying to help
2015-09-06
2130

Re: Patches for plugin compatibility in Piwigo 12

piwigo-akismet is the GitHub name, the plugin subdirectory is rv_akismet, as used in the patch.
Glad it works for you.


Running Piwigo at https://erack.net/gallery/

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact