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 02-13-2009 06:19 AM

About search field:
CSS:
Code:

#tb-searchdiv{float:right;padding:8px 5px 0 0;text-align:center;line-height:13px;cursor:default}#tb-searchdiv a{color:#000;font-size:11px;text-decoration:none;cursor:pointer}#tb-searchbox{padding:4px 11px 11px 22px;width:119px;background:url(images/as4/global/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}
HTML Code:

                                        <div id="tb-searchdiv"><div id="lsa_window">
                                                <div id="tb-searchbox"><input type="text" id="lsa_input" name="query" tabindex="1001" maxlength="$vboptions[lsa_maxsym]" value="$vbphrase[live_search]" onfocus="if(this.value=='$vbphrase[live_search]' || document.getElementById('lsa_window_menu').style.display == 'none'){this.value=''};<if condition="!in_array($bbuserinfo[usergroupid], array($vboptions[lsa_group]))"> showHint();</if>" onblur="if (this.value==''){this.value='$vbphrase[live_search]'}"<if condition="!in_array($bbuserinfo[usergroupid], array($vboptions[lsa_group]))"> onkeyup="showHint();</if>"/></div>
        <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<if condition="!in_array($bbuserinfo[usergroupid], array($vboptions[lsa_group]))"><script type="text/javascript"> vbmenu_register("lsa_window",1); </script></if></div>
                                                <a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a>
                                                <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]" />
                                        </div>
                                        </form>

You have a problem with UTF language?
Search work throughout board.
What do you mean about blog?

mad@Max 02-13-2009 03:46 PM

Updated video work of mod. http://www.youtube.com/watch?v=4w6AankLJkY :)

rapidphim 02-13-2009 04:45 PM

Thanks Max for the guiding. However, I am trying to understand:
1/ where to put the HTML code? The CSS part, I assume, I need to put to the bottom of the CSS section.

2/ When I tried the Search from the Search drop down function, with few words that I recently posted, it did not come up.

3/ About blog, does this hack also work for searching in Blog? When I tried to do a blog search from Search drop down function, it's not working... or did I do something not right?

Theater 02-13-2009 07:57 PM

Quote:

Originally Posted by mad@Max (Post 1742995)
Updated video work of mod. http://www.youtube.com/watch?v=4w6AankLJkY :)

Might want to double-check that video URL... :p

mad@Max 02-13-2009 08:00 PM

lol !!!!!! Sorry))))))))))))))))))))))))))))))))
Here that video http://www.youtube.com/watch?v=t_16fk5VGYw

rapidphim 02-13-2009 08:32 PM

I watched video but have no clue on how to add the Search field on the navbar... any hints? Thanks and sorry for stupidity!

mad@Max 02-13-2009 08:59 PM

Do following. In template navbar find:
HTML Code:

        <td class="alt2" nowrap="nowrap">
        <div class="smallfont">
                <strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br />

add above
HTML Code:

        <td class="alt1" align="center" nowrap="nowrap">
                $lsaform
        </td>


rapidphim 02-13-2009 10:16 PM

that did the job. however, I am finding difficulty to make it show this toolbar_searchbox.png. I did change the image path, uploaded the image, add CSS and nothing work.

Did I miss the HTML part? If so, where to I place those HTML codes? Thanks so much!

mad@Max 02-13-2009 11:14 PM

In next version i myself add this as feature.

rapidphim 02-14-2009 01:07 AM

Thanks Max... so, right now, I just have to wait for your next version? Can you manual guide me to put it on?

Can you also make it search result for Blog too? or at least make it an option for admin to decide?


All times are GMT. The time now is 03:42 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.01417 seconds
  • Memory Usage 1,754KB
  • 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
  • (3)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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