<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Slight improvement for poll / vote</title>
		<link>https://www.cotonti.com</link>
		<description>Последние сообщения в теме</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Tue, 05 May 2026 07:43:46 -0000</pubDate>

		<item>
			<title>GHengeveld</title>
			<description><![CDATA[Yes I think its a good idea. Actually I think it should be the default behavior.]]></description>
			<pubDate>ср, 05 янв 2011 17:20:26 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=6106&d=0#post27782]]></link>
		</item>
		<item>
			<title>ToM</title>
			<description><![CDATA[I'm sorry maybe I'm not understand your question well but now the situation one IP two Users and Guests allowed to vote can't be handled by Cotonti poll plug-in now. If you add the stuff above you are able to handle the situation well.]]></description>
			<pubDate>ср, 05 янв 2011 16:58:38 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=6106&d=0#post27781]]></link>
		</item>
		<item>
			<title>esclkm</title>
			<description><![CDATA[May be use only one way?]]></description>
			<pubDate>вт, 04 янв 2011 23:41:49 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=6106&d=0#post27757]]></link>
		</item>
		<item>
			<title>ToM</title>
			<description><![CDATA[I have the idea to slightly improve the poll plug-in. <br />
<br />
This improve a bit the poll plug-in because sometimes ID or IP is not enough.<br />
Sometimes two different users could have the same IP but you don't want to cut the guests from the vote.<br />
You can set &quot;id then ip&quot; for this case.<br />
<br />
1.<br />
-------<br />
<br />
EDIT:<br />
(into file) functions.admin.php:<br />
<br />
function sed_loadconfigmap()<br />
{<br />
	$result[] = array ('polls', '02', 'ip_id_polls', 2, 'ip', array('ip','id','id then ip')); // N-0.0.2<br />
<br />
}<br />
<br />
2.<br />
------<br />
<br />
ADD:<br />
(into file) polls.functions.php (into the function) function sed_poll_vote() and (into the function) function sed_poll_form($id, $formlink='', $skin='', $type=''):<br />
<br />
<br />
elseif($cfg['ip_id_polls']=='id then ip')<br />
{<br />
	if ($usr['id']&gt;0)<br />
	{<br />
		$sql2 = sed_sql_query(&quot;SELECT pv_id FROM $db_polls_voters WHERE pv_pollid='$id' AND pv_userid='&quot;.$usr['id'].&quot;' LIMIT 1&quot;);<br />
	}<br />
<br />
	else<br />
	{<br />
		$sql2 = sed_sql_query(&quot;SELECT pv_id FROM $db_polls_voters WHERE pv_pollid='$id' AND pv_userip='&quot;.$usr['ip'].&quot;' LIMIT 1&quot;);<br />
	}<br />
<br />
	$alreadyvoted = (sed_sql_numrows($sql2)==1) ? 1 : 0;<br />
}]]></description>
			<pubDate>вт, 04 янв 2011 18:06:21 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=6106&d=0#post27746]]></link>
		</item>
	</channel>
</rss>