Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
[YUI] Live Search Details »»
[YUI] Live Search
Version: 3.0.2, by mad@Max mad@Max is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.8.x Rating:
Released: 02-06-2009 Last Update: 07-10-2009 Installs: 162
Uses Plugins Auto-Templates
Additional Files  
No support by the author.

Features:
  • search only, if typed >= 3 symbols;
  • header to window with button close;
  • message about no result;
  • limit number of threads;
  • highlight words in result
  • trim title of thread, if it large (optional)
  • edit position of pop-up window
  • work with vBadvanced
  • limit the number of displayed results
  • group permission
  • search by your own forums
  • sort results of search
  • mod makes only one query to db
  • full compatibility with styles and browsers
  • search by individual words
  • integrate option into standard search
  • search only the specified length of each word
  • users search
  • interval requests
  • wrote 2 js class
Rewritten many things since version 1.6

Known Issues
Double click in search field - still not fixed.

Installation:
Upload all files from folder upload to forum folder.
Import product.

Upgrade
Uninstall the old version, delete files (if you has use it) and install new version.

If you already have opened search field, do following.
Search field look like this:

HTML Code:
                <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]" />
                    <input type="text" class="bginput" name="query" size="25" tabindex="1001" />
                    <input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" />

                </form>
So, after the opening tag <form ХХХ> add bottom:

HTML Code:
                    <div id="lsa_window">
Before the closing tag </form> add:

HTML Code:
                    </div>
We have prepared the search form to pop-up window. Now we need to bind to the field of javascript.
For this in tag <input type="text" /> add id="lsa_input"
As a result, you should get some of this code:

HTML 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>
P.S. If you already have id in your search field and its change may be possible to reset the anchor CSS, do the following.
Open the template lsa_script and edit the line

var lsa = new AJAX_LiveSearch_Prepare("lsa", "lsa_input", "lsa_window");

where the arguments of the class:
lsa - variable name initialize class js
lsa_input - search field id
lsa_window - pop-up window id

Thus, changing the arguments of the class AJAX_LiveSearch_Prepare, you can not edit the search field.

Live DEMO: http://mixplay.ru/ (user: test, pass: 123456)
Live video: http://www.youtube.com/watch?v=t_16fk5VGYw

PS Some function writed by ChangUonDyU

If you like this mod - Click Install it

Download Now

File Type: zip [AJAX] Live Search 2.2.3 Eng.zip (7.3 KB, 305 views)
File Type: zip [AJAX] Live Search 2.3.1 Eng.zip (7.6 KB, 366 views)
File Type: zip [YUI] Live Search v3.0.2 En.zip (9.6 KB, 896 views)

Screenshots

File Type: jpg lsa_set_eng.jpg (110.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #272  
Old 07-11-2009, 12:06 PM
mad@Max's Avatar
mad@Max mad@Max is offline
 
Join Date: Jul 2007
Location: Russia
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hm, really, one phrase was missing. Updated.
Reply With Quote
  #273  
Old 07-11-2009, 07:45 PM
mad@Max's Avatar
mad@Max mad@Max is offline
 
Join Date: Jul 2007
Location: Russia
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Version 3.0.2
Fixed previous bug with YUI forces
Reply With Quote
  #274  
Old 07-19-2009, 04:12 PM
katie hunter's Avatar
katie hunter katie hunter is offline
 
Join Date: May 2007
Posts: 533
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

Thanks mad@Max, nice mod =)

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



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?



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
Reply With Quote
  #275  
Old 07-19-2009, 04:28 PM
mad@Max's Avatar
mad@Max mad@Max is offline
 
Join Date: Jul 2007
Location: Russia
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Show your css class searchBoxInput.
Reply With Quote
  #276  
Old 07-19-2009, 06:14 PM
katie hunter's Avatar
katie hunter katie hunter is offline
 
Join Date: May 2007
Posts: 533
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, this ?

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

Reply With Quote
  #277  
Old 07-19-2009, 06:26 PM
mad@Max's Avatar
mad@Max mad@Max is offline
 
Join Date: Jul 2007
Location: Russia
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Replace into your css class float:left; on text-align:left;.
Reply With Quote
  #278  
Old 07-19-2009, 06:42 PM
katie hunter's Avatar
katie hunter katie hunter is offline
 
Join Date: May 2007
Posts: 533
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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;


Reply With Quote
  #279  
Old 07-19-2009, 07:30 PM
mad@Max's Avatar
mad@Max mad@Max is offline
 
Join Date: Jul 2007
Location: Russia
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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;
}
Reply With Quote
  #280  
Old 07-19-2009, 08:23 PM
katie hunter's Avatar
katie hunter katie hunter is offline
 
Join Date: May 2007
Posts: 533
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mad@Max View Post
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
Attached Images
File Type: jpg layout.JPG (12.8 KB, 0 views)
Reply With Quote
  #281  
Old 07-19-2009, 08:35 PM
mad@Max's Avatar
mad@Max mad@Max is offline
 
Join Date: Jul 2007
Location: Russia
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:59 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.05044 seconds
  • Memory Usage 2,512KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_html
  • (3)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete