<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Recent items standalone</title>
		<link>https://www.cotonti.com</link>
		<description>Останні повідомлення в темі</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Mon, 13 Apr 2026 04:43:37 -0000</pubDate>

		<item>
			<title>foxhound</title>
			<description><![CDATA[Thats a very nice new version of the recent items, exactly what I was looking for and together with the option to select your &quot;latest&quot; even better <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/smile.gif" alt=":)" /><br />
<br />
Thanks, never thought of checking the trunk.]]></description>
			<pubDate>Ср, 25 Лис 2009 20:12:11 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=4999&d=0#post21204]]></link>
		</item>
		<item>
			<title>pieter</title>
			<description><![CDATA[This new recentitems looks like this:<br />
<a href="http://www.cotonti.com/datas/users/recentitems_64.jpg"><img src="http://www.cotonti.com/datas/users/recentitems_64.jpg" alt="" class="scale" /></a>]]></description>
			<pubDate>Ср, 25 Лис 2009 15:38:06 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=4999&d=0#post21197]]></link>
		</item>
		<item>
			<title>esclkm</title>
			<description><![CDATA[It will not work/ It use new functions in functions.php]]></description>
			<pubDate>Ср, 25 Лис 2009 12:48:43 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=4999&d=0#post21194]]></link>
		</item>
		<item>
			<title>Dayver</title>
			<description><![CDATA[May be try <a href="http://trac.cotonti.com/browser/trunk/plugins/recentitems">this plug</a>?  <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/confused.gif" alt=":/" />]]></description>
			<pubDate>Ср, 25 Лис 2009 07:44:16 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=4999&d=0#post21193]]></link>
		</item>
		<item>
			<title>foxhound</title>
			<description><![CDATA[I am trying to make the recentitmes plugin a standalone plugin so it shows all latest topics on a seperate page (so not on the main forums page called forums.sections.tpl).<br />
So, I edited the plugin a bit, it looks like this: <pre class="code">&lt;?PHP
/* ====================
&#091;BEGIN_SED_EXTPLUGIN&#093;
Code=recentitems
Part=main
File=recentitems
Hooks=standalone
Order=10
&#091;END_SED_EXTPLUGIN&#093;
==================== */

/**
 * Recent pages and topics in forums
 *
 * @package Cotonti
 * @version 0.0.3
 * @author Neocrome, Cotonti Team
 * @copyright Copyright (c) Cotonti Team 2008-2009
 * @license BSD
 */

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

/* ============ MASKS FOR THE HTML OUTPUTS =========== */

$recentitems = new XTemplate(sed_skinfile('recentitems', true));

$plu_empty = $L&#091;'None'&#093;.&quot;&lt;br /&gt;&quot;;
if(empty($cfg&#091;'plugin'&#093;&#091;'recentitems'&#093;&#091;'redundancy'&#093;))
{
	$cfg&#091;'plugin'&#093;&#091;'recentitems'&#093;&#091;'redundancy'&#093; = 2;
}

if($cfg&#091;'plugin'&#093;&#091;'recentitems'&#093;&#091;'maxtopics'&#093; &gt; 0 &amp;&amp; !$cfg&#091;'disable_forums'&#093;)
{
	$limit = $cfg&#091;'plugin'&#093;&#091;'recentitems'&#093;&#091;'maxtopics'&#093;;
	$l = $limit * $cfg&#091;'plugin'&#093;&#091;'recentitems'&#093;&#091;'redundancy'&#093;;

	if($cfg&#091;'plugin'&#093;&#091;'recentitems'&#093;&#091;'fd'&#093; == 'Standard')
	{
		$sql = sed_sql_query(&quot;SELECT t.ft_id, t.ft_sectionid, t.ft_title, t.ft_updated, t.ft_postcount, s.fs_id, s.fs_title, s.fs_category
		FROM $db_forum_topics t,$db_forum_sections s
		WHERE t.ft_sectionid=s.fs_id
		AND t.ft_movedto=0 AND t.ft_mode=0
		ORDER by t.ft_updated DESC LIMIT $l&quot;);
	}
	/*===Every category the topic attended to. Very detailed, but it looks huge===*/
	elseif($cfg&#091;'plugin'&#093;&#091;'recentitems'&#093;&#091;'fd'&#093; == 'Subforums with Master Forums')
	{
		$sql = sed_sql_query(&quot;SELECT t.ft_id, t.ft_sectionid, t.ft_title, t.ft_updated, t.ft_postcount, s.fs_id, s.fs_masterid, s.fs_mastername, s.fs_title, s.fs_category
		FROM $db_forum_topics t,$db_forum_sections s
		WHERE t.ft_sectionid=s.fs_id
		AND t.ft_movedto=0 AND t.ft_mode=0
		ORDER by t.ft_updated DESC LIMIT $l&quot;);
	}
	/*===Only the category which topic has been posted===*/
	elseif($cfg&#091;'plugin'&#093;&#091;'recentitems'&#093;&#091;'fd'&#093; == 'Parent only')
	{
		$sql = sed_sql_query(&quot;SELECT t.ft_id, t.ft_sectionid, t.ft_title, t.ft_updated, t.ft_postcount, s.fs_id, s.fs_title
		FROM $db_forum_topics t,$db_forum_sections s
		WHERE t.ft_sectionid=s.fs_id
		AND t.ft_movedto=0 AND t.ft_mode=0
		ORDER by t.ft_updated DESC LIMIT $l&quot;);
	}
	/*===Modern style, only topic, date and postcount===*/
	else
	{
		$sql = sed_sql_query(&quot;SELECT t.ft_id, t.ft_title, t.ft_updated, t.ft_postcount, s.fs_id
		FROM $db_forum_topics t,$db_forum_sections s
		WHERE t.ft_sectionid=s.fs_id
		AND t.ft_movedto=0 AND t.ft_mode=0
		ORDER by t.ft_updated DESC LIMIT $l&quot;);
	}

	$i = 0;
	while($i &lt; $limit &amp;&amp; $row = sed_sql_fetcharray($sql))
	{
		if(sed_auth('forums', $row&#091;'fs_id'&#093;, 'R'))
		{
			$img = ($usr&#091;'id'&#093;&gt;0 &amp;&amp; $row&#091;'ft_updated'&#093;&gt;$usr&#091;'lastvisit'&#093;) ? &quot;&lt;a href=https://www.cotonti.com/\&quot;&quot;.sed_url('forums', 'm=posts&amp;q='.$row&#091;'ft_id'&#093;.'&amp;n=unread', '#unread').&quot;\&quot;&gt;&lt;img src=https://www.cotonti.com/\&quot;skins/$skin/img/system/arrow-unread.gif\&quot; alt=\&quot;\&quot; /&gt;&lt;/a&gt;&quot; : &quot;&lt;a href=https://www.cotonti.com/\&quot;&quot;.sed_url('forums', 'm=posts&amp;q='.$row&#091;'ft_id'&#093;.'&amp;n=last', '#bottom').&quot;\&quot;&gt;&lt;img src=https://www.cotonti.com/\&quot;skins/$skin/img/system/arrow-follow.gif\&quot; alt=\&quot;\&quot; /&gt;&lt;/a&gt; &quot;;

			if($cfg&#091;'plugin'&#093;&#091;'recentitems'&#093;&#091;'fd'&#093; == 'Standard')
			{
				$build_forum=sed_build_forums($row&#091;'fs_id'&#093;, sed_cutstring($row&#091;'fs_title'&#093;,24), sed_cutstring($row&#091;'fs_category'&#093;,16));
			}
			elseif($cfg&#091;'plugin'&#093;&#091;'recentitems'&#093;&#091;'fd'&#093; == 'Subforums with Master Forums')
			{
				$build_forum=sed_build_forums($row&#091;'fs_id'&#093;, sed_cutstring($row&#091;'fs_title'&#093;,24), sed_cutstring($row&#091;'fs_category'&#093;,16), true, array($row&#091;'fs_masterid'&#093;,$row&#091;'fs_mastername'&#093;));
			}
			elseif($cfg&#091;'plugin'&#093;&#091;'recentitems'&#093;&#091;'fd'&#093; == 'Parent only')
			{
				$build_forum=&quot;&lt;a href=https://www.cotonti.com/\&quot;&quot;.sed_url('forums', 'm=topics&amp;s='.$row&#091;'fs_id'&#093;).'&quot;&gt;'.htmlspecialchars(sed_cutstring(stripslashes($row&#091;'fs_title'&#093;),16)).&quot;&lt;/a&gt;&quot;;
			}
			else
			{
				$build_forum=&quot;&quot;;
			}

			$recentitems -&gt; assign(array(
				&quot;RI_DATE&quot; =&gt; date($cfg&#091;'formatmonthdayhourmin'&#093;, $row&#091;'ft_updated'&#093; + $usr&#091;'timezone'&#093; * 3600),
				&quot;RI_IMG&quot; =&gt; $img,
				&quot;RI_CAT&quot; =&gt; $build_forum,
				&quot;RI_NAME&quot; =&gt; &quot;&lt;a href=https://www.cotonti.com/\&quot;&quot;.sed_url('forums', 'm=posts&amp;q='.$row&#091;'ft_id'&#093;.'&amp;n=last', '#bottom').'&quot; title=&quot;'.htmlspecialchars(stripslashes($row&#091;'ft_title'&#093;)).'&quot;&gt;'.htmlspecialchars(sed_cutstring(stripslashes($row&#091;'ft_title'&#093;),25)).&quot;&lt;/a&gt;&quot;,
				&quot;RI_COUNT&quot; =&gt; $row&#091;'ft_postcount'&#093;-1,
			));
			$recentitems -&gt; parse(&quot;RECENTFORUMS.RECENTFORUM&quot;);

			$i++;
		}
	}
	$recentitems -&gt; parse(&quot;RECENTFORUMS&quot;);
	$res = $recentitems -&gt; text(&quot;RECENTFORUMS&quot;);

	$res = (empty($res)) ? $plu_empty : $res;

	$latesttopics = $res;
}

/* ------------------ */

$t-&gt; assign(array(
	&quot;PLUGIN_LATESTTOPICS&quot; =&gt; $latesttopics,
));

?&gt;</pre>
<br />
And I also changed the recentitems.tpl, it looks like this: <pre class="code">&lt;!-- BEGIN: MAIN --&gt;
&lt;!-- BEGIN: MAIN.RECENTFORUMS --&gt;

&lt;table class=&quot;cells&quot;&gt;

	&lt;tr&gt;&lt;td class=&quot;coltop&quot; colspan=&quot;2&quot;&gt;Date&lt;/td&gt;&lt;td class=&quot;coltop&quot;&gt;{PHP.skinlang.forumssections.Sections}&lt;/td&gt;&lt;td class=&quot;coltop&quot;&gt;{PHP.skinlang.forumssections.Topics}&lt;/td&gt;&lt;td class=&quot;coltop&quot;&gt;{PHP.skinlang.forumssections.Posts}&lt;/td&gt;&lt;/tr&gt;

	&lt;!-- BEGIN: MAIN.RECENTFORUM --&gt;

	&lt;tr&gt;&lt;td&gt;{RI_IMG} &lt;/td&gt;&lt;td&gt;{RI_DATE} &lt;/td&gt;&lt;td&gt;{RI_CAT} &lt;/td&gt;&lt;td&gt;{RI_NAME} &lt;/td&gt;&lt;td class=&quot;centerall middleall&quot;&gt;({RI_COUNT})&lt;/td&gt;&lt;/tr&gt;

	&lt;!-- END: MAIN.RECENTFORUM --&gt;

&lt;/table&gt;

&lt;!-- END: MAIN.RECENTFORUMS --&gt;

&lt;!-- END: MAIN --&gt;</pre>
<br />
I think I am nearly there, all it refuses to do it parse any new topics but other than that it kind of works. Which is already more than I ever managed knowing the php stuff is pretty difficult for me.<br />
<br />
<div style="text-align:center"><a href="http://www.armaholic.com/datas/users/4-latesttopicsstandalone.png" rel="nofollow"><img src="http://www.armaholic.com/datas/thumbs/4-latesttopicsstandalone.png" alt="" /></a></div>
<br />
Anyone here can help me to get the last bit to work, so it actually parses the latest topics into that page?]]></description>
			<pubDate>Ср, 25 Лис 2009 05:56:10 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=4999&d=0#post21189]]></link>
		</item>
	</channel>
</rss>