Results 1 to 4 of 4

Thread: Forum Threads

  1. #1
    Join Date
    Feb 2006
    Posts
    158
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Forum Threads

    How do you make it so that when creating your threads table in your forums the threads shown only goes up to say 25 or something, then the next threads are shown on a separate page?

    Sorry if thats not very clear.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    I assume you're talking about pagination. That depends entirely on the forum script you're using, whether it's an in-house script or a commerical one like vBulletin. Either way, it's hard to give advise on something as broad as this.

  3. #3
    Join Date
    Feb 2006
    Posts
    158
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I don't know the term for what i'm looking for, it probably is Pagination. But i found a great tutorial that has solved my problem.

    http://www.php-mysql-tutorial.com/php-mysql-paging.php

    I found a link to that site in another one of the threads in these forums.

    Thanks.

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    You simply specify a page number to the script, and a number of posts per page in the script.
    Then it grabs from (page# * posts/page)-25 through that +25.
    Those posts are shown on the page.
    Supplying a different number would give:
    page3*25 posts/page-25 through that+25, so... 50-75
    In other words, just specify which range by "page" and that's that.
    Sorry if this is confusing. It's just math, really, though.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

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