The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[AJAX] Live Search Details »» | |||||||||||||||||||||||||
This is mod rewrite of that: https://vborg.vbsupport.ru/showthread.php?t=154694
Version 1.6 Continue (v2.0) of this mod is here: https://vborg.vbsupport.ru/showthread.php?t=204517 I'm added few functions:
Installation: Import product Upgrade Uninstall the old version, delete files (if you has use it) and install new version. Live DEMO: http://mixplay.ru/ Live video: http://ru.youtube.com/watch?v=qDWQ7vz5vts PS Some function writed by ChangUonDyU Spanish translation v1.6 If you like this mod - Click Install it Show Your Support
|
Comments |
#202
|
|||
|
|||
super mode
10x mate just one question ...can i set it up to search just within one forum or just within one category ? 10x again |
#203
|
|||
|
|||
|
#204
|
||||
|
||||
CraiovaOnLine, Yes, add after
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
#205
|
||||
|
||||
more instructions please, not so clear... it's for forms, not for my default search, uninstalled as not needed, thanks
|
#206
|
||||
|
||||
The following is the contents of the vbulletin_live_ajax_search.js file:
Code:
/**
* Live Search v1.2
* @author mad@Max
*/
var xmlHttp3
function showHint(word)
{
document.getElementById("search_results").innerHTML = '<p></p><p></p><p align="center" class="smallfont"><img src="images/misc/progress.gif" /> Searching...</p>';
xmlHttp3=GetXmlHttpObject3()
if (xmlHttp3==null)
{
alert ("Browser does not support HTTP Request")
return
}
var url=hurl+"ajax_search.php"
url=url+"?query="+word
xmlHttp3.onreadystatechange=stateChanged3
xmlHttp3.open("GET",url,true)
xmlHttp3.send(null)
}
function stateChanged3()
{
var sSearch = document.getElementById("search_input").value;
var obj = document.getElementById("search_results");
var obj2 = document.getElementById("q_search");
if (sSearch.length>=3){
if (xmlHttp3.readyState==4 || xmlHttp3.readyState=="complete")
{
obj2.style.display = 'block';
obj.innerHTML=xmlHttp3.responseText;
}
} else {
obj2.style.display = 'none';
obj.innerHTML = '';
}
}
function GetXmlHttpObject3()
{
var objXMLHttp3=null
if (window.XMLHttpRequest)
{
objXMLHttp3=new XMLHttpRequest()
}
else if (window.ActiveXObject)
{
objXMLHttp3=new ActiveXObject("Microsoft.XMLHTTP")
}
return objXMLHttp3
}
Thanx, Jacquii. |
#207
|
|||
|
|||
Here:
Code:
/**
* Live Search v1.2
* @author mad@Max
*/
var xmlHttp3
function showHint(word)
{
document.getElementById("search_results").innerHTML = '<p></p><p></p><p align="center" class="smallfont"><img src="images/misc/progress.gif" /> Searching...</p>';
xmlHttp3=GetXmlHttpObject3()
if (xmlHttp3==null)
{
alert ("Browser does not support HTTP Request")
return
}
var url=hurl+"ajax_search.php"
url=url+"?query="+word
xmlHttp3.onreadystatechange=stateChanged3
xmlHttp3.open("GET",url,true)
xmlHttp3.send(null)
}
function stateChanged3()
{
var sSearch = document.getElementById("search_input").value;
var obj = document.getElementById("search_results");
var obj2 = document.getElementById("q_search");
if (sSearch.length>=3){
if (xmlHttp3.readyState==4 || xmlHttp3.readyState=="complete")
{
obj2.style.display = 'block';
obj.innerHTML=xmlHttp3.responseText;
}
} else {
obj2.style.display = 'none';
obj.innerHTML = '';
}
}
function GetXmlHttpObject3()
{
var objXMLHttp3=null
if (window.XMLHttpRequest)
{
objXMLHttp3=new XMLHttpRequest()
}
else if (window.ActiveXObject)
{
objXMLHttp3=new ActiveXObject("Microsoft.XMLHTTP")
}
return objXMLHttp3
}
|
#208
|
|||
|
|||
it seems that the search function works well under the site.com/forum/ but when you move to a different place like site.com/wiki/ and do a search from there, it will return error.
I tried to search in the top level domain site.com/ and it returns something like this http://www.site.com/ 67.86.193.xxx /ajax_search.php?query=and www.site.com Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3 (.NET CLR 3.5.30729) 404 Please contact admin if you can not find the content you are looking for. This should be easy by using relative path instead of absolute path? |
#209
|
||||
|
||||
Hi MAXIM
Actually- I have the 1st version installed at http://JPiCForum.info - it works just fine with vBSEO installed - I've installed the current version on http://DiscussWLS.com - and the it does not work with vBSEO installed. Not only that - but I could not find the edit to make it work on the vBadvanced page. You probably need to clarify the instructions in the download folder. So my question - Can you make the 1st version upload available for download again please? Thanx, Jacquii. |
#210
|
||||
|
||||
OMG. Use lasted version of mod also files.
|
#211
|
|||
|
|||
you can find ver 1.2 a few page back. Someone posted it there.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|