changing where the "search" searches changing where the "search" searches
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

changing where the "search" searches

Started by kebirek, December 11, 2004, 04:50:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kebirek

Hi, first of all, sorry if I make a spelling mistake or don´t manage to express myself clearly

I searched the forum through hours and couldn´t find what I am looking for

I want my users to be able to search pictures in the entire site (I mean by category title, date added, etc). By default (I believe) they can only search in the category they are viewing.

Joachim Müller

did you try coppermine's search button?

Joachim

kebirek

When you say "coppermine´s search button" you could be refering to the search button of this forum or the search button in MY coppermine

I tried both, here in the forum, I found lots of posts about how to introduce keywords in the search, and in my coppermine, I found out that visitors can only search in the category they are viewing.

Here´s the search, with no modifications http://cargandogasoil.sizzly.com/coppermine/search.php . Also, I am using version 1.3.1.

I believe I should change something in the search.inc.php file, but I tried modifying that file with no success.

Maybe I didn´t manage to explain myself, I know that the search searches through the info attributes of each file in the current category. Since I couldn´t find out how to add attributes to the info in batch, I want visitors to be able to search through category name. Also, due to the nature of visitors of my website, I would like them to be able to search in the entire gallery, not just in the category they are viewing.

Thanks, bye bye

Casper

When you search in coppermine, it searches the whole gallery, not just the album or category you are in.

How are you expecting it to test differently when you only have 1 album  :-\\
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

kebirek

I used to have more than one album, and I tested it then.

I actually came to the wrong conclusion that it searched just in one category, sorry for my mistake.

But is it possible to search through album name? if not possible, is there a way to add info attributes in batch mode? (so I can put the name of the album in the info, and visitors could find it that way)

I know this board is following a one-question-per-topic policy, but I think I am asking how to do one thing and the different methods I can use to achieve this. Please correct me if I am wrong.

Thanks for the quick and accurate replies guys, I congratulate you for the wonderful application and this useful forum.


Joachim Müller

Quote from: kebirek on December 12, 2004, 02:50:03 PM
But is it possible to search through album name?
Why don't you just give it a try?

Joachim

kebirek

I´ve already gave it a try.
There must be some misunderstanding in this topic.

http://cargandogasoil.sizzly.com/coppermine

A name of an album is "22 / 10 / 2004 - En el Mercado del Puerto" for example, when I search for that in http://cargandogasoil.sizzly.com/search.php I get no results

What I am trying to do is allowing the visitor to search for an album and find it, without navigating through the different categories.

Nibbler

You can't search by album name at the moment.

kebirek

Thanks Nibbler for your answer. Problem solved, I thought I could change something but now I know it´s not possible.

Bye bye

Ps: Congratulations for this wonderful application

Joachim Müller

Nibbler has created an advanced search for the current devel version (cpg1.4), so this will be available in the near future.

Joachim

kebirek

that´s great, glad to see this is developing even further

jriba

Couldn't we just change the query that searches to look in the "album name" field instead of whereever it looks now?

Joachim Müller

if you think it's that easy, then go ahead and do so ::)

Joachim