vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Live Search 1.0 (AJAX) (https://vborg.vbsupport.ru/showthread.php?t=154694)

dbirosel 08-09-2007 04:03 AM

Will this ever work for the Opera Browser? Subscribed.

JD45 08-09-2007 04:10 AM

Quote:

Originally Posted by coderphp (Post 1312983)
of course it could

How?
do steps 1 and 3
then
add the onclick event to the search field:
Code:

onkeyup="showHint(this.value)"
then, after the field, add the hidden div where the search results appears:
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">
<div align="left"><a href="#" onClick="overlayclose('search_results'); return false">x</a></div>
</div>


Thank you much!

FreshFroot 08-09-2007 04:25 AM

i'll try this out, looks great.

TheBlackPoet 08-09-2007 04:35 AM

Quote:

Originally Posted by 4x4 Mecca (Post 1313181)
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?


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...

Brew 08-09-2007 06:13 AM

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!

apdcanari 08-09-2007 06:20 AM

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>

Brew 08-09-2007 06:29 AM

Quote:

Originally Posted by apdcanari (Post 1313324)
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>

Thanks!

That looks much better :)

rainyleaves 08-09-2007 07:26 AM

Great mod.
But you have forgotten to add code in there for table prefixes.

Quote:

Database error in vBulletin 3.6.8:

Invalid SQL:
SELECT * FROM `thread` WHERE `title` LIKE '%24%' AND `thread`.`forumid` NOT IN (0 );

MySQL Error : Table '*****.thread' doesn't exist
Error Number : 1146
Date : Thursday, August 9th 2007 @ 05:23:39 PM
Script : http://*****.***/forums/ajax_search.php?query=24
Referrer : http://*****.***/forums/newthread.php?do=newthread&f=6
IP Address : *******
Username : *****
Classname : vB_Database
Please help...
Thanks.. :)

StrifeX 08-09-2007 07:41 AM

I'm having the same problem, i get a database error saying there is a problem with the table prefix...

FReeSTER 08-09-2007 07:55 AM

Im getting a data base error. :confused:

Code:

Database error in vBulletin 3.6.5:

Invalid SQL:
SELECT * FROM `thread` WHERE `title` LIKE '%c%' AND `thread`.`forumid` NOT IN (0 ,186);

MySQL Error  : Table 'satpro_web.thread' doesn't exist
Error Number : 1146
Date        : Thursday, August 9th 2007 @ 06:03:07 AM
Script      : http://www.satprolatino.tv/ajax_search.php?query=c
Referrer    : http://www.satprolatino.tv/foro.php
IP Address  : **.242.***.7
Username    : El Intocable
Classname    : vb_database



All times are GMT. The time now is 03:07 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
  • Page Generation 0.02954 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete