Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

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
  #312  
Old 12-26-2009, 12:31 AM
vietfancy's Avatar
vietfancy vietfancy is offline
 
Join Date: Feb 2005
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im waiting for the vb4 version. hehe
Reply With Quote
  #313  
Old 12-29-2009, 03:02 PM
malluland malluland is offline
 
Join Date: Apr 2009
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

On my new custom skin, its not working

this is the code from header

Code:
<div class="searchBox clearfix">
<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="$bbuserinfo[securitytoken]" />
<div class="searchWrap">
<input class="searchinput" type="text"  name="query" tabindex="1004" value="Search forum..." onfocus="if (this.value == 'Search forum...') this.value = '';" onblur="if (this.value == '') this.value = 'Search forum...';" size="23" />
</div>
<span class="searchButton">
<input type="image" src="images/styles/ITForum/style/searchButton.gif" value="Search" alt="Submit" />
</span>
</form>
</div>
</div>
</div></div
A small screen from the skin



When i press on the search box

its not doing anything

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

Replace string to
HTML Code:
<input id="lsa_input" class="searchinput" type="text"  name="query" tabindex="1004" size="23" />
vietfancy, i have not used vb4 ... yet.
Reply With Quote
  #315  
Old 12-29-2009, 04:22 PM
malluland malluland is offline
 
Join Date: Apr 2009
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<input class="searchinput" type="text" id="lsa_input" name="query" tabindex="1004" value="Search forum..." onfocus="if (this.value == 'Search forum...') this.value = '';" onblur="if (this.value == '') this.value = 'Search forum...';" size="23" />
Tried this and worked but the pop up is now coming over the searchbox

How can i fix this???
Reply With Quote
  #316  
Old 12-29-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

You missed closing div, between
HTML Code:
</span>
</form>
Reply With Quote
  #317  
Old 12-30-2009, 01:39 PM
malluland malluland is offline
 
Join Date: Apr 2009
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still the pop up is coming on top of the seachbox

How can i put the popup box below the search box
anything to do in css????
or in the code???

Please help
Reply With Quote
  #318  
Old 12-30-2009, 01:46 PM
marianoblesa marianoblesa is offline
 
Join Date: Jan 2006
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi mad@Max could put in the subject a code that is standard for all that work?

Thanks
Reply With Quote
  #319  
Old 12-30-2009, 06:11 PM
malluland malluland is offline
 
Join Date: Apr 2009
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

mad@Max Could you please help me?
Reply With Quote
  #320  
Old 12-30-2009, 06:53 PM
malluland malluland is offline
 
Join Date: Apr 2009
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is my header code

HTML Code:
<link type="text/css" rel="stylesheet" media="all" href="/forum/cometchat/css/cometchat.css" />
<a name="top"></a>

<if condition="$show['guest']">
<div id="welcome"></div>
<div class="welcomeWrap" id="welcome-window">
<a href="#" class="close-window"><img src="images/styles/ITForum/style/close.gif" class="x" alt="close" /></a>
<img src="images/styles/ITForum/style/welcomeHeding.gif" alt="Welcome to $vboptions[bbtitle]" class="welcome"/>
<div class="welcomeDesc">Are you a designer looking for a community? if so come join the conversation!!</div>
<a href="#" class="close-window"><img src="images/styles/ITForum/style/btn_just_browsing.gif" alt="Just Browsing" /></a>
<a href="register.php$session[sessionurl_q]"><img src="images/styles/ITForum/style/btn_add_yourself_free.gif" alt="Register Today" /></a>
<p>There are currently <strong>$numbermembers</strong> members <strong>$totalthreads</strong> threads with <strong>$totalposts</strong> posts.</p> </div>
</if>

<div id="header"><div class="pageWrapper">
<div class="logo">
<a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a>
</div>
<div class="searchBox clearfix">

<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="$bbuserinfo[securitytoken]" />
<div class="searchWrap">
<input id="lsa_input" class="searchinput" type="text"  name="query" tabindex="1004" size="23" />


</div>
<span class="searchButton">
<input type="image" src="images/styles/ITForum/style/searchButton.gif" value="Search" alt="Submit" />

</span>
</div>
</form>
</div>
</div>
</div></div>

<!-- nav buttons bar -->
<div class="navigation"><div class="pageWrapper">
<ul>
<li><a href="$vboptions[homeurl]" title="Home"><span>Home</span></a></li>
		<if condition="$show['member']">
			<li><a href="usercp.php$session[sessionurl_q]"><span>$vbphrase[user_cp]</span></a></li>
		</if>
		<if condition="$show['registerbutton']">
			<li><a href="register.php$session[sessionurl_q]" rel="nofollow"><span>$vbphrase[register]</span></a></li>
		</if>
		$template_hook[navbar_buttons_left]
		<li><a rel="help" href="faq.php$session[sessionurl_q]" accesskey="5"><span>$vbphrase[faq]</span></a></li>
		<if condition="$show['communitylink'] AND $show['popups']">
			<li><a id="community" href="$show[nojs_link]#community" rel="nofollow" accesskey="6"><span>$vbphrase[community]</span></a> <script type="text/javascript"> vbmenu_register("community",1); </script></li>
		<else />
			<if condition="$show['memberslist']">
				<li><a href="memberlist.php$session[sessionurl_q]"><span>$vbphrase[members_list]</span></a></li>
			</if>
			<if condition="$show['quick_links_groups']">
				<li><a href="group.php?$session[sessionurl]"><span>$vbphrase[social_groups]</span></a></li>
			</if>
		</if>
		<li><a href="calendar.php$session[sessionurl_q]"><span>$vbphrase[calendar]</span></a></li>
		<if condition="$show['popups']">
			<if condition="$show['searchbuttons']">
				<if condition="$show['member']">
				<li><a href="search.php?$session[sessionurl]do=getnew" accesskey="2"><span>$vbphrase[new_posts_nav]</span></a></li>
				<else />
				<li><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2"><span>$vbphrase[todays_posts]</span></a></li>
				</if>
				<li><a id="navbar_search" href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow"><span>$vbphrase[search]</span></a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search",1); </script></if></li>
			</if>
			<if condition="$show['member']">
				<li><a id="usercptools" href="$show[nojs_link]#usercptools" accesskey="3"><span>$vbphrase[quick_links]</span></a> <script type="text/javascript"> vbmenu_register("usercptools",1); </script></li>
			</if>
		<else />
			<if condition="$show['searchbuttons']">
				<li><a href="search.php$session[sessionurl_q]" accesskey="4"><span>$vbphrase[search]</span></a></li>
				<if condition="$show['member']">
				<li><a href="search.php?$session[sessionurl]do=getnew" accesskey="2"><span>$vbphrase[new_posts_nav]</span></a></li>
				<else />
				<li><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2"><span>$vbphrase[todays_posts]</span></a></li>
				</if>
			</if>
			<li><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow"><span>$vbphrase[mark_forums_read]</span></a></li>
			<if condition="$show['member']">
				<li><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;"><span>$vbphrase[open_contacts]</span></a></li>
			</if>
		</if>
		$template_hook[navbar_buttons_right]
		<if condition="$show['member']">
			<li><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"><span>$vbphrase[log_out]</span></a></li>
		</if>
</ul>
</div></div>
<!-- / nav buttons bar -->

$_phpinclude_output

$ad_location[ad_header_end]
Reply With Quote
  #321  
Old 01-01-2010, 09:00 AM
malluland malluland is offline
 
Join Date: Apr 2009
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got it sorted
Just needed to remove <div id="lsa_window">
cause there is already one below
Reply With Quote
Reply


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 05:58 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.16741 seconds
  • Memory Usage 2,402KB
  • 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
  • (2)bbcode_code
  • (7)bbcode_html
  • (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
  • (4)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