forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: COS@RIN on November 08, 2005, 10:41:50 pm

Title: Search By Userform Data and Keywords
Post by: COS@RIN 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 (http://www.andyrouse.co.uk)

Thanks In Advance

COS@RIN
Title: Re: Search By Userform Data and Keywords
Post by: Joachim Müller on November 08, 2005, 10:49:42 pm
what coppermine version?
Title: Re: Search By Userform Data and Keywords
Post by: COS@RIN 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
Title: Re: Search By Userform Data and Keywords
Post by: Joachim Müller 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?
Title: Re: Search By Userform Data and Keywords
Post by: COS@RIN 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