Re: Request (replace search)
Posted: 29 Mar 2010, 23:30
just looks like the viewsource code for stokers forumIpHeX ยป 29 Mar 2010, 00:33 wrote:Screenie:
Add before:
Code: Select all
<form action="./search.php" method="post" id="search" style="float:right; padding-right:4px;"> <div> <input style="font-size:1.1em;" class="inputbox search tiny" name="keywords" id="keywords" type="text" size="25" title="Search for keywords" value="Search…" onclick="if(this.value=='Search…')this.value='';" onblur="if(this.value=='')this.value='Search…';" /> </div> </form>
we need some if statements:
Code: Select all
<!-- IF S_DISPLAY_SEARCH and not S_IN_SEARCH --> your search edits <!-- ENDIF -->
Code: Select all
class="inputbox search tiny"
yours:
Code: Select all
title="Search for keywords" value="Search…" onclick="if(this.value=='Search…')this.value='';" onblur="if(this.value=='')this.value='Search…';" />
Code: Select all
title="{L_SEARCH_KEYWORDS}" class="inputbox search" value="<!-- IF SEARCH_WORDS-->{SEARCH_WORDS}<!-- ELSE -->{L_SEARCH_MINI}<!-- ENDIF -->" onclick="if(this.value=='{LA_SEARCH_MINI}')this.value='';" onblur="if(this.value=='')this.value='{LA_SEARCH_MINI}';" />