PDA

View Full Version : Drop-Down Search in Navbar



sheppardzwc
Sun 1st Feb '09, 12:16am
One of my users suggested here, http://forums.toontownhall.com/forums/default-setting-search-t2222.html, that we switch our navbar dropdown "Search" bar to show "Search in Posts" as default rather than "Search in Threads." I looked through the templates but couldn't find anything...how would I go about changing that?

Thanks.

glennybee
Mon 2nd Feb '09, 12:46pm
Open the navbar template and search for the following code:


<div style="margin-top:$stylevar[cellpadding]px">
<label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
&nbsp;
<label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
</div>

The red code is what determines the default option. If you want 'Show Posts' as the default option, remove it from the first line and add it to the second line in the same place.