Jump to content

problema la search


bello

Recommended Posts

versiunea 1.2.4

dupa instalare ce am observat ca apare nou in 1.2.4 la search cand scrii ceva apare un fel de drop-down cu alte produse asemanatoare literelor pe care le tastez, kiar f tare treaba asta

dupa o vreme am vazut ca numi mai apare, am crezut ca o fi de la browser leam incercat pe toate ie8, firefox, opera, chrome , maxthon si nimic

in admin la preferences > search este bifat ajax search si am si apasat cele doua butoane de rebuild si add... idei ceva sa mearga din nou?

Link to comment
Share on other sites

Dca nu exista adauga astea doua linii in modules/blocksearch/blocksearch.tpl

<!-- Block search module -->
[removed][removed]
<link rel="stylesheet" type="text/css" href="{$content_dir}css/jquery.autocomplete.css" />

Link to comment
Share on other sites

De ce a removed linia java link?
postez din nou

<!-- Block search module -->
script type="text/javascript" src="{$content_dir}js/jquery/jquery.autocomplete.js">[removed]
<link rel="stylesheet" type="text/css" href="{$content_dir}css/jquery.autocomplete.css" />

Link to comment
Share on other sites

ce miai dat tu sa fac am facut si tot nu a mers

am gasit cele doua linii ale tale in modules/blocksearch/header.tpl si erau de cenu:

<link rel="stylesheet" type="text/css" href="{$content_dir}css/jquery.autocomplete.css" />
[removed][removed]

leam pus in toate tpl urile din modulul search si tot nu a mers

Link to comment
Share on other sites

ok, am intrat pe site-ul tai si am vazut problema

intra in modules/blocksearch/blocksearch-top.tpl

si modifica codul dintre tagurile script sa fie asa:

       {literal}

       function formatSearch(row) {
           return row[2] + ' > ' + row[1];
       }

       function redirectSearch(event, data, formatted) {
           $('#search_query').val(data[1]);
           document.location.href = data[3];
       }

       $('document').ready( function() {
           $("#search_query").autocomplete(
               '{/literal}{$base_dir}{literal}search.php', {
               minChars: 3,
               max:10,
               width:500,
               scroll: false,
               formatItem:formatSearch,
               extraParams:{ajaxSearch:1,id_lang:{/literal}{$cookie->id_lang}{literal[spam-filter]
           }).result(redirectSearch)
       });
       {/literal}

Link to comment
Share on other sites

se pare canu gaseste $cookie->id_lang in modules/blocksearch/blocksearch-top.tpl
incearca sa pui la codul de mai sus pe care l-am atasat:

extraParams:{ajaxSearch:1,id_lang:{/literal}ID_UL_LIMBII_TALE{literal[spam-filter]

de ex:
extraParams:{ajaxSearch:1,id_lang:{/literal}1{literal[spam-filter]


===========
dupa asta instaleaza/dezinstaleaza modulul - asigura-te ca este hook-uit :) in header si top.

Link to comment
Share on other sites

moa mergeeeee esti din bucuresti? hai la o bereee
multumesc nu credeam ca o sa mai rezolv buba asta - tre sa caut aku sa editez un pic sa apara altfel drop down meniul , daca reusesc :)

tre sa fac niste corecturi ca poate citeste si altcineva si sai fie mai usor , a trebuit sa citesc codul sursa din cele doua fisiere

deci in modules/blocksearch/blocksearch-top.tpl cam pe randul 34 apare

extraParams:{ajaxSearch:1,id_lang:{/literal}{$cookie->id_lang}{literal[spam-filter]

din cele spuse de Radu eu am adaugat 3 dupa cum urmeaza

extraParams:{ajaxSearch:1,id_lang:{/literal}{$cookie->id_lang}3{literal[spam-filter]

acest 3 lam luat din admin>tools>languages si ID ul corespunzator limbii default

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...