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)

mad@Max 09-02-2008 10:00 PM

[AJAX] Live Search
 
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:)

Diesel, 09-03-2008 09:57 PM

nice :]

PoetJA-1975 09-03-2008 09:59 PM

Edit: nevermind...
Looks very interesting.
Thanx for sharing.

Jacquii.

GrandHolyKing 09-03-2008 10:01 PM

Is there an english site I can demo it on? Even one that someone has installed from here will do..
Thanks!

wolfstream 09-03-2008 10:05 PM

This is why screenshots are so important!
Please provide a screenshot, or an English site. Hell, even a better description would do!

crkgb 09-03-2008 10:12 PM

I think the demo in this case much better off with a demo link and not a screen shot

mad@Max 09-03-2008 10:14 PM

For what you need english site? This is so easy, in the search field (top-right) type any phrase and you will see work of mod.
I can did screenshot, but it dont tell about mod...

PoetJA-1975 09-03-2008 10:20 PM

Quote:

XML Error: Mismatched tag at Line 50
When importing product.
Using 3.7.2 PL2

saviola8x 09-03-2008 10:35 PM

Quote:

XML Error: Mismatched tag at Line 50
Me too !
vBulletin 3.7.2 ???

mad@Max 09-03-2008 10:37 PM

Sorry, i hurried up:) Fixed.
Archive reloaded.

mad@Max 09-03-2008 10:55 PM

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

PoetJA-1975 09-03-2008 11:24 PM

Quote:

Originally Posted by mad@Max (Post 1613992)

Thanx for that and the quick fix - will give it a try in a moment!
Really appreciate the sharing - Looks like a fabulous modification!

Jacquii.

PoetJA-1975 09-03-2008 11:50 PM

Sorry... Still getting same message with the new uploaded zip:
Quote:

XML Error: Mismatched tag at Line 50

mad@Max 09-04-2008 12:04 AM

Again fix. Now work 100%.

Barakat 09-04-2008 12:08 AM

intersting .... on my way to test it .... thanks for shareing

dvbusuario 09-04-2008 02:51 AM

Very good mod

Install & Nominated!!!

Thank you.

AlexanderT 09-04-2008 07:17 AM

Suggestion: Would it be possible to get rid of the custom Ajax XMLHttpRequests and use vB's built-in Ajax support instead?

AzaDiyaR 09-04-2008 07:48 AM

wow thank you very much for this mod... this working perfectly ;)

mad@Max 09-04-2008 08:41 AM

AlexanderT, may be...

bashy 09-04-2008 04:09 PM

HI

This aint working for me, I installed the product and uploaded all files in the forum root
I also used your search box code above and added it to my navbar, the search works
fine just not showing the the live search box :(

mad@Max 09-04-2008 05:01 PM

Hm...
In template lsearch find:
HTML Code:

<script type="text/javascript" src="clientscript/vbulletin_ajax_live_search.js"></script>
<link rel="stylesheet" type="text/css" href="clientscript/vbulletin_css/live_search.css" />

Replace:
HTML Code:

<script type="text/javascript" src="forum/clientscript/vbulletin_ajax_live_search.js"></script>
<link rel="stylesheet" type="text/css" href="forum/clientscript/vbulletin_css/live_search.css" />

Just you use another path to forum.

bashy 09-04-2008 05:21 PM

Hi, mine is actually /forums/ and i have added this and still no go for launch :(

mad@Max 09-04-2008 05:28 PM

Were i can see search field on your site?

bashy 09-04-2008 06:05 PM

Hi

I have added it directly above the Latest threads at the top for you to see
www.bashys-place.com/forums

mad@Max 09-04-2008 06:20 PM

Hm, i dont understand why... Were are you put ajax_search.php?

bashy 09-04-2008 07:25 PM

Hi

Thats in public_html/forums/ folder

bashy 09-04-2008 07:34 PM

Hi again

Looks like its my style as it works on the default VB style but sadly i do not use
the default style, i only use the mns7 style :(

mad@Max 09-04-2008 08:35 PM

Probably this is conflict...

maidos 09-04-2008 08:49 PM

How do i move the position of the search result?

maidos 09-04-2008 09:07 PM

when i click the close link on search result it redirects me to index page... when im in threads and searching

for each word i type the search result display Èùåì...

saviola8x 09-05-2008 04:16 AM

Thanks so much.

JVSP 09-05-2008 08:32 AM

How do you get this to work with a vbadvanced page at .com and the forum which is at .com/forum? I placed the search box in my navbar left of the welcome message... it works fine on the forum but not on the .com....the search results do not pop up.

mad@Max 09-05-2008 09:34 AM

Because i use one directory were placed forum and vbadvanced (/forum.php, /index.php).
In the next version with ajax - TODO:
  • search members (by request rovokop);
  • search in each forum, like "Search this forum";
  • more capability and functionality;

maidos 09-05-2008 11:22 AM

theres a bug when i add the code id="search_input" name="query" onkeyup="showHint(this.value)"

the profile tabs is gone and when i remove it its there again

Can you make the live search, search for files for DownloadsII a vb mods

Magnumutz 09-05-2008 04:39 PM

The demo video is enough.
Good job, i remember having a similar mod in the 3.5/3.6 days... but it died.

JVSP 09-05-2008 07:36 PM

Thanks,

How can you make the search results show up newest to oldest?

-and-

I also noticed when the product is enabled the rss feed detector in IE does not work, when I disable this product the feed detector works.

-----------------------------------------

Quote:

Originally Posted by mad@Max (Post 1614989)
Because i use one directory were placed forum and vbadvanced (/forum.php, /index.php).
In the next version with ajax - TODO:
  • search members (by request rovokop);
  • search in each forum, like "Search this forum";
  • more capability and functionality;

if this search could work on all pages that would be great..

Skyrider 09-06-2008 08:57 AM

I'm confused how to install this mod O_o.

mad@Max 09-06-2008 09:34 AM

FF|Skyrider, read first post.
fxlr8, in ajax_search.php:
before LIMIT add ORDER BY dateline DESC or ORDER BY dateline ASC.

maidos 09-06-2008 10:08 AM

max what about myreplies?

Skyrider 09-06-2008 10:19 AM

Quote:

Originally Posted by mad@Max (Post 1615731)
FF|Skyrider, read first post.
fxlr8, in ajax_search.php:
before LIMIT add ORDER BY dateline DESC or ORDER BY dateline ASC.

I have read it, and I am still confused.

Quote:

Installation:
Upload all files from folder "upload" in root directory of your forum.
Import product
If you dont have opened search field, add this code where you prefer:
HTML Code:
Code:

                                        <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>

If you already have this form, find <input type="text" ... /> and after type="text" add id="search_input" name="query" onkeyup="showHint(this.value)"

The place of the window and his style you can change in the file live_search.css
I'm sorry, but I don't understand this. Would be great if you add the details what files / templates to edit in order for the AJAX search function to work.

EDIT:
I got it to work thanks to someone's post in this thread. You might want to include that you have to edit one of the templates and add that code in it to make it to work.


All times are GMT. The time now is 04:54 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.01504 seconds
  • Memory Usage 1,817KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (7)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
  • (40)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