vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - [AJAX] Live Search (https://vborg.vbsupport.ru/showthread.php?t=235461)

Krusty1231 04-27-2011 02:20 AM

Perfect. I installed on 4.1.3 works great!

Thanks for this!

mishb68 05-21-2011 01:20 AM

I couldn't get it to work on 4.1.3. I couldn't get the search box (is it supposed to be a pop up?) to appear.

deinrapde 05-21-2011 10:27 PM

great work, but i have a idea/problem

if a theard called "supermann" and im searching for "super" or "sup" why the live search dont find anything only if i search "supermann"

TEMPESTADE 05-23-2011 09:12 PM

tanks work grate bro

AttalaEA 05-25-2011 03:14 PM

This hack dosen't work for me? any help

AttalaEA 05-26-2011 06:29 AM

Quote:

Originally Posted by mishb68 (Post 2198224)
I couldn't get it to work on 4.1.3. I couldn't get the search box (is it supposed to be a pop up?) to appear.

I have the same problem (no pop up) and the search remains same as before installing the Mod!

Samsine 06-17-2011 07:00 PM

Hello,

thanks for share this mod.

I use vB 4.1.4
The search works with Opera, IE8, FF and Chrome.

My problems:
1. the function 'collapse' is disabled.
2. Users will find results from invisible / private forums.

Regards

solohdes 06-22-2011 12:46 PM

I have installed and works great but I have a problem. This hack have problems with other hack that I have installed, you can see here:

https://vborg.vbsupport.ru/

The Filmstrip is over the live search box always. How can I fix it? THe film strip hack is this:

https://vborg.vbsupport.ru/showthread.php?t=264213

I translate the hack to spanish.

adiabatic 06-23-2011 05:13 PM

How can I make this search mod to work with Chrome?

Please help me;)

Can even pay...

Adrian Schneider 06-25-2011 04:33 PM

If anyone is having problems with it not working, it seems that the minifcation is causing some problems on some browsers (all newer, unfortunately).

Here is what we did to make it work:

Replace clientscript/ajax_live_search_init.js (4.0.5) with
Code:

/**
 * [YUI] Live Search Initialise Script Version 4.0.5
 *
 * @author mad@Max
 */
(function() {
    var b = YAHOO.util;
    YAHOO.vBulletin.lsaobj = function(c, a) {
        this.timeout = this.resobj = this.cont = this.req = null;
        this.textobj = b.Dom.get(c);
        this.textobj.value = vbphrase.live_search;
        this.textobj.setAttribute("autocomplete", "off");
        this.min = 3;
        b.Event.on(this.textobj, "focus", this.start, this, true);
        this.bb = location.href.search(/www\./) > -1 ? a.search(/www\./) < 0 ? "http://www."
                + (a.substring(0, 7) == "http://" ? a.substring(7) : a)
                : a
                : a.search(/www\./) > -1 ? a.replace(/www\./, "") : a
    };
    YAHOO.vBulletin.lsaobj.prototype.start = function() {
        this.textobj.value = vbphrase.lsa_loading;
        b.Get.script( [ "clientscript/yui/dragdrop/dragdrop-min.js",
                "clientscript/ajax_live_search-min.js" ], {
            onSuccess : function() {
                this.load()
            },
            scope : this
        })
    }
})();

Replace clientscript/ajax_live_search-min.js (4.0.5) with
Code:

/**
 * [YUI] Live Search Main Script Version 4.0.5
 *
 * @author mad@Max
 */
(function() {
    var g = YAHOO.util, e = g.Dom, c = g.Event, i = YAHOO.lang;
    i
            .augmentObject(
                    YAHOO.vBulletin.lsa,
                    {
                        init : function() {
                            c.removeListener(this.textobj, "focus", this.start);
                            c.on(this.textobj, "blur", this.winop, this, true);
                            c.on(this.textobj, "focus", this.winop, this, true);
                            c.on(this.textobj, "keyup", function(a) {
                                a = a || window.event;
                                PHP.in_array(a.keyCode || a.which, [ 37, 39,
                                        32, 36, 35 ]) > -1
                                        || this.get()
                            }, this, true);
                            c.on("lsarld", "click", this.get, this, true);
                            c.on("lsacls", "click", this.winop, this, true)
                        },
                        load : function() {
                            YAHOO.util.Connect
                                    .asyncRequest(
                                            "POST",
                                            this.bb
                                                    + "/ajaxlivesearch.php?do=lsawin",
                                            {
                                                success : function(a) {
                                                    if (a.responseXML) {
                                                        this.cont = document
                                                                .createElement("div");
                                                        this.cont.id = "lsa_cont";
                                                        this.cont.style.position = "absolute";
                                                        this.cont.style.display = "none";
                                                        this.cont.innerHTML = a.responseXML
                                                                .getElementsByTagName("lsagetwin")[0].firstChild.nodeValue;
                                                        document.body
                                                                .appendChild(this.cont);
                                                        this.textobj.value = "";
                                                        this.resobj = e
                                                                .get("lsa_results");
                                                        this.init();
                                                        (new g.DD(this.cont.id))
                                                                .setHandleElId("lsadd");
                                                        this.winop();
                                                        init_collapsers()
                                                    }
                                                },
                                                failure : vBulletin_AJAX_Error_Handler,
                                                timeout : vB_Default_Timeout,
                                                scope : this
                                            }, SESSIONURL + "securitytoken="
                                                    + SECURITYTOKEN
                                                    + "&do=lsawin")
                        },
                        winop : function(a) {
                            if (this.cont.style.display == "none") {
                                this.textobj.value = "";
                                this.resobj.innerHTML = vbphrase.lsa_wait;
                                this.cont.style.display = "block";
                                center_element(this.cont)
                            } else {
                                if (c.getTarget(do_an_e(a)).id == "lsacls")
                                    this.cont.style.display = "none";
                                this.textobj.value = this.textobj.value
                                        || vbphrase.live_search
                            }
                        },
                        get : function() {
                            var a = PHP.trim(this.textobj.value), h = e
                                    .get("lsawithword").value > 0, b = "";
                            if (a.length >= this.min) {
                                b = a;
                                if (!h) {
                                    var d = a.split(" ");
                                    b = "";
                                    for ( var f in d)
                                        d[f].length < this.min
                                                || (b += (b ? " " : "") + d[f])
                                }
                            }
                            if (b.length >= this.min) {
                                if (h || !(d.length > 1 && b != a)) {
                                    this.timeout && this.timeout.cancel();
                                    this.timeout = i.later(500, this,
                                            this.send, b)
                                }
                            } else
                                this.resobj.innerHTML = vbphrase.lsa_wait
                        },
                        send : function(a) {
                            var h = new vB_Hidden_Form(null), b = this.resobj, d = e
                                    .get("lsaloading");
                            h.add_variables_from_object(e.get("lsform"));
                            e.removeClass(d, "hidden");
                            g.Connect.isCallInProgress(this.req)
                                    && g.Connect.abort(this.req);
                            var f = new vB_AJAX_Handler(true);
                            f.callback = function(j) {
                                e.addClass(d, "hidden");
                                b.innerHTML = j.responseXML
                                        .getElementsByTagName("ajaxlivesearch")[0].firstChild.nodeValue
                            };
                            f
                                    .send(
                                            "ajaxlivesearch.php?do=search",
                                            "&do=search&"
                                                    + h
                                                            .build_query_string()
                                                            .replace(
                                                                    /lsazone=([a-z0-9]+)&/g,
                                                                    function(j,
                                                                            k,
                                                                            l) {
                                                                        return (l == 24 ? "lsazone="
                                                                                : ",")
                                                                                + k
                                                                                + (RegExp.rightContext
                                                                                        .search(/^lsasort/) == 0 ? "&"
                                                                                        : "")
                                                                    })
                                                    + "keyword="
                                                    + PHP.urlencode(a));
                            this.req = f.conn
                        }
                    })
})();

Hopefully this helps!


All times are GMT. The time now is 09:40 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.01418 seconds
  • Memory Usage 1,822KB
  • 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
  • (2)bbcode_code_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