The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Live Search 1.0 (AJAX) Details »» | |||||||||||||||||||||||||
About the hack
============== The hack adds a quick live search form to your forum's at any place you want it, results are to be shown exactly under the search field as you type (by ajax) Supported browsers ============== IE6, IE7, FF2, Opera 9 Demo ==================== http://www.montadaphp.net right under the logo How to Install ============== 1- Add the following code to the end of ur "headinclude" template: Code:
<script type="text/javascript"> /*********************************************** * Drop Down/ Overlapping Content- ? Dynamic Drive (www.dynamicdrive.com) * This notice must stay intact for legal use. * Visit http://www.dynamicdrive.com/ for full source code ***********************************************/ function getposOffset(overlay, offsettype){ var totaloffset=(offsettype=="left")? overlay.offsetLeft : overlay.offsetTop; var parentEl=overlay.offsetParent; while (parentEl!=null){ totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop; parentEl=parentEl.offsetParent; } return totaloffset; } function overlay(curobj, subobjstr, opt_position){ if (document.getElementById){ var subobj=document.getElementById(subobjstr) subobj.style.display="block" var xpos=getposOffset(curobj, "left")+((typeof opt_position!="undefined" && opt_position.indexOf("right")!=-1)? -(subobj.offsetWidth-curobj.offsetWidth) : 0) var ypos=getposOffset(curobj, "top")+((typeof opt_position!="undefined" && opt_position.indexOf("bottom")!=-1)? curobj.offsetHeight : 0) subobj.style.left=xpos+"px" subobj.style.top=ypos+"px" return false } else return true } function overlayclose(subobj){ document.getElementById(subobj).style.display="none" } var xmlHttp3 function showHint(word) { document.getElementById('search_results').innerHTML = '<p></p><p></p><p align="center" class="smallfont"><img src="images/progress.gif" />Searching..</p>'; xmlHttp3=GetXmlHttpObject3() if (xmlHttp3==null) { alert ("Browser does not support HTTP Request") return } var url="ajax_search.php" url=url+"?query="+word xmlHttp3.onreadystatechange=stateChanged3 xmlHttp3.open("GET",url,true) xmlHttp3.send(null) } function stateChanged3() { if (xmlHttp3.readyState==4 || xmlHttp3.readyState=="complete") { document.getElementById("search_results"). innerHTML='<div align="left"><a href="#" onClick="overlayclose(\'search_results\'); return false">x</a></div>'+xmlHttp3.responseText; return overlay(this, 'search_results') } } function GetXmlHttpObject3() { var objXMLHttp3=null if (window.XMLHttpRequest) { objXMLHttp3=new XMLHttpRequest() } else if (window.ActiveXObject) { objXMLHttp3=new ActiveXObject("Microsoft.XMLHTTP") } return objXMLHttp3 } </script> Code:
<form action="search.php?do=process" method="post"> <input type="hidden" name="do" value="process" /> <input type="hidden" name="quicksearch" value="1" /> <input type="hidden" name="childforums" value="1" /> <input type="hidden" name="exactname" value="1" /> <input type="hidden" name="s" value="$session[sessionhash]" /> Live search <input type="text" name="query" size="25" class="header_search_field" onkeyup="showHint(this.value)" /> </form> <div id="search_results" class="smallfont" style="position:absolute; border: 2px solid orange; color:blue; background-color: white; width: 300px; padding: 8px; display:none;overflow:auto; height:200px"> <div align="left"><a href="#" onClick="overlayclose('search_results'); return false">x</a></div> </div> and u r done If u like the hack please dont forget to click INSTALL Show Your Support
|
Comments |
#92
|
|||
|
|||
After install my VB not working
also I can`t log in to admin cp what can i do ? |
#93
|
|||
|
|||
Quote:
If that doesn't work (I don't know if this will do anything...): 2) Edit config.php, and at the top add "define('DISABLE_HOOKS', 1);" (without quotes), and then delete the additions you made for the hack. Don't forget to get rid of that code in config.php when you're done. I'm pretty sure this has nothing to do with plugins/products but you might as well give it a try . 3) Also, it may be a different hack that you recently installed... Try step 2 and disable the latest few hacks you installed. Many things such as my Shoutbox and Style Chooser don't work, along with some other hacks that use AJAX and/or javascript. |
#94
|
||||
|
||||
Quote:
wow!!! i dont think it was the ORIGINAL simplified version that caused this.. but the many other (really good enhancements).... that dont answer your question, but... i think going back to the basics would help... it IS possible to over do a good thing either install your tools.php to your admincp directory... (located in your DO NOT UPLOAD FOLDER..... )... and go to it through your browser... and go through the back way....... or .... (i think that will work)... |
#95
|
|||
|
|||
Quote:
|
#96
|
||||
|
||||
Quote:
أشكرك بقوة على دعمك وذوقك الرفيع وان شاء الله نردهالك في الأفراح تحياتي محمود |
#97
|
||||
|
||||
Quote:
regards |
#98
|
||||
|
||||
Quote:
and i hope u put here what u wish to c in the future version Quote:
thanx for ur feedback and indeed im thinking of adding an option to just let certain usergroups use this Mod Quote:
maybe u installed any other hack that affects ur forum try to do like StrifeX saied ok as that is not a problem with the original VB code, I ask u to tell me what hacks are installed in ur forum affected by this hack, please tell me exact versions with urls to be able to solve this |
#99
|
||||
|
||||
This is very good.
does it search in threads titles only? does it search in posts content? Regards |
#100
|
||||
|
||||
only search in thread titles
|
#101
|
||||
|
||||
There are two things:
1- I prefer you use the default AJAX class of vBulletin. 2- It's better to move the java code in the first step to a file in clientscript folder, and include it by joining this HTML Code:
<script type="text/javascript" src="clientscript/vbulletin_livesearch.js?v=368"></script> Regards |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|