<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Pagination Increments</title>
		<link>https://www.cotonti.com</link>
		<description>Останні повідомлення в темі</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Fri, 17 Apr 2026 04:16:26 -0000</pubDate>

		<item>
			<title>aro747</title>
			<description><![CDATA[Trustmaster, thanks for your help.  Sorry, my post may have been confusing.  I'm trying to change the &quot;Maximum lines in lists&quot;.  Right now in the drop down the options are 5, 10, 15, 20... I want to change that to 4, 8, 12, 16...  Sorry for the confusion. <br />
<br />
thanks,<br />
<br />
aro<br />
<br />
Actually I figured this out now.  In &quot;functions.admin.php&quot; you can change the &quot;maxrowsperpage&quot; to your liking.  Thanks for your help everyone.]]></description>
			<pubDate>Сб, 23 Травень 2009 14:42:58 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=2787&d=0#post12792]]></link>
		</item>
		<item>
			<title>pieter</title>
			<description><![CDATA[you can also use sedplus.]]></description>
			<pubDate>Сб, 23 Травень 2009 13:54:07 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=2787&d=0#post12791]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[As Elgan noticed<br />
<div class="highlight"><pre class="php">$i *= ($n % 2) ? 2 : 5;
</pre></div>
in function sed_pagination() in <em>system/function.php</em> is responsible for that.<br />
<br />
It sets multipliers for numbers. If you replace it with, e.g.<br />
<div class="highlight"><pre class="php">$i *= ($n % 2) ? 4 : 3;
</pre></div>
The buttons will go like [1][3][12][36][144]]]></description>
			<pubDate>Сб, 23 Травень 2009 12:14:10 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=2787&d=0#post12786]]></link>
		</item>
		<item>
			<title>aro747</title>
			<description><![CDATA[Thanks.  It seems a bit complicated for me.  I was hoping I could just change whatever file is necessary to get this done.  Is that possible?  I have a very simple site setup so it should be ok to do a core hack.  Thanks for your help.]]></description>
			<pubDate>Сб, 23 Травень 2009 10:45:28 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=2787&d=0#post12785]]></link>
		</item>
		<item>
			<title>Elgan</title>
			<description><![CDATA[i would start by making a global plugin or create a new function or edit the old sed_pagination<br />
<br />
but if u want to create a new, make a function named sed_pagination_custom<br />
<br />
like so<br />
<br />
<pre class="code">
function pagination_custom($url, $current, $entries, $perpage, $characters = 'd', $onclick = '', $object='')
{
	if($entries &lt;= $perpage)
	{
		return '';
	}
	$each_side = 3; // Links each side
	$address = strstr($url, '?') ? $url . '&amp;amp;'.$characters.'=' : $url . '?'.$characters.'=';

	$totalpages = ceil($entries / $perpage);
	$currentpage = floor($current / $perpage) + 1;
	$cur_left = $currentpage - $each_side;
	if($cur_left &lt; 1) $cur_left = 1;
	$cur_right = $currentpage + $each_side;
	if($cur_right &gt; $totalpages) $cur_right = $totalpages;

	$before = '';
	$pages = '';
	$after = '';
	$i = 1;
	$n = 0;
	while($i &lt; $cur_left)
	{
		$k = ($i - 1) * $perpage;
		$listparam = empty($object) ? '' : 'var list = {data: \'&amp;'.$characters.'='.$k.'\', '.$object.'}; ';
		$strlistparam = empty($object) ? $k : 'list';
		$event = empty($onclick) ? '' : ' onclick=&quot;'.$listparam.'return '.$onclick.'('.$strlistparam.');&quot;';
		$before .= '&lt;span class=&quot;pagenav_pages&quot;&gt;&lt;a href=https://www.cotonti.com/&quot;'.$address.$k.'&quot;'.$event.'&gt;'.$i.'&lt;/a&gt;&lt;/span&gt;';
		$i *= ($n % 2) ? 2 : 5;
		$n++;
	}
	for($j = $cur_left; $j &lt;= $cur_right; $j++)
	{
		$k = ($j - 1) * $perpage;
		$class = $j == $currentpage ? 'current' : 'pages';
		$listparam = empty($object) ? '' : 'var list = {data: \'&amp;'.$characters.'='.$k.'\', '.$object.'}; ';
		$strlistparam = empty($object) ? $k : 'list';
		$event = empty($onclick) ? '' : ' onclick=&quot;'.$listparam.'return '.$onclick.'('.$strlistparam.');&quot;';
		$pages .= '&lt;span class=&quot;pagenav_'.$class.'&quot;&gt;&lt;a href=https://www.cotonti.com/&quot;'.$address.$k.'&quot;'.$event.'&gt;'.$j.'&lt;/a&gt;&lt;/span&gt;';
	}
	while($i &lt;= $cur_right)
	{
		$i *= ($n % 2) ? 2 : 5;
		$n++;
	}
	while($i &lt; $totalpages)
	{
		$k = ($i - 1) * $perpage;
		$listparam = empty($object) ? '' : 'var list = {data: \'&amp;'.$characters.'='.$k.'\', '.$object.'}; ';
		$strlistparam = empty($object) ? $k : 'list';
		$event = empty($onclick) ? '' : ' onclick=&quot;'.$listparam.'return '.$onclick.'('.$strlistparam.');&quot;';
		$after .= '&lt;span class=&quot;pagenav_pages&quot;&gt;&lt;a href=https://www.cotonti.com/&quot;'.$address.$k.'&quot;'.$event.'&gt;'.$i.'&lt;/a&gt;&lt;/span&gt;';
		$i *= ($n % 2) ? 5 : 2;
		$n++;
	}
	$pages = $before . $pages . $after;

	return $pages;
}
</pre>
<br />
<br />
then play with these lines,<br />
<br />
<pre class="code">
$i *= ($n % 2) ? 2 : 5;
</pre>
<br />
and edit them to how you want it. just at  aglance, id start there. or are u looking for more direct help?]]></description>
			<pubDate>Сб, 23 Травень 2009 08:58:43 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=2787&d=0#post12783]]></link>
		</item>
		<item>
			<title>aro747</title>
			<description><![CDATA[Hi there,<br />
How can I change the current pagination increments in the articles section from 5, 10, 15, etc. to 4, 8, 12, 16...<br />
<br />
thanks,<br />
<br />
aro]]></description>
			<pubDate>Сб, 23 Травень 2009 00:50:13 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=2787&d=0#post12777]]></link>
		</item>
	</channel>
</rss>