<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Plugin.php HEADER/FOOTER Generation</title>
		<link>https://www.cotonti.com</link>
		<description>Последние сообщения в теме</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sat, 18 Apr 2026 00:18:48 -0000</pubDate>

		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Right, need something like that for smaller plugins. More ideas what's required for better AJAX support?]]></description>
			<pubDate>сб, 16 авг 2008 05:36:27 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=23&d=0#post494]]></link>
		</item>
		<item>
			<title>Orkan</title>
			<description><![CDATA[Well, I will have to look closer at this whole modules idea - its not clear for me atm.<br />
Do I need modules for simple AJAX calls in my plugins?<br />
<pre class="code">define('SED_NOGZIP', true);
require_once('./system/common.php');</pre>
ok, but where to define this?<br />
<br />
I had thought about something similar to <strong>plug.php?r=myplugin</strong> with two differences.<br />
1. It'll pick php files from<strong> /plugins/ajax</strong> dir instead (or better<strong> /plugins/myplugin/ajax/</strong> - for better integrity)<br />
2. An additional param in URL will tell the system where to leave common.php and go to your plugin code.<br />
<br />
Example of URL's with additional param 'c':<br />
<br />
a) $.get(&quot;plug.php?x=myplugin&amp;<strong>c=short</strong>&quot; ... only basic DB support (good for RSS feeds, etc...)<br />
b) $.get(&quot;plug.php?x=myplugin&amp;<strong>c=medium</strong>&quot; ... DB + auth<br />
c) $.get(&quot;plug.php?x=myplugin&quot; ... similar to: plug.php?r=myplugin<br />
<br />
Its rough but I hope you'll get the idea]]></description>
			<pubDate>сб, 16 авг 2008 04:48:42 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=23&d=0#post491]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Take a look on &quot;modules&quot; in <a href="http://www.cotonti.com/page.php?al=coding_guide">Coding Guide</a>. This feature actually existed for ages in Seditio and Asmo can show you an example how to create top-level modules for Seditio, we just need to make it more coder and user friendly.<br />
<br />
As for gzhandler, could define some constant in the beginning of main file and check it in common.php:<br />
<div class="highlight"><pre class="php">define('SED_NOGZIP', true);
require_once('./system/common.php');</pre></div>
in common.php:<br />
<div class="highlight"><pre class="php">if(!defined('SED_NOGZIP'))
{
// Switch gzip on, etc.
}</pre></div>]]></description>
			<pubDate>пт, 15 авг 2008 20:01:18 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=23&d=0#post487]]></link>
		</item>
		<item>
			<title>Orkan</title>
			<description><![CDATA[This can be done via <strong>plugins/code</strong> then you call your plugin with: <strong>plug.php?r=myplugin</strong><br />
<br />
<br />
..but what is more important...<br />
I got a site with a lot of ajax stuff and the current common.php istn practical at all.<br />
Sometimes I need access to DB only, another time I need DB + user rights only.<br />
The biggest problem is the <strong>ob_start('ob_gzhandler');</strong> - you cant redo the gzip compression if not needed (eg, when outputting big JPG files it takes years to compress it)<br />
<br />
My idea is to split common.php file into 3 if - else parts - driven by an GET param. Right now I use external php files with only parts from common.php - really odd :p]]></description>
			<pubDate>пт, 15 авг 2008 17:34:48 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=23&d=0#post480]]></link>
		</item>
		<item>
			<title>Lombi</title>
			<description><![CDATA[It would be very useful if Cotonti would have a way of turning off header/footer generation for plugins if a plugin needs to operate outside of this like:<br />
<br />
xml files<br />
xml sitemaps<br />
robots.txt<br />
anything else<br />
<br />
Your thoughts?]]></description>
			<pubDate>пн, 04 авг 2008 19:18:48 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=23&d=0#post105]]></link>
		</item>
	</channel>
</rss>