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
  #212  
Old 11-02-2008, 07:35 AM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanx

Jacquii.
Reply With Quote
  #213  
Old 11-02-2008, 11:24 AM
mad@Max's Avatar
mad@Max mad@Max is offline
 
Join Date: Jul 2007
Location: Russia
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My mod does't have connection with vbseo
Reply With Quote
  #214  
Old 11-19-2008, 02:01 AM
LordNinja LordNinja is offline
 
Join Date: Jul 2008
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Found the problem with subdirs like /forum

You should replace:

$vboptions[bburl]

with:

$vbulletin->options[bburl]

on line 78 of ajax_search.php

($vboptions[bburl] return only yourdomain.com while the new var return yourdomain.com/forum or whatever is your full bb url)

I also recommend mad@Max put this line (add before 15th line) on clientscript/vbulletin_ajax_live_search.js:

var hurl=""

then people will easier find what to edit
Reply With Quote
  #215  
Old 12-13-2008, 07:58 PM
mad@Max's Avatar
mad@Max mad@Max is offline
 
Join Date: Jul 2007
Location: Russia
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mod is updated.
I grouped the templates and added another template.
LordNinja
Quote:
I also recommend mad@Max put this line (add before 15th line) on clientscript/vbulletin_ajax_live_search.js:

var hurl=""

then people will easier find what to edit
For what? Link of your forum get from vb setting. This link get my variable.
Reply With Quote
  #216  
Old 12-15-2008, 02:23 AM
LordNinja LordNinja is offline
 
Join Date: Jul 2008
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

mad@Max,

i know it. i was talking about 2 different things.

the first one (bburl) is because $vboptions[bburl] return only the domain, not the full url of the forum, like $vbulletin->options[bburl]. then search works (results are shown on the float panel) but all result links are to "domain.com/showthread.php" instead "domain.com/forum/showthread.php" then you have a 404 when click it.

the second (the recommendation i made you) is just to make the file edit easier for those who have vBAvanced. example:

Code:
        var hurl=""
        var url=hurl+"ajax_search.php"
then people will make you less questions like you read in the first page of this thread

nice mod, anyway
Reply With Quote
  #217  
Old 12-15-2008, 07:52 AM
mad@Max's Avatar
mad@Max mad@Max is offline
 
Join Date: Jul 2007
Location: Russia
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Look, in the main settings vb, while vb installing, you must write path to your main page (like site.com) and to forum (like site.com or site.com/forum), second url get my variable
PS if your forum placed in site.com/forum and you set $vbulletin->options[bburl] as site.com, you will get error.
Reply With Quote
  #218  
Old 12-16-2008, 02:06 AM
LordNinja LordNinja is offline
 
Join Date: Jul 2008
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try yourself.

Forum Name: My Site Forums
Forum URL: http://www.mysite.com/forums
Homepage Name: My Site
Homepage URL: http://www.mysite.com

$vbulletin->options[bburl] return http://www.mysite.com/forums
$vboptions[bburl] return http://www.mysite.com

vBulletin 3.7.2
Reply With Quote
  #219  
Old 12-20-2008, 06:57 PM
mad@Max's Avatar
mad@Max mad@Max is offline
 
Join Date: Jul 2007
Location: Russia
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So, i rewrite many functions in my mod, but most importantly i got rid of files, now just one product
PS Some features i took from Advanced Quick Search - with AJAX by ChangUonDyU .
Reply With Quote
  #220  
Old 12-20-2008, 10:11 PM
Quantnet Quantnet is offline
 
Join Date: Nov 2006
Location: NYC
Posts: 649
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Max, you shouldn't remove the old version files when you update in case people still need the old versions if something breaks.

I'm looking for the old 1.32 version if anyone still have it.
Reply With Quote
  #221  
Old 12-20-2008, 11:20 PM
mad@Max's Avatar
mad@Max mad@Max is offline
 
Join Date: Jul 2007
Location: Russia
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, if you need this version, take it.
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 07:18 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.07116 seconds
  • Memory Usage 2,304KB
  • 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
  • (1)bbcode_code
  • (1)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