<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Top donations plugin</title>
		<link>https://www.cotonti.com</link>
		<description>Laatste forum onderwerpen</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sun, 12 Apr 2026 23:06:50 -0000</pubDate>

		<item>
			<title>Kingsley</title>
			<description><![CDATA[<p>
	thought it to be a bit over the top for such a small plugin, but you're right, it's a good exercise..</p>
]]></description>
			<pubDate>Di, 07 Jun 2011 11:20:05 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=6379&d=0#post29812]]></link>
		</item>
		<item>
			<title>Dyllon</title>
			<description><![CDATA[My only suggestion is:

Dont put HTML in your plugins. Instead, assign tags to each of your variables ($row[donation_username] etc.). This way It will accommodate everyones needs for their templates. I'm posting this from my iPhone so it's hard to give you an example, but simply looking at another coders work is a great way to learn.]]></description>
			<pubDate>Ma, 06 Jun 2011 23:31:22 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=6379&d=0#post29809]]></link>
		</item>
		<item>
			<title>Kingsley</title>
			<description><![CDATA[<p>
	I know Dayver</p>
<p>
	I am certain it isn't caused by that typo, which I already had corrected myself..</p>
<p><strong>Added 5 hours later:</strong></p><p>
	bloody hell</p>
<p>
	 </p>
<p>
	the difference between || and &amp;&amp;</p>
<p>
	just overlooked that a thousand times :s</p>
<p>
	iz fixed now :)</p>
<p><strong>Added 3 minutes later:</strong></p><p>
	will tweak it and then I will release my first plugin LOL</p>
]]></description>
			<pubDate>Ma, 06 Jun 2011 14:09:22 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=6379&d=0#post29807]]></link>
		</item>
		<item>
			<title>Dayver</title>
			<description><![CDATA[<p>
	sorry</p>
<pre class="brush:php;">
Hooks=header.tags</pre>
]]></description>
			<pubDate>Ma, 06 Jun 2011 14:03:51 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=6379&d=0#post29806]]></link>
		</item>
		<item>
			<title>Kingsley</title>
			<description><![CDATA[<p>
	oke, that broke my site :(</p>
<p>
	<a href="http://www.x-ecutionerz.com" rel="nofollow">http://www.x-ecutionerz.com</a></p>
<p>
	How can I fix that?</p>
<p>
	<strong>Added 23 minutes later:</strong></p>
<p>
	MEH</p>
<p>
	 </p>
<p>
	I dont understand. My localhost is a exact copy of my live site (only a couple of days difference between db backup). On my localhost the site keeps functioning (although no output is displayed from my plugin) but on my life site, it fucks it all up and breaks it..</p>
<p>
	 </p>
<p>
	Grrrrrrrrrr</p>
<p>
	 </p>
<p>
	*buys some fake breasts, puts em on, shaves beard and wiggles ass*<br /><br />
	Help please :(</p>
]]></description>
			<pubDate>Ma, 06 Jun 2011 13:31:44 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=6379&d=0#post29802]]></link>
		</item>
		<item>
			<title>Dayver</title>
			<description><![CDATA[<pre class="brush:php;">
/* ====================
[BEGIN_SED_EXTPLUGIN]
...
Hooks=standalone
Tags= header.tpl {PLUGIN_RECENTDONATIONS}
...
[END_SED_EXTPLUGIN]
==================== */

ок may be

/* ====================
[BEGIN_SED_EXTPLUGIN]
...
Hooks=heder.tags
Tags= header.tpl {PLUGIN_RECENTDONATIONS}
...
[END_SED_EXTPLUGIN]
==================== */</pre>
]]></description>
			<pubDate>Ma, 06 Jun 2011 12:27:01 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=6379&d=0#post29801]]></link>
		</item>
		<item>
			<title>Mynt</title>
			<description><![CDATA[I am a little rusty with PHP,  so bare with me,

have you tried just using array buckets instead to see if you can output the data in debug?

$html .= ''. $row['donation_username'].'';
 $html .= ''. $row['donation_date'].''; 
$html .= ''. $row['donation_amount'].''; 

use

$html .= ''. $row[0].''; 
$html .= ''. $row[1].'';
 $html .= ''. $row[2].''; 

?]]></description>
			<pubDate>Ma, 06 Jun 2011 11:13:32 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=6379&d=0#post29799]]></link>
		</item>
		<item>
			<title>Kingsley</title>
			<description><![CDATA[<p>
	Hi,</p>
<p>
	Finally found the time to start with php, but im kinda stuck because i do not know where to look :(</p>
<p>
	I wrote a small plugin for displaying top 5 donations om the main. but it won't display the output for some reason, although the output is retreived. This is my code:</p>
<p>
	 </p>
<pre class="brush:php;">
"&lt;?PHP
/* ====================
[BEGIN_SED_EXTPLUGIN]
Code=recentdonations
Part=
File=recentdonations
Hooks=standalone
Tags= header.tpl {PLUGIN_RECENTDONATIONS}
Order=10
[END_SED_EXTPLUGIN]
==================== */

/**
 * Displays top5 latest donations
 *
 * @author Kingsley
 * @copyright Copyright (c) Madkings.nl 2011
 * @license BSD
 */


if (!defined('SED_CODE') || !defined('SED_PLUG')) { die('Wrong URL.'); }

// table where donations are
$donations ='cot_donations';

$sql1 = sed_sql_query("SELECT `donation_username`, `donation_date`, `donation_amount` FROM $donations ORDER BY donation_date DESC LIMIT 5");
$total1 = sed_sql_numrows($sql1);

$html .= '&lt;table class="cells"&gt;';
while ($row = sed_sql_fetcharray($sql1))
{
    
    $html .= '&lt;tr&gt;&lt;td&gt;'. $row['donation_username'].'&lt;/td&gt;';
    $html .= '&lt;td&gt;'. $row['donation_date'].'&lt;/td&gt;';
    $html .= '&lt;td&gt;'. $row['donation_amount'].'&lt;/td&gt;&lt;/tr&gt;';
}
$html.= '&lt;/table&gt;';

$t-&gt; assign(array(
    "PLUGIN_RECENTDONATIONS" =&gt; $html,
));



?&gt;

and the setup:

&lt;?PHP
/* ====================
[BEGIN_SED_EXTPLUGIN]
Code=recentdonations
Name=Recent Donations
Description=Lists of latest donations
Version=0.1
Date=2011-june-03
Author=Kingsley
Copyright= Madkings.nl
Notes=BSD License
SQL=
Auth_guests=R
Lock_guests=W12345A
Auth_members=R
Lock_members=W12345A
[END_SED_EXTPLUGIN]

==================== */

/**
 * Displays lists of latest donations
 *
 * @author Kingsley
 * @copyright Copyright (c) Madkings.nl 2011
 * @license BSD
 */

defined('SED_CODE') or die('Wrong URL');

?&gt;

Can some-one please tell me what I am overlooking? thank you



</pre>
]]></description>
			<pubDate>Ma, 06 Jun 2011 10:38:50 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=6379&d=0#post29797]]></link>
		</item>
	</channel>
</rss>