Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2004
    Location
    Webby Forums!
    Posts
    1,879
    Tokens
    0

    Latest Awards:

    Default Cutenews Pagination

    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..
    HTML Code:
    <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?


    Chilimagik.net // Reviews, Band Biographies, News, Pics + Loads More!!
    [Thybag.co.uk - Vive la revolutione]

  2. #2
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    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 Code:
    <?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

  3. #3
    Join Date
    Jul 2004
    Location
    Webby Forums!
    Posts
    1,879
    Tokens
    0

    Latest Awards:

    Default

    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


    Chilimagik.net // Reviews, Band Biographies, News, Pics + Loads More!!
    [Thybag.co.uk - Vive la revolutione]

  4. #4
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    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 :/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •