Adaptive Quick Search

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Extensions Robot
Extensions Robot
Extensions Robot
Posts: 29367
Joined: Sat Aug 16, 2003 7:36 am

Adaptive Quick Search

Post by Extensions Robot »

Modification name: Adaptive Quick Search
Author: Forke
Modification description: This is a flexible Quick Search, that adapts its function to where the user is searching. So, in the index page, the MOD searches all forums; in a forum, the MOD searches that forum; in a topic, the MOD searches that topic; and in results, the MOD searches within results.

In other words, it merges all the different quick searches in the prosilver template into a single one. The MOD also includes instructions for subsilver2.
Modification version: 1.0.2
Tested on phpBB version: 3.0.1

Download file: Adaptive_Quick_Search_1.0.2.zip
File size: 76427 Bytes

Modification overview page: View

The phpBB Team is not responsible nor required to provide support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB Modifications Team may not be able to provide support.

-->Modification support<--
Last edited by Extensions Robot on Tue Feb 08, 2011 4:34 am, edited 5 times in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 28943
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier

Adaptive Quick Search

Post by Paul »

Modification validated/released

Notes:
Forke
Registered User
Posts: 102
Joined: Fri Feb 08, 2008 6:03 am

Adaptive Quick Search

Post by Forke »

Great news! My first validated mod :lol:

I hope you enjoy it. This MOD requires only one modification of files!

Just to clarify things: this mod replaces the quick search in the overall_header of prosilver to a more flexible quick search, that adapts its function to where the user is searching. If you are viewing the index page and you use the quick search, you'll find posts that are located in all forums; in a forum, the MOD searches that forum; in a topic, the MOD searches that topic; and in results, the MOD searches within results.

In subsilver2, I recommend putting it in the breadcrumbs replacing the timezone information, but you can keep it if you want, of course, and put the quick search box wherever you like.

As for non default templates, I guess the instructions for prosilver will fit. If not, I can take a look and help you.

Some other things:

—————————————————————

Update from 0.0.1/0.0.2:

in index.php, find and remove:

Code: Select all

'S_INDEX'            => true,
Also, you should replace the entire quick search with the new 1.0.2 code, since its optimized.

—————————————————————

If you see a border around the quick search box, try removing <fieldset> and </fieldset> from the MOD code. Or you could search for the fieldset class in the CSS and add border-width: 0;

—————————————————————
Last edited by Forke on Sat May 24, 2008 10:22 pm, edited 1 time in total.
My first validated mod!
Adaptive Quick Search
Tuxman
Registered User
Posts: 420
Joined: Sun Jun 08, 2003 6:24 pm
Location: Germany

Re: Adaptive Quick Search

Post by Tuxman »

Exactly what was missing in subSilver2.
Maybe an even better place for the search box would be below the Breadcrumbs box, obverse of the "new topic"/"reply" buttons...
[ randomly phpBBing ]
Forke
Registered User
Posts: 102
Joined: Fri Feb 08, 2008 6:03 am

Re: Adaptive Quick Search

Post by Forke »

Tuxman wrote:Exactly what was missing in subSilver2.
Maybe an even better place for the search box would be below the Breadcrumbs box, obverse of the "new topic"/"reply" buttons...
I originally developed it for subsilver2, since my forum uses that template by default. I extended it to prosilver, because I think its a better quick search than the normal one.

I only recommend to put it in the breadcrumbs because... well, because i like i there :P. But of course! You can put the quick search code wherever you like it in the overall_header.

Glad you like it!
My first validated mod!
Adaptive Quick Search
tucsondrivers
Registered User
Posts: 161
Joined: Sat Mar 10, 2007 7:57 pm
Location: toronto, ontario

Re: Adaptive Quick Search

Post by tucsondrivers »

thanks for the mod! I installed it with no problems :D
http://tucsondrivers.com -- Hyundai Tucson Forum & Community
Forke
Registered User
Posts: 102
Joined: Fri Feb 08, 2008 6:03 am

Re: Adaptive Quick Search

Post by Forke »

Tucson, glad you like it! :)

If anyone is wondering how to modify the way the quick search looks, its relatively easy. You just have to add the search-box ID to your stylesheet file.
My first validated mod!
Adaptive Quick Search
-tribe-
Registered User
Posts: 144
Joined: Thu Jan 31, 2008 4:06 pm

Re: Adaptive Quick Search

Post by -tribe- »

can this mod be used out side of the header, and put next to the "post reply" button, similar to this forum, if so where should the code go

would this require spliting each if statement up and applying them to each page, for example:

"<!-- IF S_VIEWFORUM..." would go on "viewforum_body.html"
"<!-- IF S_VIEWTOPIC.." would go on "viewtopic_body.html"

thanks tribe
Last edited by -tribe- on Thu Jun 05, 2008 4:53 pm, edited 1 time in total.
Tuxman
Registered User
Posts: 420
Joined: Sun Jun 08, 2003 6:24 pm
Location: Germany

Re: Adaptive Quick Search

Post by Tuxman »

viewtopic_body?
[ randomly phpBBing ]
-tribe-
Registered User
Posts: 144
Joined: Thu Jan 31, 2008 4:06 pm

Re: Adaptive Quick Search

Post by -tribe- »

i'll take a look because i may have just figured it out
Last edited by -tribe- on Thu Jun 05, 2008 5:18 pm, edited 2 times in total.
Forke
Registered User
Posts: 102
Joined: Fri Feb 08, 2008 6:03 am

Re: Adaptive Quick Search

Post by Forke »

tribe, that should work. If not, let me know.
My first validated mod!
Adaptive Quick Search
-tribe-
Registered User
Posts: 144
Joined: Thu Jan 31, 2008 4:06 pm

Re: Adaptive Quick Search

Post by -tribe- »

ok, just tryed it with the forum search and it appears to be working, running out of time now to do the others, so i'll have to have alook tomorrow, i'll post my changes up when i'm done for other members if they required
micsta
Registered User
Posts: 126
Joined: Tue Apr 22, 2008 11:11 am

Re: Adaptive Quick Search

Post by micsta »

Where do I find the <input value="{xxxx}"> values to edit it so it I can have it say "Quick Search..." instead of "Search..." in the search box?

Thanks.
Tuxman
Registered User
Posts: 420
Joined: Sun Jun 08, 2003 6:24 pm
Location: Germany

Re: Adaptive Quick Search

Post by Tuxman »

In your language files IIRC.
[ randomly phpBBing ]
Forke
Registered User
Posts: 102
Joined: Fri Feb 08, 2008 6:03 am

Re: Adaptive Quick Search

Post by Forke »

micsta wrote:Where do I find the <input value="{xxxx}"> values to edit it so it I can have it say "Quick Search..." instead of "Search..." in the search box?

Thanks.
In the language folder of your phpbb, in the common.php file, you have to edit these values:

'SEARCH_MINI' for the index quick search.
'SEARCH_FORUM' for the forum quick search.
'SEARCH_TOPIC' for the topic quick search.

in the search.php file, you have to edit this value:

'SEARCH_IN_RESULTS' for the results quick search.

Hope you like the mod!

If you have any more doubts, i'd be happy to help you.
My first validated mod!
Adaptive Quick Search

Return to “[3.0.x] MOD Database Releases”