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 Query  (Read 2844 times)

0 Members and 1 Guest are viewing this topic.

will

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 263
Search Query
« 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
« Last Edit: April 18, 2007, 10:22:49 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Search Query
« Reply #1 on: April 18, 2007, 10:06:26 pm »

Edit search.php, find
Code: [Select]
<input type="submit" value="{$lang_search_php['submit_search']}" class="button" />and replace with
Code: [Select]
<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.
Logged

will

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 263
Re: Search Query
« Reply #2 on: April 18, 2007, 10:15:48 pm »

Thank you :o
Logged

will

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 263
Re: Search Query
« Reply #3 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 ???
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Search Query
« Reply #4 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
Code: [Select]
<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.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 15 queries.