<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Module config format</title>
		<link>https://www.cotonti.com</link>
		<description>Son konu mesajları</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Fri, 15 May 2026 12:54:19 -0000</pubDate>

		<item>
			<title>Trustmaster</title>
			<description><![CDATA[I'd like to get more opinions from plugin developers.]]></description>
			<pubDate>Pzt, 12 Nis 2010 19:03:04 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5290&d=0#post24061]]></link>
		</item>
		<item>
			<title>Dayver</title>
			<description><![CDATA[I like it 2) The Seditio way in modulename.setup.php<br />
<br />
very simple, clear, concise and very powerful]]></description>
			<pubDate>Cmt, 13 Şub 2010 05:00:15 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5290&d=0#post22873]]></link>
		</item>
		<item>
			<title>Sergeich</title>
			<description><![CDATA[3. <br />
But then the plug-ins to do well]]></description>
			<pubDate>Cmt, 13 Şub 2010 04:31:27 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5290&d=0#post22871]]></link>
		</item>
		<item>
			<title>Alex300</title>
			<description><![CDATA[3!<br />
<br />
I think it easy for understand and and the most flexible]]></description>
			<pubDate>Cmt, 13 Şub 2010 04:21:05 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5290&d=0#post22869]]></link>
		</item>
		<item>
			<title>Kort</title>
			<description><![CDATA[I like most versatile #3!]]></description>
			<pubDate>Cmt, 13 Şub 2010 04:06:19 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5290&d=0#post22868]]></link>
		</item>
		<item>
			<title>esclkm</title>
			<description><![CDATA[3!<br />
and make plugs in this style!<br /><br /><b>Добавлено 20 Минут спустя:</b><br /><br />I think it is just big - but it easy for understand and there is easy to add land files]]></description>
			<pubDate>Cmt, 13 Şub 2010 02:47:14 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5290&d=0#post22865]]></link>
		</item>
		<item>
			<title>Dr2005alex</title>
			<description><![CDATA[I like it <strong>2) The Seditio way in modulename.setup.php.</strong> Very convenient to edit and graphically.]]></description>
			<pubDate>Cmt, 13 Şub 2010 02:00:56 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5290&d=0#post22864]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[I'm currently working on modules support in siena/trunk. As you know, each module (e.g. forums) has its own configuration. In Siena it will come with them module either in an SQL file or in modulename.setup.php.<br />
<br />
I'm currently considering different formats of declaring the module configuration. The best format is:<br />
<ul>
<li>easy to understand</li>
<li>easy to write</li>
<li>flexible to store different possible values</li>
</ul>
<br />
Please read these example of configuration options for forums module and tell which you like more and why. Or suggest your own.<br />
<br />
<strong>1) The plain SQL way in <em>modulename.sql</em>:</strong><br />
<div class="highlight"><pre class="mysql">INSERT INTO `sed_config` (`config_owner`, `config_cat`, `config_order`, `config_name`, `config_type`, `config_value`, `config_default`, `config_variants`, `config_text`) VALUES
('core','forums','01','disable_forums',3,'0','0','',''),
('core','forums','02','hideprivateforums',3,'0','0','',''),
('core','forums','03','hottopictrigger',2,'20','20','5,10,15,20,25,30,35,40,50',''),
('core','forums','04','maxtopicsperpage',2,'30','30','5,10,15,20,25,30,40,50,60,70,100,200,500',''),
('core','forums','05','antibumpforums',3,'0','0','',''),
('core','forums','06','mergeforumposts',3,'1','1','',''),
('core','forums','07','mergetimeout',2,'0','0','0,1,2,3,6,12,24,36,48,72',''),
('core','forums','08','maxpostsperpage',2,'15','15','5,10,15,20,25,30,40,50,60,70,100,200,500','');</pre></div>
<br />
<strong>2) The Seditio way in <em>modulename.setup.php</em>:</strong><br />
<div class="highlight"><pre class="php">/*
&#091;COT_MODULE_CONFIG&#093;
disable_forums=01:radio::0:
hideprivateforums=02:radio::0:
hottopictrigger=03:select:5,10,15,20,25,30,35,40,50:20:
maxtopicsperpage=04:select:5,10,15,20,25,30,40,50,60,70,100,200,500:30:
antibumpforums=05:radio::0:
mergeforumposts=06:radio::1:
mergetimeout=07:select:0,1,2,3,6,12,24,36,48,72:0:
maxpostsperpage=08:select:5,10,15,20,25,30,40,50,60,70,100,200,500:15:
&#091;/COT_MODULE_CONFIG&#093;
*/</pre></div>
<br />
<strong>3) Verbose PHP arrays in <em>modulename.setup.php</em>:</strong><br />
<div class="highlight"><pre class="php">$config_options = array(
	array(
		'name' =&gt; 'disable_forums',
		'type' =&gt; COT_CONFIG_TYPE_RADIO,
		'default' =&gt; '0'
	),
	array(
		'name' =&gt; 'hideprivateforums',
		'type' =&gt; COT_CONFIG_TYPE_RADIO,
		'default' =&gt; '0'
	),
	array(
		'name' =&gt; 'hottopictrigger',
		'type' =&gt; COT_CONFIG_TYPE_SELECT,
		'default' =&gt; '20',
		'variants' =&gt; '5,10,15,20,25,30,35,40,50'
	),
	array(
		'name' =&gt; 'maxtopicsperpage',
		'type' =&gt; COT_CONFIG_TYPE_SELECT,
		'default' =&gt; '30',
		'variants' =&gt; '5,10,15,20,25,30,40,50,60,70,100,200,500'
	),
	array(
		'name' =&gt; 'antibumpforums',
		'type' =&gt; COT_CONFIG_TYPE_RADIO,
		'default' =&gt; '0'
	),
	array(
		'name' =&gt; 'mergeforumposts',
		'type' =&gt; COT_CONFIG_TYPE_RADIO,
		'default' =&gt; '1'
	),
	array(
		'name' =&gt; 'mergetimeout',
		'type' =&gt; COT_CONFIG_TYPE_SELECT,
		'default' =&gt; '0',
		'variants' =&gt; '0,1,2,3,6,12,24,36,48,72'
	),
	array(
		'name' =&gt; 'maxpostsperpage',
		'type' =&gt; COT_CONFIG_TYPE_SELECT,
		'default' =&gt; '15',
		'variants' =&gt; '5,10,15,20,25,30,40,50,60,70,100,200,500'
	)
);</pre></div>]]></description>
			<pubDate>Cmt, 13 Şub 2010 00:52:42 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5290&d=0#post22863]]></link>
		</item>
	</channel>
</rss>