Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
8 + 9 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: Ajax autocompletion feeded with isearch module
by tzvook on 2009/3/20 19:36:29

BUMP

Trabis - any news ?
can't wait to see the "terms" working ...
Have you seen the "double" keyword effect? am I the only one experiencing it ? ... each "word" is getting doubled ...
Re: Ajax autocompletion feeded with isearch module
by tzvook on 2009/3/18 15:41:15

One more thing T

@ /templates/blocks/mysearch_block_last_search.html

le="color: #000000"><?php <{foreach item=onesearch from=$block.searches}> <tr class="<{cycle values="even,odd"}>"><td align='center'><{$onesearch.keyword}></a></td></tr> <{/foreach}>


should be:
le="color: #000000"><?php <{foreach item=onesearch from=$block.searches}> <tr class="<{cycle values="even,odd"}>"><td align='center'><{$onesearch.link}><{$onesearch.keyword}></a></td></tr> <{/foreach}>


Along with ( /blocks/mysearch_last_search.php ) :
le="color: #000000"><?php $search['link'] = "<a href='".XOOPS_URL.'/search.php?query='.$oneelement->getVar('keyword')."&action=results' target='_blank'>";


Turning into this:
le="color: #000000"><?php $search['link'] = "<a href='".XOOPS_URL.'/modules/mysearch/search.php?query='.$oneelement->getVar('keyword')."&action=results'>";


And in this line ( a bit above ) I needed to hard code it - so it probably should also be a block $var

le="color: #000000"><?php $critere->setSort('datesearch'); // TZ for hard-coded limit $critere->setLimit($visiblekeywords); $critere->setLimit(5);


Since it's taking the $visiblekeywords from the module-wide preferences also for the block.

I didn't looked on all the blocks, just on this one ...
Re: Ajax autocompletion feeded with isearch module
by trabis on 2009/3/16 18:33:25

Thanks tzvook, I'll try to merge this into mysearch!
Re: Ajax autocompletion feeded with isearch module
by tzvook on 2009/3/16 15:47:00

Forgot one thing:

in this part:
le="color: #000000"><?php <script> insertVideos('youtubeDiv','search','<{section name=cur_kw_searched loop=$searched_keywords}><{$searched_keywords[cur_kw_searched]}><{if $smarty.section.cur_kw_searched.index <>$smarty.section.cur_kw_searched.total}> <{/if}><{/section}>','10',1); </script>


The no. 10 represents the clips no. and can be a $var of course
Re: Ajax autocompletion feeded with isearch module
by tzvook on 2009/3/16 15:40:32

Sorry trabis - I 4got about it, but here it is now

First of all here is the JS + CSS (kept it @ your module structure, and I'm 99.9% sure there's no hardcoded staff in it).
http://www.gifts45.com/tmp/mysearch.zip

@ /templates/mysearch_search.html I added ( before the <{$label_ignored_keywords}> section )

le="color: #000000"><?php <link rel="stylesheet" type="text/css" href="css/lightwindow.css" /> <!-- JavaScript --> <script type="text/javascript" src="js/inthetube/prototype.js"></script> <script type="text/javascript" src="js/inthetube/effects.js"></script> <script type="text/javascript" src="js/inthetube/lightwindow.js"></script> <link href="css/inTHEtube.css" rel="stylesheet" type="text/css" media="screen" /> <script src="js/inthetube/inTHEtube.js" type="text/javascript"></script> <p> <!-- Start video results --> <h2>Youtube video clips for: <{section name=cur_kw_searched loop=$searched_keywords}> <{$searched_keywords[cur_kw_searched]}><{if $smarty.section.cur_kw_searched.index <> $smarty.section.cur_kw_searched.total}>&nbsp;<{/if}><{/section}></h2> <center><div id="youtubeDiv" style="display: block; clear: both"> </div></center> <script> insertVideos('youtubeDiv','search','<{section name=cur_kw_searched loop=$searched_keywords}><{$searched_keywords[cur_kw_searched]}><{if $smarty.section.cur_kw_searched.index <>$smarty.section.cur_kw_searched.total}> <{/if}><{/section}>','10',1); </script> <!-- End your keywords results --> </p>

Who's Online

180 user(s) are online (143 user(s) are browsing Support Forums)


Members: 0


Guests: 180


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits