Modded browse.php 2012/02/24 Grabbed from efiction.org/forums Open browse.php. There is a section of code that needs to be updated. What already exists in browse.php doesn’t work unless it’s replaced by the same but slightly-different code from search.php. At around line 186 you should find the following. Code: // Begin story length unset($wordcount); $wordlow = isset($_REQUEST['wordlow']) ? $_REQUEST['wordlow'] : "-500"; $wordhigh = isset($_REQUEST['wordhigh']) ? $_REQUEST['wordhigh'] : "1000000"; if($wordlow != "-500") $wordcount = "stories.wordcount > ".$wordlow; if($wordhigh != "1000000") { if($wordcount) $wordcount .= " AND stories.wordcount < ".$wordhigh; else $wordcount = "stories.wordcount < ".$wordhigh; } if($wordhigh < $wordlow) $wordcount = "stories.wordcount < ".$wordlow; if($wordlow != "-500" && $wordhigh != "1000000" && isset($_POST['submit'])) { $query[] = "($wordcount)"; $countquery[] = "($wordcount)"; } // End wordcount Replace with this: Code: // Begin story length unset($wordcount); $wordlow = isset($_REQUEST['wordlow']) && isNumber($_REQUEST['wordlow']) ? $_REQUEST['wordlow'] : "-500"; $wordhigh = isset($_REQUEST['wordhigh']) && isNumber($_REQUEST['wordhigh']) ? $_REQUEST['wordhigh'] : "1000000"; if($wordlow != "-500") $wordcount = "stories.wordcount > ".$wordlow; if($wordhigh != "1000000") { if($wordcount) $wordcount .= " AND stories.wordcount < ".$wordhigh; else $wordcount = "stories.wordcount < ".$wordhigh; } if($wordhigh < $wordlow) $wordcount = "stories.wordcount < ".$wordlow; if(!empty($wordcount)) { $query[] = "($wordcount)"; $countquery[] = "($wordcount)"; } // End wordcount At around line 308, add the following (this adds the dropdown menus with the others). Code: if(!in_array("wordcount", $disablesorts)) $wordcountmenu1 = " -"; $wordcountmenu2 = ""; $tpl->assign("wordcountmenu1", $wordcountmenu1); $tpl->assign("wordcountmenu2", $wordcountmenu2); Save and upload browse.php. Lastly, the variables {wordcountmenu1} and {wordcountmenu2} need to be added to any browse.tpl skin files. Note that not all skins have a browse.tpl. Here is an example of a modified browse.tpl from default_tpls. Code: {output}{otherresults}