This is for Joomla 1.0.x and is for the
default search, not for the "Content Search Extended" mambot as I never found how or where to edit it for the extension mambot.
You need to edit two files.
1- In
components/com_search/search.phpFind in around line 78
Code:
// limit searchword to 20 characters
if ( strlen( $searchword ) > 20 ) {
$searchword = substr( $searchword, 0, 19 );
I changed the character limit of 20 to 50, and added 30 to the 19 (50-20=30) so that the code looks like this:
Code:
// limit searchword to 20 characters
if ( strlen( $searchword ) > 50 ) {
$searchword = substr( $searchword, 0, 49 );
2 - In
components/com_search/search.html.phpFind in around line 48
Code:
<input type="text" name="searchword" id="search_searchword" size="30" maxlength="20" value="<?php echo stripslashes($searchword);?>" class="inputbox" />
</td>
change the "maxlength" to the same figure as you changed it in the search.php file.
Code:
<input type="text" name="searchword" id="search_searchword" size="30" maxlength="50" value="<?php echo stripslashes($searchword);?>" class="inputbox" />
I hope this helps
