Author Topic: search options  (Read 9440 times)

0 Members and 1 Guest are viewing this topic.

Offline Bomba

  • Full Member
  • ***
  • Posts: 202
    • View Profile
search options
« on: May 31, 2003, 02:18:01 PM »
isn't possible to configure the text that shows in the search results page?
i mean, it always shows "Seach" xx images in xx pages...

can't i configure to show the text that we inserted in the search field?

eg:
i'm searching for all pictures in "black and white"

result page would have the title "black and white"


see what i mean?
thanks

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
search options
« Reply #1 on: May 31, 2003, 04:00:09 PM »
yes, but only with new version of paging.php file:
http://www.4homepages.de/forum/viewtopic.php?t=5761

[EDITED] actualy, if u mean just title (clickstream), then try this:
in search.php find:
Code: [Select]
$clickstream = "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'].$lang['search']."</span>";replace with:
Code: [Select]
$clickstream = "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'].(($search_keywords) ? "<a href=\"".$site_sess->url(ROOT_PATH."search.php")."\" class=\"clickstream\">".$lang['search']."</a>".$config['category_separator'].$search_keywords : $lang['search'])."</span>";

P.S. good idea ;)
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 Bomba

  • Full Member
  • ***
  • Posts: 202
    • View Profile
search options
« Reply #2 on: May 31, 2003, 05:34:46 PM »
yeah, looks great :) thanks

and what about in {lang_search}, not possible to do the same?
anyway, thanks ALOT :D

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
search options
« Reply #3 on: May 31, 2003, 06:10:49 PM »
good idea again ;) :D
find:
Code: [Select]
 "lang_search" => $lang['search']
replace with:
Code: [Select]
 "lang_search" => $lang['search'].(($search_keywords) ? ": ".$search_keywords : "")
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 Bomba

  • Full Member
  • ***
  • Posts: 202
    • View Profile
search options
« Reply #4 on: June 04, 2003, 02:31:08 AM »
i was thinking

isn't possible to make link to search result pages with searchable field already writen?

i mean
i have a contest running on my site, and all images that are participating in the contest should have in description field the text "contest_portrait", for eg.
now i would like to make a hyperlink in my layout point to the search page results with all images that have "contest_portrait" in their description.
this would be a public presentation of the images that are running in the contest

see what i mean?
possible?

thanks

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
search options
« Reply #5 on: June 04, 2003, 05:21:55 AM »
why dont u just add either bbcode or HTML into your images description?
for example:
contest_portrait
or
<a href="http://yoursite/4images/search.php?search_keywords=contest_portrait">contest_portrait</a>
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 Bomba

  • Full Member
  • ***
  • Posts: 202
    • View Profile
search options
« Reply #6 on: June 05, 2003, 04:20:21 AM »
awesome v@no. didn't know that that was possible :)
thanks, it's just what i wanted

now i have one more ideia to search options
what about a date searchable field?

something like this:

Code: [Select]
eg:
search images since {start_counting} until {end_couting}


this would be cool to search all images submitted in a specific month or week, for example. Admin Control Panel has that option, but registed users don't, and i think it's a good think to have :)

and if possible i think it would be better looking on the layout if this date fields were separate, i mean, one field to year, another to month and another to day, instead of the one BIG field that ACP has in "edit images"

possible to do?
thanks[/code]

Offline Bomba

  • Full Member
  • ***
  • Posts: 202
    • View Profile
search options
« Reply #7 on: June 10, 2003, 03:50:52 PM »
Quote
what about a date searchable field?

something like this:
 
eg:
search images since {start_counting} until {end_couting}


this would be cool to search all images submitted in a specific month or week, for example. Admin Control Panel has that option, but registed users don't, and i think it's a good think to have


not possible?
anyone? thanks

Offline Zyga

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: search options
« Reply #8 on: May 04, 2006, 04:24:47 PM »
Quote
what about a date searchable field?

something like this:
 
eg:
search images since {start_counting} until {end_couting}


this would be cool to search all images submitted in a specific month or week, for example. Admin Control Panel has that option, but registed users don't, and i think it's a good think to have

not possible?
anyone? thanks

great idea im interested too  :twisted: