vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Add a Separate Page to your Forum to search Last XX Days (https://vborg.vbsupport.ru/showthread.php?t=37946)

indiamike 04-26-2002 10:00 PM

Add a Separate Page to your Forum to search Last XX Days
 
This is a simple hack.
What is does is adds a new page to your forum to allow the user to view posts by the last xx number of days. What's different in this hack is that we don't replace the "get daily function" (which has been the big hurdle with this type of hack).

This only adds a new php page that can be linked to from anywhere in the forum to search by the last xx days.

Very simple to do and install time is about 10 minutes and should work with all later versions of vb.

Here is a working online example -Day Search .

In my version it just creates a text link to the day search page the we create (from instructions) where the user can search from the last xx days. Simple and easy enough.

Credits go to c-pr0mpt and the search days hack by Vincent "MW" Chan who created two hacks which I modified into one to suit my needs.

***pretty easy hack just requires some php pages to be changed and a few template changes****

Mike

ps...instructions are in html format

please note- this hack has been updated on May 4, 2003 to include suggestions in the threads below

Velocd 04-27-2002 06:07 PM

*confused*

Picture, demo, or anything? (I think pictures/demo's should be required with every new hack)

Lesane 04-27-2002 06:21 PM

Look at his online demo, what more do you want?

Great hack indiamike, i will install this one later. Thanks.

inetd 04-27-2002 06:27 PM

good hack ;)
download allready, insatall one later ;)

indiamike 04-27-2002 07:03 PM

Quote:

Originally posted by Velocd
*confused*

Picture, demo, or anything? (I think pictures/demo's should be required with every new hack)

A picture speaks a thousand words but having a demo that works and someone can check it out is also good.

So there is no confusion :confused:

Here is the link to my search page where I added the link to the day search
Search Page

Here is the page that the hack creates to search by xx days
Day Search

John 04-27-2002 07:23 PM

I have to say, this looks like a really good hack - sometimes "View New Posts" can can a pain because it times out and resets - I'll install later on :)

Smoothie 04-27-2002 08:49 PM

I just downloaded it and i am about to install, but one quick question. When you search by x number of days, does it not show private forums? Wanted to find out before i added this.

indiamike 04-27-2002 09:14 PM

All this hack basically does is copy your present search.php file to a new php file and change one line to show by the amount by days instead of getting new posts. So the answer would be if your present search function doesn't show private forums then your new day search wouldn't show them either (and vice versa).

In reality the whole hack is a no-brainer hack and I am quite surprised that no one thought of doing this before. :ermm:

Mike

Velocd 04-27-2002 10:03 PM

oh, mybad I must have skipped the link to the demo in your first post when reading. ok, now I see. very nice :D

Smoothie 04-28-2002 04:11 PM

Yep. Installed and loving it. Thanks for posting this hack.


All times are GMT. The time now is 03:35 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.01088 seconds
  • Memory Usage 1,729KB
  • 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_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