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)
-   -   Search (without user or words) (https://vborg.vbsupport.ru/showthread.php?t=71933)

sv1cec 11-18-2004 10:00 PM

Search (without user or words)
 
Being the admin of my forums, I always try to check all new threads (or at least I want to). Some times, I go to the site and forget to check the "New threads". Spend some time there, then either leave the computer and do other chores or whatever. When I go back a couple of hours later, there are no new threads to see.

vBulletin's search has an option, which would allow you to see all threads since various periods of time (like: since yesterday, since one week ago etc.), BUT it does not work on its own. It has to be combined with a user name or a word for which to search. If you try to just define that you want the threads since yesterday, you get an error message.

So, today I decided it was time to do something about it. After searching the code a bit, I figure it out. So, if you too want to be able to see all posts since 2 weeks ago (or whatever is allowed there), do the following:

Edit file search.php and find:

PHP Code:

if (empty($query) AND empty($searchuser) AND empty($replyless)) 

Replace that with:

PHP Code:

if (empty($query) AND empty($searchuser) AND empty($replyless) AND empty($searchdate)) 

Voila, search with only the dates you are interested in.

Rgds
-------------
John

HarryBO 11-19-2004 02:37 PM

I have make the Changes, but I see no Modifikation!

Can you post a screenshot before and after installing?

Red Blaze 11-19-2004 02:55 PM

It doesn't change anything. When you do a search for date, you use to get an error message.

Once with this minor addition installed, you can search for dates as well, right?

Andreas 11-19-2004 02:55 PM

You won't see any visual differences.
Go to the search form, select only a time period and hit search.
Now try this with and without this hack installed.

Btw: One could also use search.php?do=getdaily&days=x to get posts since the last x days

HarryBO 11-19-2004 03:26 PM

Ah thx! Now I´ve checked this little "Add On"

sv1cec 11-19-2004 03:47 PM

That's correct, you would not see any changes, it just allows you to search with the period only, without having to enter a word or a user name.

That's all it does, but for me, it was very useful, so I thought I would release it here.

Rgds

alkatraz 11-19-2004 07:36 PM

great idea, its always a pain when you have 2 seconds to check your site, dont have enough time to read every post, and then basicaly lose track of all those posts!

dndog 11-19-2004 07:50 PM

Quote:

Originally Posted by KirbyDE
Btw: One could also use search.php?do=getdaily&days=x to get posts since the last x days

You beat me to sayin it.

-dndog

ecarabin 11-19-2004 08:32 PM

Small change, but really useful.

Thanx !!

kall 11-20-2004 04:50 AM

It's actually been in Beta Releases for aaages.

https://vborg.vbsupport.ru/showthrea...ht=search+date

Wonder why the original author didn't release it.


All times are GMT. The time now is 04:13 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.01011 seconds
  • Memory Usage 1,737KB
  • 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_php_printable
  • (1)bbcode_quote_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