vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Get New Posts From Last X Hours, Minutes or Seconds (https://vborg.vbsupport.ru/showthread.php?t=73077)

amykhar 12-18-2004 10:00 PM

Get New Posts From Last X Hours, Minutes or Seconds
 
This one was requested here:

https://vborg.vbsupport.ru/showthread.php?t=66089

It works in versions 3.0.5, 3.0.6 and 3.0.7. I am reasonably sure it works in earlier versions as well.

What it allows you to do is to get the posts made in the past X number of hours. You set up the links to provide the intervals you desire.

This one is very easy to install, and I have been running it for a while now. It should work just fine for you. It is in beta just to make sure everything is a-ok before newbies start installing it.

No screenshot provided because where you put the links is entirely up to you. It works very nicely with this template mod:

http://www.vbulletintemplates.com/mo...ight=new+posts

d7me4ever 12-19-2004 04:57 PM

thanx

nice job

trevelyn1015 12-24-2004 06:19 AM

hmmm...

amykhar 01-06-2005 01:17 PM

If you want it for minutes or seconds, you can use the code in this post:

https://vborg.vbsupport.ru/showpost....4&postcount=17

amykhar 01-07-2005 12:42 PM

This hack has been checked and installs and works fine in the latest version 3.0.5

Amy

BaconDelight 02-16-2005 01:55 AM

Great little hack, installed and working.

I created a little form on my advanced search page so that users can input any number of hours (up to 999) and search. I located it on the bottom left in the "Search Options" column. Screenshot and instructions (it only requires editing the search_forum template) are attached.

amykhar 02-16-2005 01:55 AM

cool :) Thanks for sharing your code.

agiacosa 02-19-2005 10:17 AM

Bacon,
When I implement your hack, it works, but the rest of the advanced search function doesn't. Any thoughts?

BaconDelight 02-21-2005 08:39 PM

Oops. Turns out you can't nest forms like that. So to keep that field located where I had it, I'd have to modify search.php more than I care to at the moment. So, because I'm lazy, I've just relocated it outside the main form on the page.

I've attached the new instructions. Basically, don't do step one of my original instructions (or, if you've already done it, undo it by adding style="margin:0px" back into the fieldset tag), move the code from step 2 from where I originally had it to after the </form> tag, above "$footer" and wrap it in <table> and <td> tags to format it to the correct width.

That will have it positioned at the bottom left of the page, below the "save search prefs" drop down, above the time disply. You may need to change font colors as I've done in the attached screeshot. Let me know if you need help with that.

agiacosa 02-26-2005 10:24 AM

Thank you!


All times are GMT. The time now is 07:01 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.01144 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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