vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   View posts in last [x] hours (https://vborg.vbsupport.ru/showthread.php?t=66089)

Reef 06-12-2004 02:14 AM

View posts in last [x] hours
 
1 Attachment(s)
My last board was PHPbb and this is one mod that 'everyone' misses since we have switched to VB3

This is excellent for members who login from different computers or locations throughout the day and, would like to go back to to a certain period of time when they get home.

Please see the screenshot for a better idea of what I mean.

This will be a very useful mod to many people and I'm sure greatly appreciated by more than just myself.

Thanks to whoever will give it a try

all-the-vb 06-12-2004 05:05 AM

you want view posts in last [x] horus in forumdisplay or in search ?

Reef 06-12-2004 09:35 AM

forumdisplay would be most convienient but, it really wouldn't matter it's located

thanks

eoc_Jason 06-12-2004 03:42 PM

1 Attachment(s)
Why don't you just modify the search template and add more time frames to this dropdown box?

Reef 06-12-2004 03:51 PM

That is just an option to modify a normal keyword search which is not what I need.

What I am requesting functions like the 'new posts' feature.. (no need for a search term, it will locate all board posts in the last selected hours)

all-the-vb 06-13-2004 08:03 PM

open (FORUMDISPLAY) templates:

find:
Code:

<select name="daysprune" style="width:125px">
after that add:
Code:

<option value="900">15 min</option>
<option value="1800">30 min</option>
<option value="2700">45 min</option>
<option value="3600">1 Hours</option>
<option value="7200">2 Hours</option>
<option value="21600">6 Hours</option>
<option value="43200">12 Hours</option>


open forumdisplay.php

find:
PHP Code:

        $datecut '';
        
$show['noposts'] = true;
    } 

after that add:

PHP Code:

$all_the_vb = array(900,1800,2700,3600,7200,21600,43200);

if(
in_array ($daysprune,$all_the_vb))
    {
        
$datecut "AND lastpost >= " . (TIMENOW - ($daysprune));
        
$show['noposts'] = false;


:rolleyes:

Reef 06-14-2004 12:23 AM

1 Attachment(s)
Thanks for helping out so fast with this all-the-vb

Works very well, Nice Job :up:

all-the-vb 06-14-2004 01:42 PM

Reef
you'r welcome :)

trevelyn1015 12-15-2004 06:38 AM

1 Attachment(s)
is there a way to get something like this on the "new posts" page? that will cover all forums?

here is an example of what would be perfect, but it is on a snitz forum:
www.generation-edge.com

maybe something to fit in around this area:

trevelyn1015 12-16-2004 04:26 PM

none of you super capable coders can come up with a "view posts since x amount of time" that displays on the "new posts" page ;)??????????


All times are GMT. The time now is 01:46 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01056 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete