Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Pagination?

  • 16-02-2012 8:58pm
    #1
    Registered Users Posts: 142 ✭✭


    Hi there,

    i recently redid my layout, and i use CuteNews to update posts. this time decided to add a Pagination to the bottom of the pages. At first i used this code and it looks great, fits the layout and isn't messy (it's at the very bottom of my webpage) :
    [PHP]<ul id="page">
    <li class="previous-off">PREVIOUS PAGE</li>
    <li class="active">1</li>
    <li><a href="?page=2">2</a></li>
    <li><a href="?page=3">3</a></li>
    <li><a href="?page=4">4</a></li>
    <li><a href="?page=5">5</a></li>
    <li><a href="?page=6">6</a></li>
    <li><a href="?page=7">7</a></li>
    <li class="next"><a href="?page=2">NEXT PAGE</a></li>
    </ul> [/PHP]
    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?

    Then today I messed around a bit and now i have a different code, which i use in the CuteNews template, but the active number keeps going to the wrong side..
    [PHP]<div style="width:400; margin-bottom:30px;">
    <div>
    <ul id="page">
    <align="center">
    <li class="previous-off">[prev-link]Previous Page[/prev-link]</li> <br>
    <li class="active">{pages}</li> <br>
    <li class="next">[next-link]Next Page[/next-link]</li><br>
    </align>
    </ul>
    </div>
    <p></p>[/PHP]
    I have left both codes up, and if you view the site you'll see (at bottom of page), that the topper version is a bit messier, this is the code in CuteNews Template; and the bottom version is the one in my div.inc file, which doesn't actually link to the next page.

    help is appreciated!


    Thanks, Nirina
    http://killer-fashion.tk/


Comments

Advertisement