1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Pagenav Limit

Discussion in 'XenForo Questions and Support' started by PompeyScot, Jan 29, 2011.

  1. PompeyScot

    PompeyScot Member

    Hi guys,

    I'm probably missing something verrrry simple, but I can't find the answer offhand. The pagenavs (number of pages of threads at the bottom of a forum listing), can you edit it so it only goes back so many pages? For example, to have only the past year's worth of postings available for viewing?

    I feel thick as, as I said, I'm probably missing something extremely obvious [​IMG]

    Cheers.
     
  2. James

    James Well-Known Member

    I don't think that functionality is available, and it probably wouldn't be without editing the queries to check for a datestamp.

    The idea is that someone wants to view a full thread, and not have a cut-off point at X pages.

    Of course, I could be in the same boat as you and missing something extremely obvious, however... [​IMG]
     
  3. PompeyScot

    PompeyScot Member

    I don't mean actual posts thread pages, I mean the list of threads from the main forum view. Say, for example, only show pages of threads from the last year.
     
  4. James

    James Well-Known Member

    Ah, I misunderstood.

    I still don't think that's possible because the pagenav for forums is built the same way as threads. I guess the answer I'm trying to give you is "I don't think this is default functionality, feel free to suggest it"
     
  5. EQnoble

    EQnoble Well-Known Member

    Would it be possible to setup a job that moves threads from one forum to another that is set to not display publicly If a thread has not had a reply in a year? Is that even possible? I know it's random but it's kind of related.
     
  6. James

    James Well-Known Member

    Could be possible to create a new cron job I guess...
     
  7. EQnoble

    EQnoble Well-Known Member

    So in theory it should work... how much you wanna make a bet that I can break my install :)
     
    James likes this.
  8. James

    James Well-Known Member

    Not had an extensive look at the schema but you could probably set a cron query to run to check the datestamp of any threads older than 50 days in forums you specify then move them.

    The only thing you have to consider is performance, so it'd probably be something that's only ran weekly at like 3am when everyone's asleep.
     
    EQnoble likes this.
  9. EQnoble

    EQnoble Well-Known Member

    That could actually be very useful in a news section with subcatagories of "Current News & Events" and "Archives" that once a week moved all Current news to the archives....

    I may have to figure out how to do this.
     

Share This Page