![]() |
Live Search 1.0 (AJAX)
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"> Code:
<form action="search.php?do=process" method="post"> and u r done If u like the hack please dont forget to click INSTALL :) |
Interesting!
Tks 4 share Beduino |
Could this be integrated in to the existing search field instead of creating another one?
|
Quote:
How? do steps 1 and 3 then add the onclick event to the search field: Code:
onkeyup="showHint(this.value)" Code:
<div id="search_results" class="smallfont" style="position:absolute; border: 2px solid orange; color:blue; background-color: white; width: 300px; padding: 8px; display:none"> |
Goog work mahmoud
|
Quote:
|
how server intensive is this? could it be abused?
|
Quote:
for me i didnt suffer from any abuse of usage u can decide ur self if it is suitable for u or not :) |
Queries?
|
Goog work mahmoud
|
this is very nice... it is efficient.. and it gives my site that...... RIGHT NOW feel.. for a microwave age....
installed! |
I still see some foreign language when I am changing search terms... How do I fix that?
|
Ok, I found it in the first edit, and changed it to "Searching..."
|
And I'm glad you did! I've been looking and looking on how to remove the foreign language as well.
Many thanks! Great Hack! |
Right now all my search result text is white for some reason.. I made the background navy to see the text, where would I change the text color?
|
Quote:
|
Quote:
|
Quote:
|
Quote:
Quote:
|
Quote:
Quote:
if it is white it will be white too |
Will this ever work for the Opera Browser? Subscribed.
|
Quote:
|
i'll try this out, looks great.
|
Quote:
if you want to change the text code... its probably in the Main CSS <div id="search_results" class="smallfont" style="position:absolute; border: 2px solid orange; color:blue; background-color: white; width: 300px; padding: 8px; display:none"> <div align="left"><a href="#" onClick="overlayclose('search_results'); return false">x</a></div> </div> that worked for me.... I was looking at the css.. and if i have time tomorrow (if the coder dont mind).. i want to see if i can make the background with a little less opacity (transparent).... that'll be cool... |
There is a bug in the ajax_search.php file
You've forgotten to add code in there for table prefixes. In my setup I used vb_ for my tables of vBulletin so this mod gives DB errors. I included an image showing the DB error below. I hard coded my table prefix to the file but you'll need to use the variable to fix it. It's working BTW. Good job! |
Good hack :)
/images/progress.gif (empty) Overflow <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]" /> <strong>Live Search</strong> <input type="text" name="query" size="25" class="search" 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> |
Quote:
That looks much better :) |
Great mod.
But you have forgotten to add code in there for table prefixes. Quote:
Thanks.. :) |
I'm having the same problem, i get a database error saying there is a problem with the table prefix...
|
Im getting a data base error. :confused:
Code:
Database error in vBulletin 3.6.5: |
Damn, do this work for vb3.6.5 ?:o
|
Quote:
|
Quote:
|
Quote:
of course u can add what ever code modification to the mod ... also u can put it here for the other members |
Quote:
|
Quote:
if u dont mind added to the original file |
Quote:
Quote:
|
Quote:
|
Re-downloaded and re-install.
Same error... Quote:
|
Quote:
please redownload |
All times are GMT. The time now is 05:23 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|