Announcement

Collapse
No announcement yet.

How to display topics created in last x days?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to display topics created in last x days?

    I would like to add a link to a custom search that would display all the topics that have been created in the last day or last week.

    What I am trying to do is similar to the getdaily link that is already included in vBulletin. Getdaily link displays all the topics with new posts in the last day but I would only like to display the topics that have been started in the last day and exclude older topics.

    I found an old post describing something similar but it cannot be used to do what I want.
    http://www.vbulletin.com/forum/showthread.php?t=107955

    Any ideas how to achieve this?

  • #2
    Use a URL like this:

    http://www.yoursite.com/forum/search.php?do=getdaily&days=X

    Comment


    • #3
      Your URL returns all the topics which have received new posts in the last X days.

      I am looking for an URL which will return a list of topics that have been created (started) in the last X days.

      Comment


      • #4
        Originally posted by Tomzl View Post
        Your URL returns all the topics which have received new posts in the last X days.
        No it doesn't. It returns all threads in the last X days.

        Comment


        • #5
          Originally posted by Jake Bunce View Post
          No it doesn't. It returns all threads in the last X days.
          It returns a list of threads with new posts in the specified X period. I used the URL http://www.vbulletin.com/forum/searc...etdaily&days=1 and received a number of threads which were created a long time ago but had a new post within the last day.

          For example:
          http://www.vbulletin.com/forum/showthread.php?t=309479

          This thread should not be among the results since it was created on May 29th, 2009. You can check for yourself. Follow the search link and choose one of the threads with more than 10 replies and you will see it was created more than 1 day ago.

          Comment


          • #6
            Oh. Only threads created within X days. I don't know of a URL for that. But you can at least sort the results by thread start date:

            http://www.vbulletin.com/forum/searc...adstart&days=1

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...
            X