![]() |
|
Plugin Administration 'CloseForUpdating' - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html) +--- Thread: Plugin Administration 'CloseForUpdating' (/thread-7573.html) |
Plugin Administration 'CloseForUpdating' - hucste - 2010-09-04 I have developed this new plugin for the administration page. It's permit to close gallery when updating ;-) http://zenphoto.dev.stephane-huc.net/pages/closeforupdating-administration-plugin-en- http://zenphoto.dev.stephane-huc.net/pages/closeforupdating-administration-plugin-fr- Plugin Administration 'CloseForUpdating' - sbillard - 2010-09-04 Nice plugin! However it is really best to not place non Zenphoto files within the Zenphoto folders. A plugin can add itself to the Utilities buttons. Use the Also it would be nice if the handling of the root index.php script could be automated. I don't have a suggestion at the moment on how, but it would be nice. Plugin Administration 'CloseForUpdating' - acrylian - 2010-09-05 Maybe we could add a filter to the root index.php or on the theme side? Then it could be redirected to a "closed for maintainance" replacement page (probably a static html page or whatever). Plugin Administration 'CloseForUpdating' - hucste - 2010-09-05 ok, i'm happy for yours reactions (very happy). My first idea is not touch at the zenphoto index.php. And, i search to write file 'close' at the root ... but not permit ! (when script 'close_for_updating.php' is include to /utilities). @sbillard, ok, i'm going to see the filter, and those examples. [french] Rahhhh. Ma première idée était de ne pas toucher au script 'index.php' de la galerie zenphoto. Parce que réécrire celui-ci, pour la plupart des utilisateurs, est une source d'erreurs et de dysfonctionnement. Et, ainsi, pour éviter les "au-secours, ma galerie ne fonctionne plus". J'ai essayé d'écrire le fichier 'close' à la racine de la galerie ... mais dans le contexte, où le script 'close_for_updating.php' est dans le répertoire /utilities, cela n'est pas permis. Plugin Administration 'CloseForUpdating' - acrylian - 2010-09-05 Sure, the idea with the filter was actually meant for us to add for whatever uses. sbillard will decide if and how this is possible at all. Plugin Administration 'CloseForUpdating' - hucste - 2010-09-05 and, if this plugin rename himself the zenphoto script index.php to index_gallery.php ? and put on root the new index.php ?! the better (perhaps?) is that script rewriting zenphoto index.php and add this instruction @ line 124 for including text or page html: ` if( CLOSING == 1 ) echo "Gallery Closing for maintain-it" // or include('close_for_updating.html'); else include(internalToFilesystem($_zp_obj)); ` Plugin Administration 'CloseForUpdating' - acrylian - 2010-09-05 Yes, I had something like the 2nd idea in mind, especially the include one. Plugin Administration 'CloseForUpdating' - acrylian - 2010-09-05 Sidenote: [code][/code] does not work on this forum, bbcode is not supported. Use backticks ``` or the html code tag. Plugin Administration 'CloseForUpdating' - hucste - 2010-09-05 And, the image 'close_for_updating.png' is really good? no?! Plugin Administration 'CloseForUpdating' - acrylian - 2010-09-05 An Image would work probably as well but a html page gives more freedom to style the replacement page" (Sorry, haven't looked at the plugin itself yet.) Plugin Administration 'CloseForUpdating' - hucste - 2010-09-05 ok, you are not understand me! But, not problem... i question if my image, on the actual plugin, is good? :p Plugin Administration 'CloseForUpdating' - hucste - 2010-09-05 euh, i'm not uderstand a little point. Plugin Administration 'CloseForUpdating' - acrylian - 2010-09-05 I get some errors on your site currently. However I see indeed also no clear sitemap cache buttons as it should appear. Something must have gotten lost with the recent updates I guess. However I see still the clear ratings one. Plugin Administration 'CloseForUpdating' - hucste - 2010-09-05 ok, version 0.2 is out! Act as plugin (@sbillard: ;-) ) http://zenphoto.dev.stephane-huc.net/pages/closeforupdating-administration-plugin-en- http://zenphoto.dev.stephane-huc.net/pages/closeforupdating-administration-plugin-fr- Plugin Administration 'CloseForUpdating' - sbillard - 2010-09-05 There is a filter-- This filter could intercept the page loading and if the gallery is closed, do the appropriate thing. Plugin Administration 'CloseForUpdating' - hucste - 2010-09-05 @sbillard: i don't understanding you. Plugin Administration 'CloseForUpdating' - sbillard - 2010-09-05 No, but there is a filter which could be used to do that. For instance: ` if (underconstruction) { Plugin Administration 'CloseForUpdating' - hucste - 2010-09-06 And, this permit to not transform or rewrite your "index.php"?!... Plugin Administration 'CloseForUpdating' - sbillard - 2010-09-06 Yes. Here is a simple "under construction" plugin. It assumes an image and simple htm file to display it. These files are in the plugin's folder. Plugin Administration 'CloseForUpdating' - hucste - 2010-09-07 Ok, thks to explain correctly. "j'apprécie :p" |