4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: Bomba on May 31, 2003, 02:18:01 PM

Title: search options
Post by: Bomba 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
Title: search options
Post by: V@no 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 ;)
Title: search options
Post by: Bomba 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
Title: search options
Post by: V@no 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 : "")
Title: search options
Post by: Bomba 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
Title: search options
Post by: V@no 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 (http://yoursite/4images/search.php?search_keywords=contest_portrait)
or
<a href="http://yoursite/4images/search.php?search_keywords=contest_portrait">contest_portrait</a>
Title: search options
Post by: Bomba 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]
Title: search options
Post by: Bomba 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
Title: Re: search options
Post by: Zyga 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: