PDA

View Full Version : Add-On Releases - [AJAX] Live Search


mad@Max
02-09-2010, 10:00 PM
Description: Search without reload pages: by threads, by users with many sort criteria.

Features:
search only, if typed >= 3 symbols;
header to window with button close;
message about no result;
limit number of threads;
highlight words in result
trim title of thread, if it large (optional)
edit position of pop-up window
work with vBadvanced
limit the number of displayed results
group permission
search by your own forums
sort results of search
mod makes only one query to db
full compatibility with styles and browsers
search by individual words
integrate option into standard search
search only the specified length of each word
users search
interval requests
wrote 2 js class
able to drag'n'drop window
Search by threads now produced on an index table thread (fulltext - optional), which increases the speed of search
Changed the type of floating window (refused vbmenu)
popup transplanted to the div's in tact vb4 (tried to get the maximum sync with the style and API)
(for non english users) offer the ability to change the keyboard layout: if by the word search returns zero results, it will try to verify whether the correct layout are the words, checking every word of the existence of the database as a dictionary. In functions_livesearch.php you can find table of characters


Installation:
Upload all files from folder upload to forum folder.
Import product.

History:
4.0.0 - initial release
4.0.1 - fixed some issues, compatibility with 4.0.x
4.0.5 - rewrote js engine
4.0.6 - fix bug with chrome, fix overlay, some js optimization
If you like this hack, please, click INSTALL and Nominate for MOTM :)

whitetigergrowl
02-10-2010, 01:22 AM
Nice!

vb4newb
02-10-2010, 01:45 AM
Thanks it works well.

vietfancy
02-10-2010, 04:43 AM
It doesn't work for me. It said "loading..."

Honk0815
02-10-2010, 06:47 AM
very nice...thanks

Juggernaut
02-10-2010, 07:05 AM
Thank you :D

lolo?
02-10-2010, 07:26 AM
nice thanks :)

steve1966
02-10-2010, 07:54 AM
great thanks

Sador
02-10-2010, 09:14 AM
Tagged, seems interesting.

Hornstar
02-10-2010, 09:27 AM
Thanks! Would love to try this on a demo.

entertain
02-10-2010, 10:47 AM
nice job!! I am a fan of floating windows! Thanks :)

mad@Max
02-10-2010, 11:53 AM
vietfancy, pm me link on your forum.

Leo Brazil
02-10-2010, 01:57 PM
Tagged for future but I have a question.

How does it affect server load ?
I mean, searching is one of the things that consume a lot of server resources in a big board, how better is this one at this point compared to vB standard ?

mad@Max
02-10-2010, 02:15 PM
Loads will be much less, because this search generates only one resultant query, in contrast to standard search that each time downloading an entire page.

The Death [LK]
02-10-2010, 03:30 PM
hjx hjx Loading... can't search :-s

relaxiha
02-10-2010, 06:21 PM
Hello. When the Persian or Arabic as we search for anything not brought to Search

Voonyx
02-10-2010, 06:33 PM
In Firefox 3.6 , Search Options doesn´t work.

mad@Max
02-10-2010, 06:49 PM
relaxiha, you sure that you did all right?
Voonyx, hack has been tested on all available for me browsers, and i not found any problem.

movslow
02-10-2010, 06:59 PM
Thanks! Would love to try this on a demo.

Same here...a demo would be VERY nice..waiting on that before the install.

I should specify an English demo as well, lol.

Looks promising though.

:up:

Voonyx
02-10-2010, 07:03 PM
Voonyx, hack has been tested on all available for me browsers, and i not found any problem.

Hi mad, tested again.

Forumhome in Firefox doesn?t work - white site after click
Showthread in Firefox works.

Any suggestions ?

Ok.
How demo http://v4.webmasters.ru/forum/?langid=1 (tester / 123456)

Hmm. in your forum it works. :(

mad@Max
02-10-2010, 07:12 PM
Ok.
How demo http://v4.webmasters.ru/forum/?langid=1 (tester / 123456)

Voonyx, problems possibly because of a conflict, because the hack works fine on a clean forum.
To identify the conflict, try turn off all hack and then turn on by one.

Voonyx
02-10-2010, 07:28 PM
Ok mad@max , problem found. conflict with Boots' HTTP Referral Tracker.

Sador
02-10-2010, 07:52 PM
Very nice mod.. it is weird though that when you click on live search, you get a popup with an error untill you actually type something.. and that if you close the popup when you're done searching and press at live search again, you get the same results you had before you closed it.

Are these bugs?

mad@Max
02-10-2010, 08:29 PM
you get a popup with an error untill you actually type something
What kind error?
and that if you close the popup when you're done searching and press at live search again, you get the same results you had before you closed it
Yes, i confirm that, but it not so critical, in future i'll try fix it.

Sador
02-10-2010, 09:56 PM
What kind error? Please type keyword
Minimum word length: 3
Maximum character: 35
Maximum output results: 50

This one. I don't think it's supposed to be there, because it happens as soon as you click on the search box.

Come to think of it, it might not be an error message but just a message to explain how it works.. it still kinda looks like an error message to me though.

mad@Max
02-10-2010, 10:36 PM
This message showing only with one condition: when length of some typed word (whitespace separated) more then you set in settings.

relaxiha
02-12-2010, 05:03 AM
relaxiha, you sure that you did all right?
Voonyx, hack has been tested on all available for me browsers, and i not found any problem.

Yes I test my browser opera safari chorme Persian and Arabic words, and when the search set. What can not be found.

mad@Max
02-12-2010, 07:34 AM
relaxiha, standard search work fine?

mobe00
02-12-2010, 08:33 AM
Thanks. The mod works fine, but for example I have problems when i search my forum with live search for the word koi, then i get no results. but if i use the standard vbulletin advanced search i get many hits from my forum when i search for koi.

Anyone who knows why ?

sKippah
02-12-2010, 08:43 AM
VEry nice. waiting for that ;) But why does it also open if u enter nothing?! Would better if it just pop up if u also enter some words. thanks

mad@Max
02-12-2010, 10:11 AM
mobe00, pm me link on your forum...
sKippah, i did it intentionally, for that you can customize your search, before you'll type any word.

LbR
02-12-2010, 11:07 AM
As sweet as honey, fast installation as whistle thanks man

Jonluci
02-12-2010, 01:21 PM
It doesnt seem to work on styles with tabs :S
any work around

mad@Max
02-12-2010, 02:40 PM
Jonluci, what do you mean?

Jonluci
02-12-2010, 11:28 PM
Jonluci, what do you mean?

I have added a style with https://vborg.vbsupport.ru/showthread.php?t=233135
but the search works on all other styles except the one with tabs

great work btw :)

Switch3130
02-12-2010, 11:38 PM
One of my members said this messed up how the UserCP usually works, and made the signatures overhang the forum on Chrome, and a few other errors that caused my quick reply on Google to be all messed up.

mad@Max
02-13-2010, 07:06 AM
Jonluci, probably this is a conflict with that hack, but don't forget TFH have beta status.
Switch3130, i don't understand your problem.

Jonluci
02-13-2010, 01:06 PM
Jonluci, probably this is a conflict with that hack, but don't forget TFH have beta status.
Switch3130, i don't understand your problem.

Is there a way i can disable the search in just that style? if that can be done, that would just make my day :) love ur search :)

relaxiha
02-13-2010, 02:08 PM
relaxiha, standard search work fine?

Is. But as I mentioned earlier. Persian and Arabic as any search words are not and can not be found.

mad@Max
02-13-2010, 06:40 PM
Jonluci, you can add in Live Search Replace to condition some like $stylevar['styleid'] != X
relaxiha, i.e. standard search normal process Persian and Arabic words?

Cableguy69
02-13-2010, 07:40 PM
Great mod, works perfectly Installed, rated 5 and nominated for MOTM http://revolution-forums.com/images/smilies/good.gif

DUI_
02-14-2010, 04:00 AM
Installed. Works perfectly on my site, www.battlehacks.com
Although it doesn't look so nice with my transparent skin :p
I do like that you can drag/move the search box though.

mad@Max
02-14-2010, 06:09 AM
Although it doesn't look so nice with my transparent skin
vb4 is not so flexible in this case :(

Greight
02-14-2010, 02:43 PM
Great mod, thanks. Just one problem I could not get rid of is that the popup does not cover active tab. Here is the screenshot:
http://img.enz.ir/1361089082.png

Can this be sorted out?

mad@Max
02-14-2010, 03:15 PM
Yes, you're right. During the next version i'll fix it.
In the meantime, you can do the following:
in file ajax_live_search_init.js find
div.style.display = "none";
and add above
div.style.zIndex = 100;

Greight
02-14-2010, 04:20 PM
It worked
Thanks

Greight
02-15-2010, 02:57 AM
It seems the search done by Live Search is case sensitive. Is this intentional? As it seems of no use how can be disabled?

mad@Max
02-15-2010, 08:01 AM
Seems like that your db setup on case sensitive.

Greight
02-15-2010, 08:20 AM
So can you tell me what to do?

mad@Max
02-16-2010, 07:16 AM
So can you tell me what to do?
First try switch off fulltext in settings.

rizelim
02-16-2010, 05:01 PM
Thanks !But ie8 smilies bugs chatbox

phonexpo
02-17-2010, 09:04 PM
Is this mod suppose to show search results for 3 or more characters? If so, it doesn't work for me.

Any ideas?

BR's

-Patrick

phonexpo
02-17-2010, 09:17 PM
I fixed my problem by turning off "Fulltext search". Working with 4.0.2.

Nominated for MOTM

Thank you very much :)

Edit;

Would it be possible to exclude forums form the search as an option in the future please?

mad@Max
02-17-2010, 10:07 PM
rizelim, this fixed 46 post of this thread.
phonexpo, ok, i think about.

relaxiha
02-17-2010, 11:37 PM
Jonluci, you can add in Live Search Replace to condition some like $stylevar['styleid'] != X
relaxiha, i.e. standard search normal process Persian and Arabic words?

Hello. It is true that the standard is. But in the version 3.8 I use this search are in Persian language and I was not any problem. How can the words Persian Version 4 based on the utf8 find.?

mad@Max
02-18-2010, 12:21 AM
relaxiha, so it's means that standard search is not found "Persian and Arabic words"?

Da-Vinci
03-06-2010, 08:03 AM
Hi I'm having a few probs with Live serch, it was working fine but has suddenly stopped, the search box says loading but when you type a word no window opens.

The only changes I've made to my forum is remove a few plugins that wre not getting used, I've not actually added anything though.

I uninstalled the mod reuploaded the files and reinstalled the xml file, but it's still not working for me?

my URL is www.nzb-forum.com

derrene
03-06-2010, 09:42 AM
works on 4.0.2 ?
(at my vbulletin(4.0.2+standart theme) does not)

rmxs
03-07-2010, 02:14 PM
When i click on the search box text loading appeared but popup doesnt work (seems to something from google but nothing happens)

mad@Max
03-07-2010, 04:45 PM
In the near future I'll write a version for 4.0.2+

mad@Max
03-07-2010, 05:33 PM
Version 4.0.1
Released even earlier:)

steve1966
03-07-2010, 09:38 PM
thanks for the update

rmxs
03-08-2010, 08:49 AM
Check the lsa_sort lang term is wrong

mad@Max
03-08-2010, 02:26 PM
rmxs, yes, you are right. Reuploaded.

relaxiha
03-08-2010, 07:20 PM
I still search for the problem in Arabic and Persian and utf-8 there. No words that are non Latin are not searched. Conversely version 3.6.8, which worked perfectly without a problem already.

rmxs
03-09-2010, 06:42 AM
You have change full text search to OFF (from mod settings)

works perfectly for greek lang (vbulletin default search engine doesnt work)
This mod return me results but vb not :)

Thanks again

dosadno
03-16-2010, 07:02 PM
I have a problem, the search box says loading... but when you type a word nothing heapens.

What is wrong?

Juggernaut
03-25-2010, 03:07 AM
Is this compatible with vBulletin 4.0.2 PL1? :)

rmxs
03-25-2010, 02:25 PM
yes

rmxs
03-25-2010, 02:26 PM
I have a problem, the search box says loading... but when you type a word nothing heapens.

What is wrong?

You have change full text search to OFF (from mod settings)

c0rpz0r
03-26-2010, 03:03 PM
hmmz just installed it, works fine.. but i see something strange?!
It doesnt search at all compared with old search style..

Only if you type the exact word.. or string.. not an part of it..
Also it only searches thread titles not in the messages like the normal search does..

Is this correct?

cleverone
03-26-2010, 07:02 PM
Well I'm stuck :(

added it and when I type in search input box nothing happens at all. everything was uploaded to the correct area and imported as well. I havent even had a box pop up yet... anything that I could check to get this workin? thanks in advance

mad@Max
03-31-2010, 08:01 AM
c0rpz0r, yes, correct, because you have enabled fulltext search:)
cleverone, forum link in pm.

LifesGreatestGift
04-03-2010, 11:02 AM
Just an FYI, if you have custom search boxes you can enable this mod for them by putting id="lsa_input" in your custom searchbox <input line :)

maimaitinhban
04-07-2010, 09:06 PM
thanks, it works very good!

TimberFloorAu
04-07-2010, 09:44 PM
Installed : Works great

Can we please add a shadow to the search results popup window. ?

Added:

#lsa_window {
box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
width: {vb:raw vboptions.lsa_width}px;
}

to lsa_css.css made no difference. Any suggestions

ndut
04-09-2010, 12:28 AM
installed... thx

raja811
04-16-2010, 10:20 PM
my forum not working please help me!!!

TimberFloorAu
04-16-2010, 10:26 PM
whats up Raj

raja811
04-16-2010, 10:33 PM
it's work only Default skin not all skin!!!

sKippah
04-26-2010, 05:15 PM
Does anybody has it running on 4.0.3?

1 Problem

It?s not running if u are using vBET (https://vborg.vbsupport.ru/showthread.php?t=232456&highlight=vbet)

Would be nice if its Possible to get this sorted out. Thanks


Ok. I dont know what this is... but after disabling vbet and activating it again, after the install of this Hack, all works now.... hmmm

Da-Vinci
04-30-2010, 01:02 AM
I'm having issues again with 4.03, would really appreciate any help with it.

When you type no pop up opens?as soon as you click in the search box, it says loading but once you start to type nothing happens, if you hit enter the standard search.php kicks in, but Live search was so much better.

I'd love to have this working again please advise me what I need to do.

dvbusuario
05-09-2010, 07:34 PM
If the search box is in the header, not working, I only work when you are in the navbar...

As I can manually change the code search box in the header?

Thank you!

Da-Vinci
05-11-2010, 10:28 PM
I'm not sure if that was aimed at me or not?

But the search box is still in my Navbar.

http://www.hostmypics.org/pictures/91ba095eeb1e010b826a6f79dae1585b.png (http://www.hostmypics.org)

BadgerDog
05-12-2010, 11:01 AM
Installed, then uninstalled ... doesn't work for us ... :down:

Simply says "loading ...." and does nothing else...

Turned OFF "fulltext search" in mod as instructed in other post, still doesn't work ...

Running vb4.03 ....

Thanks ... :)

Regards,
Badger

Semmi
05-14-2010, 10:42 PM
it works fine for me but just if type a word completly out. for example:
if would like to search for kaspersky and just type kasp he won't find anything.

is there anythin to fix this??? cause its very importasnt

lmkhang
05-27-2010, 10:08 AM
This plugin cannot search Vietnamese keyword.Can you help me, please?

mad@Max
05-27-2010, 03:00 PM
Version 4.0.5
- rewrote js engine

mad@Max
05-27-2010, 03:08 PM
Semmi, lmkhang, try turn/off fulltext mode.

BadgerDog
05-27-2010, 03:52 PM
Version 4.0.5
- rewrote js engine

Does this mean it no longer hangs?

Thanks .. :)

Regards,
Badger

mad@Max
05-27-2010, 04:33 PM
BadgerDog, i haven't hungs and not hungs now:)

relaxiha
05-28-2010, 07:34 PM
I'm typing a Farsi(persian). No subject search does not.
Please utf8 Persian language and possibly also to test for the Arabic language is the same way too.

steve1966
05-28-2010, 07:55 PM
thank you for updating

entertain
05-28-2010, 10:12 PM
Hi,

when you move the popup above an "active" navbar tab, this tab will be displayed in front of the popup.

This bug already existed in an earlier version. :)

mad@Max
05-29-2010, 04:28 PM
Version 4.0.6
- fix bug with chrome
- fix overlay
- some js optimization
Changed only js files (both).

Frans72
05-31-2010, 06:57 PM
The search seems to find deleted threads, when user searching isn't authorized to see those. This can be fixed by adding;


AND thread.visible =1


to the query. Even nicer would be to check if user can administer threads and base query on that, in ajaxlivesearch.php;

require_once(DIR . '/includes/adminfunctions.php');
..
$showHidden = can_administer('canadminthreads') ? "" : " AND thread.visible =1 ";
..
AND thread.lastpostid > 0
$showHidden
ORDER BY " . $vbulletin->db->escape_string($lsasortby) . " " . $vbulletin->db->escape_string($lsasorttype) . "


Excellent mod, saves me a lot of work! (voted MOTM):up:

ndut
05-31-2010, 07:00 PM
thank you

relaxiha
06-01-2010, 07:35 PM
I'm typing a Farsi(persian). No subject search does not.
Please utf8 Persian language and possibly also to test for the Arabic language is the same way too.

Dr.osamA
06-01-2010, 11:39 PM
thanxx for update

mad@Max
06-02-2010, 06:04 AM
relaxiha, "no results" return both methods (fulltext or not) of search?
Frans72, thanks, in next version i'll include it:)

nkumaran
06-03-2010, 07:46 AM
not working.(Google Chrome)

mad@Max
06-03-2010, 09:36 AM
Show where hack isn't work with chrome.

Philippe J
06-03-2010, 11:02 AM
not working.(Google Chrome)

Same here.

Show where hack isn't work with chrome.

117959

Works with Firefox.

mad@Max
06-03-2010, 01:14 PM
Philippe J, not image - location :)

EquinoxWorld
06-03-2010, 04:10 PM
Hello, really amazing mod, a coupole of things though see if you can give me a hand mad Max, in my default style it works and opens poup but says searching without any results . 2.) In my underground theme (custom) it does not work at all, it does not even display "live search" ion the search bo9x. It would be a great help if you can assist us with this , we need to reduce3 page loads and this is perfect. Homepage: http://www.aniworlds.net or http://www.aniworlds.net/forum
Log in: user : noobster
pass: aniworlds.net

mad@Max
06-03-2010, 10:20 PM
EquinoxWorld, did you enable the live search? Because when i was there, i not found no signs of this.

marianoblesa
06-06-2010, 09:15 PM
I do not really changed in the options width and height

Help please

vaio1
06-09-2010, 03:18 AM
hi
thanks 4 mod

but it works only in one style

who can i add this in my other style

EquinoxWorld
06-10-2010, 05:46 PM
EquinoxWorld, did you enable the live search? Because when i was there, i not found no signs of this.

I had disabled it until I received an answer. I have enabled it again with the new files and still having the same issue. In my default style works fine but in my custom style does not.

Blooded
06-19-2010, 02:45 AM
Thanks for the hack, i translate it to spanish.

:)

JVSP
06-19-2010, 03:03 AM
Excellent hack as always, loving it since vB3.X

maidos
06-19-2010, 12:37 PM
is there a way for the result window to appear only after you have typed in the keyword instead of appearing just because you clicked on the search field

gabrielambrogio
06-19-2010, 01:01 PM
ottimo.

Frans72
06-20-2010, 01:44 PM
The product.xml points to the 3.8 thread for this mod :)

Is there a way to search for substrings instead of complete words? (i.e. 'stalk' finds 'stalker' which it does not now). I already have 'full text' on.

thrylos
06-20-2010, 09:39 PM
not working with 4.0.4 (?)

Devanand
07-01-2010, 12:42 PM
I have problem with size. Any size I put it stays same size and it is very small, maybe 200px width.

RobbieZ
07-10-2010, 10:18 AM
Anyone noticed this?

https://vborg.vbsupport.ru/external/2010/08/1.png

The navhover.png button floats in front of live search box.

ijob
07-10-2010, 10:56 AM
this is great, would be perfect if you could exclude certain forums...please..:)

ijob
07-10-2010, 11:01 AM
oops, i cant seem to change the width. in the options I can but it has no effect on the forum.

ijob
07-10-2010, 11:35 AM
I have problem with size. Any size I put it stays same size and it is very small, maybe 200px width.

Re-import the product. Thats how I fixed the width. Any more changes I made I had to do this again. Its a pain but it worked.

Anyone noticed this?

https://vborg.vbsupport.ru/external/2010/08/1.png

The navhover.png button floats in front of live search box.

I had a similar issue until I reduced the hight of the box to 200px

Da-Vinci
07-11-2010, 05:54 PM
I wish I could get this to work again, it used to be great but it stopped working back when I upgraded to 4.0.3 and hasn't worked since, I've added all the modification updates, but no joy.

sticky
08-01-2010, 09:52 AM
Any updates for new versions?

mahakala
08-05-2010, 02:24 PM
how can i open the search-box directly under the search-bar (input) ?

LOGECT
08-06-2010, 06:42 AM
Thanks for the great mod.

laebshade
08-06-2010, 09:54 PM
Uploaded files as directed, imported XML file. Doesn't work. Using vbsuite 4.0.5.

mad@Max
08-07-2010, 06:01 PM
I tested this version with latest version of vb - all working good:)

EquinoxWorld
08-07-2010, 07:07 PM
It works for me (vb4.0.5) in my default skin, does not work on my custom one. Any ideas how I can change the search ID if your not using default style?

Gnoll
08-07-2010, 07:30 PM
Works awsome :) - just need to learn, can we change background of the results , i'm using transparent theme so results not looking cool at all :)

cagbaazee
08-08-2010, 03:13 AM
it doesnot works for me.. it pop up.. ask me to type, where do i type on...

sticky
08-08-2010, 02:02 PM
Works awsome :) - just need to learn, can we change background of the results , i'm using transparent theme so results not looking cool at all :)
What version you running?

Bankfodder
08-19-2010, 01:21 PM
This is a sensational search facility.

But what I don't think that Mad@Max has told everyone is that you can also use * ? AND NOT OR w/n as part of your search terms.

And it's very very fast.

Why do we have to find this out for ourselves??? Is Mad@Max a self-effacing coder or is he really just mad?

Brilliant mod. Worked straight off on 4.06.

Thank you very much. MOTM

jaculek3
08-19-2010, 02:02 PM
Instaled work's perfectly

Hostboard
08-19-2010, 09:35 PM
Is this version backwards compatible with 3.8.x?

sticky
08-19-2010, 11:59 PM
It works for me (vb4.0.5) in my default skin, does not work on my custom one. Any ideas how I can change the search ID if your not using default style?
Does not work for my custom style either.

ChaFF
08-25-2010, 05:36 PM
It would be great to have Pre Populated Search (https://vborg.vbsupport.ru/showthread.php?t=222001) like shown on youtube (http://www.youtube.com/watch?v=eOUq4Z6R7xI) for 3.x version

lubbie
08-30-2010, 01:54 PM
Thats a really awesome addon

Rajdeep
08-31-2010, 10:37 AM
how till it work with custom style???

Leica.Robbiani
08-31-2010, 12:59 PM
Hi there,

Anyone noticed this?

https://vborg.vbsupport.ru/external/2010/08/1.png

The navhover.png button floats in front of live search box.
All selected tabs are affected. Open up the "lsa_css.css"-Template and search for "#lsa_cont {". I don't know anymore if I had created this by myself, if you don't find it, create it. Put in the paratheses "z-index: 100;" and all goes fine.

#lsa_cont {
z-index: 100;
}
Best regards

L.R.

BadgerDog
08-31-2010, 01:50 PM
Installed latest version (May 29) under v4.04pl1 and it no longer hangs up with "loading" ... :)

Will test and advise ...

Thanks for your efforts ... :)

Regards,
Badger

BadgerDog
08-31-2010, 02:15 PM
Hi there,


All selected tabs are affected. Open up the "lsa_css.css"-Template and search for "#lsa_cont {". I don't know anymore if I had created this by myself, if you don't find it, create it. Put in the paratheses "z-index: 100;" and all goes fine.

#lsa_cont {
z-index: 100;
}
Best regards

L.R.

Yes, I've noticed it and it does look odd ... :eek:

Now, I hope I can follow your instructions and not blow up anything else to fix it ... :D

Thanks for posting ... :)

Regards,
Badger

Edit: I couldn't find ..

#lsa_cont {
z-index: 100;
}

in v4.04pl1, so I added your code to the bottom of ALL styles ... it worked GREAT ! See I are a programmer now .. :D

BadgerDog
08-31-2010, 02:58 PM
Questions:

1. Why do I have to re-import XML file every time I change the width setting in order to make it actually change the width?

2. If I set search to return just 50 matches, how does the user get to find any matches on other posts or threads that may exist beyond 50? Shouldn't there ne a NEXT 50 button so users can scroll through ALL occurrences of their search request in the whole database?

3. What has been the user experience here in setting the search to 100 or beyond?

Great mod so far... seems to be working well in beta testing with just Moderators using it ... thanks for developing it and fixing earlier problems. :)

Regards,
Badger

BadgerDog
08-31-2010, 03:09 PM
This is a sensational search facility.

But what I don't think that Mad@Max has told everyone is that you can also use * ? AND NOT OR w/n as part of your search terms.


What's w/n used for? :)

I modified the language string to show the use of operators.

<div align="center"><b>Please type keyword<br>Wildcards Accepted ie: * ? AND NOT OR w/n<\/b><\/div><div align="center">Minimum word length: {1}<br \/>Maximum character: {2}<br \/>Maximum output results: {3}<\/div>

Regards,
Badger

BadgerDog
08-31-2010, 04:07 PM
Any chance this will ever work with the articles in vBulletin CMS?

Thanks .. :)

Regards,
Badger

Cherkez
09-01-2010, 09:02 AM
it is not working at my forum too. it has no result when i type words

RobbieZ
09-01-2010, 09:36 AM
Hi there,


All selected tabs are affected. Open up the "lsa_css.css"-Template and search for "#lsa_cont {". I don't know anymore if I had created this by myself, if you don't find it, create it. Put in the paratheses "z-index: 100;" and all goes fine.

#lsa_cont {
z-index: 100;
}
Best regards

L.R.

Excellent fix. Thanks

andreamarucci
09-01-2010, 10:26 AM
Just a question. The search work but I've tried this and I don't know if this depends from your mod or from VB.

If I try to search for the word "dunlop" for example, the results are shown only when I've finished to type the entire word and not as I type. When I've typed "dunlo" no results are shown but as soon as I type the remaining letter "p" all the results are show.

It's not possible to make that the search is done not on the entire word but also on part of it?

PaintSplasher
09-05-2010, 12:49 PM
Hm,

i get some sql-errors several times, but i can not reproduce it exactly.



Datenbankfehler in vBulletin 4.0.6:

Invalid SQL:

SELECT thread.threadid, thread.lastpostid, thread.forumid AS tforumid, thread.title AS ttitle, forum.title AS ftitle
FROM new_forum_thread AS thread
LEFT JOIN new_forum_forum AS forum ON(thread.forumid = forum.forumid)
WHERE MATCH(thread.title) AGAINST (' +Tachol' IN BOOLEAN MODE)
AND thread.forumid IN (24lsasort=lastpost)
AND thread.forumid NOT IN (0,58,5,26,29,52,56)
AND thread.lastpostid > 0
ORDER BY thread.lastpost DESC
LIMIT 50;

MySQL-Fehler : Unknown column '24lsasort' in 'where clause'
Fehler-Nr. : 1054
Fehler-Zeit : Sunday, 05.09.2010 @ 15:35:37
Datum : Sunday, 05.09.2010 @ 15:35:37
Skript : http://www.fiesta-ka-forum.de/ajaxlivesearch.php?do=search
Referrer : http://www.fiesta-ka-forum.de/fiesta-mk4-mk5-24/
IP-Adresse : ******
Benutzername : *****
Klassenname : vB_Database
MySQL-Version :



The search seems to work correctly.

Bankfodder
09-05-2010, 03:15 PM
Just a question. The search work but I've tried this and I don't know if this depends from your mod or from VB.

If I try to search for the word "dunlop" for example, the results are shown only when I've finished to type the entire word and not as I type. When I've typed "dunlo" no results are shown but as soon as I type the remaining letter "p" all the results are show.

It's not possible to make that the search is done not on the entire word but also on part of it?

use dun*

that will get what you want

BadgerDog
09-05-2010, 04:38 PM
Well, after some pretty thorough testing, I've decided to un-install this mod.

There are some graphics artifacts being complained of by members, including the "live search" phrase appearing behind the search box on some browsers, even though we patched the mod with the "tab" fix mentioned earlier.

Also, we're getting inconsistencies in the search results that don't match what we get with vBulletin's standard search. For example, we search for P14 or P13 and nothing appears in "Live Search" results, whereas in vBulletin's search we get all kinds of hits.

Anyway, thanks again to the author for his efforts. :up:

We'll check back in a few months and see if there's been any refinement of the code.

Regards,
Badger

Kraxell
09-16-2010, 09:58 AM
anyone know, how i can change the background-color of the results?

https://vborg.vbsupport.ru/external/2010/09/34.jpg

Leica.Robbiani
09-16-2010, 03:45 PM
Hi there,

anyone know, how i can change the background-color of the results?

http://odinproject.net/opload/?di=6128463472616
Watch out for the lsa_css.css template, in this template search for #lsa_results { and change the background color to whatever you like.

Best regards

L.R.

Kraxell
09-16-2010, 08:01 PM
i have the follow now:

#lsa_results {
height: {vb:raw vboptions.lsa_height}px;
background-color: #FFF;
overflow: auto

but doesnt work :(

lubbie
09-18-2010, 02:39 PM
Its not working 100% in 4.0.7. The Ajax Window is very small and CMS search is not included ( i dont know if that was before)

luan7749
10-17-2010, 08:46 PM
It's woking for me before :( but now It's not working. Demo : http://tuoitrenangdong.net/forum

goycarden
10-25-2010, 11:15 AM
Is it possible to make it work for 4.0.8 ?
Are there some alternatives?

W!cKeD
11-06-2010, 10:55 AM
Thanks, but please fix it ;) it dont work in 4.0.8 it say "searching" not more..

hiker
11-23-2010, 04:47 PM
Great addon.

Is there a way to search the post contents as well, rather than just thread titles?

I've also noticed in IE8 that I can't refine my search to just one forum. The search will go for all forums but when I hit "Search again" for just one forum, it does not refine or change the search criteria.

Firefox seems to work just fine.

I am running vb 4.0.2

hiker
11-29-2010, 09:08 PM
bump

MonsterDK
12-04-2010, 03:13 PM
Hm,

i get some sql-errors several times, but i can not reproduce it exactly.



Datenbankfehler in vBulletin 4.0.6:

Invalid SQL:

SELECT thread.threadid, thread.lastpostid, thread.forumid AS tforumid, thread.title AS ttitle, forum.title AS ftitle
FROM new_forum_thread AS thread
LEFT JOIN new_forum_forum AS forum ON(thread.forumid = forum.forumid)
WHERE MATCH(thread.title) AGAINST (' +Tachol' IN BOOLEAN MODE)
AND thread.forumid IN (24lsasort=lastpost)
AND thread.forumid NOT IN (0,58,5,26,29,52,56)
AND thread.lastpostid > 0
ORDER BY thread.lastpost DESC
LIMIT 50;

MySQL-Fehler : Unknown column '24lsasort' in 'where clause'
Fehler-Nr. : 1054
Fehler-Zeit : Sunday, 05.09.2010 @ 15:35:37
Datum : Sunday, 05.09.2010 @ 15:35:37
Skript : http://www.fiesta-ka-forum.de/ajaxlivesearch.php?do=search
Referrer : http://www.fiesta-ka-forum.de/fiesta-mk4-mk5-24/
IP-Adresse : ******
Benutzername : *****
Klassenname : vB_Database
MySQL-Version :



The search seems to work correctly.

I also experience this kind of error. Does not happen allot, but every so often.

cravendale
02-06-2011, 10:48 AM
Anyone know how to resolve these errors?

Database error in vBulletin 4.0.6:

Invalid SQL:

SELECT p.*
FROM post AS p
WHERE p.postid IN (.);

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 3
Error Number : 1064
Request Date : Sunday, February 6th 2011 @ 10:53:30 AM
Error Date : Sunday, February 6th 2011 @ 10:53:31 AM
Script : http://private/forum/search.php?searchid=1684
Referrer : http://private/forum/search.php
IP Address : 196.215.82.29
Username : Defjam33
Classname : vB_Database
MySQL Version :

thanks

ThomasBolley
02-19-2011, 07:37 AM
not working with chrome

Randomm
02-21-2011, 05:49 AM
yeah the automatic list generator doesn't work in Chrome
I actually have to press the ENETER key for it the generate the list
but it's not a big deal

What I want to know though is how to remove the "Live" part from the "Live Search"
Basically I just want the word "Search" to appear in the bar
anyone?

masons
03-03-2011, 03:18 PM
I got this working on my 4.1.2 with no issues, except when using Chrome.

SpeedyHire
03-13-2011, 04:02 PM
It works in chrome using the js files that are in the do not upload folder. Those files say version 4.0.6 and the ones in the upload folder say 4.0.5 so Im guessing mad@max forgot to update the new files.

ninjaj0k3r
03-13-2011, 09:17 PM
Thanks, this works perfectly :)

android-schweiz
04-18-2011, 10:36 AM
great work! but it's not working in chrome (tried both upload and do-not-upload versions). so it's useless for me :(

Randomm
04-19-2011, 01:29 AM
yes on Chrome, it doesn't automatically generate the results...you have to click search or press enter

gulli
04-22-2011, 11:48 AM
installed on our dev systems for gulli.com (http://board.gulli.com). works fine. changed some parts to use it with sphinx searchengine. will be online in a few days.

android-schweiz
04-26-2011, 11:46 AM
but is it that big effort to get it working on chrome? i guess chrome is one of the leading browsers. why not 'enabling it'? many thanks!

Mariner1
04-26-2011, 02:19 PM
does this work with 4.13.Doesnt seem to have installed yet im sure i uploaded it all right

Krusty1231
04-27-2011, 02:20 AM
Perfect. I installed on 4.1.3 works great!

Thanks for this!

mishb68
05-21-2011, 01:20 AM
I couldn't get it to work on 4.1.3. I couldn't get the search box (is it supposed to be a pop up?) to appear.

deinrapde
05-21-2011, 10:27 PM
great work, but i have a idea/problem

if a theard called "supermann" and im searching for "super" or "sup" why the live search dont find anything only if i search "supermann"

TEMPESTADE
05-23-2011, 09:12 PM
tanks work grate bro

AttalaEA
05-25-2011, 03:14 PM
This hack dosen't work for me? any help

AttalaEA
05-26-2011, 06:29 AM
I couldn't get it to work on 4.1.3. I couldn't get the search box (is it supposed to be a pop up?) to appear.

I have the same problem (no pop up) and the search remains same as before installing the Mod!

Samsine
06-17-2011, 07:00 PM
Hello,

thanks for share this mod.

I use vB 4.1.4
The search works with Opera, IE8, FF and Chrome.

My problems:
1. the function 'collapse' is disabled.
2. Users will find results from invisible / private forums.

Regards

solohdes
06-22-2011, 12:46 PM
I have installed and works great but I have a problem. This hack have problems with other hack that I have installed, you can see here:

https://vborg.vbsupport.ru/

The Filmstrip is over the live search box always. How can I fix it? THe film strip hack is this:

https://vborg.vbsupport.ru/showthread.php?t=264213

I translate the hack to spanish.

adiabatic
06-23-2011, 05:13 PM
How can I make this search mod to work with Chrome?

Please help me;)

Can even pay...

Adrian Schneider
06-25-2011, 04:33 PM
If anyone is having problems with it not working, it seems that the minifcation is causing some problems on some browsers (all newer, unfortunately).

Here is what we did to make it work:

Replace clientscript/ajax_live_search_init.js (4.0.5) with
/**
* [YUI] Live Search Initialise Script Version 4.0.5
*
* @author mad@Max
*/
(function() {
var b = YAHOO.util;
YAHOO.vBulletin.lsaobj = function(c, a) {
this.timeout = this.resobj = this.cont = this.req = null;
this.textobj = b.Dom.get(c);
this.textobj.value = vbphrase.live_search;
this.textobj.setAttribute("autocomplete", "off");
this.min = 3;
b.Event.on(this.textobj, "focus", this.start, this, true);
this.bb = location.href.search(/www\./) > -1 ? a.search(/www\./) < 0 ? "http://www."
+ (a.substring(0, 7) == "http://" ? a.substring(7) : a)
: a
: a.search(/www\./) > -1 ? a.replace(/www\./, "") : a
};
YAHOO.vBulletin.lsaobj.prototype.start = function() {
this.textobj.value = vbphrase.lsa_loading;
b.Get.script( [ "clientscript/yui/dragdrop/dragdrop-min.js",
"clientscript/ajax_live_search-min.js" ], {
onSuccess : function() {
this.load()
},
scope : this
})
}
})();Replace clientscript/ajax_live_search-min.js (4.0.5) with
/**
* [YUI] Live Search Main Script Version 4.0.5
*
* @author mad@Max
*/
(function() {
var g = YAHOO.util, e = g.Dom, c = g.Event, i = YAHOO.lang;
i
.augmentObject(
YAHOO.vBulletin.lsa,
{
init : function() {
c.removeListener(this.textobj, "focus", this.start);
c.on(this.textobj, "blur", this.winop, this, true);
c.on(this.textobj, "focus", this.winop, this, true);
c.on(this.textobj, "keyup", function(a) {
a = a || window.event;
PHP.in_array(a.keyCode || a.which, [ 37, 39,
32, 36, 35 ]) > -1
|| this.get()
}, this, true);
c.on("lsarld", "click", this.get, this, true);
c.on("lsacls", "click", this.winop, this, true)
},
load : function() {
YAHOO.util.Connect
.asyncRequest(
"POST",
this.bb
+ "/ajaxlivesearch.php?do=lsawin",
{
success : function(a) {
if (a.responseXML) {
this.cont = document
.createElement("div");
this.cont.id = "lsa_cont";
this.cont.style.position = "absolute";
this.cont.style.display = "none";
this.cont.innerHTML = a.responseXML
.getElementsByTagName("lsagetwin")[0].firstChild.nodeValue;
document.body
.appendChild(this.cont);
this.textobj.value = "";
this.resobj = e
.get("lsa_results");
this.init();
(new g.DD(this.cont.id))
.setHandleElId("lsadd");
this.winop();
init_collapsers()
}
},
failure : vBulletin_AJAX_Error_Handler,
timeout : vB_Default_Timeout,
scope : this
}, SESSIONURL + "securitytoken="
+ SECURITYTOKEN
+ "&do=lsawin")
},
winop : function(a) {
if (this.cont.style.display == "none") {
this.textobj.value = "";
this.resobj.innerHTML = vbphrase.lsa_wait;
this.cont.style.display = "block";
center_element(this.cont)
} else {
if (c.getTarget(do_an_e(a)).id == "lsacls")
this.cont.style.display = "none";
this.textobj.value = this.textobj.value
|| vbphrase.live_search
}
},
get : function() {
var a = PHP.trim(this.textobj.value), h = e
.get("lsawithword").value > 0, b = "";
if (a.length >= this.min) {
b = a;
if (!h) {
var d = a.split(" ");
b = "";
for ( var f in d)
d[f].length < this.min
|| (b += (b ? " " : "") + d[f])
}
}
if (b.length >= this.min) {
if (h || !(d.length > 1 && b != a)) {
this.timeout && this.timeout.cancel();
this.timeout = i.later(500, this,
this.send, b)
}
} else
this.resobj.innerHTML = vbphrase.lsa_wait
},
send : function(a) {
var h = new vB_Hidden_Form(null), b = this.resobj, d = e
.get("lsaloading");
h.add_variables_from_object(e.get("lsform"));
e.removeClass(d, "hidden");
g.Connect.isCallInProgress(this.req)
&& g.Connect.abort(this.req);
var f = new vB_AJAX_Handler(true);
f.callback = function(j) {
e.addClass(d, "hidden");
b.innerHTML = j.responseXML
.getElementsByTagName("ajaxlivesearch")[0].firstChild.nodeValue
};
f
.send(
"ajaxlivesearch.php?do=search",
"&do=search&"
+ h
.build_query_string()
.replace(
/lsazone=([a-z0-9]+)&/g,
function(j,
k,
l) {
return (l == 24 ? "lsazone="
: ",")
+ k
+ (RegExp.rightContext
.search(/^lsasort/) == 0 ? "&"
: "")
})
+ "keyword="
+ PHP.urlencode(a));
this.req = f.conn
}
})
})();Hopefully this helps!

Adrian Schneider
06-25-2011, 06:10 PM
Noticed the above still had some problems with Chrome.

Updated to 4.0.6, ran it through an un-minifier, and ended up with this:

/**
* [YUI] Live Search Main Script Version 4.0.5
*
* @author mad@Max
*/
(function() {
var g = YAHOO.util, e = g.Dom, c = g.Event, i = YAHOO.lang;
i
.augmentObject(
YAHOO.vBulletin.lsa,
{
init : function() {
c.removeListener(this.textobj, "focus", this.start);
c.on(this.textobj, "blur", this.winop, this, true);
c.on(this.textobj, "focus", this.winop, this, true);
c.on(this.textobj, "keyup", function(a) {
a = a || window.event;
PHP.in_array(a.keyCode || a.which, [ 37, 39,
32, 36, 35 ]) > -1
|| this.get()
}, this, true);
c.on("lsarld", "click", this.get, this, true);
c.on("lsacls", "click", this.winop, this, true)
},
load : function() {
YAHOO.util.Connect
.asyncRequest(
"POST",
this.bb
+ "/ajaxlivesearch.php?do=lsawin",
{
success : function(a) {
if (a.responseXML) {
this.cont = document
.createElement("div");
this.cont.id = "lsa_cont";
this.cont.style.position = "absolute";
this.cont.style.display = "none";
this.cont.innerHTML = a.responseXML
.getElementsByTagName("lsagetwin")[0].firstChild.nodeValue;
document.body
.appendChild(this.cont);
this.textobj.value = "";
this.resobj = e
.get("lsa_results");
this.init();
(new g.DD(this.cont.id))
.setHandleElId("lsadd");
this.winop();
init_collapsers()
}
},
failure : vBulletin_AJAX_Error_Handler,
timeout : vB_Default_Timeout,
scope : this
}, SESSIONURL + "securitytoken="
+ SECURITYTOKEN
+ "&do=lsawin")
},
winop : function(a) {
if (this.cont.style.display == "none") {
this.textobj.value = "";
this.resobj.innerHTML = vbphrase.lsa_wait;
this.cont.style.display = "block";
center_element(this.cont)
} else {
if (c.getTarget(do_an_e(a)).id == "lsacls")
this.cont.style.display = "none";
this.textobj.value = this.textobj.value
|| vbphrase.live_search
}
},
get : function() {
var a = PHP.trim(this.textobj.value), h = e
.get("lsawithword").value > 0, b = "";
if (a.length >= this.min) {
b = a;
if (!h) {
var d = a.split(" ");
b = "";
for ( var f in d)
d[f].length < this.min
|| (b += (b ? " " : "") + d[f])
}
}
if (b.length >= this.min) {
if (h || !(d.length > 1 && b != a)) {
this.timeout && this.timeout.cancel();
this.timeout = i.later(500, this,
this.send, b)
}
} else
this.resobj.innerHTML = vbphrase.lsa_wait
},
send : function(a) {
var h = new vB_Hidden_Form(null), b = this.resobj, d = e
.get("lsaloading");
h.add_variables_from_object(e.get("lsform"));
e.removeClass(d, "hidden");
g.Connect.isCallInProgress(this.req)
&& g.Connect.abort(this.req);
var f = new vB_AJAX_Handler(true);
f.callback = function(j) {
e.addClass(d, "hidden");
b.innerHTML = j.responseXML
.getElementsByTagName("ajaxlivesearch")[0].firstChild.nodeValue
};

var sendData = "&do=search&"
+ h
.build_query_string()
.replace(
/lsazone=([a-z0-9]+)&/g,
function(j,k,l) {
try {
var test = RegExp.rightContext;

} catch (e) {
return (l == 24 ? "lsazone="
: ",") + k + '';
}
return (
l == 24 ? "lsazone="
: ",")
+ k
+ (RegExp.rightContext
.search(/^lsasort/) == 0 ? "&"
: "");
})
+ "keyword="
+ PHP.urlencode(a);



f
.send(
"ajaxlivesearch.php?do=search",
sendData );
this.req = f.conn
}
})
})();

Really quick and dirty. Looks like the RegExp.rightContext chokes under that one condition in Chrome. Used a try/catch to handle it prior.

HTH

8thos
07-07-2011, 12:14 AM
Interesting.

taavipost
07-07-2011, 12:29 AM
Installed :P

8thos
07-07-2011, 04:06 PM
Just an FYI, if you have custom search boxes you can enable this mod for them by putting id="lsa_input" in your custom searchbox <input line :)Thanks! Where would I put this in my navtab custom search? https://vborg.vbsupport.ru/showthread.php?t=265810

danswano
07-07-2011, 10:12 PM
I want to use this mod with sphinx but it's not working, anyone has the code modification to let it work with sphinx?

victorvu
07-15-2011, 07:04 AM
Hi:

It did not work for me. Do I need to upload two files .js in the do_not_upload folder?

Thanks.

8thos
07-15-2011, 04:02 PM
Not working for me in 4.1.4. Wack.

Speedster123
08-16-2011, 07:46 PM
Not working with Chrome, vB 4.1.0

apn3a
08-20-2011, 05:37 PM
There is a way to have the results into a drop down menu instead of the popup window?

And who can we move that popup window to specific position? Let's say under the search box

Thank you!

8thos
08-20-2011, 10:17 PM
One day it started working on my site. It was real random but I turned it off as it was annoying the crap out of me every time I typed in a couple letters and automatically began searching instead of showing a list like most ajax powered search boxes.

apn3a
08-21-2011, 05:08 PM
It is unfair for us we need some useful and fancy mod. Joomla, a free software has a lot of them

Our vb search engine make no sense some time. We have to use advanced searches methods

Anyway :-)

heugabel
08-30-2011, 02:55 PM
Datenbankfehler in vBulletin 4.1.5:

Invalid SQL:

SELECT thread.threadid, thread.lastpostid, thread.forumid AS tforumid, thread.title AS ttitle, forum.title AS ftitle
FROM thread AS thread
LEFT JOIN forum AS forum ON(thread.forumid = forum.forumid)
WHERE MATCH(thread.title) AGAINST (' +Live +Suche' IN BOOLEAN MODE)
AND thread.forumid IN (8lsasort=lastpost)
AND thread.forumid NOT IN (0,89,90,92,214,180,181,248,182,256,262,259,257,26 0,261,258,186,183,184,226,227,91,263,407,408,213,2 65,266,267,268,209,211,133,326,134,392,393,394,396 ,409,301,302,308,382,309,310,311,32,33,329,398,197 ,315,318,316,317,411,399,400,242,221,269,228)
AND thread.lastpostid > 0
ORDER BY thread.lastpost DESC
LIMIT 50;

MySQL-Fehler : Unknown column '8lsasort' in 'where clause'
Fehler-Nr. : 1054
Fehler-Zeit : Tuesday, 30.08.2011 @ 07:24:36
Datum : Tuesday, 30.08.2011 @ 07:24:36
Skript : http://www.xxxxxxxxxxxx.com/ajaxlivesearch.php?do=search
Referrer : http://www.xxxxxxxxx.com/
Benutzername : xxxxxxx
Klassenname : vB_Database
MySQL-Version :

japancars
08-31-2011, 08:48 AM
Is it possible that the search option box is normally not collapsed?
So standard open...
What should i change?

n0obiest
09-05-2011, 11:28 AM
How to remove advance search Box when press enter on search box ?

CILGINKRAL_
09-19-2011, 10:08 AM
Very nice, Thank you mad@Max !

sticky
10-17-2011, 10:10 AM
Noticed the above still had some problems with Chrome.

Updated to 4.0.6, ran it through an un-minifier, and ended up with this:

/**
* [YUI] Live Search Main Script Version 4.0.5
*
* @author mad@Max
*/
(function() {
var g = YAHOO.util, e = g.Dom, c = g.Event, i = YAHOO.lang;
i
.augmentObject(
YAHOO.vBulletin.lsa,
{
init : function() {
c.removeListener(this.textobj, "focus", this.start);
c.on(this.textobj, "blur", this.winop, this, true);
c.on(this.textobj, "focus", this.winop, this, true);
c.on(this.textobj, "keyup", function(a) {
a = a || window.event;
PHP.in_array(a.keyCode || a.which, [ 37, 39,
32, 36, 35 ]) > -1
|| this.get()
}, this, true);
c.on("lsarld", "click", this.get, this, true);
c.on("lsacls", "click", this.winop, this, true)
},
load : function() {
YAHOO.util.Connect
.asyncRequest(
"POST",
this.bb
+ "/ajaxlivesearch.php?do=lsawin",
{
success : function(a) {
if (a.responseXML) {
this.cont = document
.createElement("div");
this.cont.id = "lsa_cont";
this.cont.style.position = "absolute";
this.cont.style.display = "none";
this.cont.innerHTML = a.responseXML
.getElementsByTagName("lsagetwin")[0].firstChild.nodeValue;
document.body
.appendChild(this.cont);
this.textobj.value = "";
this.resobj = e
.get("lsa_results");
this.init();
(new g.DD(this.cont.id))
.setHandleElId("lsadd");
this.winop();
init_collapsers()
}
},
failure : vBulletin_AJAX_Error_Handler,
timeout : vB_Default_Timeout,
scope : this
}, SESSIONURL + "securitytoken="
+ SECURITYTOKEN
+ "&do=lsawin")
},
winop : function(a) {
if (this.cont.style.display == "none") {
this.textobj.value = "";
this.resobj.innerHTML = vbphrase.lsa_wait;
this.cont.style.display = "block";
center_element(this.cont)
} else {
if (c.getTarget(do_an_e(a)).id == "lsacls")
this.cont.style.display = "none";
this.textobj.value = this.textobj.value
|| vbphrase.live_search
}
},
get : function() {
var a = PHP.trim(this.textobj.value), h = e
.get("lsawithword").value > 0, b = "";
if (a.length >= this.min) {
b = a;
if (!h) {
var d = a.split(" ");
b = "";
for ( var f in d)
d[f].length < this.min
|| (b += (b ? " " : "") + d[f])
}
}
if (b.length >= this.min) {
if (h || !(d.length > 1 && b != a)) {
this.timeout && this.timeout.cancel();
this.timeout = i.later(500, this,
this.send, b)
}
} else
this.resobj.innerHTML = vbphrase.lsa_wait
},
send : function(a) {
var h = new vB_Hidden_Form(null), b = this.resobj, d = e
.get("lsaloading");
h.add_variables_from_object(e.get("lsform"));
e.removeClass(d, "hidden");
g.Connect.isCallInProgress(this.req)
&& g.Connect.abort(this.req);
var f = new vB_AJAX_Handler(true);
f.callback = function(j) {
e.addClass(d, "hidden");
b.innerHTML = j.responseXML
.getElementsByTagName("ajaxlivesearch")[0].firstChild.nodeValue
};

var sendData = "&do=search&"
+ h
.build_query_string()
.replace(
/lsazone=([a-z0-9]+)&/g,
function(j,k,l) {
try {
var test = RegExp.rightContext;

} catch (e) {
return (l == 24 ? "lsazone="
: ",") + k + '';
}
return (
l == 24 ? "lsazone="
: ",")
+ k
+ (RegExp.rightContext
.search(/^lsasort/) == 0 ? "&"
: "");
})
+ "keyword="
+ PHP.urlencode(a);



f
.send(
"ajaxlivesearch.php?do=search",
sendData );
this.req = f.conn
}
})
})();

Really quick and dirty. Looks like the RegExp.rightContext chokes under that one condition in Chrome. Used a try/catch to handle it prior.

HTH

Is this fix incorporated into the mod or does it need to be done separately?

Mike-D
11-04-2011, 10:44 PM
Maxim,
I have had your great AddOn since the first release of vB 3.7 and it worked always great without any problems. I'm happy to see that you have released it for the newest vB version and I hope it works great :)

Thank you for all. Installed and nominated for sure as always ;) It's one of the best AddOn ever!!!

Mike-D
11-22-2011, 05:51 PM
Not working with Chrome, vB 4.1.0I totally agree with you :) I just noticed it but the mainpoint is: It works with Firefox ;)

tpearl5
01-19-2012, 06:26 PM
how can i open the search-box directly under the search-bar (input) ?

I was wondering the same thing - right now the box pops up in the middle of the browser window.

tpearl5
01-25-2012, 04:03 PM
I totally agree with you :) I just noticed it but the mainpoint is: It works with Firefox ;)

Actually it does work if you use the unminified js files which are in the main folder.

Moncha
01-27-2012, 04:36 AM
Installed : Works great

Can we please add a shadow to the search results popup window. ?


Added:

#lsa_window {
box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
width: {vb:raw vboptions.lsa_width}px;
}

to lsa_css.css made no difference. Any suggestions

I did it this way...
In the "product-livesearch4_eng.xml" file, find

#lsform .blockbody.formcontrols {
border: none;
}


Under that, place this

#lsa_cont {
z-index: 100;
-moz-box-shadow: 5px 5px 6px 8px rgba(0, 0, 0, 0.45);
-webkit-box-shadow: 5px 5px 6px 8px rgba(0, 0, 0, 0.45);
box-shadow: 5px 5px 6px 8px rgba(0, 0, 0, 0.45);

}


Import the product again making sure to allow overwriting.

This will fix the z-index problem (As posted previously) and create a transparent shadow under the box.

CGhostGroup
02-08-2012, 04:28 PM
I was wondering the same thing - right now the box pops up in the middle of the browser window.

Had to figure it out by myself.

You have to edit the ajax_live_search-min.js file.

Search for center_element(this.cont) , you can remove this line or replace it with /* center_element(this.cont) */

Over this line you have to add the new position. For a clean vb4 it should be:

this.cont.style.top="91px";
this.cont.style.right="35px";

Greetings.

Lioric
02-09-2012, 01:40 PM
Doesn´t work with vB 4.1.10 with all browsers ... Can someone help me?

cungchuctanxuan
02-12-2012, 06:47 PM
it only works with Firefox, not with Chrome

Mr_Devlin
02-14-2012, 05:24 PM
it only works with Firefox, not with Chrome

Use the IronBrowser...

But this will not work properly over SSL. When using SSL-connection, the lsa-window will not pop up; search results will be displayed as normal forum search.
Can you state this pls? Any fix for this issue?

Izze_de
02-15-2012, 05:22 AM
Doesn?t work with vB 4.1.10 with all browsers ... Can someone help me?

Same for me, useless with 4.1.10.

Deactivated.

Hmm, to bad:

Developers Last Activity: 28 Oct 2011 17:15

Lioric
03-01-2012, 12:55 PM
Can anybody build a hotfix for 4.1.10 / 4.1.11 ?

Hareth
04-02-2012, 10:31 PM
Can anybody build a hotfix for 4.1.10 / 4.1.11 ?

Moncha
04-03-2012, 12:30 AM
It works in both, the only problem is with Chrome

Rvl
04-27-2012, 08:43 AM
doesnt work on 4.1.12

deen1982
05-29-2012, 06:56 AM
I use VBulletin 4.1.7... Live search works a half!
Many threads are not detected! Any suggestions?

Skivey
06-24-2012, 03:10 PM
would this be something I could use if I only wanted to search in 1 forum?

I want to keep the forum search but would like another which is a search just for my 'wiki forum'

THanks

DSemen
07-23-2012, 08:28 AM
In the usual style works fine. In this style does not appear anywhere http://www.completevb.com/demovb4/forum.php?styleid=71

How do I fix it?

zakonline
07-31-2012, 08:24 AM
Fantastic... Bravo!!!! I was looking for this for a very long time :) Thanks for the contribution.

Trevor Matthews
11-05-2012, 07:20 PM
Is there a live search that works on 4.1.12?

Elric
01-29-2013, 04:46 AM
Perfect works on vb4.2 pl3 but i want change the backgroundcolor of the window with the results only, not in the stylevars then there change other boxes in the vbcmps.
I have search in the templates but found nothing.

Elric
01-30-2013, 06:08 PM
Have no one a idea?

DaPike
01-31-2013, 05:26 AM
Hi Elric,

I found this in this thread. Perhaps this is what you're looking for.

Hi there,


Watch out for the lsa_css.css template, in this template search for #lsa_results { and change the background color to whatever you like.

Best regards

L.R.

Elric
01-31-2013, 03:04 PM
Much much thanks works perfekt.

Baghira
03-05-2013, 10:40 AM
Datenbankfehler in vBulletin 4.1.5:

Invalid SQL:

SELECT thread.threadid, thread.lastpostid, thread.forumid AS tforumid, thread.title AS ttitle, forum.title AS ftitle
FROM thread AS thread
LEFT JOIN forum AS forum ON(thread.forumid = forum.forumid)
WHERE MATCH(thread.title) AGAINST (' +Live +Suche' IN BOOLEAN MODE)
AND thread.forumid IN (8lsasort=lastpost)
AND thread.forumid NOT IN (0,89,90,92,214,180,181,248,182,256,262,259,257,26 0,261,258,186,183,184,226,227,91,263,407,408,213,2 65,266,267,268,209,211,133,326,134,392,393,394,396 ,409,301,302,308,382,309,310,311,32,33,329,398,197 ,315,318,316,317,411,399,400,242,221,269,228)
AND thread.lastpostid > 0
ORDER BY thread.lastpost DESC
LIMIT 50;

MySQL-Fehler : Unknown column '8lsasort' in 'where clause'
Fehler-Nr. : 1054
Fehler-Zeit : Tuesday, 30.08.2011 @ 07:24:36
Datum : Tuesday, 30.08.2011 @ 07:24:36
Skript : http://www.xxxxxxxxxxxx.com/ajaxlivesearch.php?do=search
Referrer : http://www.xxxxxxxxx.com/
Benutzername : xxxxxxx
Klassenname : vB_Database
MySQL-Version :

Same problem here... very ugly MySQL Error ;)

Vb 4.2.0 PL3

27RUS
03-15-2013, 08:14 AM
on my Style i must do this:

in headinclude

after line {vb:raw template_hook.headinclude_javascript}

put this:

<link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}lsa_css.css" />
<script type="text/javascript" src="clientscript/ajax_live_search_init.js?v={vb:raw vboptions.simpleversion}"></script>

it was does not work else, i dont know

Baghira
03-15-2013, 06:50 PM
Does not work for me. I can enter words, but no live search, just normal search

ckgb
01-02-2014, 07:05 AM
Got it to work on 4.2.2. Had to add a couple things to header and headerinclude. Tested in FF, IE and Chrome. Works the same everywhere but not all the way.

Works by topic name great. Option where search by an individual word inside posts was no good. Comes back empty every time. The following error comes up in the error log:

Database error in vBulletin 4.2.2:

Invalid SQL:

SELECT thread.threadid, thread.lastpostid, thread.forumid AS tforumid, thread.title AS ttitle, forum.title AS ftitle
FROM thread AS thread
LEFT JOIN forum AS forum ON(thread.forumid = forum.forumid)
WHERE MATCH(thread.title) AGAINST (' +seatt' IN BOOLEAN MODE)

AND thread.forumid NOT IN (0)
AND thread.lastpostid > 0
ORDER BY thread.lastpost DESC
LIMIT 50;

MySQL Error : The used table type doesn't support FULLTEXT indexes
Error Number : 1214
Request Date : Thursday, January 2nd 2014 @ 07:55:35 AM
Error Date : Thursday, January 2nd 2014 @ 07:55:35 AM
Script : http://www.sitename.com/ajaxlivesearch.php?do=search
Classname : vB_Database
MySQL Version : 5.5.34-cll

Also search should probably include blogs and groups.

Great potential but had to uninstall.

btedition
01-06-2014, 01:50 PM
Thank you for this feature, it does however need to search for the string even if it was in-between some other words.

Example (I want to buy a dog)
Current Search: (to buy a) = No results
What needs to be done is get the search engine to look for the string in between other words.

Great work however :)

ClaymanX
02-18-2014, 06:53 AM
Sorry but the search dont find words in the middle or end of an text

Fixed, turned the Fulltext search of in the Ajax Live search settings

twista46
08-27-2014, 01:41 PM
Works not with vB Social have any Fixx??

postcd
10-20-2014, 09:35 AM
Please how to exclude some categories or forums from the search?

iyihost
03-21-2015, 09:00 PM
doesnt work on 4.2.2

edit: disable fulltext seach.

dariyos
05-08-2015, 05:38 AM
Hello..

sometimes I get a db error:



Datenbankfehler in vBulletin 4.2.2:

Invalid SQL:

SELECT thread.threadid, thread.lastpostid, thread.forumid AS tforumid, thread.title AS ttitle, forum.title AS ftitle
FROM thread AS thread
LEFT JOIN forum AS forum ON(thread.forumid = forum.forumid)
WHERE MATCH(thread.title) AGAINST (' +verbindun' IN BOOLEAN MODE)
AND thread.forumid IN (10lsasort=lastpost)
AND thread.forumid NOT IN (0,18,52,6,16,17)
AND thread.lastpostid > 0
ORDER BY thread.lastpost DESC
LIMIT 50;

MySQL-Fehler : Unknown column '10lsasort' in 'where clause'
Fehler-Nr. : 1054
Fehler-Zeit : Thursday, 23.04.2015 @ 20:52:15
Datum : Thursday, 23.04.2015 @ 20:52:15
Skript : http://www.sps-forum.de/ajaxlivesearch.php?do=search
Referrer : http://www.sps-forum.de/
IP-Adresse :
Benutzername :
Klassenname :
MySQL-Version :




Datenbankfehler in vBulletin 4.2.2:

Invalid SQL:

SELECT thread.threadid, thread.lastpostid, thread.forumid AS tforumid, thread.title AS ttitle, forum.title AS ftitle
FROM thread AS thread
LEFT JOIN forum AS forum ON(thread.forumid = forum.forumid)
WHERE MATCH(thread.title) AGAINST (' +troggel' IN BOOLEAN MODE)
AND thread.forumid IN (10lsasort=lastpost)
AND thread.forumid NOT IN (0,18,52,6,16,17)
AND thread.lastpostid > 0
ORDER BY thread.lastpost DESC
LIMIT 50;

MySQL-Fehler : Unknown column '10lsasort' in 'where clause'
Fehler-Nr. : 1054
Fehler-Zeit : Sunday, 19.04.2015 @ 17:20:11
Datum : Sunday, 19.04.2015 @ 17:20:11
Skript : http://www.sps-forum.de/ajaxlivesearch.php?do=search
Referrer : http://www.sps-forum.de/
IP-Adresse :
Benutzername :
Klassenname :
MySQL-Version :

dariyos
09-30-2015, 06:12 AM
Hello,

another DB Error:

Datenbankfehler in vBulletin 4.2.3:

Invalid SQL:

SELECT thread.threadid, thread.lastpostid, thread.forumid AS tforumid, thread.title AS ttitle, forum.title AS ftitle
FROM thread AS thread
LEFT JOIN forum AS forum ON(thread.forumid = forum.forumid)
WHERE MATCH(thread.title) AGAINST (' +BremswegLive +Search' IN BOOLEAN MODE)
AND thread.forumid IN (28lsasort=lastpost)
AND thread.forumid NOT IN (0,18,52,6,16,17)
AND thread.lastpostid > 0
ORDER BY thread.lastpost DESC
LIMIT 50;

MySQL-Fehler : Unknown column '28lsasort' in 'where clause'
Fehler-Nr. : 1054
Fehler-Zeit : Tuesday, 29.09.2015 @ 15:18:25
Datum : Tuesday, 29.09.2015 @ 15:18:25
Skript : http://www.sps-forum.de/ajaxlivesearch.php?do=search
Referrer : http://www.sps-forum.de/
IP-Adresse :
Benutzername : caveman
Klassenname : vB_Database
MySQL-Version :



Datenbankfehler in vBulletin 4.2.3:

Invalid SQL:

SELECT thread.threadid, thread.lastpostid, thread.forumid AS tforumid, thread.title AS ttitle, forum.title AS ftitle
FROM thread AS thread
LEFT JOIN forum AS forum ON(thread.forumid = forum.forumid)
WHERE MATCH(thread.title) AGAINST (' +Live +Search' IN BOOLEAN MODE)
AND thread.forumid IN (28lsasort=lastpost)
AND thread.forumid NOT IN (0,18,52,6,16,17)
AND thread.lastpostid > 0
ORDER BY thread.lastpost DESC
LIMIT 50;

MySQL-Fehler : Unknown column '28lsasort' in 'where clause'
Fehler-Nr. : 1054
Fehler-Zeit : Tuesday, 29.09.2015 @ 15:18:21
Datum : Tuesday, 29.09.2015 @ 15:18:21
Skript : http://www.sps-forum.de/ajaxlivesearch.php?do=search
Referrer : http://www.sps-forum.de/
IP-Adresse :
Benutzername : caveman
Klassenname : vB_Database
MySQL-Version :


how can I fix that?

wolfe
02-08-2017, 11:44 AM
not working getting this error.


TypeError: this.textobj is null[Learn More] ajax_live_search_init.js:7:142
YAHOO.vBulletin.lsaobj clientscript/ajax_live_search_init.js:7:142
<anonymous> /search.php:2278:23
The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it. blank.html

MatGre
06-02-2019, 02:54 AM
not working 4.2.5