News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

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.