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)

Bulent Tekcan 02-26-2005 10:34 PM

Can I put the minute ? 15,30 or 45.....

amykhar 02-27-2005 01:39 AM

Yes. I did the code for minutes as well.

As mentioned in post #4 of this thread, you can find that code here:
https://vborg.vbsupport.ru/showpost....4&postcount=17

amykhar 03-09-2005 01:47 AM

I have updated this hack to include the contents of post 4, which allows you to search for minutes or seconds as well as hours.

I have also provided a link to a template mod that works very well with this hack. You can see it in action on my forums at http://www.eaforums.com/forums/

agiacosa 03-30-2005 01:03 PM

Quote:

Originally Posted by BaconDelight
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.

Hi Baconlight,

Your mod seems to be limited to "getdaily" or just the last 24 hours. Not 999 hours. Is that right?

BaconDelight 03-30-2005 02:37 PM

Nope, it will search as far back as you put in. My mod really just takes whatever number you give and plugs it into the search url that amykhar gives. As written, it's limited to 999 hours becaue I've only allowed for a 3 digit input. Otherwise, amykhar's hack is written to accept any number of hours.

agiacosa 04-01-2005 07:56 AM

Bacon,

Please try it here: http://www.aquaticplantcentral.com/forumapc/search.php?

It only returns the last 24 hours no matter what you put in. Perhaps it has something to do with this in your mod?

Code:

<input type=hidden name=do value=getdaily>

BaconDelight 04-01-2005 01:18 PM

No, getdaily is just the function call in search.php. Notice, it appears in amykhar's installation instructions.

Do you perhaps have you forums default thead display cutoff set to 1 day?

agiacosa 04-01-2005 04:44 PM

Quote:

Originally Posted by BaconDelight
No, getdaily is just the function call in search.php. Notice, it appears in amykhar's installation instructions.

Do you perhaps have you forums default thead display cutoff set to 1 day?

Where would I check that?

BaconDelight 04-01-2005 05:12 PM

AdminCP, I'd be more specific, but my host is down right now. I'll let you know when I can get back into it.

BaconDelight 04-01-2005 07:55 PM

Nope, that seems to be a red herring. That's a forum setting, not an overall board setting, so it shouldn't be affecting it. And it defaults to 1 month.

Just out of curiosity, if you put in LESS than 24, does it give you the right results, or still 24?


All times are GMT. The time now is 04:07 AM.

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.01059 seconds
  • Memory Usage 1,730KB
  • 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)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (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