Search Query Search Query
 

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]

Main Menu

Search Query

Started by will, April 18, 2007, 09:21:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

will

Hi all

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

Thanks ;D

Joachim Müller

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.

will


will

I've changed everything but there is still a button with the image inside it, I just want the image ???

Joachim Müller

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.