PDA

View Full Version : Add-On Releases - [AJAX] Live Search


Pages : [1] 2

mad@Max
09-02-2008, 10:00 PM
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 (https://vborg.vbsupport.ru/attachment.php?attachmentid=91145&d=1230165817)

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
XML Error: Mismatched tag at Line 50
When importing product.
Using 3.7.2 PL2

saviola8x
09-03-2008, 10:35 PM
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
Live video: http://ru.youtube.com/watch?v=qDWQ7vz5vts

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

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

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

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:

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

-=Leb=-
09-06-2008, 10:42 AM
Hi mad@max, i'm wondering how can i put the search box from the left side of the forum to the right side?
That will be awesome if you could help me with that.
Also is there anyway to change background color for the search results

Anyway, thank you installed and nominated :)

mad@Max
09-06-2008, 11:25 AM
maidos, i'm not using this mod, may be in the future...
Leb, in the next version i did interface of setting style. Now you can change style in the file ajax_search.css.

maidos
09-06-2008, 03:27 PM
as for the bugs i posted? and feature to move the searchresult?
the profile tabs disappears, and when im not on index.php and click the close the result i will be redirected to the index page

JVSP
09-06-2008, 03:42 PM
fxlr8, in ajax_search.php:
before LIMIT add ORDER BY dateline DESC or ORDER BY dateline ASC.

Works a treat, Thanks!!!

JVSP
09-06-2008, 04:02 PM
Also is there anyway to change background color for the search results


edit live_search.css

FiMeTi
09-07-2008, 12:48 PM
Man this is great!! Works fine. Installed and nominated.

Could you please integrate this into vbadvanced?
Possible?

WildSoftCat
09-07-2008, 02:03 PM
It works fine in IE 8 and Google chrome, but in Opera and Firefox doesn't :(. Shows "nothing found". What can It mean ?:confused:

XxSparks
09-07-2008, 03:26 PM
I'm sorry to be such a newbie at this but would anyone possibly mind helping me out?

I'm not quite sure where to find this:

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

I've also uploaded the xml as a import plugin. And uploaded all my files to my room directory public_html/forum.
I also can't see the option for it in the vBulletin Options menu. What might be the problem?

Thanks in advanced.

FiMeTi
09-07-2008, 04:33 PM
@ XxSparks: You dont need that info u?ve posted anyway.

Just put this 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>


on the place, that you want the search-function to be shown.
Edit the template where you want it to be and paste the code.
:)

XxSparks
09-07-2008, 06:17 PM
Thank you so much FiMe ^_^ It worked like a charm.
But I hope it's not too much trouble for me asking.

I've actually played around with it, i've gotten the search bellow the other Search buttom.
Above the Sub forums, above Threads, but I'm wondering if there's any way to get it in the header like in this place here:

https://vborg.vbsupport.ru/external/2008/09/28.png

I would assume its in the forum header, i looked there, but its all above or bellow the headers.
So it looks rather odd. o.o

FiMeTi
09-07-2008, 06:51 PM
:) that was also the place where I was going to put it in, but after 2 hours of experimenting I just surrender. Hope someone can help ^^

JVSP
09-07-2008, 06:53 PM
I have mine to the left of the welcome box in the navbar. Here is the code I used.

<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
<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 (http://i85.photobucket.com/albums/k46/FXLR8/searchnav.jpg)

FiMeTi
09-07-2008, 07:13 PM
THATS PERFECT! :D
Thx br0 really do appreciate it.

chEErs

XxSparks
09-07-2008, 08:31 PM
Thanks any who Fi :).
And fx that's PERFECT! ^_^ heh.

Thanks for that.

mad@Max
09-09-2008, 07:02 PM
In version 1.2 i'm remove css file. Added highlight words in result, trim title of thread, if it large, and more compatible with different style.

mad@Max
09-09-2008, 07:57 PM
Hot fix. Reuploaded.

JVSP
09-09-2008, 08:54 PM
thanks..

Would be nice if it worked on all pages.

Also another question.....
How can I get the search window to look the same in both IE and FF.
https://vborg.vbsupport.ru/external/2008/09/43.jpg
Top pic is IE
Bottom is FF

mad@Max
09-09-2008, 09:24 PM
Its worked on all pages...
Strange, im get one result from both browsers.

JVSP
09-09-2008, 09:27 PM
Its worked on all pages...


It works on my .com/forum but not .com

mad@Max
09-09-2008, 09:32 PM
Hm, in vbulletin_ajax_live_search.js find ajax_search.php and replace with http://www.your_site.com/forum/ajax_search.php.

JVSP
09-09-2008, 10:26 PM
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

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
fxlr8
May i look on your site?


PM sent.

VeeDubZ
09-10-2008, 02:20 AM
I have mine to the left of the welcome box in the navbar. Here is the code I used.

<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
<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 (http://i85.photobucket.com/albums/k46/FXLR8/searchnav.jpg)


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

nesta1
09-10-2008, 12:42 PM
The following error occurred when attempting to evaluate this template:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /home/xxxx/public_html/forum/includes/adminfunctions_template.php(3729) : eval()'d code on line 8

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish

mad@Max
09-10-2008, 01:23 PM
Ok, i fix all problem. Soon reupload.

mad@Max
09-10-2008, 01:58 PM
Mod reaploaded.
I simulate situation with path "site/forum/" on my localhost. Now it worked if you add your path (setting in first post).

maidos
09-10-2008, 02:12 PM
when i trieduploading the new version product xml i get this

XML Error: Internal error at Line 32

mad@Max
09-10-2008, 02:34 PM
maidos
Thanks, reapload:)

JVSP
09-10-2008, 03:24 PM
doesn't seem to work on both vbadvanced page and forum reliably

mad@Max
09-10-2008, 04:28 PM
fxlr8
Update all files.

JVSP
09-10-2008, 04:41 PM
fxlr8
Update all files.

I originally had the updated files but it did not work on my homepage so I put back the older version.

I just reinstalled the newer files so you could take a look...... if you try searching on the homepage it gives nothing...it only works on the forum page.

mad@Max
09-10-2008, 04:50 PM
You dont read my message in first post or install.txt...
If you use vbadvanced, open vbulletin_ajax_live_search.js and add your forum path in var hurl="", like var hurl="http://your_site.com/forum/"

JVSP
09-10-2008, 05:07 PM
does adding www matter?

sorry for all the questions.

mad@Max
09-10-2008, 05:21 PM
Doesnt matter.

maidos
09-10-2008, 05:22 PM
thanks for the fix

JVSP
09-10-2008, 05:40 PM
working great now... Thanks for all your help.

Also in ajax_search.php I had to fill out the full address or the search results in vbadvanced wouldn't add /forum in it

Like:
echo "<a href=\"http://www.xxxxx.com/forum/showthread.php?t=".$result['threadid']."\" title=\"".$alt."\">" . $result['title'] . "</a><br />";

maidos
09-10-2008, 05:45 PM
how do i really change the bg color of the result window aswell of the background for Search results? and possible to add strokes on the search window?

Nordinho
09-10-2008, 09:48 PM
Mod reaploaded.
I simulate situation with path "site/forum/" on my localhost. Now it worked if you add your path (setting in first post).

Thanks...brilliant mod

Ray2khax
09-10-2008, 10:03 PM
Very nice mod! I love it and are going to be installing right now. Very nice job on it.

Nordinho
09-11-2008, 12:42 AM
Can posts that a user doesn't have permission to view be removed from the search results?

AzaDiyaR
09-11-2008, 10:11 AM
wow thank you very much :D this is very cool ;)
working ;)
www.azadiwelat.org/cmps_index.php

JVSP
09-11-2008, 03:00 PM
thanks..



How can I get the search window to look the same in both IE and FF.
https://vborg.vbsupport.ru/external/2008/09/43.jpg
Top pic is IE
Bottom is FF

Got it fixed, I just had to add padding in the code in the lsearch template.

mad@Max
09-11-2008, 03:02 PM
Nordinho, i can made option like "Group ID, who can use [AJAX] Live Search"...
fxlr8, padding is default for each style.

Nordinho
09-12-2008, 11:36 AM
i can made option like "Group ID, who can use [AJAX] Live Search"... hmm..that's not what I meant. I searched my testsite as a guest and in the searchresults a post showed up that is located in my moderator forums. Clicking it gave a no permission page. I would like to remove the the post that a user isn't allowed to view from the search results. Hope this is more clear.

mad@Max
09-12-2008, 03:49 PM
Script protect special forum from guest.

Max Kwiatkowski
09-14-2008, 08:09 PM
Good job! Thank you.

Julrou
09-18-2008, 12:28 PM
Hi !

Great mod, but does not work properly on my board.
I've got this error :

Fatal error: Call to undefined function: str_ireplace() in /home2/wb59376/forums/ajax_search.php on line 48

I don't use vbadvanced.


Can you help me please ?
Thks:)

Jul'

mad@Max
09-18-2008, 03:10 PM
In php file change str_ireplace on str_replace.

Julrou
09-18-2008, 06:07 PM
In php file change str_ireplace on str_replace.

Yes ! That's great !! It works fine now :up:

Thanks a lot, man ! ;)

rmxs
09-24-2008, 12:20 PM
Works goooooood..

Byt i use greek in my site and i get some ? at the end of topics..

I know this happends because cut the titles after some lettes how can i make it to use all the title....

mad@Max
09-29-2008, 10:42 PM
In version 1.3 i'm add shown forums with threads in result.
rmxs, you wana remove trimming titles?

Quantnet
09-30-2008, 02:58 AM
install the new version and the result no longer shows.
In the result window, there is only 2 words Thread and Forum

mad@Max
09-30-2008, 05:06 AM
Quantnet.org, try now, i reupload mod. Just replace ajax_search.php.

RobbieZ
09-30-2008, 05:10 AM
I like it.. installed

maidos
09-30-2008, 11:50 AM
just installed the new version still not working :/

rmxs
09-30-2008, 12:03 PM
In new version i try to search in greek and i get...



Database error in vBulletin 3.7.2:

Invalid SQL:
SELECT * FROM thread WHERE `title` LIKE '%ΝΕΑ%' AND `thread`.`forumid` NOT IN (0 ,54,197,210,6,62,8,12,127,108,119,82,122,10,46,204 ,207,136,48,79,11,49,206) LIMIT 50;

MySQL Error : Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (cp1251_general_ci,COERCIBLE) for operation 'like'
Error Number : 1267
Request Date : Tuesday, September 30th 2008 @ 04:06:16 PM
Error Date : Tuesday, September 30th 2008 @ 04:06:16 PM
Script : http://www.χχχχ.com/Vb/ajax_search.php?query=%CD%C5%C1
Referrer : http://www.χχχχ.com/Vb/index.php
IP Address :
Username :
Classname : vB_Database
MySQL Version : 5.0.51a-community

When i search english the results comes byt the greeks is ?????? and the topic is blank..only forums on results

Quantnet
09-30-2008, 12:39 PM
Uploaded the latest files and no result displayed.

mad@Max
09-30-2008, 01:41 PM
rmxs, Quantnet.org, what you use collations mysql and tables?

maidos
09-30-2008, 02:58 PM
max can you reply to my msg, the new version isnt working :(

mad@Max
09-30-2008, 04:37 PM
It is error in a trim title. Soon i rewrite it:)

rmxs
09-30-2008, 06:52 PM
connection collation utf8_collation_ci

MySQL charset: UTF-8 Unicode (utf8)

Quantnet
09-30-2008, 10:19 PM
rmxs, Quantnet.org, what you use collations mysql and tables?

sorry, i don't understand your question.
Version 1.2 used to work. When I updated to 1.3, it no longer works.
I reverted to 1.2, it does not work.

Do you modify sql table somewhere?

rmxs
10-01-2008, 06:25 AM
login to your phpmyadmin and check this.. connection collation, MySQL charset,and table collation

mine is
connection collation utf8_collation_ci

MySQL charset: UTF-8 Unicode (utf8)

Tables latin1_swedish_ci

mad@Max
10-01-2008, 09:01 PM
Mod is updated.
In the file ajax_search.php: "If you use cp1251 collation your tables, uncomment below strings"

Quantnet
10-02-2008, 02:01 AM
Same result. The box is empty with 2 headers Thread and Forum
It's frustrating

Here is the search piece of code I have in my navbar template

<!-- search -->
<if condition="$show['searchbuttons']">
<td align="right" nowrap="nowrap" valign="top">
<if condition="$show['member']">
<form action="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]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />

<div id="tb-searchdiv">
<div id="tb-searchbox"><input type="text" id="search_input" name="query" tabindex="1001" maxlength="128" value="$vbphrase[live_search]" onfocus="if(this.value=='$vbphrase[live_search]')this.value='';" onblur="if(this.value=='$vbphrase[live_search]')this.value='';" onkeyup="showHint(this.value)" /></div>



</div>
</form>



<div id="search_results" class="smallfont" style="position:absolute;top:150px; right:30px; left:50%; border: 2px solid #999999; color:grey; background-color: #F8F8F8 ; padding: 10px; display:none;overflow:auto; height:200px">
<div align="left"><a href="#" onClick="overlayclose('search_results'); return false">Close</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>
<tr>




</tr>
</table>
</form>
<!-- / search -->

Quantnet
10-02-2008, 02:19 AM
Both the version in the php and js still show 1.2

maidos
10-02-2008, 06:07 AM
the live search is still not working, updated the new version but still..
worked fine on 1.2

rmxs
10-02-2008, 06:08 AM
work ok also for greek..

Byt sometimes when i make search say no results byt if i hit enter normal search return me some results.

mad@Max
10-02-2008, 10:11 AM
Quantnet.org, you use ISO-8859-1 charset. I think problem is here...

Quantnet
10-02-2008, 02:45 PM
Quantnet.org, you use ISO-8859-1 charset. I think problem is here...
What do I have to do to fix this? Any change I have to make to the php or js files?

mad@Max
10-02-2008, 03:19 PM
Quantnet.org, needed a write convert function.

Quantnet
10-02-2008, 06:04 PM
ok, thanks for the response.
I'll uninstall this mod as it seems to be out of my reach.

nesta1
10-02-2008, 11:21 PM
1.2 work and 1.3 not work

maidos
10-03-2008, 04:18 AM
1.2 work and 1.3 not work

agree its not working on the new version :(

mad@Max
10-03-2008, 09:46 AM
Are you use vbadvanced?

nesta1
10-03-2008, 03:25 PM
hello no !
whenever search i see BOX but empty in BOX

mad@Max
10-03-2008, 04:07 PM
I dont no, if i add converters for all charset, mod will be large...

maidos
10-03-2008, 05:00 PM
can you provide 1.2 again? so we can use it instead of the newer version

rmxs
10-03-2008, 06:47 PM
For me works fine. :)

Maybe you have different charset in your db

Quantnet
10-03-2008, 07:07 PM
why in version 1.2, it doesn't matter what charset you have, it works for everyone and now 1.3 only works for certain charset. I find it weird.

I also like to get version 1.2 back ;)

mad@Max
10-03-2008, 07:36 PM
Please, who have 1.2 version of mod, post link on it. I'm miss that version:) I will put it in first post.

mad@Max
10-04-2008, 03:17 PM
Quantnet.org, try attached file with 1.3 version of mod.

maidos
10-04-2008, 10:03 PM
Quantnet.org, try attached file with 1.3 version of mod.

not working :(

mad@Max
10-04-2008, 10:49 PM
maidos, What are you use connection collation?

nesta1
10-04-2008, 10:53 PM
hello i have 1 problem!
i search after find ! link is false!
for example ! mydomain/forum/...
but find link mydomain.com/showthread

mad@Max
10-05-2008, 12:04 AM
How it is?

Quantnet
10-05-2008, 02:07 AM
mad@max,
thanks but the new file does not help.

I also have it kinda work in a different template but it has the same problem nesta1 mention.

The results is missing /forum/ part in the link.
instead of http://www.site.com/forum/showthread.php?t=2018
it points to
http://www.site.com/showthread.php?t=2018

Quantnet
10-05-2008, 02:18 AM
To fix the missing forum part in the result, this is what i did

Open ajax_search.php

Find echo "<div style=\"float:left;\"><a href=\"".$vboptions[bburl]."/showthread.php?

Replace with
echo "<div style=\"float:left;\"><a href=\"".$vboptions[bburl]."/forum/showthread.php?

mad@Max
10-05-2008, 07:23 AM
Quantnet.org, in the forum setting "Forum URL", what url you have?

rmxs
10-05-2008, 07:42 AM
This error happends also to me..
go dirrect to showthread and doest use forum url prefix.

rmxs
10-05-2008, 07:53 AM
https://vborg.vbsupport.ru/showpost.php?p=1637533&postcount=135

This fix doesnt help me :)

Quantnet
10-05-2008, 11:21 AM
Quantnet.org, in the forum setting "Forum URL", what url you have?
http://www.quantnet.org/forum

mad@Max
10-05-2008, 11:27 AM
I repeat my answer for all who mod not working, what you use mysql connection collation?
http://www.quantnet.org/forum
$vboptions[bburl] = http://www.quantnet.org/forum
This variable get link on your forum :)

maidos
10-05-2008, 12:42 PM
maidos, What are you use connection collation?

i followed the another members instructions about the forum url path but doesnt work


mysql> show session variables like '%collation_connection%';
+----------------------+-------------------+
| Variable_name | Value |
+----------------------+-------------------+
| collation_connection | latin1_danish_ci |
+----------------------+-------------------+
1 row in set (0.00 sec)

mad@Max
10-05-2008, 01:48 PM
maidos, for you in the file ajax_search.php find utf-8 and replace with latin1_danish_ci (your collation). Must be work.
Soon i write settings in the mod like trim title and collation.

maidos
10-05-2008, 02:33 PM
maidos, for you in the file ajax_search.php find utf-8 and replace with latin1_danish_ci (your collation). Must be work.
Soon i write settings in the mod like trim title and collation.


replaced but didnt work. Made sure to clean the browser cache... think you could visit my forum admincp

mad@Max
10-05-2008, 02:39 PM
maidos, check your pm.

rmxs
10-05-2008, 03:02 PM
what about the forum path?

still doesnt work.

mad@Max
10-05-2008, 03:28 PM
rmxs, check your pm too :)

mad@Max
10-05-2008, 04:00 PM
Who have problem with mod, try delete $query = iconv('UTF-8', $stylevar['charset'], $query); from ajax_search.php. maidos its helped.

maidos
10-05-2008, 04:43 PM
possible to be able to search with two keywords if i enter those two keywords reversed
example:
If i search for ABC DEF the search result will only show ABC D or ABC DE etc
while there is thread for DEF ABC but it will not find that thread if i search with ABC DEF

JVSP
10-05-2008, 04:51 PM
I noticed on my forum it would only work if I put www into the address.

For example
This http://quantnet.org/forum/ the search will not work
but on this http://www.quantnet.org/forum/ with www in the address the search will work.

JVSP
10-05-2008, 05:13 PM
Here is 1.2 if anybody needs it.

mad@Max
10-05-2008, 05:37 PM
maidos, its not possible.
fxlr8, delete www. from var hurl="http://www.quantnet.org/forum/"

maidos
10-05-2008, 05:56 PM
oh ok, but can the live search include files from the mods DownloadsII
https://vborg.vbsupport.ru/showthread.php?t=120122&highlight=downloadsII

mad@Max
10-05-2008, 06:53 PM
No, need write a new mod:)

mad@Max
10-06-2008, 06:21 PM
Hack is updated.
Now its work with vBadvanced (in the mod options choose "yes", about vBadvanced), also with www. and withuot.
Added optional title trimming.

maidos
10-07-2008, 07:02 AM
the new version stopped working again :(

mad@Max
10-07-2008, 11:59 AM
maidos, its problem in your template. Check your pm, i send the fix.

rmxs
10-07-2008, 04:23 PM
What about if the forum is under subdir?

now we edit the file manual

in new version?

mad@Max
10-07-2008, 04:44 PM
In new version just set "Yes", in the setting of mod "You use vBadvanced?".
I will make screenshot.

boandmichele
10-10-2008, 02:05 AM
is there any way to exclude my private subforum? (i have one for moderators and one for moderated/moved threads)

boandmichele
10-12-2008, 06:31 PM
is there any way to exclude my private subforum? (i have one for moderators and one for moderated/moved threads)

ive deactivated this until i can get this resolved. :(

mad@Max
10-12-2008, 10:54 PM
Mod is updated.
Rewrited php file and edited search form (in first post and in readme file).
For update just replace ajax_search.php

boandmichele
10-12-2008, 11:12 PM
Mod is updated.
Rewrited php file and edited search form (in first post and in readme file).
For update just replace ajax_search.php

max, how would i exclude a specific forum?

mad@Max
10-13-2008, 12:06 AM
With new file?
If you want hide some forum from searching: open ajax_search.php, find (0 $excludelist), and after 0 write forum id what you want, like (0,1,2,3,4,158 $excludelist). In next version i will write setting for this.

Quantnet
10-13-2008, 04:35 PM
in the new version of js file, there is no definition of var hurl?

boandmichele
10-13-2008, 04:40 PM
With new file?
If you want hide some forum from searching: open ajax_search.php, find (0 $excludelist), and after 0 write forum id what you want, like (0,1,2,3,4,158 $excludelist). In next version i will write setting for this.

perfect! thank you so much!

boandmichele
10-13-2008, 04:47 PM
uh oh... now i am getting this error, when i click on a thread which was found via the live search:
Forbidden

You don't have permission to access /showthread.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

mad@Max
10-13-2008, 05:51 PM
in the new version of js file, there is no definition of var hurl?
var hurl defined in plugin:)

mad@Max
10-13-2008, 05:56 PM
uh oh... now i am getting this error, when i click on a thread which was found via the live search:
If you use cms, type path to your forum into mod settings.

boandmichele
10-13-2008, 06:23 PM
If you use cms, type path to your forum into mod settings.

no cms for me. :( any other ideas?

mad@Max
10-13-2008, 09:26 PM
May i see on it?

RobbieZ
10-13-2008, 09:58 PM
Hey Mad@Max,

Does the search pane have to be on top left of forum ?

What im asking is can you just add it to the original search format already on vbulletin?

eg. When you press search a new window opens.

And when you start typing your ajax live search comes into effect ?

thanks

mad@Max
10-13-2008, 11:16 PM
Yes, i did it on some forums:) I was integrate it in search popup menu.

boandmichele
10-14-2008, 12:38 AM
May i see on it?
http://www.thefullmailbox.com/forums/

mad@Max
10-14-2008, 03:10 AM
You not include js file. All variables in your style is exist.

boandmichele
10-14-2008, 09:54 AM
vbulletin_ajax_live_search.js is inside the clientscript folder. is that correct?

mad@Max
10-14-2008, 05:29 PM
Yes, but it not included into html. Reinstall mod (first uninstall).

bonkerspr
10-14-2008, 09:38 PM
We already install it , but we dont see that the search is not different. No diference, please explain is spomethign more need to be add.

mad@Max
10-14-2008, 09:55 PM
May be one or more templates was not parsed. If you still have a problem write me in pm.

boandmichele
10-15-2008, 12:59 AM
Yes, but it not included into html. Reinstall mod (first uninstall).

so i need to include the code below somewhere, correct? where do i need to put it? i don't understand what is an 'open search field'.

sorry for all the questions, thank you very much for the rapid and helpful replies. :D

<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[live_search]" onFocus="if(this.value=='$vbphrase[live_search]'){this.value=''}" onBlur="if (this.value==''){this.value='$vbphrase[live_search]'}" 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>

RobbieZ
10-16-2008, 04:01 PM
Same question as above about open search!!

There are 4 occurances of <input type="text"

FORUMHOME, navbar, memberlist & SHOWTHREAD

SHOWTHREAD is for searching in that particular thread - so its not there

memberlist is for searching members - so its not there

that leaves you with 2 other options navbar & FORUMHOME which both have <input type="text" which appears twice in the templates.

do I add it to both occurances?

As i want it to integrate it which the original search window.

mad@Max
10-16-2008, 04:14 PM
RobbieZ, no, enough that what you include it in navbar:)
boandmichele, no, not parsing lsearch template... in the bottom of navbar templates add this <!-- / NAVBAR POPUP MENUS -->.

RobbieZ
10-16-2008, 05:47 PM
RobbieZ, no, enough that wath you include it in navbar:)

That doesnt make sense.

Do i put the HTML code in the navbar template ?

mad@Max
10-16-2008, 06:03 PM
With search code into navbar give you search on all pages.

RobbieZ
10-16-2008, 07:07 PM
How do i move this somewhere else on my board ?

https://vborg.vbsupport.ru/external/2008/10/30.png

And is there a possibility of having it with fancy curves and graphic like yours ? :D

https://vborg.vbsupport.ru/external/2008/10/31.png

mine looks a bit rubbish compared to yours.....

mad@Max
10-16-2008, 08:18 PM
This is a element of my style:)
You can move search form anywhere, but you must know html:)

RobbieZ
10-16-2008, 08:38 PM
This is a element of my style:)
You can move search form anywhere, but you must know html:)

Im not too bad with HTML.

This is where i would like it moving too : in the middle of the navbar like this :-

https://vborg.vbsupport.ru/external/2008/10/31.jpg

so it would look like this :



Can you either post the html or tell me where and what template to alter please.

mad@Max
10-16-2008, 09:12 PM
I dont know your code and dont know what mods you have.
Search form you may put in header, navbar...

RobbieZ
10-16-2008, 11:35 PM
At the moment it is on the left hand side. Is it possible to move it to the center of the forum?

mad@Max
10-17-2008, 12:48 AM
This is a simple html:) <div align="center">*search_form*</div> or <center>*search_form*</center>

maidos
10-17-2008, 02:25 PM
is it possible you could arrange a similar search result layout like this
http://nodstrum.com/2007/09/19/autocompleter/

also allow us to highlight a keyword from result windows when you just hover ur mouse

mad@Max
10-17-2008, 03:38 PM
I saw this. But for this need include jquery. And highlight by mouse hover i can made by myself:D

maidos
10-17-2008, 04:35 PM
I saw this. But for this need include jquery. And highlight by mouse hover i can made by myself:D

possible to include that higlight on your next release?

so in order to have that kind of layout result template you need jquery? will you possibly implement it?

iglobal
10-18-2008, 01:25 AM
mad@Max, would it be possible for this search engine to support special characters like á or ñ?

mad@Max
10-18-2008, 03:46 AM
possible to include that higlight on your next release?

so in order to have that kind of layout result template you need jquery? will you possibly implement it? higlight yes, but to get this view need rewrite all code:(
mad@Max, would it be possible for this search engine to support special characters like ? or ??Yes, tell me your collation connection with mysql, encoding tables and your language:)

segwayon
10-18-2008, 05:03 AM
Does Live Search search only within the forum? Or the whole internet? Sorry that I need a basic pointer such as this.

mad@Max
10-18-2008, 06:21 AM
Only for forum.

YsTyle
10-18-2008, 09:04 AM
great mod :)
i want to change the "live search" to my language,
but when i changes the live_search phrase, nothing changes.
where can i translate it?

mad@Max
10-18-2008, 02:39 PM
What you did for translate?

iglobal
10-20-2008, 02:02 AM
mad@Max, thanks for your quick reply and interest in helping me!!!
The forum is in Spanish, and the MySQL is in UTF-8 Unicode (utf8)

ForumsMods
10-20-2008, 03:24 AM
You must change UTF-8 to Latin1 ;)

CraiovaOnLine
10-23-2008, 08:02 PM
super mode
10x mate
just one question ...can i set it up to search just within one forum or just within one category ?
10x again

iglobal
10-24-2008, 04:50 AM
You must change UTF-8 to Latin1 ;)

Where should I change that?

mad@Max
10-24-2008, 06:51 AM
CraiovaOnLine, Yes, add after ". TABLE_PREFIX ."thread.forumid NOT IN (0 $excludelist) this ". TABLE_PREFIX ."thread.forumid IN (1,2,3,4,5,...)
iglobal, above $query = addslashes(trim($_GET['query'])); add $query = iconv('UTF-8', $stylevar['charset'], $query);

b6gm6n
10-24-2008, 10:19 AM
more instructions please, not so clear... it's for forms, not for my default search, uninstalled as not needed, thanks

PoetJA-1975
10-30-2008, 08:02 AM
The following is the contents of the vbulletin_live_ajax_search.js file:

/**
* Live Search v1.2
* @author mad@Max
*/
var xmlHttp3
function showHint(word)
{
document.getElementById("search_results").innerHTML = '<p></p><p></p><p align="center" class="smallfont"><img src="images/misc/progress.gif" /> Searching...</p>';
xmlHttp3=GetXmlHttpObject3()
if (xmlHttp3==null)
{
alert ("Browser does not support HTTP Request")
return
}
var url=hurl+"ajax_search.php"
url=url+"?query="+word
xmlHttp3.onreadystatechange=stateChanged3
xmlHttp3.open("GET",url,true)
xmlHttp3.send(null)
}

function stateChanged3()
{
var sSearch = document.getElementById("search_input").value;
var obj = document.getElementById("search_results");
var obj2 = document.getElementById("q_search");
if (sSearch.length>=3){
if (xmlHttp3.readyState==4 || xmlHttp3.readyState=="complete")
{
obj2.style.display = 'block';
obj.innerHTML=xmlHttp3.responseText;
}
} else {
obj2.style.display = 'none';
obj.innerHTML = '';
}
}

function GetXmlHttpObject3()
{
var objXMLHttp3=null
if (window.XMLHttpRequest)
{
objXMLHttp3=new XMLHttpRequest()
}
else if (window.ActiveXObject)
{
objXMLHttp3=new ActiveXObject("Microsoft.XMLHTTP")
}
return objXMLHttp3
}

As per the instructions - where do you add your forum path in var hurl="" -- I do not see that bit of code in the .js file

Thanx,

Jacquii.

ForumsMods
10-30-2008, 07:07 PM
Here:
/**
* Live Search v1.2
* @author mad@Max
*/
var xmlHttp3
function showHint(word)
{
document.getElementById("search_results").innerHTML = '<p></p><p></p><p align="center" class="smallfont"><img src="images/misc/progress.gif" /> Searching...</p>';
xmlHttp3=GetXmlHttpObject3()
if (xmlHttp3==null)
{
alert ("Browser does not support HTTP Request")
return
}
var url=hurl+"ajax_search.php"
url=url+"?query="+word
xmlHttp3.onreadystatechange=stateChanged3
xmlHttp3.open("GET",url,true)
xmlHttp3.send(null)
}

function stateChanged3()
{
var sSearch = document.getElementById("search_input").value;
var obj = document.getElementById("search_results");
var obj2 = document.getElementById("q_search");
if (sSearch.length>=3){
if (xmlHttp3.readyState==4 || xmlHttp3.readyState=="complete")
{
obj2.style.display = 'block';
obj.innerHTML=xmlHttp3.responseText;
}
} else {
obj2.style.display = 'none';
obj.innerHTML = '';
}
}

function GetXmlHttpObject3()
{
var objXMLHttp3=null
if (window.XMLHttpRequest)
{
objXMLHttp3=new XMLHttpRequest()
}
else if (window.ActiveXObject)
{
objXMLHttp3=new ActiveXObject("Microsoft.XMLHTTP")
}
return objXMLHttp3
}

Quantnet
11-01-2008, 08:32 PM
it seems that the search function works well under the site.com/forum/ but when you move to a different place like site.com/wiki/ and do a search from there, it will return error.

I tried to search in the top level domain site.com/ and it returns something like this

http://www.site.com/ 67.86.193.xxx /ajax_search.php?query=and www.site.com Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3 (.NET CLR 3.5.30729) 404 Please contact admin if you can not find the content you are looking for.

This should be easy by using relative path instead of absolute path?

PoetJA-1975
11-01-2008, 11:12 PM
Hi MAXIM :)

Actually- I have the 1st version installed at http://JPiCForum.info - it works just fine with vBSEO installed - I've installed the current version on http://DiscussWLS.com - and the it does not work with vBSEO installed. Not only that - but I could not find the edit to make it work on the vBadvanced page. You probably need to clarify the instructions in the download folder.

So my question - Can you make the 1st version upload available for download again please?

Thanx,

Jacquii.

mad@Max
11-01-2008, 11:14 PM
OMG. Use lasted version of mod also files.

Quantnet
11-01-2008, 11:49 PM
you can find ver 1.2 a few page back. Someone posted it there.

PoetJA-1975
11-02-2008, 07:35 AM
Thanx ;)

Jacquii.

mad@Max
11-02-2008, 11:24 AM
My mod does't have connection with vbseo:)

LordNinja
11-19-2008, 02:01 AM
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

mad@Max
12-13-2008, 07:58 PM
Mod is updated.
I grouped the templates and added another template.
LordNinja
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.

LordNinja
12-15-2008, 02:23 AM
mad@Max,

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

the first one (bburl) is because $vboptions return only [B]the domain, not the full url of the forum, like $vbulletin->options. then search works (results are shown on the float panel) but all result links are to "domain.com/showthread.php" instead "domain.com[B]/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:

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

mad@Max
12-15-2008, 07:52 AM
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.

LordNinja
12-16-2008, 02:06 AM
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

mad@Max
12-20-2008, 06:57 PM
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 .

Quantnet
12-20-2008, 10:11 PM
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.

mad@Max
12-20-2008, 11:20 PM
Ok, if you need this version, take it. :)

Quantnet
12-21-2008, 01:21 AM
thanks max.
Do you know how to get the Thread and Forum on top of your search result?
You can try to do a search at my forum and see it's not like at your forum.

I don't know where do you use lsearch template.

mad@Max
12-21-2008, 05:01 PM
Quantnet.org, i advice you to install a new version:)

Quantnet
12-21-2008, 10:42 PM
Quantnet.org, i advice you to install a new version:)

I did. It's not working, either using the $lsaform or my own search form. It's not returns any errors or anything. just empty box.

mad@Max
12-22-2008, 12:03 AM
Quantnet.org, try comment this string in module Live Search AJAX
// $query = iconv('UTF-8', $stylevar['charset'], $query);

Quantnet
12-22-2008, 12:17 AM
It's a no go. Try both.

Try to adjust the window size, location and it doesn't affect at all.

mad@Max
12-22-2008, 07:27 AM
Mb this is some conflict, because on clear forum all worked:)

FiMeTi
12-22-2008, 07:25 PM
Hi mad@Max. :)

I still use Version 1.0 and it works just sm00th.
Made a few style changes and did not want to update it. ^^

My question: Since this hack makes querrys for searchs, is it not able to abuse this hack? Freaks might use it all the day... even bots?

Thx ;)

mad@Max
12-22-2008, 08:00 PM
Yes, hack makes queries, but not large. In any case, the search can be switched off for guests (handly). In next version i will make option for this:)
PS Now you can limit order for the threads output (optional), thus can reduce the load.

MrZeropage
12-22-2008, 08:19 PM
Ok, I installed it and want it to make use of the standard-search-box in the navbar-dropdown.

I get it working/searching, but the popup-window is MUCH too large, the settings do not take real effect...

Maybe I did not integrate it correctly in the template ?


in NAVBAR I did replace<input type="text" class="bginput" name="query" size="25" tabindex="1001" />with<input type="text" class="bginput" id="search_input" name="query" size="25" maxlength="$vboptions[lsa_maxsym]" value="$vbphrase[lsa_live_search]" onfocus="if(this.value=='$vbphrase[lsa_live_search]'){this.value=''}; showHint();" onblur="if (this.value==''){this.value='$vbphrase[lsa_live_search]'}" onkeyup="showHint();" tabindex="1001" />

using vB 3.7.4 PL1

mad@Max
12-22-2008, 11:46 PM
Not can be:) Window is resizeable and movable in settings. I just check it, if put live search in default vb search field.

MrZeropage
12-23-2008, 05:25 AM
Ok, I am looking forward for your hint :)

mad@Max
12-23-2008, 07:35 AM
Can you give me screenshot?

MrZeropage
12-23-2008, 03:41 PM
sure - see attached ... working fine in Firefox but not in IE7

(sorry language on screenshot is german)

nesta1
12-24-2008, 12:40 AM
hi i see 1 problem!
if you installed on domain/forums/ is fine !
but for subdomains not working and waiting !
for example : forums.mydomain.com/ !! waiting but domain.com/forums/ is working and fine!

mad@Max
12-24-2008, 05:29 AM
Please give me refer to your sites to study the problem.

MrZeropage
12-24-2008, 05:52 AM
@nesta1:
I am not using subdomains, it is domain/board/
or was your posting not refered to my problem ? ;)

@mad@Max:
I will first try something else on a fresh 3.7.4 and then come back to you...

mad@Max
12-24-2008, 06:26 AM
MrZeropage, on fresh board mod is worked...

MrZeropage
12-24-2008, 07:26 AM
sorry, but I now tried a new fresh test-vBulletin and it does the same (in IE)

mad@Max
12-24-2008, 07:33 AM
Oh, you right, f*cking ie :) Soon will fix it.

mad@Max
12-24-2008, 07:53 PM
Version 1.6:
fixed bug of pop-up window in ie and
limit the number of displayed results
group permission
search by your own forums
sort results of search

MrZeropage
12-24-2008, 08:08 PM
Thanks alot, but please check the XML, is it not complete english...

dvbusuario
12-24-2008, 08:56 PM
Please, translate the .xml in English...

Thank you!

mad@Max
12-24-2008, 09:45 PM
Sorry, i forgot translate this part. Reuploaded:)

dvbusuario
12-24-2008, 10:44 PM
Thank you, I Translate in Spanish

Install!!!:up:

mad@Max
12-24-2008, 11:46 PM
Thanks, add in first post.

MAK-upl
12-25-2008, 02:04 AM
Sorry, i forgot translate this part. Reuploaded:)

Well... not exactly...

<description>Ď?čńę ?ĺ? ďĺđĺ?ŕăđ??ęč ńňđŕ?č?</description>

What? :confused:

If it works gonna translate it to polish.

MrZeropage
12-25-2008, 07:23 AM
Fine, thanks.

Really fantastic would be a template-adaption so that this complete functionality works within the original navbar-dropdown-menu "search", so typing in the input-field there and having the results below.

Any chance ?

mad@Max
12-25-2008, 03:07 PM
I was make that sometime...

MrZeropage
12-26-2008, 06:09 AM
looking forward to it, this really would be NICE

mad@Max
12-26-2008, 08:21 AM
You may copy and paste template lsa_main bottom (in navbar):
<label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
</div>
</form>
And in module Live Search Replace comment string
//$vbulletin->templatecache['navbar'] = str_replace('<!-- / NAVBAR POPUP MENUS -->', '<!-- / NAVBAR POPUP MENUS -->'.$lscode, $vbulletin->templatecache['navbar']);