vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Live Search 1.0 (AJAX) (https://vborg.vbsupport.ru/showthread.php?t=154694)

coderphp 08-10-2007 06:19 PM

Quote:

Originally Posted by grazianno (Post 1314567)
nice nice mod thx man ;)

anytime

StrifeX 08-10-2007 07:27 PM

So, do you plan on fixing the problems it causes with Javascript or not? This has messed up every piece of Javascript on my site.

I'm really looking forward to setting this up properly, so for now I guess I'll just have to uninstall.

staff80 08-10-2007 08:48 PM

not suitable for large forums i think

coderphp 08-10-2007 09:01 PM

Quote:

Originally Posted by StrifeX (Post 1314672)
So, do you plan on fixing the problems it causes with Javascript or not? This has messed up every piece of Javascript on my site.

I'm really looking forward to setting this up properly, so for now I guess I'll just have to uninstall.

what javascript problems?
please write them here to be fixed

Quote:

Originally Posted by staff80 (Post 1314746)
not suitable for large forums i think

didnt test on large forums till now

Gunshot 08-10-2007 09:12 PM

Quote:

No it is not showing thread titles unless user can see it
the Mod is using the same user validation functions as the original search module do

you are mistaken..it shows thread titles from private forums to anyone that does a search.....
....it will not allow you to view the thread....but you can see the title

try it yourself

coderphp 08-10-2007 09:42 PM

Quote:

Originally Posted by Gunshot (Post 1314760)
you are mistaken..it shows thread titles from private forums to anyone that does a search.....
....it will not allow you to view the thread....but you can see the title

try it yourself

of course i tried it too many times and im sure of what i m saying :)
anyway u have the choice to use or not to use it

gg4gg 08-10-2007 10:18 PM

Great Hack
Installed
على الرغم من انني لم اركب الهاك لأنني و لكن لكونه رائع ولكون مبرمجه عربي فقد دعمته
لك تحياتي

Quantnet 08-10-2007 10:34 PM

I can confirm that guests can't not search for private threads. I just test it.

Quantnet 08-10-2007 10:36 PM

This is one of the best mods so far. i have installed close to 30 mods on my site and none of my members say anything. When i installed this mod, my members love it and post to say thank you.

I hope the author improve or add new features to this mod ;)

TheMilkCarton 08-10-2007 10:39 PM

@CoderPHP: Any reason this doesn't add "highlight" to the links you click in the results box??

For instance, searching for "please" at your site would result in a link that goes to http://www.montadaphp.net/showthread...ghlight=please

Since this doesn't search individual posts, highlighting please would at least help the users find what they were looking for more easily.

Well... just a suggestion, I'll most likely get around to installing this mod sometime, if only for Admins, Mods, and VIPs. :)

*installed* (so I remember to get around to it) :)

ymy 08-10-2007 10:48 PM

After install my VB not working

also I can`t log in to admin cp

what can i do ?

StrifeX 08-10-2007 10:48 PM

Quote:

After install my VB not working

also I can`t log in to admin cp

what can i do ?
1) Try to get in by going to yoursite.com/forums/admincp/index.php

If that doesn't work (I don't know if this will do anything...):

2) Edit config.php, and at the top add "define('DISABLE_HOOKS', 1);" (without quotes), and then delete the additions you made for the hack. Don't forget to get rid of that code in config.php when you're done. I'm pretty sure this has nothing to do with plugins/products but you might as well give it a try :p.

3) Also, it may be a different hack that you recently installed... Try step 2 and disable the latest few hacks you installed.

Quote:

Originally Posted by coderphp (Post 1314757)
what javascript problems?
please write them here to be fixed


didnt test on large forums till now

Many things such as my Shoutbox and Style Chooser don't work, along with some other hacks that use AJAX and/or javascript.

TheBlackPoet 08-10-2007 10:54 PM

Quote:

Originally Posted by ymy (Post 1314823)
After install my VB not working

also I can`t log in to admin cp

what can i do ?


wow!!! i dont think it was the ORIGINAL simplified version that caused this.. but the many other (really good enhancements).... that dont answer your question, but... i think going back to the basics would help...

it IS possible to over do a good thing


either install your tools.php to your admincp directory... (located in your DO NOT UPLOAD FOLDER..... )... and go to it through your browser... and go through the back way....... or .... (i think that will work)...

StrifeX 08-10-2007 10:57 PM

Quote:

Originally Posted by TheBlackPoet (Post 1314829)
wow!!! i dont think it was the ORIGINAL simplified version that caused this.. but the many other (really good enhancements).... that dont answer your question, but... i think going back to the basics would help...

it IS possible to over do a good thing


either install your tools.php to your admincp directory... (located in your DO NOT UPLOAD FOLDER..... )... and go to it through your browser... and go through the back way....... or .... (i think that will work)...

Umm, what?

coderphp 08-10-2007 11:00 PM

Quote:

Originally Posted by gg4gg (Post 1314800)
Great Hack
Installed
على الرغم من انني لم اركب الهاك لأنني و لكن لكونه رائع ولكون مبرمجه عربي فقد دعمته
لك تحياتي

many thanx
أشكرك بقوة على دعمك وذوقك الرفيع
وان شاء الله نردهالك في الأفراح
تحياتي
محمود

coderphp 08-10-2007 11:01 PM

Quote:

Originally Posted by Quantnet.org (Post 1314814)
I can confirm that guests can't not search for private threads. I just test it.

thank u for u confirmation :)
regards

coderphp 08-10-2007 11:10 PM

Quote:

Originally Posted by Quantnet.org (Post 1314816)
This is one of the best mods so far. i have installed close to 30 mods on my site and none of my members say anything. When i installed this mod, my members love it and post to say thank you.

I hope the author improve or add new features to this mod ;)

thanx Quantnet.org
and i hope u put here what u wish to c in the future version ;)

Quote:

Originally Posted by TheMilkCarton (Post 1314817)
@CoderPHP: Any reason this doesn't add "highlight" to the links you click in the results box??

this is not highlighting the post becoz we are only searching titles not posts
thanx for ur feedback
and indeed im thinking of adding an option to just let certain usergroups use this Mod

Quote:

Originally Posted by ymy (Post 1314823)
After install my VB not working

also I can`t log in to admin cp

what can i do ?

I dont think this have any issue with ur admincp
maybe u installed any other hack that affects ur forum
try to do like StrifeX saied


Quote:

Originally Posted by StrifeX (Post 1314825)
Many things such as my Shoutbox and Style Chooser don't work, along with some other hacks that use AJAX and/or javascript.

ok as that is not a problem with the original VB code, I ask u to tell me what hacks are installed in ur forum affected by this hack, please tell me exact versions with urls to be able to solve this

Milad 08-10-2007 11:39 PM

This is very good.

does it search in threads titles only? does it search in posts content?

Regards

coderphp 08-10-2007 11:43 PM

Quote:

Originally Posted by Milad (Post 1314858)
This is very good.

does it search in threads titles only? does it search in posts content?

Regards

only search in thread titles

Milad 08-10-2007 11:43 PM

There are two things:
1- I prefer you use the default AJAX class of vBulletin.
2- It's better to move the java code in the first step to a file in clientscript folder, and include it by joining this
HTML Code:

<script type="text/javascript" src="clientscript/vbulletin_livesearch.js?v=368"></script>
to the template "headerincludes".

Regards

ymy 08-10-2007 11:50 PM

StrifeX
Thanks a lot for your help
I follow your instruction and everything back to normal
Thanks again


TheBlackPoet , coderphp
I will try to find what's problem
I have another JavaScript in the headinclude. Do think there is any conflict with Live Search hack

=========

<script language="JavaScript1.2">
var rector=3
var stopit=0
var a=1
function init(which){
stopit=0
shake=which
shake.style.left=0
shake.style.top=0
}
function rattleimage(){
if ((!document.all&&!document.getElementById)||stopit ==1)
return
if (a==1){
shake.style.top=parseInt(shake.style.top)+rector
}
else if (a==2){
shake.style.left=parseInt(shake.style.left)+rector
}
else if (a==3){
shake.style.top=parseInt(shake.style.top)-rector
}
else{
shake.style.left=parseInt(shake.style.left)-rector
}
if (a<4)
a++
else
a=1
setTimeout("rattleimage()",50)
}
function stoprattle(which){
stopit=1
which.style.left=0
which.style.top=0
}
</script>


=========


<script language="JavaScript1.2">
function flashit(){
if (!document.all)
return
if (myexample.style.borderColor=="blue")
myexample.style.borderColor="red"
else
myexample.style.borderColor="blue"
}
setInterval("flashit()", 200)
</script>

=========


Thanks

coderphp 08-10-2007 11:55 PM

Quote:

Originally Posted by Milad (Post 1314863)
There are two things:
1- I prefer you use the default AJAX class of vBulletin.
2- It's better to move the java code in the first step to a file in clientscript folder, and include it by joining this
HTML Code:

<script type="text/javascript" src="clientscript/vbulletin_livesearch.js?v=368"></script>
to the template "headerincludes".

Regards

I have no much experience with VB's AJAX class
anyway ill think about using it in the future
thanx again Milad :)

Quote:

Originally Posted by ymy (Post 1314869)
StrifeX
Thanks a lot for your help
I follow your instruction and everything back to normal
Thanks again


TheBlackPoet , coderphp
I will try to find what's problem
I have another JavaScript in the headinclude. Do think there is any conflict with Live Search hack

=========

<script language="JavaScript1.2">
var rector=3
var stopit=0
var a=1
function init(which){
stopit=0
shake=which
shake.style.left=0
shake.style.top=0
}
function rattleimage(){
if ((!document.all&&!document.getElementById)||stopit ==1)
return
if (a==1){
shake.style.top=parseInt(shake.style.top)+rector
}
else if (a==2){
shake.style.left=parseInt(shake.style.left)+rector
}
else if (a==3){
shake.style.top=parseInt(shake.style.top)-rector
}
else{
shake.style.left=parseInt(shake.style.left)-rector
}
if (a<4)
a++
else
a=1
setTimeout("rattleimage()",50)
}
function stoprattle(which){
stopit=1
which.style.left=0
which.style.top=0
}
</script>


=========


<script language="JavaScript1.2">
function flashit(){
if (!document.all)
return
if (myexample.style.borderColor=="blue")
myexample.style.borderColor="red"
else
myexample.style.borderColor="blue"
}
setInterval("flashit()", 200)
</script>

=========


Thanks

Glad to hear ur forum is back
i dont think ur code has any interfere with Mod's code

StrifeX 08-11-2007 04:28 AM

Quote:

Originally Posted by coderphp (Post 1314839)
ok as that is not a problem with the original VB code, I ask u to tell me what hacks are installed in ur forum affected by this hack, please tell me exact versions with urls to be able to solve this

I'm quite sure it's not the fault of any hack, I've tried disabling nearly everything.

coderphp 08-11-2007 04:34 AM

Quote:

Originally Posted by StrifeX (Post 1314986)
I'm quite sure it's not the fault of any hack, I've tried disabling nearly everything.

Thanx StrifeX for ur reply
i wish i could help but really i see no probems in javascript when using this Mod on the original forum without any other Mod

ok could u please put ur JAVASCRIPT errors here??

StrifeX 08-11-2007 04:35 AM

Quote:

Originally Posted by Milad (Post 1314863)
There are two things:
1- I prefer you use the default AJAX class of vBulletin.
2- It's better to move the java code in the first step to a file in clientscript folder, and include it by joining this
HTML Code:

<script type="text/javascript" src="clientscript/vbulletin_livesearch.js?v=368"></script>
to the template "headerincludes".

Regards

I did that myself, but what is the "v=368" at the end for?

Also, one of the things that doesn't work is the "[ITech] [AJAX] Inferno vBShout Lite 1.0.1", which can be found here: https://vborg.vbsupport.ru/showthrea...ech%5D+inferno - When I refresh the page it just says "Loading...".

Quantnet 08-11-2007 06:53 AM

When search, the oldest threads appear on top. How can I make the latest thread appear on top ?

StrifeX 08-11-2007 09:16 PM

Nvrm, I just fixed the problem :)

coderphp 08-11-2007 11:17 PM

Quote:

Originally Posted by Quantnet.org (Post 1315051)
When search, the oldest threads appear on top. How can I make the latest thread appear on top ?

edit ajax_search.php file
search for:
Code:

$results = $db->query_read("SELECT * FROM ". TABLE_PREFIX ."thread WHERE `title` LIKE '%$query%' AND `thread`.`forumid` NOT IN (0 $excludelist)");
replace with:
Code:

$results = $db->query_read("SELECT * FROM ". TABLE_PREFIX ."thread WHERE `title` LIKE '%$query%' AND `thread`.`forumid` NOT IN (0 $excludelist) ORDER BY `lastpost` DESC");
Quote:

Originally Posted by StrifeX (Post 1315462)
Nvrm, I just fixed the problem :)

good to head that

Quantnet 08-11-2007 11:40 PM

thanks,

Now I'm thinking of enhancements that I like to see in next release ;)

coderphp 08-12-2007 01:45 AM

Quote:

Originally Posted by Quantnet.org (Post 1315526)
thanks,

Now I'm thinking of enhancements that I like to see in next release ;)

gr8
let me know when u finish :D

Quantnet 08-12-2007 01:50 AM

There seems to be a problem with +,++ or +++ (maybe more but this is what i just noticed)

When search for C++, it shows all thread that has C in it (which is so many). It shows the same results for C+, C++, C+++, C++++, etc

Something with how you parse the + sign

Quantnet 08-12-2007 02:16 AM

ideas for future enhancements:

Options to apply this mod to Search this thread (search for post) and Search this forum (search for thread title as before)

coderphp 08-12-2007 02:40 AM

Quote:

Originally Posted by Quantnet.org (Post 1315583)
There seems to be a problem with +,++ or +++ (maybe more but this is what i just noticed)

When search for C++, it shows all thread that has C in it (which is so many). It shows the same results for C+, C++, C+++, C++++, etc

Something with how you parse the + sign

Indeed it is a bug
the + sign is not appearing in the php script
i think the problem is concerned to using GET method for sending variables
ill check that & tell u soon

Quote:

Originally Posted by Quantnet.org (Post 1315596)
ideas for future enhancements:

Options to apply this mod to Search this thread (search for post) and Search this forum (search for thread title as before)

thanx for the improvments
of course ill add them in the future version :)

Quantnet 08-12-2007 03:35 AM

I just check for different browser platform and here is where everything is different. I tested with IE7, Opera and FF.

For IE7 (The Live Search word is on top of the search box instead of on the left of it and the popup stay on the right)
https://vborg.vbsupport.ru/

For Opera (looks fine but the search result is right aligned
https://vborg.vbsupport.ru/

For FF (this looks perfect)
https://vborg.vbsupport.ru/


I include here the search code which I insert into navbar template (I have a highly customized style). I would really appreciate if you can see what's wrong

Code:

<!-- search -->
                <if condition="$show['searchbuttons']">
        <td align="right" nowrap="nowrap" valign="top">
                <if condition="$show['member']">
                        <form action="/forum/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]" />


Live search <input type="text" name="query" size="25" class="header_search_field" onkeyup="showHint(this.value)" />
</form>
<div id="search_results" class="smallfont" style="position:absolute; border: 2px solid orange; color:blue; background-color: white; width: 300px; padding: 8px; display:none;overflow:auto; height:200px">
<div align="left"><a href="#" onClick="overlayclose('search_results'); return false">x</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>
                       
                        </table>
                        </form>
        <!-- / search -->


Magnumutz 08-12-2007 05:43 AM

My style is also HEAVILY modified and i had a lot of trouble making it work. But this depends on th Browser... IMO FF is the best browser...

coderphp 08-12-2007 08:17 PM

Quote:

Originally Posted by Quantnet.org (Post 1315617)
I just check for different browser platform and here is where everything is different. I tested with IE7, Opera and FF.

For IE7 (The Live Search word is on top of the search box instead of on the left of it and the popup stay on the right)
https://vborg.vbsupport.ru/

For Opera (looks fine but the search result is right aligned
https://vborg.vbsupport.ru/

For FF (this looks perfect)
https://vborg.vbsupport.ru/


I include here the search code which I insert into navbar template (I have a highly customized style). I would really appreciate if you can see what's wrong

Code:

<!-- search -->
        <if condition="$show['searchbuttons']">
    <td align="right" nowrap="nowrap" valign="top">
        <if condition="$show['member']">
            <form action="/forum/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]" />


Live search <input type="text" name="query" size="25" class="header_search_field" onkeyup="showHint(this.value)" />
</form>
<div id="search_results" class="smallfont" style="position:absolute; border: 2px solid orange; color:blue; background-color: white; width: 300px; padding: 8px; display:none;overflow:auto; height:200px">
<div align="left"><a href="#" onClick="overlayclose('search_results'); return false">x</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>
           
            </table>
            </form>
    <!-- / search -->


id dont know what is the problem
ill check the code and let u know

thanx

rainyleaves 08-13-2007 05:17 AM

Quote:

Originally Posted by Quantnet.org (Post 1315617)
I just check for different browser platform and here is where everything is different. I tested with IE7, Opera and FF.

For IE7 (The Live Search word is on top of the search box instead of on the left of it and the popup stay on the right)
https://vborg.vbsupport.ru/

For Opera (looks fine but the search result is right aligned
https://vborg.vbsupport.ru/

For FF (this looks perfect)
https://vborg.vbsupport.ru/


I include here the search code which I insert into navbar template (I have a highly customized style). I would really appreciate if you can see what's wrong

Code:

<!-- search -->
                <if condition="$show['searchbuttons']">
        <td align="right" nowrap="nowrap" valign="top">
                <if condition="$show['member']">
                        <form action="/forum/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]" />


Live search <input type="text" name="query" size="25" class="header_search_field" onkeyup="showHint(this.value)" />
</form>
<div id="search_results" class="smallfont" style="position:absolute; border: 2px solid orange; color:blue; background-color: white; width: 300px; padding: 8px; display:none;overflow:auto; height:200px">
<div align="left"><a href="#" onClick="overlayclose('search_results'); return false">x</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>
                       
                        </table>
                        </form>
        <!-- / search -->



This can help you... :)

Just add <br /> abobe of the 'header' code.

Quote:

<br />
<form action="search.php?do=process" method="post">
<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]" />
Live search <input type="text" name="query" size="25" class="header_search_field" onkeyup="showHint(this.value)" />
</form><br />
<div id="search_results" class="smallfont" style="position:absolute; border: 2px solid orange; color:blue; background-color: white; width: 300px; padding: 8px; display:none;overflow:auto; height:200px">
<div align="left"><a href="#" onClick="overlayclose('search_results'); return false">x</a></div>
</div>

Quantnet 08-13-2007 05:47 AM

Thanks for helping but it does not make any difference

rainyleaves 08-13-2007 05:56 AM

Quote:

Originally Posted by Quantnet.org (Post 1316343)
Thanks for helping but it does not make any difference

Oops!!
Sorry my mistaken.

This code...
Red <br />.
Quote:

<br />
<form action="search.php?do=process" method="post">
<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]" />
Live search <input type="text" name="query" size="25" class="header_search_field" onkeyup="showHint(this.value)" />
</form><br />
<div id="search_results" class="smallfont" style="position:absolute; border: 2px solid orange; color:blue; background-color: white; width: 300px; padding: 8px; display:none;overflow:auto; height:200px">
<div align="left"><a href="#" onClick="overlayclose('search_results'); return false">x</a></div>
</div>

Quantnet 08-13-2007 07:30 AM

Again, I appreciate your help a great deal.

i added as suggested, edited other part of the template to no avail.


All times are GMT. The time now is 01:34 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.01539 seconds
  • Memory Usage 1,916KB
  • 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
  • (3)bbcode_html_printable
  • (31)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