WordPress.org

Ready to get started?Download WordPress

Forums

qTranslate
[resolved] Search through the categories, the posts in a specific language (2 posts)

  1. antoniobon
    Member
    Posted 1 year ago #

    I'm building a free website with wordpress 3.42 multisite and buddypress 1.61.
    I created three search tools with multiple category plugin and q-translate plugin. I put them in one box, placed after the header.
    There are three so that users can search for posts in their language, but the results of search appear in the default language of the site.
    Otherwise I would like the results appeared in the following way ...
    search it: http://www.easyfasttravel.altervista.org/categories/16334,16715,8136/search_type/and/order/title/
    search en: http://www.easyfasttravel.altervista.org/en/categories/16334,16715,8136/search_type/and/order/title/
    search es: http://www.easyfasttravel.altervista.org/es/categories/16334,16715,8136/search_type/and/order/title/

    <div style="width: 1250px; height: 300px; -webkit-border-radius: 20px; -moz-border-radius: 20px; border-radius: 20px; border: 1px solid #FFFF00; background-color: #fceb51; -webkit-box-shadow: #B3B3B3 3px 3px 3px; -moz-box-shadow: #B3B3B3 3px 3px 3px; box-shadow: #B3B3B3 3px 3px 3px;">
    <div style="text-align: center;"></div>
    <div style="text-align: center;"><img src="http://www.easyfasttravel.altervista.org/wp-content/uploads/2012/11/100px-Flag_of_Italy.svg_.png" alt="" width="60" height="40" /></div>
    <div id="mcswwidget-5" style="text-align: center;">
    <h5><span style="color: #ff0000;">Cerca Hotel per</span></h5>
    <form action="" method="post">
    <fieldset><select name="wpmm[]"> <option value="0">» a) Italia – Provincia</option><option value="16295"> Italia – Agrigento</option><option value="16308"> Italia – Alessandria</option><option value="16307"> Italia – Ancona</option><option value="16305"> Italia – Aosta</option><option value="16306"> Italia – Arezzo</option><option value="16330"> Italia – Ascoli Piceno</option><option value="16334"> Italia – Asti</option><option value="16335"> Italia – Avellino</option><option value="16580"> Italia – Bari</option><option value="16625"> Italia – Barletta-Andria-Trani</option><option value="16639"> Italia – Belluno</option><option value="19134"> Italia – Benevento</option><option value="17076"> Italia – Bergamo</option><option value="17077"> Italia – Biella</option><option value="17078"> Italia – Bologna</option><option value="17082"> Italia – Bolzano</option><option value="17083"> Italia – Brescia</option><option value="17084"> Italia – Brindisi</option><option value="17085"> Italia – Cagliari</option><option value="17086"> Italia – Caltanissetta</option><option value="17087"> Italia – Campobasso</option><option value="17088"> Italia – Carbonia-Iglesias</option><option value="17089"> Italia – Caserta</option><option value="17090"> Italia – Catania</option><option value="17091"> Italia – Catanzaro</option><option value="17092"> Italia – Chieti</option><option value="17093"> Italia – Como</option><option value="17094"> Italia – Cosenza</option><option value="17095"> Italia – Cremona</option><option value="17096"> Italia – Crotone</option><option value="17097"> Italia – Cuneo</option><option value="17098"> Italia – Enna</option><option value="17099"> Italia – Fermo</option><option value="17100"> Italia – Ferrara</option><option value="17101"> Italia – Firenze</option><option value="17102"> Italia – Foggia</option><option value="17103"> Italia – Forlì-Cesena</option><option value="17104"> Italia – Frosinone</option><option value="17105"> Italia – Genova</option><option value="17106"> Italia – Gorizia</option><option value="17107"> Italia – Grosseto</option><option value="17108"> Italia – Imperia</option><option value="17109"> Italia – Isernia</option><option value="17111"> Italia – L’Aquila</option><option value="17110"> Italia – La Spezia</option><option value="17112"> Italia – Latina</option><option value="17113"> Italia – Lecce</option><option value="17114"> Italia – Lecco</option><option value="17115"> Italia – Livorno</option><option value="17116"> Italia – Lodi</option><option value="17117"> Italia – Lucca</option><option value="17118"> Italia – Macerata</option><option value="17119"> Italia – Mantova</option><option value="17120"> Italia – Massa-Carrara</option><option value="17121"> Italia – Matera</option><option value="17153"> Italia – Medio Campidano</option><option value="17122"> Italia – Messina</option><option value="17123"> Italia – Milano</option><option value="17124"> Italia – Modena</option><option value="17125"> Italia – Monza e della Brianza</option><option value="17126"> Italia – Napoli</option><option value="17127"> Italia – Novara</option><option value="17128"> Italia – Nuoro</option><option value="17163"> Italia – Ogliastra</option><option value="17129"> Italia – Olbia-Tempio</option><option value="17130"> Italia – Oristano</option><option value="17131"> Italia – Padova</option><option value="17132"> Italia – Palermo</option><option value="17133"> Italia – Parma</option><option value="17134"> Italia – Pavia</option><option value="17135"> Italia – Perugia</option><option value="17136"> Italia – Pesaro e Urbino</option><option value="17137"> Italia – Pescara</option><option value="17138"> Italia – Piacenza</option><option value="17139"> Italia – Pisa</option><option value="17140"> Italia – Pistoia</option><option value="17141"> Italia – Pordenone</option><option value="17142"> Italia – Potenza</option><option value="17143"> Italia – Prato</option><option value="17144"> Italia – Ragusa</option><option value="17145"> Italia – Ravenna</option><option value="17146"> Italia – Reggio Calabria</option><option value="17147"> Italia – Reggio Emilia</option><option value="17148"> Italia – Rieti</option><option value="17149"> Italia – Rimini</option><option value="16324"> Italia – Roma</option><option value="17151"> Italia – Rovigo</option><option value="17152"> Italia – Salerno</option><option value="17154"> Italia – Sassari</option><option value="17155"> Italia – Savona</option><option value="17156"> Italia – Siena</option><option value="17157"> Italia – Siracusa</option><option value="17158"> Italia – Sondrio</option><option value="17159"> Italia – Taranto</option><option value="17160"> Italia – Teramo</option><option value="17161"> Italia – Terni</option><option value="17162"> Italia – Torino</option><option value="17164"> Italia – Trapani</option><option value="17165"> Italia – Trento</option><option value="17166"> Italia – Treviso</option><option value="17167"> Italia – Trieste</option><option value="17168"> Italia – Udine</option><option value="17169"> Italia – Varese</option><option value="17170"> Italia – Venezia</option><option value="17171"> Italia – Verbano-Cusio-Ossola</option><option value="17172"> Italia – Vercelli</option><option value="17173"> Italia – Verona</option><option value="17174"> Italia – Vibo Valentia</option><option value="17175"> Italia – Vicenza</option><option value="17176"> Italia – Viterbo</option></select> <select name="wpmm[]"> <option value="0">» a.) Altri Paesi</option><option value="16713"> Afghanistan</option><option value="16748"> Albania</option><option value="16793"> Algeria</option><option value="16714"> Andorra</option><option value="16749"> Angola</option><option value="16794"> Anguilla</option><option value="16715"> Antigua e Barbuda</option><option value="16750"> Arabia Saudita</option><option value="16795"> Argentina</option><option value="16716"> Armenia</option><option value="16751"> Australia</option><option value="16796"> Austria</option><option value="16717"> Azerbaijan</option><option value="16752"> Bahamas</option><option value="16797"> Bahrain</option><option value="16718"> Bangladesh</option><option value="16753"> Barbados</option><option value="16798"> Belgio</option><option value="16719"> Belize</option><option value="16754"> Benin</option><option value="16799"> Bhutan</option><option value="16720"> Bielorussia</option><option value="16838"> Birmania</option><option value="16755"> Bolivia</option><option value="16800"> Bosnia ed Erzegovina</option><option value="16721"> Botswana</option><option value="16756"> Brasile</option><option value="16801"> Brunei</option><option value="16722"> Bulgaria</option><option value="16757"> Burkina Faso</option><option value="16802"> Burundi</option><option value="16723"> Cambogia</option><option value="16758"> Camerun</option><option value="16803"> Canada</option><option value="16724"> Capo Verde</option><option value="16759"> Ciad</option><option value="16804"> Cile</option><option value="16725"> Cina</option><option value="16760"> Cipro</option><option value="16900"> Città del Vaticano</option><option value="16805"> Colombia</option><option value="16830"> Comore</option><option value="16726"> Corea del Nord</option><option value="16761"> Corea del Sud</option><option value="16806"> Costa d’Avorio</option><option value="16727"> Costa Rica</option><option value="16762"> Croazia</option><option value="16807"> Cuba</option><option value="16728"> Danimarca</option><option value="16763"> Dominica</option><option value="16808"> Ecuador</option><option value="16729"> Egitto</option><option value="16764"> El Salvator</option><option value="16809"> Emirati Arabi</option><option value="16730"> Eritrea</option><option value="16765"> Estonia</option><option value="16810"> Etiopia</option><option value="16731"> Filippine</option><option value="16766"> Finlandia</option><option value="16811"> Francia</option><option value="16732"> Gabon</option><option value="16767"> Gambia</option><option value="16812"> Georgia</option><option value="16733"> Germania</option><option value="16768"> Ghana</option><option value="16813"> Giamaica</option><option value="16735"> Giappone</option><option value="16769"> Gibuti</option><option value="16814"> Giordania</option><option value="16736"> Grecia</option><option value="16770"> Grenada</option><option value="16815"> Guatemala</option><option value="16734"> Guinea</option><option value="16771"> Guinea Bissau</option><option value="16816"> Guinea Equatoriale</option><option value="16833"> Guyana</option><option value="16772"> Haiti</option><option value="16817"> Honduras</option><option value="16737"> India</option><option value="16773"> Indonesia</option><option value="16818"> Iran</option><option value="16738"> Iraq</option><option value="16774"> Irlanda</option><option value="16819"> Islanda</option><option value="16775"> Isole Fiji</option><option value="16820"> Isole Marshall</option><option value="16740"> Isole Salomone</option><option value="16776"> Israele</option><option value="16741"> Kazakistan</option><option value="16777"> Kenya</option><option value="16821"> Kirghizistan</option><option value="16742"> Kiribati</option><option value="16778"> Kosovo</option><option value="16822"> Kuwait</option><option value="16743"> Laos</option><option value="16779"> Lesotho</option><option value="16823"> Lettonia</option><option value="16744"> Libano</option><option value="16780"> Liberia</option><option value="16824"> Libia</option><option value="16745"> Liechtenstein</option><option value="16781"> Lituania</option><option value="16825"> Lussemburgo</option><option value="16746"> Macedonia</option><option value="16782"> Madagascar</option><option value="16826"> Malawi</option><option value="16747"> Maldive</option><option value="16783"> Malesia</option><option value="16827"> Mali</option><option value="16834"> Malta</option><option value="16784"> Marocco</option><option value="16828"> Mauritania</option><option value="16835"> Mauritius</option><option value="16785"> Messico</option><option value="16829"> Micronesia</option><option value="16786"> Monaco</option><option value="16836"> Mongolia</option><option value="16837"> Montenegro</option><option value="16787"> Mozambico</option><option value="16839"> Namibia</option><option value="16788"> Nauru</option><option value="16840"> Nepal</option><option value="16841"> Nicaragua</option><option value="16789"> Niger</option><option value="16842"> Nigeria</option><option value="16790"> Norvegia</option><option value="16843"> Nuova Zelanda</option><option value="16844"> Oman</option><option value="16845"> Paesi Bassi</option><option value="16791"> Pakistan</option><option value="16846"> Palau</option><option value="16850"> Panama</option><option value="16792"> Papua Nuova Guinea</option><option value="16851"> Paraguay</option><option value="16848"> Perù</option><option value="25143"> Polonia</option><option value="16849"> Portogallo</option><option value="16852"> Qatar</option><option value="16854"> Regno Unito</option><option value="16856"> Repubblica Ceca</option><option value="17022"> Repubblica Centrafricana</option><option value="16831"> Repubblica del Congo</option><option value="16832"> Repubblica Dem. del Congo</option><option value="16858"> Repubblica Dominicana</option><option value="16853"> Repubblica Sudafricana</option><option value="16859"> Romania</option><option value="16860"> Ruanda</option><option value="16855"> Russia</option><option value="16861"> Saint Kitts e Nevis</option><option value="16862"> Saint Vincent e Grenadine</option><option value="16863"> Samoa</option><option value="16864"> San Marino</option><option value="16865"> Santa Lucia</option><option value="16866"> Sao Tomé e Prìncipe</option><option value="16867"> Senegal</option><option value="16868"> Serbia</option><option value="16869"> Seychelles</option><option value="16870"> Sierra Leone</option><option value="16871"> Singapore</option><option value="16872"> Siria</option><option value="16873"> Slovacchia</option><option value="16874"> Slovenia</option><option value="16875"> Somalia</option><option value="16876"> Spagna</option><option value="16877"> Sri Lanka</option><option value="16879"> Sudan</option><option value="16880"> Sudan del Sud</option><option value="16881"> Suriname</option><option value="16882"> Svezia</option><option value="16883"> Svizzera</option><option value="16884"> Swaziland</option><option value="16885"> Tagikistan</option><option value="16886"> Taiwan</option><option value="16887"> Tanzania</option><option value="16888"> Thailandia</option><option value="16889"> Timor Est</option><option value="16890"> Trinidad e Tobago</option><option value="16891"> Tunisia</option><option value="16892"> Turkmenistan</option><option value="16893"> Tuvulu</option><option value="16894"> Ucraina</option><option value="16895"> Uganda</option><option value="16896"> Ungheria</option><option value="16897"> Uruguay</option><option value="16878"> USA</option><option value="16898"> Uzbekistan</option><option value="16899"> Vanuatu</option><option value="16901"> Venezuela</option><option value="16902"> Vietnam</option><option value="16903"> Yemen</option><option value="16904"> Zambia</option><option value="16905"> Zimbabwe</option></select> <select name="wpmm[]"> <option value="0">» b) Tipologia</option><option value="8135"> Affittacamere</option><option value="8136"> Bed and Breakfast</option><option value="8137"> Casa di campagna</option><option value="8133"> Hotel</option><option value="8134"> Locanda</option></select> <select name="wpmm[]"> <option value="0">» c) Stelle</option><option value="8126"> 1 stella</option><option value="8127"> 2 stelle</option><option value="8128"> 3 stelle</option><option value="8129"> 4 stelle</option><option value="8130"> 5 stelle</option><option value="8131"> Nessuna stella</option></select> <select name="wpmm[]"> <option value="0">» d) Servizi</option><option value="8143"> Centro benessere</option><option value="8141"> Internet</option><option value="8140"> Parcheggio</option><option value="8144"> Piscina</option><option value="8145"> Ristorante</option><option value="8139"> Wi-fi</option></select><input type="submit" name="search" value="Search" /><input type="submit" value="Reset" /></fieldset>
    </form></div>

    http://wordpress.org/extend/plugins/qtranslate/

  2. antoniobon
    Member
    Posted 1 year ago #

    Use qtranslate and multiple category plugin. After go in multiple category folder, mcsw.php and ...

    Change line 27 with this:
    wp_redirect(qtrans_convertURL(get_bloginfo('url')));

    Change line 50 with this:
    wp_redirect(qtrans_convertURL(get_bloginfo('url')).'/categories/'.$sql.'/search_type/'.$_POST['mmctype'].'/order/'.$_POST['order'].'/');

    Regards

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.