+ Reply to Thread
Results 1 to 14 of 14

Thread: View all posts, last n days?

  1. #1

    View all posts, last n days?

    How do I view all posts in the last n days?

    I have a number of users who come in and read only a portion of the new messages, clearing their cookie timeout in the process. They then want to read all the messages they have missed - but there does not appear to be any good way to do that.

    Is there some way to see all the new posts in a given time window?

    -t

  2. #2
    Former vBulletin Developer Mike Sullivan will become famous soon enough Mike Sullivan's Avatar
    Join Date
    Apr 2000
    Location
    Regexia
    Age
    26
    Posts
    13,374
    Blog Entries
    7
    I don't think there is at this time. Although if you modify this line in search.php:

    $datesql=" AND thread.lastpost>=".(time()-24*60*60);

    You could have it so it takes variable time "limits":

    $dayscount = intval($dayscount);
    if (!$dayscount) {
    $dayscount = 1;
    }
    $datesql=" AND thread.lastpost>=".(time()-24*60*60*$dayscount);
    --Mike "Ed" Sullivan
    Former vBulletin Developer

    Twitter | Regexia (personal)

  3. #3
    Thanks Ed.

    The problem with using the search function though as supplied is you have to provide a search term as well - and it has to meet the minimum length requirements.

    It appears that what I really need is a "Show all posts" in a date range function - or something on the search page that allows you to include all posts without either a search term or a username term.

    I'll poke around with this one and see what feels right.

    -t

  4. #4
    Senior Member tubedogg has disabled reputation tubedogg's Avatar
    Join Date
    Feb 2001
    Location
    Medina, OH
    Age
    28
    Posts
    13,647
    Take a look at the function that gets all posts from the last 24 hours. That doesn't require a word or username.

  5. #5
    Former vBulletin Developer Mike Sullivan will become famous soon enough Mike Sullivan's Avatar
    Join Date
    Apr 2000
    Location
    Regexia
    Age
    26
    Posts
    13,374
    Blog Entries
    7
    The only instance of that code is the "getdaily" action, which doesn't need a search word like Kevin said.
    --Mike "Ed" Sullivan
    Former vBulletin Developer

    Twitter | Regexia (personal)

  6. #6
    Senior Member Marc Smith is on a distinguished road Marc Smith's Avatar
    Join Date
    Aug 2001
    Location
    Southern Ohio
    Age
    59
    Posts
    515
    Originally posted by tubedogg

    Take a look at the function that gets all posts from the last 24 hours. That doesn't require a word or username.
    Please explain. I'm here doing a search because most of my users log in from work, get to read a few messages and then have some work to do or get called away for 1 reason or another, and then come back 45 minutes later and - no way to see what posts are new. As was pointed out earlier, the Search feature requires a key word - which several of my users pointed out to me.

    I would like some way to be able to ask for all 'new' posts since "...1 day ago, 2 days ago,..." etc.

    Even better would be a "Show me all posts I have not yet read from the last 'X' days". Not just NEW posts, but UNREAD posts.

    I have seen this as an issue since first setting up WWWBoard in 1996-7. There was the same issue in UltimateBB. The issue is now in my 'User Complaints' box for vBulletin. I have to admit - I myself would really love a feature like that.

    I also think that would bring cpu overhead down - maybe not - but instead of people wandering about trying to figure out what's new by dates and such, a streight forward 'Show me what I missed' would be very well received.

    Any ideas appreciated.

  7. #7
    Senior Member Tolitz has disabled reputation Tolitz's Avatar
    Join Date
    Dec 2000
    Location
    Los Angeles, CA
    Age
    36
    Posts
    1,371
    *shrug* I just provide a link to both the "getnew" and "getdaily" at the top of my forums via the forumhome template, and name them "New Posts" and "Latest Topics" respectively ... no hacking involved...
    OPEN TECH SUPPORT
    "Tech is our middle name!"

  8. #8
    This doesn't help with the "show me what I have not read" part, but one helpful URL for your forums might be:

    http://yourforums/search.php?s=&action=getdaily

    This will show you everything posted in the last 24 hours I believe.

    -t

  9. #9
    Senior Member Marc Smith is on a distinguished road Marc Smith's Avatar
    Join Date
    Aug 2001
    Location
    Southern Ohio
    Age
    59
    Posts
    515
    Originally posted by thewitt

    This doesn't help with the "show me what I have not read" part, but one helpful URL for your forums might be:

    http://yourforums/search.php?s=&action=getdaily

    This will show you everything posted in the last 24 hours I believe.

    -t
    I'll put that in tonight. I wasn't aware of that 'action' aspect of search.php I also found this: http://www.vbulletin.com/forum/showt...threadid=23338

  10. #10
    Senior Member Marc Smith is on a distinguished road Marc Smith's Avatar
    Join Date
    Aug 2001
    Location
    Southern Ohio
    Age
    59
    Posts
    515
    Anyone know if there is a way to make it so that if someone subscribes to a forum they'll get an e-mail each time someone posts or starts a new thread like a moderator does for that forum?

  11. #11
    Go over to vBulletin.org and look at the hacks. There are a couple different options over there.

    -t

  12. #12
    I came over to the board this morning to post a question about the View New Posts default link at the top of my boards homepage. What determines what a "new post" is for this link? Is it a post that was made within a certain number of hours ago? Can I change the number of hours (or days) required to qualify as a new post?

    I was going to start a new thread about this then I saw some of the info in this thread applied to my situation.


    Regarding:

    Originally posted by Tolitz
    *shrug* I just provide a link to both the "getnew" and "getdaily" at the top of my forums via the forumhome template, and name them "New Posts" and "Latest Topics" respectively ... no hacking involved...


    And:

    Originally posted by thewitt
    This doesn't help with the "show me what I have not read" part, but one
    helpful URL for your forums might be:
    http://yourforums/search.php?s=&action=getdaily
    This will show you everything posted in the last 24 hours I believe.
    Could someone here confirm the definition of these 2 links (getnew & getdaily). Does the getdaily link get all posts that have been posted in the last 24 hours REGARDLESS of if the user clicking on the link has visited the board within the last 24 hours?


    Also what does the getnew link get? What defines "new" for this link? Thanks for any help about this.
    -=Xube ®
    ...it's just technology

  13. #13
    Senior Member Marc Smith is on a distinguished road Marc Smith's Avatar
    Join Date
    Aug 2001
    Location
    Southern Ohio
    Age
    59
    Posts
    515
    Getnew - As I understand it it is to get a listing of all messages since your last visit. Your last visit time and date is registered in the database. This 'last visit' time and date is updated every time you go through a link and keep doing stuff on the boards.

    However - say someone signs on in the AM and only gets to read part of the 'new posts since last visit' and then has to go off and do something. There is a Cookie Timeout time you can define in the general options in the admin control panel. I set mine for 20 minutes. As long as a user does something every 19 minutes the 'New Posts' stay as New Posts.

    But the user doesn't get to read all the 'new posts and comes back 3 hours later. The cookie has timed out so Getnew will only fetch messages/posts posted since your last visit - which was 3 hours ago according to the database record.

    Getdaily - This fetches a listing of all threads with 'new' posts in all forums from the last 24 hours (literally).

    Now - that said, I'm pretty new to vBulletin so these are my assumptions. I'm sure one of the moderators will correct me where I'm wrong and/or explain in more detail. I'm still figuring a lot of this all out myself.
    Last edited by Marc Smith; Tue 13th Nov '01 at 12:27pm.

  14. #14

+ Reply to Thread

Similar Threads

  1. View the last 45 days-Pages not coming up
    By cindyd in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 9
    Last Post: Fri 11th Jul '03, 1:13pm
  2. View post from last x days
    By Laureen in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 2
    Last Post: Sun 1st Dec '02, 8:02am
  3. How do I set PM view interval to 10 days
    By Pilot in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 4
    Last Post: Thu 19th Jul '01, 2:10am
  4. Which template is the View Last days
    By conan in forum vBulletin Templates, Graphics & Styles
    Replies: 3
    Last Post: Thu 28th Dec '00, 2:45am
  5. If no posts in X amount of Days show "No posts in x days"
    By VirtueTech in forum vBulletin 1.1.x Suggestions and Feedback
    Replies: 3
    Last Post: Fri 16th Jun '00, 8:34am

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