<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.limesurvey.org/index.php?action=history&amp;feed=atom&amp;title=Plugin_autoactivation</id>
	<title>Plugin autoactivation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.limesurvey.org/index.php?action=history&amp;feed=atom&amp;title=Plugin_autoactivation"/>
	<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Plugin_autoactivation&amp;action=history"/>
	<updated>2026-08-17T00:30:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Plugin_autoactivation&amp;diff=68436&amp;oldid=prev</id>
		<title>DenisChenu: Category:Plugin Development</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Plugin_autoactivation&amp;diff=68436&amp;oldid=prev"/>
		<updated>2016-07-27T12:25:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/manual/Category:Plugin_Development&quot; title=&quot;Category:Plugin Development&quot;&gt;Category:Plugin Development&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:25, 27 July 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l15&quot;&gt;Line 15:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 15:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Put a file for enabled plugin in a specific directory : https://github.com/LimeSurvey/LimeSurvey/tree/develop/protected/config/plugins for develop version : BUT (for git/gitignore) : we need to allow adding a new file in it, but allow user to remove a file .......&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Put a file for enabled plugin in a specific directory : https://github.com/LimeSurvey/LimeSurvey/tree/develop/protected/config/plugins for develop version : BUT (for git/gitignore) : we need to allow adding a new file in it, but allow user to remove a file .......&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Put a file in the plugin directory : when search for plugin, if plugin is new AND have this file : activate plugin. BUT see comment https://github.com/LimeSurvey/LimeSurvey/blob/master/application/libraries/PluginManager/PluginManager.php#L202 . Directory scanning is a bad idea.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Put a file in the plugin directory : when search for plugin, if plugin is new AND have this file : activate plugin. BUT see comment https://github.com/LimeSurvey/LimeSurvey/blob/master/application/libraries/PluginManager/PluginManager.php#L202 . Directory scanning is a bad idea.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Plugin Development]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key c1manual-lsmw_:diff:1.41:old-68435:rev-68436:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>DenisChenu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Plugin_autoactivation&amp;diff=68435&amp;oldid=prev</id>
		<title>DenisChenu: /* Solution idea */ directory (dev version)</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Plugin_autoactivation&amp;diff=68435&amp;oldid=prev"/>
		<updated>2016-07-27T10:03:01Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Solution idea: &lt;/span&gt; directory (dev version)&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:03, 27 July 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l13&quot;&gt;Line 13:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 13:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Solution idea ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Solution idea ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Provide a config file (XML/JSON/anything ...) where we put an &amp;#039;activated=&amp;gt;true&amp;#039; or something else . See for example https://github.com/LimeSurvey/LimeSurvey/blob/develop/protected/core/plugins/Authdb/limesurvey.json&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Provide a config file (XML/JSON/anything ...) where we put an &amp;#039;activated=&amp;gt;true&amp;#039; or something else . See for example https://github.com/LimeSurvey/LimeSurvey/blob/develop/protected/core/plugins/Authdb/limesurvey.json&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Put a file for enabled plugin in a specific directory : https://github.com/LimeSurvey/LimeSurvey/tree/develop/protected/config/plugins for develop version&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Put a file for enabled plugin in a specific directory : https://github.com/LimeSurvey/LimeSurvey/tree/develop/protected/config/plugins for develop version &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;: BUT (for git/gitignore) : we need to allow adding a new file in it, but allow user to remove a file .......&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Put a file in the plugin directory : when search for plugin, if plugin is new AND have this file : activate plugin. BUT see comment https://github.com/LimeSurvey/LimeSurvey/blob/master/application/libraries/PluginManager/PluginManager.php#L202 . Directory scanning is a bad idea.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Put a file in the plugin directory : when search for plugin, if plugin is new AND have this file : activate plugin. BUT see comment https://github.com/LimeSurvey/LimeSurvey/blob/master/application/libraries/PluginManager/PluginManager.php#L202 . Directory scanning is a bad idea.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key c1manual-lsmw_:diff:1.41:old-68434:rev-68435:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>DenisChenu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Plugin_autoactivation&amp;diff=68434&amp;oldid=prev</id>
		<title>DenisChenu: Some idea</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Plugin_autoactivation&amp;diff=68434&amp;oldid=prev"/>
		<updated>2016-07-27T09:59:58Z</updated>

		<summary type="html">&lt;p&gt;Some idea&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Discussion about plugin activation / deactivation.&lt;br /&gt;
&lt;br /&gt;
= Why open this page =&lt;br /&gt;
Some plugin must be activated by default : the first is AuthDB : https://github.com/LimeSurvey/LimeSurvey/tree/master/application/core/plugins/Authdb&lt;br /&gt;
&lt;br /&gt;
But AuthDB contains all core export plugin : have a way to activate a plugin by default allow us to move the core export plugin to own plugin (core plugin) For example https://github.com/LimeSurvey/LimeSurvey/tree/master/application/core/plugins/exportDoc can really be moved to a sibgle deactivated allowed plugin.&lt;br /&gt;
&lt;br /&gt;
= Solutions =&lt;br /&gt;
&lt;br /&gt;
== Actual solution ==&lt;br /&gt;
Add a DB upgrade to activate the plugin by default. OK for core plugin, but can not be done in other system (limeservice can have some activated plugin too for example)&lt;br /&gt;
&lt;br /&gt;
== Solution idea ==&lt;br /&gt;
* Provide a config file (XML/JSON/anything ...) where we put an &amp;#039;activated=&amp;gt;true&amp;#039; or something else . See for example https://github.com/LimeSurvey/LimeSurvey/blob/develop/protected/core/plugins/Authdb/limesurvey.json&lt;br /&gt;
* Put a file for enabled plugin in a specific directory : https://github.com/LimeSurvey/LimeSurvey/tree/develop/protected/config/plugins for develop version&lt;br /&gt;
* Put a file in the plugin directory : when search for plugin, if plugin is new AND have this file : activate plugin. BUT see comment https://github.com/LimeSurvey/LimeSurvey/blob/master/application/libraries/PluginManager/PluginManager.php#L202 . Directory scanning is a bad idea.&lt;/div&gt;</summary>
		<author><name>DenisChenu</name></author>
	</entry>
</feed>