![]() |
Search For All Posts From The Last X Days
1 Attachment(s)
]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 :) |
1 Attachment(s)
]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 :) |
If you just use name="days" in the form in the template, there's no hacking needed.
|
]Oh I didnt know that :o
|
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 |
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 |
Bekomme den selben Fehler angezeigt.
|
Could this not be ammended to give an option to search for all posts since the last day the user logged in?
|
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? |
Quote:
<form action="../search.php" method="get" name="name"> and change it to this line: <form action="search.php" method="get" name="name"> |
All times are GMT. The time now is 12:27 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|