YayHappens (yayhappens) wrote in component_help,
YayHappens
yayhappens
component_help

LJ Search v 2.1 --Compact Slim

Screenshots in the comments. This version uses just the basic options: Username, Interests, Region. You can add the others back if you want them. Simplified because...wtf is jabber? :P

From the K1-ified version here. The following code contains alterations to compact the design making it look uniform to the Google Search Box 2.0 and Wikipedia v1 English, in case you use either and would like to have them all look similar.


#################
# LJ Search v2.1#
#################
# heading
var string cLJlj = """Search <span style="color: #3333ff;">LiveJournal</span>"""; # search button text
var string cLJsearch = "Search"; var string cLJusername = "Username"; var string cLJregion = "Region"; var string cLJinterest = "Interest";
var ColorcLJheader = $*header_bgcolor; var ColorcLJheaderMinus5 = $cLJheader->darker(50); var ColorcLJheaderPlus3= $cLJheader->lighter(30); var string cLJcorner_color = "/p0"+$cLJheaderPlus3->substr(1,6)+"1"+$cLJheaderMinus5->substr(1,6)+"2"+$cLJheader->substr(1,6); """ <tr> <td colspan="7"> <table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td valign="top" rowspan="3" colspan="3" width="5"><img src="$*PALIMGROOT/component/curve-top-left.gif$cLJcorner_color" width="5" height="5" alt="" border="0" /></td> <td class="dkLine"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td> <td valign="top" rowspan="3" colspan="3" width="5"><img src="$*PALIMGROOT/component/curve-top-right.gif$cLJcorner_color" width="5" height="5" alt="" border="0" /></td> </tr> <tr> <td class="ltLine"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td> </tr> <tr> <td class="tabBg"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="3" alt="" border="0" /></td> </tr> <tr> <td class="dkLine" width="1"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td> <td class="ltLine" width="1"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td> <td class="tabBg" width="3"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="3" alt="" border="0" /></td> <td class="tabBg" width="100%"> <div align="center"> <div id="p-search" class="portlet"> $cLJlj <div class="pBody"> <form id="Search" action="$*SITEROOT/multisearch.bml" method="post"> $cLJlj<br /> <input id="SearchTerm" type="text" name="q" size="10" value="" /> <input type="submit" value="$cLJsearch" /> <select id="SearchType" name="type"> <option value="user"selected="selected">$cLJusername</option> <option value="region">$cLJregion</option> <option value="int">$cLJinterest</option> </select><br /> </form> </div> </div> </div> </td> <td class="tabBg" width="3"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="3" alt="" border="0" /></td> <td class="ltLine" width="1"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td> <td class="dkLine" width="1"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td> </tr> <tr> <td valign="top" rowspan="3" colspan="3" width="5"><img src="$*PALIMGROOT/component/curve-bottom-left.gif$cLJcorner_color" width="5" height="5" alt="" border="0" /></td> <td class="tabBg"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="3" alt="" border="0" /></td> <td valign="top" rowspan="3" colspan="3" width="5"><img src="$*PALIMGROOT/component/curve-bottom-right.gif$cLJcorner_color" width="5" height="5" alt="" border="0" /></td> </tr> <tr> <td class="ltLine"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td> </tr> <tr> <td class="dkLine"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td> </tr> </table> </td> </tr> <tr> <td colspan="5"><img src="$*PALIMGROOT/component/clear.gif " width="1" height="3" alt="" border="0" /></td> </tr> """; ###################################
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 12 comments