vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - [YUI] Live Search (https://vborg.vbsupport.ru/showthread.php?t=204517)

rmxs 03-20-2009 02:22 PM

The install guid is not clear.
I wont to display on nav bar...before was ok 3 letters and i saw results 4th and new results now dont works..
If i dont click search in advance doesnt search automaticaly also to display the box i have to click out..
This is my code


Code:

<form action="search.php?do=process" method="post">
                    <div id="lsa_window">
                        <div id="tb-searchbox"><b>Live Search: </b> <input type="text" class="bginput" name="query" tabindex="1001" id="lsa_input" maxlength="$vboptions[lsa_maxsym]" value="$vbphrase[live_search]" onfocus="if(this.value=='$vbphrase[live_search]'){this.value=''};<if condition="!in_array($bbuserinfo[usergroupid], array($vboptions[lsa_group]))"> showHint();</if>" onblur="if (this.value==''){this.value='$vbphrase[live_search]'}"<if condition="!in_array($bbuserinfo[usergroupid], array($vboptions[lsa_group]))"> onkeyup="showHint();</if> />
onfocus="if(this.value=='$vbphrase[search_forums]')this.value='';" onblur="if(this.value=='$vbphrase[search_forums]')this.value='';" onkeyup="showHint(this.value)" /></div>

                        <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]" />
                        <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
                    </div>
                    <if condition="!in_array($bbuserinfo[usergroupid], array($vboptions[lsa_group]))"><script type="text/javascript"> vbmenu_register("lsa_window",1); </script></if>
                    </form>


EDIT


AFTER SOME EDITS TO YOUR CODE AT FORM TEMPLATE NOW WORKS GOOD AND NOT NEED CLICKOUTSIDE OF WINDOW TO OPEN THE SEARCH ALSO NOW WORK WITH3-4-5-6-7 LETTERS AND MAKE NEW SEARCH EVERYTIME THAT YOU WRITE SOMETHINK

i just add to my navbar $lsaform and activated from settings
BYT STILL CANT SEARCH WITH GREEK (NO RESUTLS)

MySQL charset: UTF-8 Unicode (utf8)

Tables
latin1_swedish_ci

rmxs 03-20-2009 07:03 PM

I fount out why some people need to click 2 times to open search box.

Is this Live search on the box..
If you remove it no more 2 clicks.

How to remove (Simple way)

Go to your language and search for Live Search (at results select this from GLOBAL live_search)
Click edit and at the boxes bellow with your languages just click a SPACE no let it empty..Just one space.)

mad@Max 03-22-2009 01:40 PM

Version 2.0.3
Fixed some bugs with search field.
Updated instruction.

rmxs 03-22-2009 05:39 PM

Updated
(you have remove the text from box right?)

Still no results a non english

FiMeTi 03-22-2009 05:44 PM

Nice Addon. Good job. :)

mad@Max 03-22-2009 08:34 PM

rmxs, no, i'm not removing, just rewrote some html and js things.

rmxs 03-22-2009 09:08 PM

Quote:

Originally Posted by mad@Max (Post 1774550)
rmxs, no, i'm not removing, just rewrote some html and js things.

oh yes i ynistall and install and dont replace my changes :|

at my template i have add just the code
$lsaform
is that correct?
For me works good (except non eglish)

My db is UTF-8 byt tables are latin1_swedish_ci

maybe this is the problem with non english..
is possible to change tables collation or can we do it from code?

mad@Max 03-22-2009 10:04 PM

Yes, thats it:)

fukdawrld 03-22-2009 11:03 PM

Ok this release fixed the double click issue but I still have to click outside the box and back on it for the results to show up in Firefox and opera. Still doesn't work in IE at all on my board.

mad@Max 03-23-2009 01:32 AM

This is intended:) On my forums search work on all browsers.


All times are GMT. The time now is 03:54 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.01310 seconds
  • Memory Usage 1,741KB
  • 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
  • (1)bbcode_code_printable
  • (1)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