Skip to forum content
CutePHP Forums
Dear CuteNews Users! Please feel free to contact us via our new Feedback Form and please send information about bugs to our bug tracker.
CutePHP Forums
You are not logged in. Please login or register.
Active topics Unanswered topics
Search options
IMHO it is if you are running an unaltered version of 1.4.6.
If you have added any hacks or changes/updates of your own then no, unless you are prepared to put the changes back.
If you do update do not overwrite your old Data directory.
hmm, well like i use my own template but i haven't added hacks. hmmm 
Hello Nirina,
have a look at the standard pagination... the code used to display the second page is (depends on $number parameter, $number = 5 in this case):
So the next page starts with the sixth article. In this case you have to manually add these links.
You could instead use the pagination in your template and change the code in shows.inc.php to fit your layout:
$prev_next_msg = preg_replace("'[prev-link](.*?)[/prev-link]'si", ...
$pages .= " ...
$prev_next_msg = preg_replace("'[next-link](.*?)[/next-link]'si", ...
The replacements should look sth. like this:
$prev_next_msg = preg_replace("'[prev-link](.*?)[/prev-link]'si", "<li class="previous">[url=$PHP_SELF?start_from=$prev&ucat=$ucat&archive=$url_archive&subaction=$subaction&id=$id&$user_query]\1[/url]</li>", $prev_next_msg);
$prev_next_msg = preg_replace("'[prev-link](.*?)[/prev-link]'si", "<li class="previous-off">\1</li>", $prev_next_msg); $no_prev = TRUE; }
$pages .= " * [url=$PHP_SELF?start_from=$pages_start_from&ucat=$ucat&archive=$url_archive&subaction=$subaction&id=$id&$user_query]$j[/url]
";
$pages .= " <li class="active">$j</li> ";
$prev_next_msg = preg_replace("'[next-link](.*?)[/next-link]'si", "<li class="next">[url=$PHP_SELF?start_from=$i&ucat=$ucat&archive=$url_archive&subaction=$subaction&id=$id&$user_query]\1[/url]</li>", $prev_next_msg);
Good luck 
oh gosh i didn't really understand most of that...
I messed around a bit today and now i have a different code, which i use in the CuteNews template, but the active number keeps going to the wrong side..
<div style="width:400; margin-bottom:30px;">
<div>
<ul id="page">
<align="center">
<li class="previous-off">[prev-link]Previous Page[/prev-link]</li>
<li class="active">{pages}</li>
<li class="next">[next-link]Next Page[/next-link]</li>
</align>
</ul>
</div>
<p></p>
It kind of works, except it's a bit messier and the active page always goes to the otherside.. 
so it's not worth updating to CuteNews 1.4.7??
Hi there,
i recently redid my layout and this time decided to add a Pagination to the bottom of the pages. I currently use this code and it looks great, fits the layout and isn't messy:
<ul id="page">
<li class="previous-off">PREVIOUS PAGE</li>
<li class="active">1</li>
* [url=?page=2]2[/url]
* [url=?page=3]3[/url]
* [url=?page=4]4[/url]
* [url=?page=5]5[/url]
* [url=?page=6]6[/url]
* [url=?page=7]7[/url]
<li class="next">[url=?page=2]NEXT PAGE[/url]</li>
</ul>
But the problem i have is that it doesn't actually work! LOL! when i click 'Next Page' or any number page, it just redirects to the first page everytime. now in my template in CuteNews i have left 'News Pagination' blank, and presume that's the problem. But what exact code do i input for it to work, but also to keep my layout?
Thanks, Nirina
http://killer-fashion.tk/
really hopes this gets fixed cos i can't even post a normal post, no url links in it
also i'm not spamming, i was trying to post but it kept showing errors, so maybe my posts actually showed up? it kept saying it didn't work 
Posts found: 5