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)

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 02:32 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.01240 seconds
  • Memory Usage 1,792KB
  • 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
  • (7)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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