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)

dancue 06-14-2009 08:15 PM

Quote:

Originally Posted by mad@Max (Post 1829759)
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>


What do I do with that? Sorry, now you confused me.

dancue 06-16-2009 11:20 AM

Also, I still have to double click. I noticed on the mixplay site you still had the words within with no need to double click. How can I accomplish the same?

Devanand 06-18-2009 10:53 AM

I still don't understand how can I make it to look like on demo site , not just regular search .

Devanand 06-22-2009 03:35 PM

Why doesn't guests see search form?
In Group permission I've allowed them to see it but it doesn't apear.

mad@Max 06-22-2009 07:39 PM

Now i have v3.0, soon i'll release it.

Wheemer 06-22-2009 08:25 PM

The instruction are confusing, I've imported it but nothing shows up.

mad@Max 06-22-2009 08:52 PM

What did you do for this purpose?

Wheemer 06-22-2009 10:12 PM

I followed the installation instructions:

Installation:
Import product :)

I'm not upgrading so...

Is there something further I need to do to get this working? If so please update the limited install instructions.

mad@Max 06-22-2009 10:42 PM

Where you connect the search?

ctrlbrk 06-22-2009 11:00 PM

Quote:

Originally Posted by mad@Max (Post 1835064)
Now i have v3.0, soon i'll release it.

cool, tagged & waiting!

Mike

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

Version 3.0
Rewritten js and the method of intake information on request. Added 2 files to download (js, php).

relaxiha 06-23-2009 01:37 AM

Hello.
Was much better. Thank you

RobbieZ 06-24-2009 09:37 AM

Ive got problems max.

When i insert <div id="lsa_window"> into my search it doesnt do anything.


But when i turn on $lsaform and insert $lsaform when i try and add somewords it wont allow me and instead opens up a window saying please insert 3 words maximum.

This is my code without any template edits

PHP Code:

<div class="vbmenu_popup" id="navbar_search_menu" style="display:none;margin-top:3px" align="$stylevar[left]">
        <
table cellpadding="4" cellspacing="1" border="0">
        <
tr>
            <
td class="thead">$vbphrase[search_forums]</td>
        </
tr>
        <
tr>
            <
td class="vbmenu_option" title="nohilite">
                <
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]/>
                    <
input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]/>
                    <
div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]tabindex="1004" /></div>
                    <
div style="margin-top:$stylevar[cellpadding]px">
                        <
label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
                        &
nbsp;
                        <
label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
                    </
div>

                </
form>
            </
td>
        </
tr>
        <if 
condition="$vboptions[threadtagging]">
        <
tr>
            <
td class="vbmenu_option"><a href="tags.php$session[sessionurl_q]rel="nofollow">$vbphrase[tag_search]</a></td>
        </
tr>
        </if>
        <
tr>
            <
td class="vbmenu_option"><a href="search.php$session[sessionurl_q]accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
        </
tr>
        
$template_hook[navbar_search_menu]
        </
table>
    </
div


mad@Max 06-24-2009 10:09 AM

You talk about integration?

RobbieZ 06-24-2009 03:04 PM

Quote:

Originally Posted by mad@Max (Post 1836300)
You talk about integration?

I have added your edits.

PHP Code:

                <form action="search.php?do=process" method="post">
                    <
div id="lsa_window">
                    <
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]/>
                    <
input type="text" id="lsa_input" class="bginput" name="query" size="25" tabindex="1001" />
                    <
input type="submit" class="button" value="$vbphrase[go]tabindex="1004" />
                    </
div>
                </
form

But nothing is working

mad@Max 06-24-2009 05:10 PM

Which version of vB you are using?

g0dfather1984 06-24-2009 08:16 PM

Nevermind. Got it.

RobbieZ 06-24-2009 11:11 PM

Quote:

Originally Posted by mad@Max (Post 1836531)
Which version of vB you are using?


3.8.2

mad@Max 06-25-2009 12:10 AM

PM me site where you install this hack, i'll see.

Strike3ForumsMH 06-27-2009 01:33 PM

Max, where do you adjust the position of where the live search dropdown appears? I manually inserted into my site's search bar and as my style is a bit off center, I'd like to control where the dropdown displays beneath the search form to fit my site better.

Any help would be appreciated.

Thank you.

mad@Max 06-27-2009 07:01 PM

A pop-up window positioned independently from the place of input text.

richTV 07-03-2009 12:40 AM

Quote:

Originally Posted by mad@Max (Post 1835267)
Version 3.0
Rewritten js and the method of intake information on request. Added 2 files to download (js, php).

Hi, i just discovered your hack and downloaded v3.0 but the Install notes don't appear to be in English like in v2.3.1 ? :)

mad@Max 07-03-2009 04:11 PM

Yes, you right. Reuploaded.

richTV 07-04-2009 03:05 AM

thank you. :)

can you explain what you mean by "If you alrady have opened search field, do following."

is that meant only for your upgrades or do you mean it to be an edit required for ALL installations of your mod in the vB Search Template? eg. search_forums, search_results, search_results_postbit, search_results_postbit_lastvisit

wAnBoA 07-08-2009 08:13 AM

I'm using Live Search 2.2.3 and i've enabled the search form ( $lsaform )
Is it possible to make it a live search as well?

mad@Max 07-08-2009 07:03 PM

What you mean, upgrade to last version?

rmxs 07-08-2009 07:43 PM

Quote:

Originally Posted by relaxiha (Post 1737131)
hello i run query :
plz little more info for this query !

Dont run this...

Just open plugin and remove // from the begining

Karabaja 07-10-2009 12:48 AM

1 Attachment(s)
Thanks for the hack, just found it and testing it.
It seems to be missing something.

Attachment 101774

I imagine there should be Sort By text there at the bottom and search again, but there aren't.

mad@Max 07-10-2009 05:57 PM

Yes, you right, was bug. Fixed in version 3.0.1.

Karabaja 07-11-2009 10:58 AM

Quote:

Originally Posted by mad@Max (Post 1846486)
Yes, you right, was bug. Fixed in version 3.0.1.

Thanks for the update. But it seems the same to me.
I guess here is where "Sort by" text should be:
Code:

<fieldset class="fieldset">
                            <legend>
                                $vbphrase[lsa_sort]
</legend>

But there is no phrase called exactly "lsa_sort" so I assume that is why no text is displayed where it should say Sort by. I could change that to get the text. But still the button is missing to start sorting by chosen criteria. Or maybe there wasn't supposed to be a button at all. But in any case results display order doesn't change when different option is chosen from that sorting drop down.

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

Hm, really, one phrase was missing. Updated.

mad@Max 07-11-2009 07:45 PM

Version 3.0.2
Fixed previous bug with YUI forces:)

katie hunter 07-19-2009 04:12 PM

Hi,

Thanks mad@Max, nice mod =)

I am having a small issue with my custom template though
Would anyone know how to fix this?

http://i271.photobucket.com/albums/j...ykitten/s2.jpg

when the search load, the pop up window shows over the box where you put your text in not under it.
How can i make it show under Advance search?

http://i271.photobucket.com/albums/j...ykitten/s1.jpg

This is my template
PHP Code:

 <div class="quicksearch">
  <
p>Quick Search</p>
<
form action="search.php?do=process" method="post">
<
div id="lsa_window">
                <
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="" />
                <
input type="hidden" name="securitytoken" value="guest" />
                    
                            <
div class="searchBoxInput">

                                <
input type="text" id="lsa_input" class="searchinput" name="query" value="Search Forum" onfocus="if (this.value == 'Search Forum') this.value = '';" onblur="if (this.value == '') this.value = 'Search Forum';" />
                            </
div>
                            <
span class="loginButton">
                                <
input type="image" src="$stylevar[imgdir_misc]/gosearch.gif" value="Search" alt="Submit" />
                            </
span>
 </
div>
</
form>
    <
div class="memberLinks">
        <
a href="search.php">Go Advanced</a>
    </
div>    
 </
div>
</
div


mad@Max 07-19-2009 04:28 PM

Show your css class searchBoxInput.

katie hunter 07-19-2009 06:14 PM

Hi, this ?

PHP Code:

.searchBoxInput {
    
backgroundurl(images/ogen/misc/searchBoxInput.gifno-repeat top left;
    
width:226px;
    
height:21px;
    
float:left;



mad@Max 07-19-2009 06:26 PM

Replace into your css class float:left; on text-align:left;.

katie hunter 07-19-2009 06:42 PM

Hi I don't know what you mean..
There so many of these --> float:left; on text-align:left;.

This is my whole css

PHP Code:

img {
border0;
}

/* Header CSS */
.header {
height99px;
}

.
header_left {
float:left;
backgroundurl(images/orangetheme/misc/headerbg.gifno-repeat top right;
height74px;
width351px;
padding-left94px;
padding-top25px;
}

.
header_right {
float:right;
padding-top21px;
height78px;
padding-right10px;
}

/* Nav CSS */
.nav {
height37px;
backgroundurl(images/orangetheme/misc/navbg.gifrepeat-x;
padding-left10px;
}

.
navright {
float:right;
margin-top4px;
backgroundurl(images/orangetheme/misc/navright.gifno-repeat;
height33px;
line-height33px;
width203px;
padding-left23px;
margin-right10px;
}
.
navBackTop {
float:right;
background:url(images/orangetheme/misc/backTop.gifno-repeat;
margin:4px 10px 0 0;
width:94px;
height33px;
line-height33px;
padding-left:12px;
text-align:center;
}
.
navright a:link, .navright a:hover, .navright a:active, .navright a:visited,
.
navBackTop a:link, .navBackTop a:hover, .navBackTop a:active, .navBackTop a:visited {
color#ffffff;
text-decorationnone;
font-size12px;
font-familyarial;
}

.
navleft {
float:left;
}

.
navitem {
height37px;
}

.
quicksearch p {
width254px;
height9px;
line-height9px;
backgroundurl(images/orangetheme/misc/quicksearchbg.gifno-repeat top right;
padding0px;
margin0px;
margin-bottom4px;
padding-left5px;
}

.
navitem a:link, .navitem a:hover, .navitem a:active, .navitem a:visited {
font-familyarial;
font-size12px;
color#fff;
text-decorationnone;
padding-right20px;
}

.
memberandsearch {
background#e6e6e6 url(images/orangetheme/misc/memberandsearch.gif) repeat-x;
margin-top1px;
border-top#969696 1px solid;
border-bottom#c4c4c4 1px solid;
height70px;
padding-left10px;
padding-right10px;
}

.
navbc {
backgroundurl(images/orangetheme/misc/navbcbg.gifrepeat-x;
margin-top2px;
margin-bottom8px;
}

.
navbcright {
backgroundurl(images/orangetheme/misc/navbcright.giftop right no-repeat;
}

.
navbcleft {
backgroundurl(images/orangetheme/misc/navbcleft.gifno-repeat;
height24px;
padding-top9px;
padding-left36px;
}

.
navbcleft a:link, .navbcleft a:hover, .navbcleft a:active, .navbcleft a:visited {
color#6a6a6a;
text-decorationnone;
font-familyarial;
font-size11px;
}

.
memberlogin {
float:left;
}

.
quicksearch {
float:right;
padding-top12px;
}

.
searchfield {
float:left;
}

/* Main Page CSS */
.tcat_bg {
backgroundurl(images/orangetheme/misc/tcat_bg.gifrepeat-x;
}

.
tcat_right {
backgroundurl(images/orangetheme/misc/tcat_right.gifno-repeat top right;
}

.
tcat_left {
backgroundurl(images/orangetheme/misc/tcat_left.gifno-repeat top left;
height34px;
line-height34px;
padding-left16px;
font-familyarial;
font-size12px;
color#fff;
}

.
tcat_left a:hover, .tcat_left a:active, .tcat_left a:visited, .tcat_left a:link {
font-familyarial;
font-size12px;
color#fff;
text-decorationnone;
}

.
tfoot_bg {
backgroundurl(images/orangetheme/misc/tfoot_bg.gifrepeat-x top left;
}

.
tfoot_r {
backgroundurl(images/orangetheme/misc/tfoot_r.gifno-repeat top right;
}

.
tfoot_l {
height9px;
font-size1px;
backgroundurl(images/orangetheme/misc/tfoot_l.gifno-repeat top left;
}

.
search-quick {
backgroundurl(images/orangetheme/misc/searchbg.gifno-repeat;
border0px;
width219px;
height16px;
padding-top5px;
padding-left7px;
}

.
goadv {
clear:both;
margin-top7px;
padding-left5px;
}

.
goadv a:link, .goadv a:hover, .goadv a:active, .goadv a:visited {
font-size11px;
color#7e7e7e;
text-decorationnone;
}

/* Postbit CSS */
.vbmenu_c {
height34px;
padding0px;
padding-right6px;
line-height34px;
}

.
vbmenu_c a:link, .vbmenu_c a:hover, .vbmenu_c a:active, .vbmenu_c a:visited {
color#fff;
font-size12px;
font-familyarial;
text-ddecorationnone;
}

.
alt2pbt {
background#f1f1f1 url(images/orangetheme/misc/alt2pbt.gif) top left repeat-x;
border-right#fff 1px solid;
border-top#dadada 1px solid;
border-left#dadada 1px solid;
}

.
alt1pbt {
background#f1f1f1 url(images/orangetheme/misc/alt1pbt.gif) top left repeat-x;
border-right#dadada 1px solid;
border-top#dadada 1px solid;
border-left#d8d8d8 1px solid;
font-familyarial;
font-size12px;
color#2d2d2d;
}

.
alt2pbb {
background#f1f1f1;
border-right#fff 1px solid;
border-bottom#dadada 1px solid;
border-left#dadada 1px solid;
}

.
alt1pbb {
background#f1f1f1;
border-bottom#dadada 1px solid;
border-left#d8d8d8 1px solid;
}

.
greyblock {
margin1px 0;
height2px;
font-size1px;
background#bcbcbc;
}

.
pbbox {
font-familyarial;
font-size11px;
color#000000;
backgroundurl(images/orangetheme/misc/pbboxbg.gifrepeat-x;
text-aligncenter;
width148px;
height24px;
line-height24px;
overflow:hidden;
}

.
pbbox1 {
font-familyarial;
font-size11px;
color#000000;
backgroundurl(images/orangetheme/misc/pbbox1.gifrepeat-x;
text-aligncenter;
width148px;
height25px;
line-height25px;
}

.
pbinfo {
color#df6d00;
}

/* Footer CSS */
.copyright {
color#3b3b3b;
line-height1.6;
}

.
footer {
height77px;
backgroundurl(images/orangetheme/misc/footerbg.gifrepeat-x;
border-top#969696 1px solid;
margin-top0px;
}
.
footerWrap {
backgroundurl(images/orangetheme/misc/footerRight.gifno-repeat top right;
height:77px;
}
.
footerLogo {
float:right;
padding:18px 97px 0 0;
}
.
copyright {
float:left;
padding:20px 0 0 10px;
}
.
memberBox {
    
float:left;
    
width:291px;
    
height:74px;
    
padding:12px 0 0 0px;
}
.
memberBox form, .searchBox form {
    
margin:0;
    
padding:0;
}
.
memberBox input, .searchBox input {
    
float:left;
}
.
memberBox p {
width274px;
height9px;
line-height9px;
backgroundurl(images/orangetheme/misc/memberboxbg.gifno-repeat top right;
padding0px;
margin0px;
margin-bottom4px;
padding-left5px;
}
.
loginBox {
    
height:25px;
}
.
loginBoxInput {
    
backgroundurl(images/orangetheme/misc/loginBoxInput.gifno-repeat top left;
    
width:122px;
    
height:21px;
    
float:left;
}
.
logininput {
    
border:0;
    
background:transparent;
    
font:8pt arialhelveticasans-serif;
    
color#9a9a9a;
    
padding:4px 0 2px 0;
    
width:108px
    
margin:1px 7px 0 7px;
}
.
searchBoxInput {
    
backgroundurl(images/orangetheme/misc/searchBoxInput.gifno-repeat top left;
    
width:226px;
    
height:21px;
    
float:left;
}
.
searchinput {
    
border:0;
    
background:transparent;
    
font:8pt arialhelveticasans-serif;
    
color#9a9a9a;
    
padding:4px 0 2px 0;
    
width:212px
    
margin:1px 7px 0 7px;
}
.
loginButton {
    
float:left;
    
padding-left:5px;
}
.
memberLinks {
    
font:8pt arialhelveticasans-serif;
    
color#7e7e7e;
    
padding-left:5px;
}
.
memberLinks a:link, .memberLinks a:visited {
    
color#7e7e7e;
    
text-decoration:none;
}
.
memberLinks a:hover {
    
color:#e16a00;
    
text-decoration:none;
}
.
memberInfo {
    
float:left;
    
padding:22px 0 0 23px;
    
font:9pt arialhelveticasans-serif;
    
color:#545e69;
}
.
memberInfo a:link, .memberInfo a:visited {
    
font-weight:bold;
    
color:#1f5891;
}
.
memberInfo a:hover {
    
color:#545e69;
}
.
postbitBG {
    
background#fdfdfd url(images/orangetheme/misc/postbitBG.gif) repeat-x bottom left;




mad@Max 07-19-2009 07:30 PM

I mean change
HTML Code:

.searchBoxInput {
    background: url(images/ogen/misc/searchBoxInput.gif) no-repeat top left;
    width:226px;
    height:21px;
    float:left;
}

on
HTML Code:

.searchBoxInput {
    background: url(images/ogen/misc/searchBoxInput.gif) no-repeat top left;
    width:226px;
    height:21px;
    text-align:left;
}


katie hunter 07-19-2009 08:23 PM

1 Attachment(s)
Quote:

Originally Posted by mad@Max (Post 1851816)
I mean change
HTML Code:

.searchBoxInput {
    background: url(images/ogen/misc/searchBoxInput.gif) no-repeat top left;
    width:226px;
    height:21px;
    float:left;
}

on
HTML Code:

.searchBoxInput {
    background: url(images/ogen/misc/searchBoxInput.gif) no-repeat top left;
    width:226px;
    height:21px;
    text-align:left;
}


Hi,

That kinda moved my go button down

mad@Max 07-19-2009 08:35 PM

Hm, try add float:right; to loginButton class.


All times are GMT. The time now is 12:51 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.01901 seconds
  • Memory Usage 2,039KB
  • 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
  • (5)bbcode_html_printable
  • (5)bbcode_php_printable
  • (8)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