vb.org Archive

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

JVSP 09-09-2008 10:26 PM

Quote:

Originally Posted by mad@Max (Post 1618533)
Hm, in vbulletin_ajax_live_search.js find ajax_search.php and replace with http://www.your_site.com/forum/ajax_search.php.

Done, but it still doesn't work on my vbadvanced page. It works on my vbadvanced page when I put in the full address in the template "lsearch" but then the search won't work on my forum page. So it is like I can only have the search on one or the other.

-=Leb=- 09-09-2008 11:12 PM

Now i got same problem. I edited the vbulletin_ajax_live_search.js and i put the link to my forum and it still not working.
i'm getting this error when i search on my forum

Quote:

Fatal error: Call to undefined function: str_ireplace() in /home/content/b/1/n/b1****/html/forums/ajax_search.php on line 47
maybe i need to edit the ajax_search.php -

Sorry for the trouble and thx for your patience

mad@Max 09-09-2008 11:12 PM

fxlr8
May i look on your site?

VeeDubZ 09-09-2008 11:13 PM

you need to update the parts that are still not in english....one in vbulletin_ajax_live_search.js on line 8 and also in the product-lsearch_eng.xml file line 21 needs something to the effect of Live Search Results.

Great hack

mad@Max 09-09-2008 11:17 PM

Leb
You need put ajax_search.php in forum directory, because vbadvanced used forum engine.
VeeDubZ, Thanks, im forgot:)

-=Leb=- 09-09-2008 11:26 PM

Hi Max, the ajax_search.php is in the forum directory. I never changed or put it in wrong folder .

The older version worked fine for me, never had problem with it till i update it to the newest version .

VeeDubZ 09-09-2008 11:36 PM

Also adding a new phrase like $vbphrase[live_search] with the text "Forum Live Search" instead of using $vbphrase[search_forums] as ive done looks better IMO, look on my site www.reptilicious.com for a demo

JVSP 09-10-2008 01:02 AM

Quote:

Originally Posted by mad@Max (Post 1618574)
fxlr8
May i look on your site?


PM sent.

VeeDubZ 09-10-2008 02:20 AM

Quote:

Originally Posted by fxlr8 (Post 1616836)
I have mine to the left of the welcome box in the navbar. Here is the code I used.

Code:

<td class="alt1">
<form action="search.php?do=process" method="post">
                                        <div id="tb-searchdiv">
                                                <div id="tb-searchbox"><input type="text" id="search_input" name="query" tabindex="1001" maxlength="128" value="$vbphrase[search_forums]" onfocus="if(this.value=='$vbphrase[search_forums]')this.value='';" onblur="if(this.value=='$vbphrase[search_forums]')this.value='';" onkeyup="showHint(this.value)" /></div>
                                                <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]" />
                                        </div>
                                        </form>
</td>

Place it right after
Code:

<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>               
</if>
        </td>

in the navbar template.

Here is a pic: CLICK


ive mine set to this, but how to make it display on the navbar on all pages not just the forum home page?

Nordinho 09-10-2008 09:43 AM

hmm..when I enable this mod I get the error:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in ***/global.php(825) : eval()'d code on line 31


All times are GMT. The time now is 10:52 AM.

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.01325 seconds
  • Memory Usage 1,748KB
  • 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_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