UploadScript

Check out the FREE chatroom mod for IPB 3.x

>  Search suggestion (LiveSearch)
By: fa23
Short Description
Searching in topic titles as you type (with highlight).

Detailed Description


I was looking for some modification which i can use on my forum to improve search function. However I found nothing so i decided to create my own search suggestion or LiveSearch function. With this modification you can show results during search and it is refreshing as you type. Also there is highlight function to highlight search term. This modification is created and tested on IPB 2.1.4, however it should works also on newer boards (maybe with small modification).

Screenshot:
http://snap.cremac.net/livesearch.png

Demo:
http://www.corebay.com

Installation is very easy. All you have to do is copy one file + edit one template and CSS in admin.


This is 1st initial release. If there will be any bugs I will fix them.
Download

>  Search suggestion (LiveSearch), User Contributed Files
File Information
Date Submitted: June 5, 2009
Downloads: 23
Downloads Per Day: 0.0805
Views: 971
Compatibility: Invision Power Board v2.1
File Version: v0.0.1
File Size: 3.374 KBytes
Demo Link: Click Here.
Allow Upgrades w/o Your Permission?: No
Upgrade Terms for this Submission: Modify whatever you want.
Support Topic: Click Here
Report File: Report Broken Mod
File Rating
BadOkGoodGreatExcellent(5/5 (1 votes)
Please login to vote.
(you must login to be able to cast your vote)

User Comments (View Topic)
June 25 2009, 07:18 AM
by cremac
QUOTE (my swagg @ Jun 23 2009, 10:19 PM) <{POST_SNAPBACK}>
so the same instructions for 2.3?
yes
June 24 2009, 04:19 AM
by my swagg
so the same instructions for 2.3?
June 23 2009, 08:16 PM
by cremac
Elad Nava: Well, its basically same with my mod and it can be easily modified. You can add <div> under this form too. Look. Its crappy, because it has no css and div is too big, but its just an example..
http://snap.cremac.net/livesearch_quick.bmp

Bold is what i added to ALL Global HTML -> global_board_header template:
(javascript was added too at the beginning of the template)..

QUOTE
<form action="{$this->ipsclass->base_url}act=Search&amp;CODE=01" method="post" name="sForm">
<input type='hidden' name='forums' id='gbl-search-forums' value='all' />
<input type="text" size="20" name="keywords" id='ipb-tl-search-box' onkeyup="doDropDown()"/>
<br /><div id="search-result"></div>
<input class="button" type="image" style='border:0px' src="{$this->ipsclass->vars['img_url']}/login-button.gif" />
<if="($this->ipsclass->input['act'] == 'sf' OR $this->ipsclass->input['act'] == 'st') AND $this->ipsclass->input['f']">
<br /><input type='checkbox' id='gbl-search-checkbox' value='1' onclick='gbl_check_search_box()' checked='checked' /> {$this->ipsclass->lang['gbl_forum_search']}
</if>
</form>


So if someone is interested, i can modify it for 2.3.x and this quick search form..

PS: Sorting by date, replies, popularity, views etc can be easily changed in "in-search.php" on line

CODE
$getName_sql = "SELECT title,tid FROM ibf_topics WHERE title LIKE '%".$searchq."%' ORDER BY start_date desc LIMIT 0,100";
in ORDER BY xxx condition..
June 23 2009, 06:22 PM
by Elad Nava
Nice mod, I am writing a similar one but for the quick search:
http://forums.invisionize.com/index.php?s=...mp;p=1175394826

No idea when it will be ready, I am a bit busy nowadays. tongue.gif
June 23 2009, 05:31 PM
by cremac
QUOTE (my swagg @ Jun 23 2009, 01:00 PM) <{POST_SNAPBACK}>
nope doesnt work with 2.3

Tested with IPB 2.3.5 and it is working like a charm. Screenshots as a proof. whistling.gif
http://snap.cremac.net/livesearch235a.png
http://snap.cremac.net/livesearch235b.png

If you need some help, let me know. For example send me PM with your URL..
June 23 2009, 12:00 PM
by my swagg
nope doesnt work with 2.3
June 23 2009, 11:02 AM
by dheyrman
QUOTE (my swagg @ Jun 21 2009, 01:50 PM) <{POST_SNAPBACK}>
mod isnt working for me.
nothing happens when searching.



Search suggestion (LiveSearch)

Category: Global View
Compatibility: Invision Power Board 2.1


so its not working on 2.3
June 21 2009, 12:50 PM
by my swagg
mod isnt working for me.
nothing happens when searching.
June 7 2009, 08:03 PM
by Tom Next
Seems that invisionize cheats links.

corebay will be rewritten to ebay. laugh.gif


Invision Skins · IPB Skins