Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Search For All Posts From The Last X Days Details »»
Search For All Posts From The Last X Days
Version: , by MW[MWGN] MW[MWGN] is offline
Developer Last Online: Jan 2003 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-21-2002 Last Update: Never Installs: 0
 
No support by the author.

]I am not sure if there's a hack which does that, but I did a brief look over the forums and don't seem to see any hack which does this... but if this hack already exists, moderators, please delete this thread

What is it?
It adds a search field into your forum homepage (or anywhere else) where you can input a number, which is the number of days, then the results will show all the posts from that number of days.

Notes
It uses the "getdaily" action in search.php, so the normal one would not work anymore (the normal one just search for all the posts today). If you want to place the search field on somewhere else other than in the forum homepage, then put the code at the bottom of this readme to wherever you want, e.g. into the "forumdisplay" template.

Screenshot...

Next post is the installation

Download Now

File Type: (21.4 KB, 237 views)

Show Your Support

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

Comments
  #2  
Old 03-21-2002, 02:37 PM
MW[MWGN] MW[MWGN] is offline
 
Join Date: Nov 2001
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

]And the installation...

By the way, if you want to see a demo, just go to www.mwgaming.net and it's at the top of the page
Attached Files
File Type: (21.4 KB, 207 views)
Reply With Quote
  #3  
Old 03-21-2002, 02:40 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you just use name="days" in the form in the template, there's no hacking needed.
Reply With Quote
  #4  
Old 03-21-2002, 02:44 PM
MW[MWGN] MW[MWGN] is offline
 
Join Date: Nov 2001
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

]Oh I didnt know that
Reply With Quote
  #5  
Old 04-08-2002, 08:33 PM
indiamike's Avatar
indiamike indiamike is offline
 
Join Date: Oct 2001
Location: New Jersey, India
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If anyone is interested in this, not sure...but I took this hack and created a whole separate page for it. The reason was I didn't want to lose the "get daily" feature. So I made a page going off from my search page that will enable the user to use this hack.

It's real rough looking and I haven't finished all of it yet (missing navbits) but if anyone is interested take a look at my search page on my site and click on Day Search which will bring up this option.

Here is the Link Day Search


By doing it this way I kept my regular search, my get daily search, and now have the ability to search by xx number of days. It works really sweet and I have wanted to add this for a long time.

If anyone is interested in how I did this please post here and I will write out the instructions.


Mike
Reply With Quote
  #6  
Old 04-25-2002, 10:03 PM
Blue91's Avatar
Blue91 Blue91 is offline
 
Join Date: Apr 2002
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I followed the directions, and while it shows up on the main page, the actual search doesn't work. Gives me a HTTP 404.

Any ideas why?

Regards,

Fred
Reply With Quote
  #7  
Old 08-04-2002, 11:51 PM
brauner brauner is offline
 
Join Date: Jul 2002
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bekomme den selben Fehler angezeigt.
Reply With Quote
  #8  
Old 08-26-2002, 06:22 PM
BrAinZ's Avatar
BrAinZ BrAinZ is offline
 
Join Date: Dec 2001
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could this not be ammended to give an option to search for all posts since the last day the user logged in?
Reply With Quote
  #9  
Old 10-15-2002, 06:05 PM
BrAinZ's Avatar
BrAinZ BrAinZ is offline
 
Join Date: Dec 2001
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

From this it looks like it would be easy to add separate links to select how many days posts you would like to see, (in a menu sort of system).

Like...:

Clicke HERE for TODAYS posts.
Click HERE for posts in the last 24 Hours
Click HERE for posts in the last 7 days
etc.

What would be the correct format to create these links?
Reply With Quote
  #10  
Old 10-29-2002, 03:38 PM
CityHunter CityHunter is offline
 
Join Date: Oct 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Blue91
I followed the directions, and while it shows up on the main page, the actual search doesn't work. Gives me a HTTP 404.

Any ideas why?
Yes, take this line:
<form action="../search.php" method="get" name="name">

and change it to this line:
<form action="search.php" method="get" name="name">
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 12:45 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07416 seconds
  • Memory Usage 2,313KB
  • Queries Executed 24 (?)
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
  • (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
  • (2)postbit_attachment
  • (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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete