<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : PLUGIN_LATESTPAGES</title>
		<link>https://www.cotonti.com</link>
		<description>Son konu mesajları</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sun, 12 Apr 2026 18:22:26 -0000</pubDate>

		<item>
			<title>g.galashev</title>
			<description><![CDATA[<p>Спасибо за подсказку, но уже все вписано в дизайн и не хотелось бы переходить на другой плагин. Хотелось бы получить рекомендации по исправлению Recentitems<br />
 </p>
]]></description>
			<pubDate>Pzt, 06 Oca 2014 09:51:54 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7639&d=0#post38862]]></link>
		</item>
		<item>
			<title>Kort</title>
			<description><![CDATA[<p>Есть глобально работающий <a href="http://www.cotonti.com/ru/extensions/navigation-structure/pagelist">Pagelist</a><br />
 </p>
]]></description>
			<pubDate>Pzt, 06 Oca 2014 09:01:30 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7639&d=0#post38859]]></link>
		</item>
		<item>
			<title>g.galashev</title>
			<description><![CDATA[<p>Есть стандартный плагин Recentitems, отображающий последние статьи списком. Он размещен в index.tpl. Когда я вставляю тэг PLUGIN_LATESTPAGES например в page.tpl, список статей не выводится. Вот текст плагина Recentitems, может быть там нужно изменить хук или что-то в этом роде? :</p>

<p>&lt;?PHP<br />
/* ====================<br />
[BEGIN_SED_EXTPLUGIN]<br />
Code=recentitems<br />
Part=main<br />
File=recentitems<br />
Hooks=index.tags<br />
Tags=index.tpl:{PLUGIN_LATESTPAGES},{PLUGIN_LATESTTOPICS}<br />
Order=10<br />
[END_SED_EXTPLUGIN]<br />
==================== */</p>

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

<p>defined('SED_CODE') or die('Wrong URL');</p>

<p>/* ============ MASKS FOR THE HTML OUTPUTS =========== */</p>

<p>$recentitems = new XTemplate(sed_skinfile('recentitems', true));</p>

<p>$plu_empty = $L['None']."&lt;br /&gt;";<br />
if(empty($cfg['plugin']['recentitems']['redundancy']))<br />
{<br />
$cfg['plugin']['recentitems']['redundancy'] = 2;<br />
}</p>

<p>/* ================== FUNCTIONS ================== */</p>

<p>if($cfg['plugin']['recentitems']['maxpages'] &gt; 0 &amp;&amp; !$cfg['disable_page'])<br />
{<br />
$limit = $cfg['plugin']['recentitems']['maxpages'];<br />
$l = $limit * $cfg['plugin']['recentitems']['redundancy'];</p>

<p>$sql = sed_sql_query("SELECT page_id, page_alias, page_cat, page_title, page_date FROM $db_pages WHERE page_state=0 AND page_cat NOT LIKE 'system'<br />
AND page_cat NOT LIKE 'about' AND page_cat NOT LIKE 'news' AND page_cat NOT LIKE 'contactus' AND page_cat NOT LIKE 'pages' ORDER by page_date DESC LIMIT $l");</p>

<p>$i = 0;<br />
while($i &lt; $limit &amp;&amp; $row = sed_sql_fetcharray($sql))<br />
{<br />
if(sed_auth('page', $row['page_cat'], 'R'))<br />
{<br />
$row['page_pageurl'] = (empty($row['page_alias'])) ? sed_url('page', 'id='.$row['page_id']) : sed_url('page', 'al='.$row['page_alias']);</p>

<p>$recentitems -&gt; assign(array(<br />
"RI_DATE" =&gt; date($cfg['formatyearmonthday'], $row['page_date'] + $usr['timezone'] * 3600),<br />
"RI_CAT" =&gt; "&lt;a href=https://www.cotonti.com/\"".sed_url('list', 'c='.$row['page_cat'])."\"&gt;".$sed_cat[$row['page_cat']]['title']."&lt;/a&gt;",<br />
"RI_NAME" =&gt; "&lt;a href=https://www.cotonti.com/\"".$row['page_pageurl']."\" title=\"".htmlspecialchars(stripslashes($row['page_title']))."\"&gt;".htmlspecialchars(sed_cutstring(stripslashes($row['page_title']), 75))."&lt;/a&gt;",<br />
));<br />
$recentitems -&gt; parse("RECENTPAGES.RECENTPAGE");<br />
$i++;<br />
}<br />
}</p>

<p>$recentitems -&gt; parse("RECENTPAGES");<br />
$res = $recentitems -&gt; text("RECENTPAGES");</p>

<p>$res = (empty($res)) ? $plu_empty : $res;</p>

<p>$latestpages = $res;<br />
}</p>

<p>/* ------------------ */</p>

<p>if($cfg['plugin']['recentitems']['maxtopics'] &gt; 0 &amp;&amp; !$cfg['disable_forums'])<br />
{<br />
$limit = $cfg['plugin']['recentitems']['maxtopics'];<br />
$l = $limit * $cfg['plugin']['recentitems']['redundancy'];</p>

<p>if($cfg['plugin']['recentitems']['fd'] == 'Standard')<br />
{<br />
$sql = sed_sql_query("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<br />
FROM $db_forum_topics t,$db_forum_sections s<br />
WHERE t.ft_sectionid=s.fs_id<br />
AND t.ft_movedto=0 AND t.ft_mode=0<br />
ORDER by t.ft_updated DESC LIMIT $l");<br />
}<br />
/*===Every category the topic attended to. Very detailed, but it looks huge===*/<br />
elseif($cfg['plugin']['recentitems']['fd'] == 'Subforums with Master Forums')<br />
{<br />
$sql = sed_sql_query("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<br />
FROM $db_forum_topics t,$db_forum_sections s<br />
WHERE t.ft_sectionid=s.fs_id<br />
AND t.ft_movedto=0 AND t.ft_mode=0<br />
ORDER by t.ft_updated DESC LIMIT $l");<br />
}<br />
/*===Only the category which topic has been posted===*/<br />
elseif($cfg['plugin']['recentitems']['fd'] == 'Parent only')<br />
{<br />
$sql = sed_sql_query("SELECT t.ft_id, t.ft_sectionid, t.ft_title, t.ft_updated, t.ft_postcount, s.fs_id, s.fs_title<br />
FROM $db_forum_topics t,$db_forum_sections s<br />
WHERE t.ft_sectionid=s.fs_id<br />
AND t.ft_movedto=0 AND t.ft_mode=0<br />
ORDER by t.ft_updated DESC LIMIT $l");<br />
}<br />
/*===Modern style, only topic, date and postcount===*/<br />
else<br />
{<br />
$sql = sed_sql_query("SELECT t.ft_id, t.ft_title, t.ft_updated, t.ft_postcount, s.fs_id<br />
FROM $db_forum_topics t,$db_forum_sections s<br />
WHERE t.ft_sectionid=s.fs_id<br />
AND t.ft_movedto=0 AND t.ft_mode=0<br />
ORDER by t.ft_updated DESC LIMIT $l");<br />
}</p>

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

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

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

<p>$i++;<br />
}<br />
}<br />
$recentitems -&gt; parse("RECENTFORUMS");<br />
$res = $recentitems -&gt; text("RECENTFORUMS");</p>

<p>$res = (empty($res)) ? $plu_empty : $res;</p>

<p>$latesttopics = $res;<br />
}</p>

<p>/* ------------------ */</p>

<p>$t-&gt; assign(array(<br />
"PLUGIN_LATESTPAGES" =&gt; $latestpages,<br />
"PLUGIN_LATESTTOPICS" =&gt; $latesttopics,<br />
));</p>

<p>?&gt;</p>

<p><br />
 </p>
]]></description>
			<pubDate>Pzt, 06 Oca 2014 08:50:34 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7639&d=0#post38858]]></link>
		</item>
	</channel>
</rss>