<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : userpages plugin modification</title>
		<link>https://www.cotonti.com</link>
		<description>Neueste Themenbeiträge</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Wed, 15 Apr 2026 10:13:19 -0000</pubDate>

		<item>
			<title>Lombi</title>
			<description><![CDATA[Actually the whole user details display needs changing. Cotonti will get myspace/facebook-like friends, viewcounter, recent user views of the profile, paginated commenting...<br />
<br />
So it's gonna be Seditio 4.8 basically :)]]></description>
			<pubDate>Mo, 25 Aug 2008 22:01:52 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=352&d=0#post645]]></link>
		</item>
		<item>
			<title>Antar</title>
			<description><![CDATA[Not so easy for me.<br />
Paginated- it's the ultimate update, but even show only last x pages as option will aslo be good.<br />
I'm not asking you (i know you're quite bisy), but if someone can find the time to make the change, please do :)]]></description>
			<pubDate>Mo, 25 Aug 2008 09:07:34 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=352&d=0#post644]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Can be easily done with sed_pagination() function and some GET variable (default is 'd').]]></description>
			<pubDate>Mo, 25 Aug 2008 04:57:36 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=352&d=0#post643]]></link>
		</item>
		<item>
			<title>Antar</title>
			<description><![CDATA[Here's the code<br />
[spoiler]<pre class="code">&lt;?PHP
/* ====================
Seditio - Website engine
Copyright Neocrome
<a href="http://www.neocrome.net" rel="nofollow">http://www.neocrome.net</a>

&#091;BEGIN_SED&#093;
File=plugins/userpages/userpages.php
Version=100
Updated=2006-jan-01
Type=Plugin
Author=Neocrome
Description=
&#091;END_SED&#093;

&#091;BEGIN_SED_EXTPLUGIN&#093;
Code=userpages
Part=main
File=userpages
Hooks=users.details.tags
Tags=users.details.tpl:{USERS_DETAILS_USERPAGES}
Minlevel=0
Order=10
&#091;END_SED_EXTPLUGIN&#093;

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

if ( !defined('SED_CODE') ) { die(&quot;Hacking attempt.&quot;); }

/* ============ MASKS FOR THE HTML OUTPUT =========== */

$mask = &quot;%3\$s : %1\$s&quot;.&quot; &quot;.$cfg&#091;'separator'&#093;.&quot; &quot;.&quot;%2\$s&quot;.&quot;&lt;br /&gt;&quot;;
// %1\$s = Link to the category
// %2\$s = Link to the page
// %3\$s = Date

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

if (!empty($urr&#091;'user_name'&#093;))
	{
	$ps = sed_import('ps','G','ALP');

	if ($ps=='cat')
		{
		$sql = sed_sql_query(&quot;SELECT page_id, page_cat, page_title, page_date FROM $db_pages WHERE page_state=0 AND page_cat NOT LIKE 'system' AND page_ownerid='&quot;.$urr&#091;'user_id'&#093;.&quot;' ORDER by page_cat ASC&quot;, &quot;Plugins&quot;);
		}
	else
		{
		$sql = sed_sql_query(&quot;SELECT page_id, page_cat, page_title, page_date FROM $db_pages WHERE page_state=0 AND page_cat NOT LIKE 'system' AND page_ownerid='&quot;.$urr&#091;'user_id'&#093;.&quot;' ORDER by page_date DESC&quot;, &quot;Plugins&quot;);
		}

	while ($row = sed_sql_fetcharray($sql))
		{
		$userpages .= (sed_auth('page', $row&#091;'page_cat'&#093;, 'R')) ? sprintf($mask,
			&quot;&lt;a href=https://www.cotonti.com/\&quot;list.php?c=&quot;.$row&#091;'page_cat'&#093;.&quot;\&quot;&gt;&quot;.$sed_cat&#091;$row&#091;'page_cat'&#093;&#093;&#091;'title'&#093;.&quot;&lt;/a&gt;&quot;,
			&quot;&lt;a href=https://www.cotonti.com/\&quot;page.php?id=&quot;.$row&#091;'page_id'&#093;.&quot;\&quot;&gt;&quot;.sed_cc(sed_cutstring(stripslashes($row&#091;'page_title'&#093;),48)).&quot;&lt;/a&gt;&quot;,
			date($cfg&#091;'formatyearmonthday'&#093;, $row&#091;'page_date'&#093; + $usr&#091;'timezone'&#093; * 3600)
				) : '';
		}

	if (empty($userpages))
		{ $userpages =  $L&#091;'None'&#093;; }
	elseif (sed_sql_numrows($sql)&gt;2)
		{
		$userpages_head = &quot;&#091;&lt;a href=https://www.cotonti.com/\&quot;users.php?m=details&amp;amp;id=&quot;.$urr&#091;'user_id'&#093;.&quot;\&quot;&gt;Sort by date&lt;/a&gt;&#093;&quot;;
		$userpages_head .= &quot; &#091;&lt;a href=https://www.cotonti.com/\&quot;users.php?m=details&amp;amp;id=&quot;.$urr&#091;'user_id'&#093;.&quot;&amp;amp;ps=cat\&quot;&gt;Sort by category&lt;/a&gt;&#093;&quot;.&quot;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&quot;;
		}

	$userpages = $userpages_head . $userpages;


	$t-&gt;assign(array(
		&quot;USERS_DETAILS_USERPAGES&quot; =&gt; $userpages
			));
	}


?&gt;</pre>[/spoiler]<br />
Could someone help modifying it, so it will show specified number  of last pages, and not all? Some ppl have 1000+ submitted pages, and it causes troubles.]]></description>
			<pubDate>So, 24 Aug 2008 22:08:21 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=352&d=0#post639]]></link>
		</item>
	</channel>
</rss>