Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Pagination?

  • 16-02-2012 08:58PM
    #1
    Registered Users, Registered Users 2 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