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 05-04-2009 04:32 PM

I dont have search field..
I use this

$lsaform
And i have activate "Search form" From settings.

mad@Max 05-04-2009 05:15 PM

You are doing something wrong. You can check it.

dancue 05-04-2009 07:40 PM

Quote:

Originally Posted by dancue (Post 1803189)
In what template?

Someone please answer. Excuse my ignorance.

mad@Max 05-04-2009 09:22 PM

You'll need to edit template only if you have opened search field. You are have it?

dancue 05-04-2009 09:23 PM

If I have opened search field? What does that mean?

mad@Max 05-04-2009 09:32 PM

It's mean that you are have your own search field, placed on visible place.

dancue 05-04-2009 09:52 PM

Can you take a look at it and tell me what I need to do?

I can pm you the details.

mad@Max 05-04-2009 10:42 PM

Ok, pm me.

Mike-D 05-09-2009 03:23 PM

To the Author of this great Addon: Could you please tell me what both Phrasetype Names means...

<phrasetype name="????????" fieldname="global">
<phrasetype name="???????? ?????????" fieldname="vbsettings">


Guess it's some kind of Russian but I have no clue what it means. Thank you :)

Mike-D 05-09-2009 03:30 PM

Quote:

Originally Posted by rmxs (Post 1804285)
2.3.1 doenst work for me..
I try search and the search doesnt start after 3th letter.
2.2.3 works goooood

Same here! The 2.2.3 version is the one what works really great :up: The 2.3.1 does not work. But this is not a problem for me ;) This is a damn useful Addon and should be Standard all the time!

Installed & Nominated for sure :up:

Theater 05-09-2009 04:07 PM

Hello again,

I was browsing around and looking at Joomla templates when I came across one that had an amazing AJAX search box. I was wondering if anything like it would be possible with this mod here, or is vBulletin's search capabilities/parameters too different?

http://demo.rockettheme.com/may09/

Keep up the great work!

maidos 05-09-2009 04:16 PM

hope you still consider getting us ability to move the result window since its display over the search input field :(

carcomp 05-09-2009 07:56 PM

I've been trying to find an excuse to post how I did this Live Search mod...

http://www.quad4forums.com

PM me if you are interested.

powerful_rogue 05-09-2009 08:17 PM

Quote:

Originally Posted by carcomp (Post 1807657)
I've been trying to find an excuse to post how I did this Live Search mod...

http://www.quad4forums.com

PM me if you are interested.

wow, very impressive!

I like that :nod:

mad@Max 05-09-2009 08:18 PM

carcomp, i know how do this, just for me it not that important:) This is Live Search, implies pop-up window.

Mike-D 05-10-2009 07:05 AM

Quote:

Originally Posted by Mike-D (Post 1807529)
To the Author of this great Addon: Could you please tell me what both Phrasetype Names means...

<phrasetype name="????????" fieldname="global">
<phrasetype name="???????? ?????????" fieldname="vbsettings">


Guess it's some kind of Russian but I have no clue what it means. Thank you :)

I hate it being a pain in the neck, but I'd like to know what it means :)

mad@Max 05-10-2009 10:25 AM

This is location name of phrases, it's not matter.

Dr. Bantham 05-10-2009 12:30 PM

The code has changed and I cannot identify where I can modify the size of the input box and the "Live Search" text within it. A quick pointer to the section of code where this is set would be greatly appreciated.

mad@Max 05-10-2009 01:10 PM

Size you can set yourself (it not defined), next to the variable $lsainput. "Live Search" look in phrases.

Strike3ForumsMH 05-11-2009 04:46 PM

This is a great idea, but there are some problems.

1.) It works flawlessly in Firefox (and Google Chrome) but it will not work for me within IE7. I hadn't yet tested Opera or Safari.
2.) $lsainput does have a width that I can't determine either. I have it set within my own search field at 100px, which defines the search form, but there is a clickable search area that is invisible but will bring up the Live Search once it has been "activated."
3.) I don't know if this was covered yet or not as I didn't get a chance to search for it, but it does not work on my vBAdvanced, stating the Ajax.php cannot be found, I imagine this can be solved by calling to an absolute path.

Perhaps these errors were just with me, but for now I will hold off on this as much as I like the idea in the hopes of getting some time to try to resolve the errors (as they very well could be due to my style and setup.)

It does work great with Firefox again though.

mad@Max 05-11-2009 05:40 PM

1. IE... this is not a browser, this is a big problem for all! I'm test this hack on all available for me browsers, and problems only with IE.
Now i have new version, with new feature - loading results window not happen until you don't click on search field. But this feature not work fully with IE.
2. This reparable:)
3. Hm, will I return to a direct indication of the path.

rmxs 05-14-2009 08:30 PM

Hello max..
I conver my db to utf8 and now the searches looks like case sensitivity in multilang..

any suggestion?

mad@Max 05-14-2009 09:09 PM

Search or highlight?

vietfancy 05-15-2009 03:09 AM

Quote:

Originally Posted by carcomp (Post 1807657)
I've been trying to find an excuse to post how I did this Live Search mod...

http://www.quad4forums.com

PM me if you are interested.


How do you do that bro? may i have a copy? hehe

rmxs 05-17-2009 02:54 PM

Quote:

Originally Posted by mad@Max (Post 1810913)
Search or highlight?

Search.

dancue 06-14-2009 04:45 AM

Max,
I'm having an issue of placing the pop up window where I want it to be. How do I place it below the navbar?

What do I have to do?

mad@Max 06-14-2009 05:01 AM

You mean placing of search field?

dancue 06-14-2009 05:22 PM

yes. I'd like to have it where carcomp has it.

http://www.quad4forums.com

You see how it creates a popup and pushes everything down below it instead of the box floating above everything.

How can I do this?

mad@Max 06-14-2009 06:45 PM

Something like:
HTML Code:

style="position: absolute; top: 100px; right: 50px;"

dancue 06-14-2009 06:47 PM

Where am I adding that?

And how do I add this:
https://vborg.vbsupport.ru/

mad@Max 06-14-2009 06:51 PM

<div style="position: absolute; top: 100px; right: 50px;"><input ... /></div>

dancue 06-14-2009 06:58 PM

That positioned the input box.

What I want is the results box below the navbar instead of a pop up window.

mad@Max 06-14-2009 06:59 PM

Quote:

Originally Posted by dancue (Post 1829713)

For that you need add this html
HTML Code:

<form name="ajaxsearch" method="post" action="search.php?do=process">
                                        <div id="tb-searchdiv"><div id="lsa_window">
                                                <div id="tb-searchbox"><input type="text" onmouseup="lsado();" onkeyup="lsado();" onblur="if(this.value==''){this.value='Живой поиск'};" onfocus="lsaclick();" value="Живой поиск" maxlength="$vboptions[lsa_maxsym]" tabindex="1001" name="query" id="lsa_input"/></div>
                                                <input type="hidden" value="process" name="do"/>
                                                <input type="hidden" value="1" name="quicksearch"/>
                                                <input type="hidden" value="1" name="childforums"/>
                                                <input type="hidden" value="1" name="exactname"/>
                                                <input type="hidden" value="" name="s"/>
        <input type="hidden" value="1245007919-d667b9a87020ead7dc88ef667e4022229b0e8b4b" name="securitytoken"/>
                                        </div>
<script type="text/javascript"> vbmenu_register("lsa_window",1); </script>
                                        </div>
                                        </form>

and this css
HTML Code:

#tb-searchdiv{float:right;padding: 3px 8px 0 0;text-align:center;line-height:13px;cursor:default}
#tb-searchbox{padding:4px 11px 11px 22px;width:119px;background:url(images/aria/misc/toolbar_searchbox.png) no-repeat;text-align:left;height:14px}
#tb-searchbox input{border:0;padding:0;width:119px;background:#fff;color:#000;font:12px/12px 'Lucida Grande',Verdana,sans-serif;height:14px;outline:none;cursor:text}

PS from source of my site.

dancue 06-14-2009 07:05 PM

Quote:

Originally Posted by mad@Max (Post 1829723)
For that you need add this html
HTML Code:

<form name="ajaxsearch" method="post" action="search.php?do=process">
                                        <div id="tb-searchdiv"><div id="lsa_window">
                                                <div id="tb-searchbox"><input type="text" onmouseup="lsado();" onkeyup="lsado();" onblur="if(this.value==''){this.value='Живой поиск'};" onfocus="lsaclick();" value="Живой поиск" maxlength="$vboptions[lsa_maxsym]" tabindex="1001" name="query" id="lsa_input"/></div>
                                                <input type="hidden" value="process" name="do"/>
                                                <input type="hidden" value="1" name="quicksearch"/>
                                                <input type="hidden" value="1" name="childforums"/>
                                                <input type="hidden" value="1" name="exactname"/>
                                                <input type="hidden" value="" name="s"/>
        <input type="hidden" value="1245007919-d667b9a87020ead7dc88ef667e4022229b0e8b4b" name="securitytoken"/>
                                        </div>
<script type="text/javascript"> vbmenu_register("lsa_window",1); </script>
                                        </div>
                                        </form>

and this css
HTML Code:

#tb-searchdiv{float:right;padding: 3px 8px 0 0;text-align:center;line-height:13px;cursor:default}
#tb-searchbox{padding:4px 11px 11px 22px;width:119px;background:url(images/aria/misc/toolbar_searchbox.png) no-repeat;text-align:left;height:14px}
#tb-searchbox input{border:0;padding:0;width:119px;background:#fff;color:#000;font:12px/12px 'Lucida Grande',Verdana,sans-serif;height:14px;outline:none;cursor:text}

PS from source of my site.

So that html is replacing the lsa_form template?

dancue 06-14-2009 07:08 PM

and do I have to replace this:
Живой поиск

with what?

mad@Max 06-14-2009 07:12 PM

Not exactly. This a free piece of html, you can put it everywhere. This is a source
HTML Code:

<!-- SearchBox -->
                                        <form action="search.php?do=process" method="post" name="ajaxsearch">
                                        <div id="tb-searchdiv"><div id="lsa_window">
                                                <div id="tb-searchbox"><input type="text" $lsainput /></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>
                                        </div>
                                        </form>
<!-- /SearchBox -->


dancue 06-14-2009 07:14 PM

Quote:

Originally Posted by mad@Max (Post 1829735)
Not exactly. This a free piece of html, you can put it everywhere. This is a source
HTML Code:

<!-- SearchBox -->
                                        <form action="search.php?do=process" method="post" name="ajaxsearch">
                                        <div id="tb-searchdiv"><div id="lsa_window">
                                                <div id="tb-searchbox"><input type="text" $lsainput /></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>
                                        </div>
                                        </form>
<!-- /SearchBox -->


but, if I stick that somewhere else it will create a second box.

mad@Max 06-14-2009 07:18 PM

Of course:) You need disable search form.

dancue 06-14-2009 07:36 PM

Okay. I don't think we are thinking about the same thing here.

I want this box:
http://www.unifiedchamp.com/pictures/picture3.png

To show up here below the navbar:
http://www.unifiedchamp.com/pictures/picture2.png

And I want to keep this here within my header:
http://www.unifiedchamp.com/pictures/picture4.png

mad@Max 06-14-2009 08:07 PM

In terms of version 2.3.1 is in the template lsa_script to replace everything on the
HTML Code:

<script language="JavaScript" type="text/javascript"><!--
/**
 * [AJAX] Live Search
 * Version 2.3.1
 * @author mad@Max
 */
var lsatimeout;function lsado(){var k,p=fetch_object("search_results"),l=fetch_object("lsazone").value,n=fetch_object("lsasort").value,b=fetch_object("lsasorttype").value,g=fetch_object("lsawithword").value,a=fetch_object("lsatype"),f=(a)?a.value:"0",h="",m=fetch_object("lsa_input").value,q=new Array(),e=false,o=m.split(" ");for(k=0;k<o.length;k++){if(o[k].length>
=$vboptions[lsa_minsym]){q.push(o[k]);e=true}else{e=false}}var j=q.join(" ");this.lsa_handleSuccess=function(i){if(i.responseText!==undefined){p.innerHTML=i.responseText}};this.lsa_handleFailure=function(i){if(i.responseText!==undefined){alert(i.responseText)}};this.lsa_callback={success:lsa_handleSuccess,failure:lsa_handleFailure};var d="ajax.php";if(f=="0"){h="&searchin="+l+"&sortby="+n}var c="do=lsa&securitytoken="+SECURITYTOKEN+"&lsatype="+f+h+"&sorttype="+b+"&withword="+g+"&keyword="+PHP.urlencode(j);if(e){clearTimeout(lsatimeout);p.innerHTML='<p align="center" class="smallfont"><img src="images/misc/progress.gif" />$vbphrase[lsa_searching]</p>';lsatimeout=setTimeout("lsasend();",$vboptions[lsa_interval])}else{if(m.length<$vboptions[lsa_minsym]){p.innerHTML='<phrase 1="$vboptions[lsa_minsym]" 2="$vboptions[lsa_maxsym]" 3="$vboptions[lsa_nresults]">$vbphrase[lsa_lengthword]</phrase>'}}this.lsa_req=null;this.lsasend=function(){this.lsa_req=YAHOO.util.Connect.asyncRequest("POST",d,lsa_callback,c)}}function lsaclick(){fetch_object("lsa_input").value="";fetch_object("lsa_window").style.display = 'block';lsado();}
//-->
</script>



All times are GMT. The time now is 08:24 AM.

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.01735 seconds
  • Memory Usage 1,870KB
  • 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
  • (8)bbcode_html_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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