Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Advanced Search (search by exact date range) Details »
Advanced Search (search by exact date range)
Mod Version: 2.00, by why-not (Member) why-not is offline
Developer Last Online: Jun 2007 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.3 Rating: (0 vote - 0 average) Installs: 4
Released: 21 Jan 2005 Last Update: Never Downloads: 9
Not Supported  

This is a very simple but powerful mod that allows you to add the option to allow users to
search by (date range) instead of just using the default limited vB options! This allows for
much better control of search results, allowing for exact searches by date range!


INSTALLER SUPPORTS

supports : vB 3.0.3, 3.0.4, 3.0.5, 3.0.6
language : English (US)
OS support: Linux/Unix/Windows (because of line endings)


The installer....

1. The installer will (install and or uninstall) this mod, with install and uninstall tester!

2. What it will install...

A. Installs the Admin Panel (Advance Date Option)

This allows for the administrator to configure the date range format from the Admin Panel! (dynamic control)

1/2/3 -> mm/dd/yyyy
3.2.1 -> yyyy.dd.mm
2-1-3 -> dd-mm-yyyy

B. Installs a full error control handler...

This gives members helpful information when a search error is encounted!

C. Auto loads the language phrases!

The installer checks the datastore and language groups, making sure all data to run the Advance Search
is present, if not it updates the caches so the language phrases are auto loaded!

D. Installs a (smart search date relevance control)

The relevance control, is designed to allow each member to search for results based on their own time zone!
The control also uses a cache system, so searches can be loaded into the exsiting vB search table, but are
indexed by the date and not by the standard vB search control! This allows for each search to be more unique
in regards to the query matching the starting and ending date range!

E. Add the option to the users search pref control

NOTES:

Each directory contains a read_me files, giving detailed information about that install process!

Other Notes!

Time to install : 2 minutes!
Test Installer : YES
Test Uninstaller: YES
Auto Installer : YES
Auto Uninstaller: YES
DB CHANGES : NONE

SCRIPT CHANGES : 1 script 'search.php' -> adds (1) main function 'q_builder()', and replaces and adds
(8) sections of code within the rest of 'search.php'!

The template 'search_forums' is the only thing you must install via the Admin Panel!

Images showing the control are below!

Any questions, just ask! I have been overseas for a while, but I am back now, so I will always
be around to help anyone needing help with installing this!


Here is the step by step install, for the template and the search.php script! Also a simple DB installer for the admin panel and language phrases!


EDITING and INSTALLING THE TEMPLATE


go to your Admin Panel

left nav -> left click -> Styles & Templates

scroll down to -> Search in Templates -> left click

right window -> select box -> Search in Style

select the style to add this Advanced Search Option to...

in the -> tex box -> Search for Text

enter -> search_forums

check the -> radio button -> Search Titles Only -> check -> yes

click the submit button -> Find

Style Manager Opens!


left click on the template -> search_forums

The template should now be open!

Notes:

Because you may have edited this template, we will search, add and replace by finding code patterns that we will add the Advanced Search Option before or after the code pattern that we are looking for...

1. ADD

FIND THIS


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


REPLACE WITH


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


FIND THIS


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


REPLACE WITH


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


FIND THIS


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


REPLACE WITH


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



All done with the template edits!

click the 'Save' button to save the changes!

Go back to the Admin Panel!



Now lets install the changes to 'search.php'...

NOTE: Make a backup of 'search.php', NOW!!!


EDITING search.php


Notes: Each Find This contains line numbers for REF!


open -> 'vB install folder/search.php'


FIND THIS Starting @ -> line 64


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

REPLACE WITH


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


FIND THIS Starting @ -> line 139


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

REPLACE WITH


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


FIND THIS Starting @ -> line 163


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

REPLACE WITH


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


FIND THIS @ -> line 188


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

REPLACE WITH


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


FIND THIS Starting @ -> line 198


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

REPLACE WITH


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


FIND THIS @ -> line 395


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

REPLACE WITH


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


FIND THIS Starting @ -> line 1101


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

REPLACE WITH


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


FIND THIS Starting @ -> line 1137


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

REPLACE WITH


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


FIND THIS Starting @ -> line 2339


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

REPLACE WITH


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


FIND THIS @ -> line 2403 ( the end of the 'search'php' file!


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

REPLACE WITH


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


ALL DONE with 'search.php'....

Save changes close 'search.php'


Now copy this script and place it in the vB install directory!

Then run it from your browser!

http://www.site.com/install.php

After delete this script!


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


After the install is done, you will find the Advance Search Control in the Admin Panel!


vBulletin Options >> Date and Time Options >> at the bottom!


You now have the 'Advanced Search By Date Range', installed on your forum!


C, ya...

Sonia

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	admin.png
Views:	74
Size:	37.9 KB
ID:	23266   Click image for larger version

Name:	help.png
Views:	58
Size:	10.1 KB
ID:	23267   Click image for larger version

Name:	option.png
Views:	99
Size:	7.6 KB
ID:	23268  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Advanced Search (search by exact date range) why-not vBulletin 3.0 Beta Releases 0 17 Jan 2005 22:50

Comments
  #2  
Old 21 Jan 2005, 22:10
fridayweb's Avatar
fridayweb fridayweb is offline
 
Join Date: Jun 2002
I tried running this in my root directory and got this:

"MODIFICATION REPORT

INSTALL ERROR: can not READ OR WRITE to ./search.php install has failed

The above is the result of your last action, if any error is found, please report to me on the forum!"

I know you mentioned that in your instructions, but how would I go about changing the permissions of the install file?

Instead of an automatic install file, it would be more helpful to me to have it go through the steps like other install hacks have done.
Reply With Quote
  #3  
Old 21 Jan 2005, 22:29
nexialys
Guest
 
@fridayweb... just chmod the search.php file to 777...

btw, this installer is a real pain dear Sonya... this would be more efficient to have a text documentation with the steps of changes... because it's not working... if we even had a luck to hack our search.php file, the hack simply scrap everything, and this is not a big deal!

i'll try to recover the bug...

EDIT: found the problem here... when the new function was added in search.php, the installed deleted the last " } " on my file, so this messed out the entire file!

Last edited by nexialys; 21 Jan 2005 at 22:31.
Reply With Quote
  #4  
Old 21 Jan 2005, 22:42
why-not why-not is offline
 
Join Date: Feb 2004
Hi


Could you send me the search file after doing the install, when you get the error! I think it because, I do a -2 on the last change, I am going to my Unix server to test this now!

Send to [email protected]

I will also post a step by step in a few minutes! Fo those that want to do it by hand!


I just ran the install and uninstall on 7 different servers, 2 Unix, 3 Linux, 2 windows, and I don't get any errors running the install or uninstall!

Let me finish writing the step by step version!


C, ya...

Sonia

Last edited by why-not; 21 Jan 2005 at 22:51.
Reply With Quote
  #5  
Old 21 Jan 2005, 22:56
nexialys
Guest
 
Hi Sonya... it would be useless to send you my serach.php, as the problem is the EOF... mine was edited before!... that's all

good work though!
Reply With Quote
  #6  
Old 21 Feb 2005, 15:10
fridayweb's Avatar
fridayweb fridayweb is offline
 
Join Date: Jun 2002
Thanks for the step by step! I was able to get everything done except when it came to the very last part and the new install.php.

This is the error I got:

"Column count doesn't match value count at row 1"

Any suggestions?
Reply With Quote
  #7  
Old 03 Mar 2005, 21:42
snotek snotek is offline
 
Join Date: Mar 2005
Ok, maybe I'm missing something here...

I imported the xml per the instructions. I've installed using the installer per the instructions. The search.php shows the new options. The admincp does not show the admin menu for this mod. And if I try to search by date it will not allow it as no text was entered into the search field. (default vb option)

Amy I missing something on the install? Am I missing the point of the mod altogether?

I thought this mod will allow users to simply search by date and not have to enter any search "text" in. This is the functionality that we need. Thoughts?
Reply With Quote
  #8  
Old 03 Mar 2005, 22:00
snotek snotek is offline
 
Join Date: Mar 2005
Nevermind! I found a better one that does what I need it to and I only have to edit 1 line of code...

http://www.vbulletin.org/forum/showt...ht=search+date
Reply With Quote
  #9  
Old 04 Apr 2005, 09:33
sub_ubi sub_ubi is offline
 
Join Date: Dec 2004
This should be built into VB. Don't know why it's not.

However, got this error on install:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Edit:

Found the source of the problem. I'm using VB 3.03, patched up to 3.07.

This line:
if ($varname != 'query' AND $varname != 'searchuser')
Is not used in search.php
The code is entirely different.

Last edited by sub_ubi; 04 Apr 2005 at 10:09.
Reply With Quote
  #10  
Old 20 Oct 2005, 15:48
mooony mooony is offline
 
Join Date: Apr 2003
Hello,

You have an error in your time array:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

You will never find the month 10.

The correct code should be:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I hope this helps.

Thanks,

Ronald
Reply With Quote
  #11  
Old 23 Mar 2008, 17:29
yawsh yawsh is offline
 
Join Date: Oct 2007
Hi,
Sorry for updating a very old post.

I'm looking for this mod for vb 3.6.x

where could I find it?
Reply With Quote
  #12  
Old 24 Mar 2008, 02:43
yawsh yawsh is offline
 
Join Date: Oct 2007
anybody answer me pls ......
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 16:27.

Layout Options | Width: Wide Color: