How to insert a Search Box as in SlashOcean theme

14.3.2. How to insert a Search Box as in SlashOcean theme

The SlashOcean theme contains a Welcome message and a Search box in its header, as a close inspection of the code in the themeheader() function of themes/SlashOcean/theme.php reveals:

echo "<br>
<center>
<table cellpadding=0 cellspacing=0 border=0 width=99% align=center><tr><td align=left>
<a href=$nukeurl><img src=themes/SlashOcean/images/logo.gif Alt=\"Welcome to $sitename\"
border=0></a>
</td><td align=right width=100%>
        <form action=modules.php?name=Search&amp;method=post>
        <font class=content><input type=text name=query width=20 size=20 length=20>
        </td>
        <td align=right>&nbsp;&nbsp;<input type=submit value=\""._SEARCH."\"></td>
        </form>";
    echo "</td></tr></table><br>";

You can use this code if you wish to have a search box besides your logo, as in SlashOcean. You will find similar constructs in the other themes, e.g. Kaput or Slash.


Help us make a better PHP-Nuke HOWTO!

Want to contribute to this HOWTO? Have a suggestion or a solution to a problem that was not treated here? Post your comments on my PHP-Nuke Forum!

Chris Karakas, Maintainer PHP-Nuke HOWTO

 

Site Info v2.2.2

Last SeenLast Seen
Server TrafficServer Traffic
  • Total: 344,059,228
  • Today: 57,980
Server InfoServer Info
  • Dec 14, 2017
  • 10:37 pm PST
 
 

Daily Inspiration