Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Search (without user or words) Details »»
Search (without user or words)
Version: 1.00, by sv1cec sv1cec is offline
Developer Last Online: Mar 2022 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 11-18-2004 Last Update: Never Installs: 5
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-19-2004, 02:37 PM
HarryBO HarryBO is offline
 
Join Date: Jan 2003
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Can you post a screenshot before and after installing?
Reply With Quote
  #3  
Old 11-19-2004, 02:55 PM
Red Blaze's Avatar
Red Blaze Red Blaze is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 493
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 11-19-2004, 02:55 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 11-19-2004, 03:26 PM
HarryBO HarryBO is offline
 
Join Date: Jan 2003
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah thx! Now I´ve checked this little "Add On"
Reply With Quote
  #6  
Old 11-19-2004, 03:47 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 11-19-2004, 07:36 PM
alkatraz alkatraz is offline
 
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 384
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #8  
Old 11-19-2004, 07:50 PM
dndog dndog is offline
 
Join Date: Apr 2004
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 11-19-2004, 08:32 PM
ecarabin ecarabin is offline
 
Join Date: Oct 2004
Location: France
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Small change, but really useful.

Thanx !!
Reply With Quote
  #10  
Old 11-20-2004, 04:50 AM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:53 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.05685 seconds
  • Memory Usage 2,298KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete