1 (edited by 2013-07-07 01:50:41)

Topic: CN 1.5.3 Pagination Problem

Hey

So far CN 1.5.3 works almost perfectly except for it pagination. I have downloaded the file from GitHub and the problem with the pagination is that it is unable to go back to page 1 from page 2, page 3, or page 4 onwards.

Example I am @ page 2 now with the URL,
www.site.com/example.php?start_from=5

The pagination [1] in page 2 will link back to www.site.com/example.php?start_from=5 while the pagination [3] will link to www.site.com/example.php?start_from=10 (which is correct).

Another example is I am @ page 3 now with the URL,
www.site.com/example.php?start_from=10

The pagination [1] in page 3 will link back to www.site.com/example.php?start_from=10.

So basically, all of the pagination [1] in any pages will link back to the current URL page you are on. It will not give me a start_from=0 in my URL.

Please help me with this! Thanks

Re: CN 1.5.3 Pagination Problem

No help at all? This seems to be an important fix since a pagination is a standard function for news.

What a bummer, wanted to purchase the Pro License guess I will just scrap it.

3 (edited by 2013-07-23 13:12:05)

Re: CN 1.5.3 Pagination Problem

Before including news add the lines:

$start_from = $_GET['start_from'];
$QUERY_STRING .= '&start_from='.$start_from;
Best regards,
CN Support team

4 (edited by 2013-07-23 13:01:01)

Re: CN 1.5.3 Pagination Problem

First thanks for replying, I appreciate it. May I ask where exactly do I put this code in which file and location? Thanks

Re: CN 1.5.3 Pagination Problem

Before including news add the lines:

$start_from = $_GET['start_from'];
$QUERY_STRING .= '&start_from='.$start_from;


it doesn't work

Re: CN 1.5.3 Pagination Problem

Just add before news include this hack:

$QUERY_STRING = preg_replace('/start_from=\d+/i', '', $QUERY_STRING);

Best regards,
CN Support team