Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
[AJAX] Live Search Details »»
[AJAX] Live Search
Version: 1.6, by mad@Max mad@Max is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.7.x Rating:
Released: 09-02-2008 Last Update: 12-23-2008 Installs: 100
Uses Plugins Template Edits Auto-Templates
Re-useable Code Additional Files  
No support by the author.

This is mod rewrite of that: https://vborg.vbsupport.ru/showthread.php?t=154694

Version 1.6

Continue (v2.0) of this mod is here: https://vborg.vbsupport.ru/showthread.php?t=204517

I'm added few functions:
  • 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

Installation:
Import product

Upgrade
Uninstall the old version, delete files (if you has use it) and install new version.

Live DEMO: http://mixplay.ru/
Live video: http://ru.youtube.com/watch?v=qDWQ7vz5vts

PS Some function writed by ChangUonDyU

Spanish translation v1.6

If you like this mod - Click Install it

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #62  
Old 09-09-2008, 10:26 PM
JVSP JVSP is offline
 
Join Date: Jul 2007
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mad@Max View Post
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.
Reply With Quote
  #63  
Old 09-09-2008, 11:12 PM
-=Leb=-'s Avatar
-=Leb=- -=Leb=- is offline
 
Join Date: Jan 2008
Location: Sweden
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #64  
Old 09-09-2008, 11:12 PM
mad@Max's Avatar
mad@Max mad@Max is offline
 
Join Date: Jul 2007
Location: Russia
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

fxlr8
May i look on your site?
Reply With Quote
  #65  
Old 09-09-2008, 11:13 PM
VeeDubZ VeeDubZ is offline
 
Join Date: Nov 2007
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #66  
Old 09-09-2008, 11:17 PM
mad@Max's Avatar
mad@Max mad@Max is offline
 
Join Date: Jul 2007
Location: Russia
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Leb
You need put ajax_search.php in forum directory, because vbadvanced used forum engine.
VeeDubZ, Thanks, im forgot
Reply With Quote
  #67  
Old 09-09-2008, 11:26 PM
-=Leb=-'s Avatar
-=Leb=- -=Leb=- is offline
 
Join Date: Jan 2008
Location: Sweden
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 .
Reply With Quote
  #68  
Old 09-09-2008, 11:36 PM
VeeDubZ VeeDubZ is offline
 
Join Date: Nov 2007
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #69  
Old 09-10-2008, 01:02 AM
JVSP JVSP is offline
 
Join Date: Jul 2007
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mad@Max View Post
fxlr8
May i look on your site?

PM sent.
Reply With Quote
  #70  
Old 09-10-2008, 02:20 AM
VeeDubZ VeeDubZ is offline
 
Join Date: Nov 2007
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fxlr8 View Post
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?
Reply With Quote
  #71  
Old 09-10-2008, 09:43 AM
Nordinho Nordinho is offline
 
Join Date: Aug 2004
Location: Netherlands
Posts: 288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply

Thread Tools

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 04:47 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.05649 seconds
  • Memory Usage 2,314KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete