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)

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


All times are GMT. The time now is 06:17 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.01272 seconds
  • Memory Usage 1,755KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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