Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Search By Userform Data and Keywords  (Read 3646 times)

0 Members and 1 Guest are viewing this topic.

COS@RIN

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 24
    • Cosarin Internet
Search By Userform Data and Keywords
« on: November 08, 2005, 10:41:50 pm »

Hi folks....Hope you can once again do your magic and help me get another puzler solved for me.

In my template.html I have a simple search form that searches based on keywords entered into a textbox. my HTML for this is:

Code: [Select]
<table width="180" align="center">
<tbody>
<tr>
<td>
<h2><strong>Image Search</strong></h2>
<br>
<a href="search.php"><img src="themes/Seasonal%20Images/images/showallover.gif" alt="Search By Selecting A Keyword" border="0"></a>
<br>
<h3>Or Enter Keyword</h3>
<br>
<form action="thumbnails.php" name="search" target="_top" id="search" onsubmit="return checkform();">
<input type="hidden" value="search" name="album">
<input type="hidden" value="full" name="type">
<input name="search" type="text" id="search">
<br>
<br>
<input name="image" type="image" src="themes/Seasonal%20Images/images/searchover.gif" alt="Click To Search Gallery">
</form>
<br>
<h3>Or</h3>
<br>
<a href="thumbnails.php?album=lastup&numrows=2"><img src="themes/Seasonal%20Images/images/showlatest.gif" alt="View Latest Added Images"></a>
</td>
</tr>
</tbody>
</table>

Within my custom user fileds I have a field called "Picture Orientation" and the image uploader enters "Portrait" or "Landscape" at the time of uplload.

I would like to add a simple drop down box or radio button options to the search area in my template.html that allows the user of the site to add a picture orientation parameter to the search criteria.
Without saying I would then like the script to search for the keyword, and the custom user field data and show only images containing the relevant keywords and of the smae orientation selected.
I hope this is possible and someone can help me.

An example of what I am looking for can be found at:
http://www.andyrouse.co.uk

Thanks In Advance

COS@RIN
« Last Edit: February 16, 2006, 01:53:00 pm by COS@RIN »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Search By Userform Data and Keywords
« Reply #1 on: November 08, 2005, 10:49:42 pm »

what coppermine version?
Logged

COS@RIN

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 24
    • Cosarin Internet
Re: Search By Userform Data and Keywords
« Reply #2 on: November 08, 2005, 11:05:49 pm »

Thanks GauGau

Version 1.3.5 please (or 1.4 if you like. I know that this version is not supported yet, so I can work it out based on 1.3.5 support)

Thanks

COS@RIN
« Last Edit: November 10, 2005, 10:34:08 pm by cosarin »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Search By Userform Data and Keywords
« Reply #3 on: November 11, 2005, 12:07:58 am »

no, you can't. The search has changed significantly from cpg1.3.x to cpg1.4.x
That's why I asked, and that's the reason why we don't support cpg1.4.x yet: things differ in design. Let me ask you again: cpg1.3.x or cpg1.4.x?
Logged

COS@RIN

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 24
    • Cosarin Internet
Re: Search By Userform Data and Keywords
« Reply #4 on: November 11, 2005, 07:50:09 am »

GauGau

Version cpg1.3.5 is the version I am running. I have given up on 1.4x for now based on the reasons you have given me. However it has been very informative exploring the differences between 1.3x and 1.4x.

So I would grately apreciate any help you can provide on 1.3.5. PLEASE!

Thank You

COS@RIN
« Last Edit: November 12, 2005, 06:43:20 pm by COS@RIN »
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.