Author Topic: textlink for search image name / Textlink für die suche nach Dateinamen  (Read 4665 times)

0 Members and 1 Guest are viewing this topic.

Offline Lunique

  • Full Member
  • ***
  • Posts: 109
  • V 1.7.7
    • View Profile
Hi, I want to know how the link should look like if I'm searching only for filenames. I know that the link for keyword search looks like this:
search.php?search_keywords=wordisearchfor
but if I try:
search.php?search_name=wordisearchfor
or:
search.php?search_fields=image_name=wordisearchfor
I get no results. It works with the same word in advanced search if I use "only filenames". How should the link look like to get results?

Hallo, ich wüßte gern wie ein textlink aussehen müsste wenn ich nach dem dateinamen suche. Ich weiß das der link um nach Schlüsselwörtern zu suchen so aussehen muss:
search.php?search_keywords=wordisearchfor
aber wenn ich das versuche:
search.php?search_name=wordisearchfor
oder das:
search.php?search_fields=image_name=wordisearchfor
bekomme ich keine Ergebnisse. Wenn ich nach dem selben Wort in der "Erweiterten Suche" suche und auch nur nen punkt bei "dateinamen" mache kommen ergebnisse.
Wie müsste der Link richtig aussehen?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: textlink for search image name / Textlink für die suche nach Dateinamen
« Reply #1 on: November 13, 2009, 12:59:37 AM »
what if you try search.php?search_fields=image_name&search_keywords=wordisearchfor
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Lunique

  • Full Member
  • ***
  • Posts: 109
  • V 1.7.7
    • View Profile
Re: textlink for search image name / Textlink für die suche nach Dateinamen
« Reply #2 on: November 13, 2009, 02:22:54 PM »
Somehow that works. But why do I need the "&search_keywords" isnt it possible without it? Does it mean that it is also searching the keywords?

Offline V@nо

  • Addicted member
  • ******
  • Posts: 1.223
    • View Profile
Re: textlink for search image name / Textlink für die suche nach Dateinamen
« Reply #3 on: November 13, 2009, 08:32:56 PM »
anything you search for (not only in 4images) is a keyword, but you can specify in which database field you want do the search. unfortunatelly in current 4images you can only specify one field or all of them.
Your first three "must do" before you ask a question:
If I asked you to PM me, I meant PM to my primary account, this account doesn't accept PMs.