I cant get my url search function to work. I want to make a hyperlink search (http://www.terranaut.dk/billeder/thumbnails.php?album=search&search=Tokina) but the search comes out blank.
If I go and make a manual search (through coppermine and set a mark in lens) there is no problem.
My humble questions is how do I make this work? I have tried to alter the searh.inc.php file by adding =$USER['search']['params']['user1'] (trying user1 through user4) but without any results.
My Coppermine URL is: http://www.terranaut.dk/grafik/map/kort-e.htm
Thank you - Rasmus
Set user3 as a default search field, so change
$USER['search']['params']['title'] = $USER['search']['params']['caption'] = $USER['search']['params']['keywords'] = $USER['search']['params']['filename'] = 1;
to
$USER['search']['params']['title'] = $USER['search']['params']['caption'] = $USER['search']['params']['keywords'] = $USER['search']['params']['filename'] = $USER['search']['params']['user3'] = 1;
in search.inc.php
Hi Nibbler
A million thanx - it's working like a dream. ;D
I'm searching with a form button. Gives me more flexibility, I believe. :D Looks something like this:
<form method="post" action="/path to gallery/thumbnails.php">
<input type="hidden" name="search" value="search strings" /> <!-- multiple strings separated by blank spaces -->
<input type="submit" value="Some name for your button" class="button" />
<input type="hidden" name="album" value="search" />
<input type="hidden" name="title" />
<input type="hidden" name="keywords" />
<input type="hidden" name="caption" />
<input type="hidden" name="filename" />
<input type="hidden" name="type" value="AND" /> <!-- or whatever the desired operator -->
</form>
Not saying all this cannot be passed on in a URL.