coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: will on April 18, 2007, 09:21:48 PM

Title: Search Query
Post by: will on April 18, 2007, 09:21:48 PM
Hi all

Just wondering how to change the search button on search.php for an image instead

Thanks ;D
Title: Re: Search Query
Post by: Joachim Müller on April 18, 2007, 10:06:26 PM
Edit search.php, find<input type="submit" value="{$lang_search_php['submit_search']}" class="button" />and replace with <button name="submit" type="button" value="" onclick="document.searchcpg.submit();">
<img src="your_image.gif" width="100" height="20" alt="" border="0" title="{$lang_search_php['submit_search']}" />
</button>


In the future, please use a better subject: this is not related to queries at all, but a plain HTML customization.
Title: Re: Search Query
Post by: will on April 18, 2007, 10:15:48 PM
Thank you :o
Title: Re: Search Query
Post by: will on April 18, 2007, 10:26:01 PM
I've changed everything but there is still a button with the image inside it, I just want the image ???
Title: Re: Search Query
Post by: Joachim Müller on April 19, 2007, 05:54:57 AM
That's expected behaviour when using the <button>-tag (it is what the name suggests). I thought this is what you where up to. If you only want an image, then use<a href="javascript:;" onclick="document.searchcpg.submit();">
<img src="your_image.gif" width="100" height="20" alt="" border="0" title="{$lang_search_php['submit_search']}" />
</a>
As I already told you, this is plain HTML and not directly related to Coppermine. Read up some HTML tutorials if you need to find out more.