vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Live Search 1.0 (AJAX) (https://vborg.vbsupport.ru/showthread.php?t=154694)

ArabSQuad 08-13-2007 10:16 AM

Awesome
Thanks alot bro :)

coderphp 08-15-2007 05:18 PM

Quote:

Originally Posted by Quantnet.org (Post 1315617)
I just check for different browser platform and here is where everything is different. I tested with IE7, Opera and FF.

For IE7 (The Live Search word is on top of the search box instead of on the left of it and the popup stay on the right)
http://img227.imageshack.us/img227/5132/ie7eg7.gif

For Opera (looks fine but the search result is right aligned
http://img227.imageshack.us/img227/849/operazt0.gif

For FF (this looks perfect)
http://img227.imageshack.us/img227/4404/firefoxzq3.gif


I include here the search code which I insert into navbar template (I have a highly customized style). I would really appreciate if you can see what's wrong

Code:

<!-- search -->
        <if condition="$show['searchbuttons']">
    <td align="right" nowrap="nowrap" valign="top">
        <if condition="$show['member']">
            <form action="/forum/search.php?do=process" method="post">
    <else />
            <form action="search.php$session[sessionurl_q]" method="post">
    </if>
    <table cellpadding="0" cellspacing="0" border="0">
            <tr>
                <td style="font-size:10px" title="nohilite">

                    <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]" />


Live search <input type="text" name="query" size="25" class="header_search_field" onkeyup="showHint(this.value)" />
</form>
<div id="search_results" class="smallfont" style="position:absolute; border: 2px solid orange; color:blue; background-color: white; width: 300px; padding: 8px; display:none;overflow:auto; height:200px">
<div align="left"><a href="#" onClick="overlayclose('search_results'); return false">x</a></div>
</div>

                   
                </td>
    <td nowrap="nowrap" id="navbar_search" class="smallfont">&nbsp;<a href="search.php$session[sessionurl_q]">Options</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>
            </tr>
           
            </table>
            </form>
    <!-- / search -->


i checked the code twice.. i didnt find anything wrong with it.. sorry i wish i could help further :(

coderphp 08-15-2007 05:19 PM

Quote:

Originally Posted by ArabSQuad (Post 1316440)
Awesome
Thanks alot bro :)

thanx ArabSQuad :)

hoangminh 08-16-2007 01:24 AM

If your database uses prefix, then this script will cause DB Error

To fix, at line 23
Quote:

PHP Code:

$results $db->query_read("SELECT * FROM "TABLE_PREFIX ."thread WHERE `title` LIKE '%$query%' AND `thread`.`forumid` NOT IN (0 $excludelist)"); 


Change to:
PHP Code:

    $results $db->query_read("SELECT * FROM "TABLE_PREFIX ."thread WHERE `title` LIKE '%$query%' AND `"TABLE_PREFIX ."thread`.`forumid` NOT IN (0 $excludelist)"); 


StrifeX 08-16-2007 06:01 AM

I've done some custom work to the modification, and it's really looking awesome.

Great job buddy, I'm glad you came around with something like this. :)

coderphp 08-23-2007 04:52 AM

Quote:

Originally Posted by hoangminh (Post 1318566)
If your database uses prefix, then this script will cause DB Error

To fix, at line 23


Change to:
PHP Code:

    $results $db->query_read("SELECT * FROM "TABLE_PREFIX ."thread WHERE `title` LIKE '%$query%' AND `"TABLE_PREFIX ."thread`.`forumid` NOT IN (0 $excludelist)"); 


Quote:

Originally Posted by StrifeX (Post 1318704)
I've done some custom work to the modification, and it's really looking awesome.

Great job buddy, I'm glad you came around with something like this. :)

THANX

SBlueman 09-02-2007 01:40 PM

I love this mod! Thank you!

69lakalle 09-07-2007 12:57 PM

i tried to install but wont work ......i click install so ....for the next release . i have and email for the update

nesta2006 10-28-2007 05:25 AM

hello .
my problem lock page!!
please see : http://i21.tinypic.com/30t45xh.jpg
3 windows open inside! and lock scrol

please help me

coderphp 10-28-2007 12:02 PM

Quote:

Originally Posted by nesta2006 (Post 1370209)
hello .
my problem lock page!!
please see : http://i21.tinypic.com/30t45xh.jpg
3 windows open inside! and lock scrol

please help me

I think you did something wrong..
please re-install the mod

coderphp 10-28-2007 12:03 PM

Quote:

Originally Posted by SBlueman (Post 1330755)
I love this mod! Thank you!

many thanx

Quote:

Originally Posted by 69lakalle (Post 1334216)
i tried to install but wont work ......i click install so ....for the next release . i have and email for the update

Please tell me what is the error u had when installed??

l2-inferno 01-27-2008 01:39 AM

This hack work with vBSEO 3.x ?

vietfancy 03-18-2008 11:12 AM

this hack has nothing to do with vbseo so it should be working just fine.

Thanks to coderphp for this great mod. Will install on my forum when I get back.

voted for MOTM

Suggestion: It would be nice if It could give out message like: we can't find topic contains "asdf;lkjg" if we type in something like this "asdf;lkjg"

Thanks

Quantnet 03-26-2008 03:00 AM

suddenly the script is not working anymore. you can try it on my signature.
Vietfancy, you have PM.

Gosef 03-26-2008 03:38 PM

Goog work mahmoud

Quantnet 04-03-2008 09:39 AM

2 questions.

1) how do we make the live search to work site wide instead of only under /forum/.
If i have a search box in www.site.com. www.site.com/wiki/

where do we use the absolute path ?

Right now, if i search under www.site.com, it will show this error
http://www.site.com/ xx.xxx.xx.xxx /ajax_search.php?query=and www.site.com Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13 404 Please contact admin@site.com if you can not find the content you are looking for.

3) The live search stops working after I added a new plug in. Found out it was a new plug in for openX i added.
If i disable it, it works fine.

Here is the instruction for the plug in

Product: vbulletin
hook location: global_start
title: OpenX Banners
Exec order: 4

Code:

// The MAX_PATH below should point to the base of your OpenX installation
  define('MAX_PATH', '/home/quantnet/public_html/openx');
  if (@include_once(MAX_PATH . '/www/delivery/alocal.php')) {
    if (!isset($phpAds_context)) {
      $phpAds_context = array();
    }
    $phpAds_raw = view_local('', 4, 0, 0, '', '', '0', $phpAds_context);

}

Any idea why it conflicts with the quick search mod and how to fix it ?

mad@Max 08-30-2008 12:05 AM

2 quotions:
How did when a search results = 0 window not opens? Or show message like "No results"?
How separate resultbit from X button (without del them)?

NAZIA 09-13-2008 07:32 PM

thanks for sharing I will check it..

mad@Max 09-13-2008 08:06 PM

Reincarnation this hack: https://vborg.vbsupport.ru/showthread.php?t=189970 :)

doa24uk 05-03-2009 10:58 AM

How would I edit this to search in a different database field than the default? I'm trying to create a new field & I want this working there.....

Ghostt 11-20-2009 08:42 PM

/edit
ok ive fixed it , was an prefix problem!
________________________
isnt it working with 3.8.4 ? i get an DB error


PHP Code:

Database error in vBulletin 3.8.4:

Invalid SQL:
SELECT FROM vbthread WHERE `titleLIKE '%pippi%' AND `thread`.`forumidNOT IN (,720,546);

MySQL Error   Unknown column 'thread.forumid' in 'where clause'
Error Number  1054
Request Date  
SaturdayNovember 21st 2009 01:29:52 AM
Error Date    
SaturdayNovember 21st 2009 01:29:52 AM
Script        
http://*ajax_search.php?query=pippi
Referrer      http://*/
IP Address    : *
Username      : *
Classname     vB_Database
MySQL Version 
5.0.77-log 


Diablo-Sat 01-14-2011 07:35 PM

thanks for this m8


All times are GMT. The time now is 01:34 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.01962 seconds
  • Memory Usage 1,794KB
  • 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
  • (4)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)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