Disabling/enabling plugins
Re: Disabling/enabling plugins
Hi Gert,
I like the idea of the Pluginmanager more and more! But I found a problem: if somebody has News and Newsletter/Newsrotator installed and disables Newsletter or Newsrotator, News will be disabled too. The same holds for Kissgallery_XH and gallery.
And I would like to suggest to put the 'message_plugin_disabled' to the pluginloader language files. If somebody disables a plugin (e.g. a webdesigner after having configured the installation for his client), and uninstalls the Pluginmanager, the language string would not be available any more.
And perhaps the Pluginmanager should be linked directly from "Plugins" similar to the way it's done with the Pagemanager.
Christoph
I like the idea of the Pluginmanager more and more! But I found a problem: if somebody has News and Newsletter/Newsrotator installed and disables Newsletter or Newsrotator, News will be disabled too. The same holds for Kissgallery_XH and gallery.
And I would like to suggest to put the 'message_plugin_disabled' to the pluginloader language files. If somebody disables a plugin (e.g. a webdesigner after having configured the installation for his client), and uninstalls the Pluginmanager, the language string would not be available any more.
And perhaps the Pluginmanager should be linked directly from "Plugins" similar to the way it's done with the Pagemanager.
Christoph
Christoph M. Becker – Plugins for CMSimple_XH
Re: Disabling/enabling plugins
I have moved the "disabled_plugins.txt" to the folder "./plugins/pluginmanager/" now, so it will be deleted too, if someone deletes the Pluginmanager, and all plugins are activated again.cmb wrote:If somebody disables a plugin (e.g. a webdesigner after having configured the installation for his client), and uninstalls the Pluginmanager, the language string would not be available any more.
All your suggestions may be considered, if we put the Pluginmanager_XH to the standard download of CMSimple_XH (or prepare CMSimple_XH for Pluginmanager_XH).
Grrr ... it's because gallery is contained in kissgallery ... and so on, I will think about it,cmb wrote:But I found a problem: if somebody has News and Newsletter/Newsrotator installed and disables Newsletter or Newsrotator, News will be disabled too. The same holds for Kissgallery_XH and gallery.
Gert
Re: Disabling/enabling plugins
Have found a solution, added "||| ... |||" to every element of the array (|||news||| |||newsletter||| |||newsrotator||| and so on).cmb wrote:if somebody has News and Newsletter/Newsrotator installed and disables Newsletter or Newsrotator, News will be disabled too. The same holds for Kissgallery_XH and gallery.
New download in some minutes ...
Gert
Re: Disabling/enabling plugins
I like this idea.
Found a small problem: The save button is 4px wide
Think theres a problem in line 98 in admin.php
Also I get any files that are in the root folder showing in the plugin list eg OLDindex.php where I renamed the original index.php
B
Found a small problem: The save button is 4px wide
Think theres a problem in line 98 in admin.php
Should it be value="Save"$o.='<input type="submit" name="save" value="' . $plugin_tx['pluginmanager']['button_save'] . '" style="margin: 0 0 10px 0;">' . "\n";
Also I get any files that are in the root folder showing in the plugin list eg OLDindex.php where I renamed the original index.php
B
Re: Disabling/enabling plugins
Hello,
!!! FOR TESTING PURPOSES ONLY - use with caution !!! (for CMSimple_XH 1.5.3 only)
Download beta03: http://www.ge-webdesign.de/cmsimple/dlc ... php?id=376
Gert
!!! FOR TESTING PURPOSES ONLY - use with caution !!! (for CMSimple_XH 1.5.3 only)
Download beta03: http://www.ge-webdesign.de/cmsimple/dlc ... php?id=376
Gert
Re: Disabling/enabling plugins
No, it shall use the language variable "$plugin_tx['pluginmanager']['button_save']".bca wrote:Should it be value="Save"
Which language you are using? Is there an adequate language file in the languages folder of Pluginmanager? Is that languages folder writable (to create a language file in English from default.php)?
Gert
Re: Disabling/enabling plugins
Oh, a stupid mistake in admin.phpbca wrote:Also I get any files that are in the root folder showing in the plugin list eg OLDindex.php where I renamed the original index.php
![Surprised :o](./images/smilies/icon_e_surprised.gif)
![Embarrassed :oops:](./images/smilies/icon_redface.gif)
New download of beta03 made 23:45 clock
Download new and the problem should be gone,
Gert
Re: Disabling/enabling plugins
Hello,
by playing around with many installed plugins, I found an issue regarding the new admin menu of all CMSimple_XH versions since 1.5:
If the dropdown menu "Plugins" is higher than the screen resolution, you can't access the last plugins in the list, they are not reachable. With a typical screen resolution of 1024 x 600px I also can't click the Pluginmanager itself in my dev installation
The Pluginmanager_XH beta04 solves also this problem, but there was a further change in cms.php (admin menu) necessary. So I think, we should add the Pluginmanager_XH to the standard download of CMSimple_XH and/or prepare cms.php and index.php of pluginloader for the Pluginmanager_XH.
New in Pluginloader_XH beta04:
1. The plugin names are links to the plugins backend now.
2. If you click "Plugins" directly in the admin menu, you call the Pluginmanager directly (like the old settings page).
Now you can call the plugins backends directly from the Pluginmanager, if the dropdown menu of "Plugins" is to high for your screen.
!!! FOR TESTING PURPOSES ONLY - use with caution !!! (for CMSimple_XH 1.5.3 only)
Download beta04: http://www.ge-webdesign.de/cmsimple/dlc ... php?id=376
Gert
by playing around with many installed plugins, I found an issue regarding the new admin menu of all CMSimple_XH versions since 1.5:
If the dropdown menu "Plugins" is higher than the screen resolution, you can't access the last plugins in the list, they are not reachable. With a typical screen resolution of 1024 x 600px I also can't click the Pluginmanager itself in my dev installation
![Surprised :o](./images/smilies/icon_e_surprised.gif)
The Pluginmanager_XH beta04 solves also this problem, but there was a further change in cms.php (admin menu) necessary. So I think, we should add the Pluginmanager_XH to the standard download of CMSimple_XH and/or prepare cms.php and index.php of pluginloader for the Pluginmanager_XH.
New in Pluginloader_XH beta04:
1. The plugin names are links to the plugins backend now.
2. If you click "Plugins" directly in the admin menu, you call the Pluginmanager directly (like the old settings page).
Now you can call the plugins backends directly from the Pluginmanager, if the dropdown menu of "Plugins" is to high for your screen.
!!! FOR TESTING PURPOSES ONLY - use with caution !!! (for CMSimple_XH 1.5.3 only)
Download beta04: http://www.ge-webdesign.de/cmsimple/dlc ... php?id=376
Gert
Re: Disabling/enabling plugins
Nice!
But I don't understand why this is done with a new plugin and why the list of disabled plugins is stored in a txt-file?
As far as I can see most of the work is done in cms.php and in /plugins/index.php anyway.
Some time (years?) ago I've suggested something like below to the devs:
why not putting a admin.php to /plugins/pluginloader/
and a config.php to /plugins/pluginloader/config?
So the array with the disabled plugins can be stored in a $cf['pluginloader']['....'] - variable and you can use the default
functions of the PL to manage them - maybe with a polished backend like tinymce or ckeditor.
That might be much easier ($cf is available by default) and more consistent than writing own functions for managing text-files IMO.
Holger
But I don't understand why this is done with a new plugin and why the list of disabled plugins is stored in a txt-file?
As far as I can see most of the work is done in cms.php and in /plugins/index.php anyway.
Some time (years?) ago I've suggested something like below to the devs:
why not putting a admin.php to /plugins/pluginloader/
and a config.php to /plugins/pluginloader/config?
So the array with the disabled plugins can be stored in a $cf['pluginloader']['....'] - variable and you can use the default
functions of the PL to manage them - maybe with a polished backend like tinymce or ckeditor.
That might be much easier ($cf is available by default) and more consistent than writing own functions for managing text-files IMO.
Holger
Re: Disabling/enabling plugins
Same procedure as with filebrowser and pagemanager ... and: "I did it my way"Holger wrote:But I don't understand why this is done with a new plugin ...
![Wink ;)](./images/smilies/icon_e_wink.gif)
The most work was the "polished backend" (the admin.php) of Pluginmanager_XH.Holger wrote:As far as I can see most of the work is done in cms.php and in /plugins/index.php anyway.
What can be easier than 2 radio buttons for every plugin and directly access from the admin menu?Holger wrote:That might be much easier ...
Gert