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)

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

Quote:

Originally Posted by mad@Max (Post 1615731)
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

Quote:

Originally Posted by Leb (Post 1615750)
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:

Quote:

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

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

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

Quote:

Originally Posted by mad@Max (Post 1618527)
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

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

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

Quote:

Originally Posted by mad@Max (Post 1619165)
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...
Quote:

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.


All times are GMT. The time now is 01:33 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.01457 seconds
  • Memory Usage 1,837KB
  • 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
  • (5)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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