PDA

View Full Version : Cutenews Pagination



splintercell!
28-03-2005, 03:37 PM
Ok like on habbox and basically every other site using cutenews you see at the bottom of the news.. <- Back 1 2 3 4 Next-> I know the code is..

<p align="center">[prev-link]<< Previous[/prev-link] {pages} [next-link]Next >>[/next-link]</p>
but where do I add this ive tried in the data/default.tpl where you edit the actual layout. Any ideas?

Mentor
28-03-2005, 03:49 PM
its in cutenews by deafult, what your displaying is just the html file, which is then prased by cutnews and the real links added.

It ads automatcily, if you set a maxium amount of data to show per page



<?PHP
$number = "5";
include("path/to/show_news.php");
?>


set teh max per page to 5, if there more than 5, it adds the pagations.

i think tahts what u were askeing

splintercell!
28-03-2005, 03:53 PM
you sure because thats what im doing but using one cutenews page and spliting it into categories the limit was 5 and I had 5 articles and added one and the other just dissapeared :S

Mentor
28-03-2005, 04:18 PM
so your saying you have multiple cutenews catagorys ion the same page?

if so make sure you have given an old variable a new value or stoped it

eg

if u had this

<?PHP
$number = "5";
include("path/to/show_news.php");
?>

and then

<?PHP

include("path/to/show_news.php");
?>

the $number value would be for the next one to. and it would print 5 topics / articles :/

Want to hide these adverts? Register an account for free!