* admin_teGa How to make a search in the multi-function xtgem. Example filename "fun bad.jpg" but if we use the word search "bad fun.jpg" still displays the results of the "fun bad.jpg".

Because the default search form xtgem if the filename "love you.mp3" when searched using search "you love.mp3" it did not find results. Therefore help me
2015-02-10 19:00 · (0)
* Graham * admin_teGa Do you mean in a filelist filter search?
There is not a lot more that can be done as the filelist filter is a simple single filter
the best option is to split the search query at the first space and search for the first word only anywhere in the filename
The exact method depends on which script you are using .
2015-02-11 10:43 · (0)
* admin_teGa * Graham Yeah. Apakah anda punya kode pencarian buat filelist xtgem yang saya maksut
2015-02-11 16:12 · (0)
* Graham * admin_teGa This simple example search will take the first word of a query and filter the filelist to only show files that contain that word anywhere in the file name
Everything after a space in the query is ignored and trimmed off
The *.* in the filter means it will only list files with an extension so you do not need to put the extension in the query
<!--parser:xtscript-->
get search
var $spc=call chr $val=32
var $first_space = call strpos $haystack=$search;$needle=$spc
if $first_space
var $search= call substr $val=$search;$start=0;$length=$first_space
endif
<!--/parser:xtscript-->
<form action="<xt:url />" method="get">
  <input type="search" name="search" value="{_$$search|}" />
  <input type="submit" value="search" />
</form>
<xt:filelist sort_type="name" sort_dir="asc" folder="/files" template="" per_page="3" filter="*{_$$search|}*.*"/>

Copy code

this search would find the files in your examples from either query as it would find the word "bad" or "you" in the file name
2015-02-11 18:38 (edited 2015-02-11 21:19 by Graham ) · (0)
* admin_teGa * Graham Kode yang anda berikan, hanya menampilkan hasil pada kata pertama saja. Jadi tidak lengkap, misal kita mencari dengan kata "Cara buat wap dixtgem" maka hasil akan muncul pada kalimat "Cara" saja, sedangkan file pada kata cara banyak. Jadi susah mencari kata yang dimaksut

jadi bisakah anda memberi kode pencarian filelist yang hebat, contoh seperti google
2015-02-12 02:36 · (0)
* Graham * admin_teGa As I said the filelist filter is only a single filter so this is as much as you can do with it
2015-02-12 09:28 · (0)
* Wisnu-WR * admin_teGa apakah yang anda maksud seperti milik saya ? http://zystore.mobie.in/m/index.php , coba masukkan kata 'smartfren andromax tab' nanti akan muncul hasilnya ^_^
2015-02-14 07:30 · (0)
* admin_teGa * Graham Apakah bisa menandai text hasil dari pencarian filelist?
2015-02-15 17:24 · (0)
* hadisofian * admin_teGa admin_tega salam knal gan
2015-02-15 19:23 · (0)

Online: Guests: 1