<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>Support</title>
		<link>https://www.cotonti.com</link>
		<description>Plugin related help</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Tue, 09 Jun 2026 08:48:34 -0000</pubDate>

		<item>
			<title>Pimenta - Comments in plugin Siena how ?!</title>
			<description><![CDATA[<p>Thanks alot Dayver for the time and help <img alt="wink" height="23" src="https://www.cotonti.com/plugins/ckeditor/lib/plugins/smiley/images/wink_smile.png" title="wink" width="23" /></p>
]]></description>
			<pubDate>Sat, 12 Nov 2016 09:35:25 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=42338#42338]]></link>
		</item>
		<item>
			<title>Dayver - Comments in plugin Siena how ?!</title>
			<description><![CDATA[<p>Unfortunately to date the developer documentation for the rapid implantation plugin comments in their plug-ins do not have. But do not despair if you have programming skills then I think to understand and implement comments in your plugin you should get. To get started, try to insert the code in your plugin example <em>super_plug</em></p>

<pre class="brush:php;gutter:false;toolbar:false;">
require_once cot_incfile('comments', 'plug');
$t-&gt;assign(array(
	'SUPER_PLUG_COMMENTS' =&gt; cot_comments_link('super_plug', $pageurl_params, 'super_plug', $row['super_plug_id'], $row['super_plug_cat'], $row),
	'SUPER_PLUG_COMMENTS_DISPLAY' =&gt; cot_comments_display('super_plug', $row['super_plug_id'], $row['super_plug_cat']),
	'SUPER_PLUG_COMMENTS_COUNT' =&gt; cot_comments_count('super_plug', $row['super_plug_id'], $row),
	'SUPER_PLUG_COMMENTS_RSS' =&gt; cot_url('rss', 'm=comments&amp;id=' . $row['super_plug_id'])
));</pre>

<p>And use <a href="https://www.cotonti.com/reference/comments/package-functions.html#cot_comments_display()">php_doc info for comments plugin</a> for more understanding of the code and <span style="font-family:'Open Sans', 'Helvetica Neue', Helvetica, sans-serif;font-size:15px;">parameters used in call </span>functions. </p>
]]></description>
			<pubDate>Sat, 12 Nov 2016 01:49:04 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=42335#42335]]></link>
		</item>
		<item>
			<title>Pimenta - Comments in plugin Siena how ?!</title>
			<description><![CDATA[<p>Dear,</p>

<p>It have been along time ago since I have been here , but anyway many things have been change since I have used the old Seditio .</p>

<p>So that is why I am stuck at this moment with an plugin what i am trying to make called stream (jwplayer) </p>

<p>I wanne add comments on that plugin the old way was very easy in Seditio but I found that its harder in Siena .</p>

<p>The old way was like : </p>

<pre class="brush:php;gutter:false;toolbar:false;">
//comments and rating build
$ratings = sed_import('ratings','G','BOL',1,TRUE);
$comments = sed_import('comments','G','BOL',1,TRUE);
</pre>

<p> </p>

<pre class="brush:php;gutter:false;toolbar:false;">
list($comments_link, $comments_display, $comments_count) = sed_build_comments($item_code, $stream_url, $comments);
list($ratings_link, $ratings_display) = sed_build_ratings($item_code, $stream_url, $ratings);</pre>

<p> </p>

<p>I hope someone can help me with is that will be great , thanks :) </p>

<p> </p>

<p> </p>
]]></description>
			<pubDate>Fri, 11 Nov 2016 09:23:49 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=42328#42328]]></link>
		</item>
		<item>
			<title>foxhound - Use the contact form not only on standalone?</title>
			<description><![CDATA[<p>Thanks for that but I know how to include a form (with ajax). I was just hoping the default contact plugin could be used so contacts were actually written to the DB and any of the staff could reply. (easier than sharing mail accounts).</p>
]]></description>
			<pubDate>Tue, 18 Nov 2014 00:19:37 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=40182#40182]]></link>
		</item>
		<item>
			<title>Dayver - Use the contact form not only on standalone?</title>
			<description><![CDATA[<p>For first step try use read <a href="http://www.cotonti.com/ru/docs/devel/ajax_helpers" style="margin:0px;padding:0px;vertical-align:baseline;color:rgb(0,121,193);text-decoration:none;background:transparent;" title="AJAX Helpers in Cotonti">AJAX Helpers in Cotonti</a> and in any tpl include html code an example:</p>

<pre class="brush:xml;">
        &lt;div id="ajax_contact"&gt;
          &lt;form action="index.php?e=contact" method="post" name="contact_ajax" id="contact_ajax" class="ajax post-ajax_contact"&gt;
          ...
          any your code from contact form
          ....
          &lt;button type="submit" class="btn btn-primary"&gt;{PHP.L.Submit}&lt;/button&gt;
          &lt;/form&gt;
        &lt;div&gt;</pre>

<p> </p>
]]></description>
			<pubDate>Sun, 16 Nov 2014 14:08:58 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=40173#40173]]></link>
		</item>
		<item>
			<title>Dayver - usermanager plugin</title>
			<description><![CDATA[<blockquote><a href="https://www.cotonti.com/forums?m=posts&amp;q=7826&amp;d=1#40171">#40171</a> <strong>Antar: </strong>

<p><b style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium;line-height:normal;">Fatal error</b><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium;line-height:normal;">: Call to undefined function cot_sql_query() in </span><b style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium;line-height:normal;">/home2/subsdre/public_html/plugins/usermanager/usermanager.admin.php</b><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium;line-height:normal;"> on line </span><b style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium;line-height:normal;">256</b></p>
</blockquote>

<p>Read this <a href="http://www.cotonti.com/docs/ext/extensions/plugin_conversion_howto">http://www.cotonti.com/docs/ext/extensions/plugin_conversion_howto</a> <strong>1.5. New database layer</strong> .... you need replace cot_sql_query() on $db-&gt;query() and other</p>
]]></description>
			<pubDate>Sun, 16 Nov 2014 13:06:22 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=40172#40172]]></link>
		</item>
		<item>
			<title>Antar - usermanager plugin</title>
			<description><![CDATA[<p>can someone update this plugin to work with current cotonti version.</p>

<p>i did updated it a little, but there is still error:</p>

<p><b style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium;line-height:normal;">Fatal error</b><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium;line-height:normal;">: Call to undefined function cot_sql_query() in </span><b style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium;line-height:normal;">/home2/subsdre/public_html/plugins/usermanager/usermanager.admin.php</b><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium;line-height:normal;"> on line </span><b style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium;line-height:normal;">256<br /><br />
here the zip:</b></p>

<p><br /><a href="http://subs.com.ru/datas/usermanager.rar" rel="nofollow">http://subs.com.ru/datas/usermanager.rar</a></p>
]]></description>
			<pubDate>Fri, 14 Nov 2014 21:21:10 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=40171#40171]]></link>
		</item>
		<item>
			<title>foxhound - Use the contact form not only on standalone?</title>
			<description><![CDATA[<p>I am trying to allow me to access the contact form (the default plugin coming with the package) from a page, not just the standalone page.<br />
I would like to use the form from within other areas on the website as well.</p>

<p>I have no idea how (and if even) I can achieve this so I tried changing the hooks to page and some other things but except making sure the plugin dopes not work at all I cant get anywhere.<br /><br />
I hope there is someone who is able to help me with this :)</p>
]]></description>
			<pubDate>Wed, 12 Nov 2014 16:34:22 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=40170#40170]]></link>
		</item>
		<item>
			<title>Kabak - Plugin Thanks does not work with pages?</title>
			<description><![CDATA[<p>Modified:  <a href="https://bitbucket.org/bykabak/thanks/downloads" rel="nofollow">Thanks</a> from thankful users posted right under posts.</p>
]]></description>
			<pubDate>Fri, 24 Oct 2014 22:18:02 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=40115#40115]]></link>
		</item>
		<item>
			<title>Hodges - DST Checking of Timestamps</title>
			<description><![CDATA[<p>Hi Macik, thanks for going to the trouble of researching this info. DateTimeZone() does appear to be the solution to my concerns.</p>
]]></description>
			<pubDate>Tue, 15 Apr 2014 09:36:47 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=39452#39452]]></link>
		</item>
		<item>
			<title>Macik - DST Checking of Timestamps</title>
			<description><![CDATA[<p>Thank you for a great question pushed me to read some docs. Here some info I get:</p>

<p>First of all — PHP already had tools to use timezines and DST.</p>

<p>Moreover, as DST is subject to change during long time periods (as legislation changes) PHP had these information in <code>DateTimeZone::listAbbreviations()</code>. </p>

<p>Than PHP used this info to properly convert time from one time zone to another.</p>

<p>So two rules should be used: <br />
1. store timestamps in UTC (as you do)<br />
2. use proper time zone for any convertion.</p>

<p>Let's try some example:</p>

<pre class="brush:php;">
$date = new DateTime('2000-01-01', new DateTimeZone('Europe/Moscow'));  
// DST is used in these period  (+03:00 winter +04:00 summer)
$plugin_body .= $date-&gt;format('Y-m-d H:i:s P') . PHP_EOL; // 2000-01-01 00:00:00+03:00
$date-&gt;setTimeZone(new DateTimeZone('UTC'));
$plugin_body .= $date-&gt;format('Y-m-d H:i:s P') . PHP_EOL; // 1999-12-31 21:00:00+00:00
$date-&gt;modify('+ 13 year'); 
// in midsummer of 2011 DST was canceled in our region
// actually we get in DST time forever (+04:00 winter +04:00 summer)
$plugin_body .= $date-&gt;format('Y-m-d H:i:s P') . PHP_EOL; // 2012-12-31 21:00:00+00:00
$date-&gt;setTimeZone(new DateTimeZone('Europe/Moscow')); 
$plugin_body .= $date-&gt;format('Y-m-d H:i:s P') . PHP_EOL; // 2013-01-01 01:00:00+04:00
// as DST is cancelled we +04:00 for whole year
</pre>

<p>So if user had selected propper timezone in users settings (user profile) DST should be concerned.</p>

<p>But some problem may occurs only if you use time shift functions (<code>$date-&gt;modify('+ 13 year');</code>) in local time zone as real calculation is made in UTC.</p>

<p>Some info links:</p>

<ul><li><a href="http://timezoneguide.com/dst.php" rel="nofollow">Actulat DST</a></li>
	<li><a href="http://stackoverflow.com/questions/19772999/php-daylight-savings-time-issue" rel="nofollow">DST on stackoverflow</a></li>
	<li><a href="http://www.php.net/manual/en/function.timezone-abbreviations-list.php" rel="nofollow">Timezone abbrevitions</a></li>
	<li><a href="https://wiki.php.net/rfc/datetime_and_daylight_saving_time" rel="nofollow">About DST and STD transitions</a></li>
</ul><p> </p>

<p> </p>
]]></description>
			<pubDate>Mon, 14 Apr 2014 14:03:11 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=39451#39451]]></link>
		</item>
		<item>
			<title>Hodges - DST Checking of Timestamps</title>
			<description><![CDATA[<p>Hi,</p>

<p>I'm in the middle of working on a heavily modified calendar plugin that uses ajax to emulate google calendar. It's all going well but I want to pay special attention to how I present timestamps to users. At this stage I'd like to make it clear that I know it's important to store timestamps in UTC.</p>

<p><span style="line-height:1.6em;">Using cotonti's datetime functions, how do I take an historical timestamp and check if DST was in effect at the time (according to the user's timezone selection) and display the time accordingly? I want to ensure that, if DST is currently in effect for the user, I'm not applying DST corrections to a timestamp that refers to a time when DST wasn't in effect.</span></p>

<p>I hope my question makes sense... Thanks!</p>

<p>I've given examples below:</p>

<p>Create an event for a date outside DST when it is currently DST:</p>

<p>                STORE AS 09:00                 DISPLAY AS 09:00</p>

<p><span style="line-height:1.6em;">Create an event for a date outside DST when it is not currently DST:</span></p>

<p>                STORE AS 09:00                 DISPLAY AS 09:00</p>

<p><span style="line-height:1.6em;">Create an event for a date inside DST when it is currently DST:</span></p>

<p>                STORE AS 08:00                 DISPLAY AS 09:00</p>

<p><span style="line-height:1.6em;">Create an event for a date inside DST when it is not currently DST:</span></p>

<p>                STORE AS 08:00                 DISPLAY AS 09:00</p>
<p><strong>Added 22 minutes later:</strong></p><p>My example assumes I'm on the London/Europe timezone.</p>
<p><strong>Added 5 minutes later:</strong></p><p><strong>What would be ideal would be a function (and its reciprocal) that could take a UTC timestamp and the user's preferred timezone and output a local timestamp for the user ensuring it includes the DST correction appropriately based on whether the timestamp occurred during that timezone's DST rules.</strong></p>
]]></description>
			<pubDate>Mon, 14 Apr 2014 11:37:33 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=39450#39450]]></link>
		</item>
		<item>
			<title>foxhound - Pagesiblings gives an sql error</title>
			<description><![CDATA[<p>Thanks very much Twiebie, that works perfectly! :)</p>
]]></description>
			<pubDate>Sun, 26 Jan 2014 16:43:18 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=39091#39091]]></link>
		</item>
		<item>
			<title>Twiebie - Pagesiblings gives an sql error</title>
			<description><![CDATA[<p>Replace line 10 and 11 in pagesiblings.php with:</p>

<pre class="brush:php;">
$sort = 'page_'.$cfg['page']['cat_'.$pag['page_cat']]['order'];
$way = $cfg['page']['cat_'.$pag['page_cat']]['way'];</pre>

<p> </p>
]]></description>
			<pubDate>Sun, 26 Jan 2014 15:50:44 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=39090#39090]]></link>
		</item>
		<item>
			<title>foxhound - Pagesiblings gives an sql error</title>
			<description><![CDATA[<p>I am trying to use pagesiblings on my new website but as soon as I install it and want to view a page I keep getting this error:</p>

<p> </p>

<pre class="brush:php;">
2014-01-26 15:22
SQL error 42S22: Column not found: 1054 Unknown column 'page_' in 'order clause'
#0  cot_diefatal(SQL error 42S22: Column not found: 1054 Unknown column 'page_' in 'order clause') called at [D:\Dropbox\Xampp\htdocs\default_sienna_clean_install_clean_db\system\database.php:576]
#1  CotDB-&gt;query(SELECT * FROM cot_pages WHERE page_cat = ? ORDER BY page_ , Array ([0] =&gt; news)) called at [D:\Dropbox\Xampp\htdocs\default_sienna_clean_install_clean_db\plugins\pagesiblings\pagesiblings.php:14]
#2  include(D:\Dropbox\Xampp\htdocs\default_sienna_clean_install_clean_db\plugins\pagesiblings\pagesiblings.php) called at [D:\Dropbox\Xampp\htdocs\default_sienna_clean_install_clean_db\modules\page\inc\page.main.php:279]
#3  require_once(D:\Dropbox\Xampp\htdocs\default_sienna_clean_install_clean_db\modules\page\inc\page.main.php) called at [D:\Dropbox\Xampp\htdocs\default_sienna_clean_install_clean_db\modules\page\page.php:43]
#4  require_once(D:\Dropbox\Xampp\htdocs\default_sienna_clean_install_clean_db\modules\page\page.php) called at [D:\Dropbox\Xampp\htdocs\default_sienna_clean_install_clean_db\index.php:126]</pre>

<p> </p>

<p>I made different attempt to see if I could fix it but if I change something at least the sql error dissapears but than I recieve a syntax error cause it expects a string.<br />
I searched around and I found some site which was referring to the $sort allowing sql injection cause it did not santatize. I figured sine the issue seems to be with the $sort part something has changes since this plugin was first written. But looking at other plugins I can not discover how to change it so it works again. I made some tries with "explode" which I saw used in other plugins without luck.<br /><br />
Since pagesiblings is working on this website I hope the fix can maybe shared?<br />
I got the plugin from github.</p>

<p>I tried with 0.9.14 and with 0.9.16 (this is a clean install!) and both give that error.</p>
]]></description>
			<pubDate>Sun, 26 Jan 2014 15:26:31 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=39089#39089]]></link>
		</item>
		<item>
			<title>singh336 - Bug in PM module with ajax enabled?</title>
			<description><![CDATA[<p>sounds good, at least you guys know its not working well, then you can figure it out later. im cool with that.</p>

<p> </p>

<p> </p>
]]></description>
			<pubDate>Sun, 08 Dec 2013 00:46:22 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=38742#38742]]></link>
		</item>
		<item>
			<title>Twiebie - Bug in PM module with ajax enabled?</title>
			<description><![CDATA[<p>The whole PM module is a bit outdated and has some issues.<br />
It's probably better to just turn Ajax off in the PM module for now if you experience problems with it.</p>
]]></description>
			<pubDate>Fri, 06 Dec 2013 14:07:01 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=38731#38731]]></link>
		</item>
		<item>
			<title>singh336 - Bug in PM module with ajax enabled?</title>
			<description><![CDATA[<p>wow this is an old one huh. too bad :/</p>
]]></description>
			<pubDate>Fri, 06 Dec 2013 04:55:43 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=38728#38728]]></link>
		</item>
		<item>
			<title>Trustmaster - How i can use just forum module ?</title>
			<description><![CDATA[<p>Guys, please stop posting any personal / offensive notes. Let's just do the job here. I'm closing this topic.</p>

<p>MecTruy, please don't send PM to attract attention to your topics. If people have time and know the answer they will post a reply. There aren't many new topics on forums, so your topic is not missed by anybody, don't worry. If you continue posting such PMs or offensive messages about other guys, they will be removed and your account will be banned for some time.</p>
]]></description>
			<pubDate>Mon, 04 Nov 2013 13:35:25 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=38307#38307]]></link>
		</item>
		<item>
			<title>Gökhan YILDIZ - How i can use just forum module ?</title>
			<description><![CDATA[<p>open your index.php (cotonti root directory)</p>

<p>find</p>

<pre class="brush:php;">
$env['ext'] = 'index';</pre>

<p>replace</p>

<pre class="brush:php;">
$env['ext'] = 'forums';</pre>
]]></description>
			<pubDate>Mon, 04 Nov 2013 07:21:10 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=38294#38294]]></link>
		</item>
		<item>
			<title>MecTruy - How i can use just forum module ?</title>
			<description><![CDATA[<p>How i can use just forum module ? i don't want use all cms system just i want use like a forum !! i was chaned forums.php and index.php but not correct working :( other any idea ?</p>

<p> </p>

<p>Siena forum like this url:  <a href="http://www.webmasterborsa.com/index.php?e=forums" rel="nofollow">http://www.site.com/index.php?e=forums</a></p>

<p> </p>

<p><strong>my cotonti version Siena 0.9.14</strong></p>

<p> </p>

<p>note: sorry i open topic wrong category..</p>
]]></description>
			<pubDate>Sun, 03 Nov 2013 22:24:15 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=38289#38289]]></link>
		</item>
		<item>
			<title>staleo - Attachments plugin shows SQL error 42000</title>
			<description><![CDATA[<p>Hi <strong>Alex300</strong>,</p>

<p>That's right, thanks for it. That seems the first version of Attachments is still not being fully ported for Siena, and Attachments 2 are way fresher.</p>

<p>Allright, I installed the Attachments 2. But, that's what I see when clicking on the "Upload files" link: <a href="http://joxi.ru/blxvUtg5CbAnZRMNXio" rel="nofollow">http://joxi.ru/blxvUtg5CbAnZRMNXio</a>. As you can see, it's not a sort of pop-up window, but a separate page. So is any of the js files missing?</p>

<p>Second (but probably it's a sequence of the above issue), the attaching the files is not working: <a href="http://joxi.ru/uG1vUtg5CbBgb-CZu2Q" rel="nofollow">http://joxi.ru/uG1vUtg5CbBgb-CZu2Q</a> Of course, the uploads folder is under CHMOD 777, and again, that seems, some js is missing, but which one? I'll appreciate any help on my issue.</p>

<p><strong>Добавлено 33 минуты спустя:</strong></p>

<p>This could help: in the Opera Dragonfly, after clicking Upload, I catch this 500 Server response:</p>

<p><em>POST http://domain.ru/index.php?r=attach2&amp;a=<strong>upload</strong>&amp;area=page&amp;item=15</em></p>

<p><em>500 Internal Server Error</em></p>

<p>...while <em>http://domain.ru/index.php?r=attach2&amp;a=<strong>display</strong>&amp;area=page&amp;item=15</em> is fine.</p>

<p><strong>Добавлено 2 часа спустя:</strong></p>

<p>Moreover, take a look:</p>

<blockquote>
<p>SQL error 42S22: Column not found: 1054 Unknown column 'att_area' in 'where clause'&lt;/p&gt;&lt;pre style="overflow:auto"&gt;#0  cot_diefatalColumn not found: 1054 Unknown column 'att_area' in 'where clause') called at [/var/www/staleo/data/www/domain.ru/system/database.php:478]<br />
#1  CotDB-&gt;query(SELECT * FROM cot_attach<br />
   WHERE att_area = ? AND att_item = ? ORDER BY att_order, Array ([0] =&gt; page,[1] =&gt; 17)) called at [/var/www/staleo/data/www/domain.ru/plugins/attach2/inc/attach2.upload.php:66]</p>
</blockquote>

<p>That seems like an SQL-field <strong>att_area</strong> is somehow missing.</p>

<p><strong>Добавлено 2 часа спустя:</strong></p>

<p>The solution for me was to run an SQL-injection from here: <a href="https://github.com/trustmaster/cot-attach2/blob/master/attach2/setup/upgrade_2.0.sql" rel="nofollow">https://github.com/trustmaster/cot-attach2/blob/master/attach2/setup/upgrade_2.0.sql</a></p>

<p>For some reason, it wasn't mentioned on the plugin <a href="http://www.cotonti.com/extensions/files-media/attach2">description page</a>.</p>

<p>Anyway, opening the uploading form on a separate page (instead of the floating window on the dark background) is still an issue, how do you think it's being solved?</p>
]]></description>
			<pubDate>Tue, 29 Oct 2013 08:15:54 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=38257#38257]]></link>
		</item>
		<item>
			<title>foxhound - Sidepanel plugin always redirects to itself at login</title>
			<description><![CDATA[<p>No problem at all, you really helped me  lot getting this done.<br />
I knew we were close to getting it to work so spending some time looking at the code is good for my expereince. After doing all possible changes to the tpl I soon figured the issue was elsewhere ;)</p>
]]></description>
			<pubDate>Mon, 28 Oct 2013 17:57:53 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=38253#38253]]></link>
		</item>
		<item>
			<title>Twiebie - Sidepanel plugin always redirects to itself at login</title>
			<description><![CDATA[<p>Ah, sorry. Overlooked that.</p>
]]></description>
			<pubDate>Mon, 28 Oct 2013 16:07:51 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=38251#38251]]></link>
		</item>
		<item>
			<title>foxhound - Sidepanel plugin always redirects to itself at login</title>
			<description><![CDATA[<p>I had to comment out the following line in sidepanel.php<br />
 </p>

<pre class="brush:php;">
// $t-&gt;parse(); disabled otherwise the contents of tpl shows 2x</pre>

<p><br />
 </p>

<p>Now it properly works and allows me to use the conditions etc. Thanks for all the help!!</p>
]]></description>
			<pubDate>Mon, 28 Oct 2013 16:00:50 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=38250#38250]]></link>
		</item>
		<item>
			<title>Alex300 - Attachments plugin shows SQL error 42000</title>
			<description><![CDATA[<p>Try to use <strong>Attacments2</strong>:  <a href="http://www.cotonti.com/extensions/files-media/attach2">http://www.cotonti.com/extensions/files-media/attach2</a></p>
]]></description>
			<pubDate>Mon, 28 Oct 2013 14:48:51 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=38247#38247]]></link>
		</item>
		<item>
			<title>staleo - Attachments plugin shows SQL error 42000</title>
			<description><![CDATA[<p>Hi everyone,</p>

<p>Here's a plugin I try to inplement on my Siena 0.9.14: <a href="http://www.cotonti.com/extensions/files-media/attachments">http://www.cotonti.com/extensions/files-media/attachments</a></p>

<p>While editing a page, I choose which images to upload, click "Submit" on the very bottom of the page, and see the error report:</p>

<blockquote>
<h2 class="warning" style="color:rgb(0,0,0);font-family:Scada, sans-serif;line-height:normal;">Fatal error</h2>

<div class="warning" style="color:rgb(0,0,0);font-family:Scada, sans-serif;font-size:12px;line-height:normal;">
<p><em>2013-10-28 13:25</em></p>

<p>SQL error 42000: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE att_user = 1' at line 1</p>
</div>
</blockquote>

<p>Any thoughts on how to deal with it? I would gladly see any of the solutions.</p>
]]></description>
			<pubDate>Mon, 28 Oct 2013 13:31:09 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=38246#38246]]></link>
		</item>
		<item>
			<title>Twiebie - Sidepanel plugin always redirects to itself at login</title>
			<description><![CDATA[<p>Try to build up your sidepanel.tpl file from scratch, I think it's in there.</p>

<p>I've never used this Extruder thing before, so I can't be of much more assistence.</p>
]]></description>
			<pubDate>Wed, 23 Oct 2013 02:47:00 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=38224#38224]]></link>
		</item>
		<item>
			<title>foxhound - Sidepanel plugin always redirects to itself at login</title>
			<description><![CDATA[<blockquote><a href="https://www.cotonti.com/forums?m=posts&amp;q=7561#38222">#38222</a> <strong>Twiebie: </strong>
<p>Remove:</p>

<pre class="brush:xml;">
&lt;div class="content"&gt; &lt;/div&gt;
</pre>
</blockquote>

<p> </p>

<p>Sorry, it must be cause its late but that class is not present as far as I can tell. Not in the sidepanel tpl at least and also not in the php. I am not sure where you want me to remove it from?<br /><br /><br />
Thanks for the info on the "r", thats very usefull and I will try to remember that :)</p>
]]></description>
			<pubDate>Wed, 23 Oct 2013 02:10:18 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=38223#38223]]></link>
		</item>
		<item>
			<title>Twiebie - Sidepanel plugin always redirects to itself at login</title>
			<description><![CDATA[<p>Remove:</p>

<pre class="brush:xml;">
&lt;div class="content"&gt; &lt;/div&gt;</pre>

<p>The 'r' is so that it doesn't include header.php and footer.php.</p>
]]></description>
			<pubDate>Wed, 23 Oct 2013 01:22:18 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=38222#38222]]></link>
		</item>
		<item>
			<title>foxhound - Sidepanel plugin always redirects to itself at login</title>
			<description><![CDATA[<p>It is almost working right, I will get to that at the end.<br /><br />
First, thank you very much for pointing me in the right direction!!<br />
If it is not to much asked, why does the hook have to be ajax? And yes indeed, why is the "e" replaced with an "r"? I gues both things are connected?<br /><br /><br />
Now, about this almost working right.<br />
I have applied the changes you wrote above and it is working correctly, no more redirects after login. However, the output from the tpl is now done twice, it is looping 2x so to say. That means I see the same menu 2 times underneath eachother.<br />
Could this have to be cause it is now ajax? Should I put it in an ajx block and add the ajax class to the url?<br />
As described here: <a href="http://www.cotonti.com/docs/devel/ajax_helpers">http://www.cotonti.com/docs/devel/ajax_helpers</a></p>
]]></description>
			<pubDate>Wed, 23 Oct 2013 01:06:19 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=38221#38221]]></link>
		</item>
		<item>
			<title>Twiebie - Sidepanel plugin always redirects to itself at login</title>
			<description><![CDATA[<p>If you want to do it with a plugin you should set the hook to ajax.</p>

<p>Call it like this:</p>

<pre class="brush:php;">
&lt;?php defined('COT_CODE') or die('Wrong URL');
/* ====================
  [BEGIN_COT_EXT]
  Hooks=ajax
  [END_COT_EXT]
  ==================== */

$t = new XTemplate(cot_tplfile('sidepanel', 'plug'));

$t-&gt;parse();
$t-&gt;out();</pre>

<pre class="brush:xml;">
&lt;!-- sidebar stuff --&gt;
&lt;div id="extruderRight" class="{title:'User Control Panel', url:'index.php?r=sidepanel'}"&gt;&lt;/div&gt;</pre>

<p>Note the index.php?<u><strong>r</strong></u>=sidepanel</p>
]]></description>
			<pubDate>Tue, 22 Oct 2013 22:04:35 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=38220#38220]]></link>
		</item>
		<item>
			<title>foxhound - Sidepanel plugin always redirects to itself at login</title>
			<description><![CDATA[<p>In my first post I linked you to the source, you can use that in case you need more. I can only paste here my edits I have made but posting all js files is not needed I guess?<br /><br />
In the footer I have the following: </p>

<pre class="brush:xml;">
&lt;!-- sidebar stuff --&gt;
	&lt;!-- &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"&gt;&lt;/script&gt; --&gt;
	&lt;script type="text/javascript" src="https://www.cotonti.com/inc/jquery.hoverIntent.min.js"&gt;&lt;/script&gt;
	&lt;script type="text/javascript" src="https://www.cotonti.com/inc/jquery.mb.flipText.js"&gt;&lt;/script&gt;
	&lt;script type="text/javascript" src="https://www.cotonti.com/inc/mbExtruder.js"&gt;&lt;/script&gt;
	&lt;script type="text/javascript"&gt;

		$(function(){
			if (self.location.href == top.location.href){}
			$("#extruderRight").buildMbExtruder({
				position:"right",
				width:300,
				extruderOpacity:.8,
				textOrientation:"tb",
				onExtOpen:function(){},
				onExtContentLoad:function(){},
				onExtClose:function(){}
			});
		});
	&lt;/script&gt;
&lt;!-- &lt;div id="extruderRight" class="{title:'User Control Panel ', url:'parts/extruderRight.html'}"&gt;&lt;/div&gt; --&gt;
&lt;div id="extruderRight" class="{title:'User Control Panel', url:'index.php?e=sidepanel'}"&gt;&lt;/div&gt;</pre>

<p> </p>

<p>Than I have my sidepanel setup php file: </p>

<pre class="brush:php;">
&lt;?php
/* ====================
[BEGIN_COT_EXT]
Code=sidepanel
Name=sidepanel
Category=User control panel
Description= A sidepanel you can use as a user control area.
Version=1.0
Date=2013-10-22
Author=
Copyright=
Notes=
Auth_guests=RW
Lock_guests=12345A
Auth_members=RW
Lock_members=12345A
[END_COT_EXT]
==================== */

/**
 * Sidepanel Plugin for Cotonti CMF
 *
 * @package sidepanel
 * @version 1.0
 * @author
 * @copyright (c)
 * @license BSD
 */
?&gt;</pre>

<p> </p>

<p>Than my sidepanel.php: </p>

<pre class="brush:php;">
&lt;?php

/* ====================
  [BEGIN_COT_EXT]
  Hooks=standalone
  [END_COT_EXT]
  ==================== */

/**
 * Sidepanel Plugin for Cotonti CMF
 *
 * @package sidepanel
 * @version 1.0
 * 
 * @copyright (c)
 * @license BSD
 */
defined('COT_CODE') or die('Wrong URL');

$tplfile = cot_import('tpl', 'G', 'TXT');
$mskin = cot_tplfile(array('sidepanel', $tplfile), 'plug');
$t = new XTemplate($mskin);

?&gt;
</pre>

<p> </p>

<p>And I have this is my sidepanel.tpl </p>

<pre class="brush:xml;">
&lt;!-- BEGIN: MAIN --&gt;
&lt;!--
  ~ /*******************************************************************************
  ~  jquery.mb.components
  ~  file: extruderRight.html
  ~
  ~  Copyright (c) 2001-2013. Matteo Bicocchi (Pupunzi);
  ~  Open lab srl, Firenze - Italy
  ~  email: matteo@open-lab.com
  ~  site: 	http://pupunzi.com
  ~  blog:	http://pupunzi.open-lab.com
  ~ 	http://open-lab.com
  ~
  ~  Licences: MIT, GPL
  ~  http://www.opensource.org/licenses/mit-license.php
  ~  http://www.gnu.org/licenses/gpl.html
  ~
  ~  last modified: 04/01/13 17.13
  ~  ******************************************************************************/
  --&gt;

&lt;div class="voice {}"&gt;&lt;span class="label"&gt;&lt;a class="label" href="http://www.open-lab.com"&gt;Open Lab&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div id="tw" class="voice {panel:'parts/extr.tw.html'}"&gt;&lt;a class="label" href="http://twproject.com" target="_blank"&gt;teamwork&lt;/a&gt;&lt;/div&gt;
&lt;div class="voice {panel:'parts/extr.mti.html'}"&gt;&lt;span class="label"&gt;Morethanicons&lt;/span&gt;&lt;/div&gt;
&lt;!-- IF {PHP.usr.isadmin} --&gt;
	&lt;div class="voice {panel:'parts/extr.network.html'}"&gt;&lt;span class="label"&gt;Only admins can see this&lt;/span&gt;&lt;/div&gt;
&lt;!-- ENDIF --&gt;
&lt;div class="voice {disabled:true}"&gt;&lt;span class="label"&gt;Microsoft Internet Explorer&lt;/span&gt;&lt;/div&gt;
&lt;div class="voice {}"&gt;&lt;a class="label" href="http://firefox.com" target="_blank"&gt;get FireFox&lt;/a&gt;&lt;/div&gt;
&lt;div class="voice {}"&gt;&lt;a class="label" href="http://www.google.com/chrome" target="_blank"&gt;get Chrome&lt;/a&gt;&lt;/div&gt;
&lt;div class="voice {}"&gt;&lt;a class="label" href="http://www.apple.com/safari/" target="_blank"&gt;get Safari&lt;/a&gt;&lt;/div&gt;
&lt;div class="voice {}"&gt;&lt;a class="label" href="http://www.opera.com/" target="_blank"&gt;get Opera&lt;/a&gt;&lt;/div&gt;

&lt;script type="text/javascript"&gt;&lt;/script&gt;

&lt;!-- END: MAIN --&gt;</pre>

<p><br />
In the tpl I made one if statement purely for testing. Since it works my plugin actually works, except for tht redirect to its standalone page after succesfull login.<br />
Please bare in mind, I do not really understand so much about making plugins, I am always reading and trying till I drop ;)</p>
]]></description>
			<pubDate>Tue, 22 Oct 2013 18:46:48 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=38217#38217]]></link>
		</item>
		<item>
			<title>Twiebie - Sidepanel plugin always redirects to itself at login</title>
			<description><![CDATA[<p>Can you show the rest of your code, because at the moment I'm a bit confused.</p>
]]></description>
			<pubDate>Tue, 22 Oct 2013 18:26:41 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=38216#38216]]></link>
		</item>
		<item>
			<title>foxhound - Sidepanel plugin always redirects to itself at login</title>
			<description><![CDATA[<p>Uhm, yes. That is why I made it a tpl. It needs to be a tpl to work with the <span style="color:rgb(68,68,68);font-family:sans-serif;background-color:rgb(238,238,238);">xtemplate.<br />
The issue is not with that.</span></p>

<p> </p>

<p><span style="color:rgb(68,68,68);font-family:sans-serif;background-color:rgb(238,238,238);">The issue is with the fact this plugin causes a user to be (re)directed to "index.php?e=sidepanel" after succesfull login. And of course it should not do that. I would like to know how to prevent that.<br />
sidepanel is the plugin I created for this.<br />
I tried to make the plugin global instead of standalone but than it wont work at all.</span><br />
 </p>
]]></description>
			<pubDate>Tue, 22 Oct 2013 18:08:23 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=38215#38215]]></link>
		</item>
		<item>
			<title>Twiebie - Sidepanel plugin always redirects to itself at login</title>
			<description><![CDATA[<p>You can do that in the TPL aswell.</p>

<pre class="brush:xml;">
&lt;!-- IF {PHP.usr.id} &gt; 0 --&gt;
Show something
&lt;!-- ENDIF --&gt;</pre>

<p>Have a look at: <a href="http://www.cotonti.com/docs/ext/themes/">http://www.cotonti.com/docs/ext/themes/</a></p>
]]></description>
			<pubDate>Tue, 22 Oct 2013 17:36:41 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=38214#38214]]></link>
		</item>
		<item>
			<title>foxhound - Sidepanel plugin always redirects to itself at login</title>
			<description><![CDATA[<p>I need this to work with xtemplate as I plan to use this as the user control panel, for his PM's, his profile and a lot more. I only want to show the content the member has access to in that panel. Thats why I figured I had to make it a plugin with its own tpl so I can use if, else statements etc ;)</p>
]]></description>
			<pubDate>Tue, 22 Oct 2013 17:05:22 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=38213#38213]]></link>
		</item>
		<item>
			<title>Twiebie - Sidepanel plugin always redirects to itself at login</title>
			<description><![CDATA[<p>If I correctly understand what your goal is, I don't think you need a plugin for this.</p>

<p>Simply code it as explained in the documentation on their website.</p>

<p>If you want to use a seperate TPL for it you could include it with: {FILE "{PHP.cfg.themes_dir}/{PHP.usr.theme}/tpl/foobar.tpl"}</p>
]]></description>
			<pubDate>Tue, 22 Oct 2013 16:48:31 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=38212#38212]]></link>
		</item>
		<item>
			<title>foxhound - Sidepanel plugin always redirects to itself at login</title>
			<description><![CDATA[<p>Working on a new plugin, pretty simple probably but its actually the first one I ever got to work. :)<br />
However, the plugin seems to have the nasty habit to redirect a users login to itself. With that I mean if a user is browsing the website and wishes to login after doing so the site will direct him to the plugin page "index.php?e=sidepanel".<br />
The plugin itself is really simple, with the default setup file (sidepanel.setup.php), which is empty except the minimal requirements and in my sidepanel.php I have the following: </p>

<pre class="brush:php;">
&lt;?php

/* ====================
  [BEGIN_COT_EXT]
  Hooks=standalone
  [END_COT_EXT]
  ==================== */

/**
 * Contact Plugin for Cotonti CMF
 *
 * @package contact
 * @version 2.1.0
 * @author Cotonti Team
 * @copyright (c) Cotonti Team 2008-2013
 * @license BSD
 */
defined('COT_CODE') or die('Wrong URL');

$tplfile = cot_import('tpl', 'G', 'TXT');
$mskin = cot_tplfile(array('sidepanel', $tplfile), 'plug');
$t = new XTemplate($mskin);

?&gt;
</pre>

<p> </p>

<p>The sidepanel is created in my footer with the following code: </p>

<pre class="brush:xml;">
&lt;div id="extruderRight" class="{title:'User Control Panel', url:'index.php?e=sidepanel'}"&gt;&lt;/div&gt;
</pre>

<p>Yes, I am using "redirect back on login" and I made 100% sure I am not actually on the plugin page.<br />
Is there also a way to prevent from people accessing that "index.php?e=sidepanel"? Cause I have to make it standalone else it does not work, but than you can access it in a standalone page (obviously) which will than show the contents of my tpl in a page.</p>

<p> </p>

<p><span style="line-height:1.6em;">I am trying to make a plugin for this sitepanel: </span><a href="http://pupunzi.com/#mb.components/mb.extruder/extruder.html" rel="nofollow" style="line-height:1.6em;">http://pupunzi.com/#mb.components/mb.extruder/extruder.htm</a></p>
]]></description>
			<pubDate>Tue, 22 Oct 2013 16:26:01 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=38211#38211]]></link>
		</item>
		<item>
			<title>Dayver - Pagegroup</title>
			<description><![CDATA[<p>After instal in admin panel go to config page of plugin and fill all config field then press button "Create the specified extra field" then press button for save config.</p>

<p>Edit the templates theme of your site:</p>

<ul><li>In page.add.tpl  and  page.edit.tpl paste the appropriate tags specified in the configuration of the plug-extrafield.</li>
	<li>In page.list.tpl insert tag {LIST_ROW_PAGE_GROUP_ROTATOR}. It is also available {LIST_ROW_PAGE_IN_GROUP_COUNT} tag that displays the number of pages grouped , with which you can make the condition display "switcher" only pages that are in the group. It will look something like this : &lt;!- IF {LIST_ROW_PAGE_IN_GROUP_COUNT} &gt; 1 -&gt; {LIST_ROW_PAGE_GROUP_ROTATOR} &lt;!- ENDIF -&gt;. As well , it is necessary for the correct switch pages in the group to wrap the contents of the container LIST_ROW section showing the pattern id id = "paggrp {LIST_ROW_ID}. So section should look like this : &lt;!- BEGIN: LIST_ROW -&gt; &lt;div id="paggrp {LIST_ROW_ID}"&gt; ... &lt;/ div&gt; &lt;!- END: LIST_ROW -&gt;</li>
	<li>If necessary, make changes to the template "switcher" by editing pagegroup.listrow.rotator.tpl</li>
</ul><p><em>Sorry for my english (using Google Translate) </em></p>
]]></description>
			<pubDate>Thu, 17 Oct 2013 02:27:35 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&p=38171#38171]]></link>
		</item>
	</channel>
</rss>