0
Welcome Guest! Login
0 items Join Now

Only 20 characters in Search Input Box

  • Only 20 characters in Search Input Box

    Posted 16 years 10 months ago
    • GollumX's Avatar
    • GollumX
    • Elite Rocketeer
    • Posts: 2817
    • Thanks: 0

    Re: Only 20 characters in Search Input Box

    Posted 16 years 10 months ago
    • Check in the module parameters. You should be able to set it there.

      If it's embedded in the template (not a module), then open up your templare index.php, look for maxlength="20" and change to maxlength ="30"
      <input type="text" onfocus="if(this.value=='Click here to search') this.value='';" onblur="if(this.value=='') this.value='Click here to search';" value="Click here to search" size="35" class="inputbox-search" alt="Search Now" maxlength="20" id="mod_search_searchword" name="searchword"/>
    • Say no to Internet Explorer 6.
      twitter.com/mark_up
  • Re: Only 20 characters in Search Input Box

    Posted 16 years 10 months ago
    • I looked in templates/rt_equionx_j15/index.php and could not find the code. I also checked the search module and there was not any parameters to set text length, only box length. help.
    • GollumX's Avatar
    • GollumX
    • Elite Rocketeer
    • Posts: 2817
    • Thanks: 0

    Re: Only 20 characters in Search Input Box

    Posted 16 years 10 months ago
    • There are better ways to do this, but try the following...

      YOUR_SITE_ROOT/modules/mod_search/tmpl/default.php

      Make the change in line 6 of that file.

      This will force it to accept whatever you input, but don't put too large a number... i don't know what the db field accepts.

      Eg. in J1.0 , the username maxlength was only 25 characters. When I changed the files to make it accept 30, it still wouldn't because the DB only accepted 25. Had to make changes there too else users who regd. with long emails like This email address is being protected from spambots. You need JavaScript enabled to view it. never got their account activation emails.
    • Say no to Internet Explorer 6.
      twitter.com/mark_up
  • Re: Only 20 characters in Search Input Box

    Posted 16 years 10 months ago
    • Thanks. This did allow more characters in the initial search. However, when the search results are returned, the search window in the lower half of the screen (search results) still only shows 20 characters. Is there another place where I need to change the field length?
  • Re: Only 20 characters in Search Input Box

    Posted 16 years 10 months ago
    • I found it: administrator\components\com_search\search.php. Issue is resolved.

      Thank you.
    • GollumX's Avatar
    • GollumX
    • Elite Rocketeer
    • Posts: 2817
    • Thanks: 0

    Re: Only 20 characters in Search Input Box

    Posted 16 years 10 months ago
  • Re: Only 20 characters in Search Input Box

    Posted 16 years 10 months ago
    • Nathan Misirian wrote:
      I found it: administrator\components\com_search\search.php. Issue is resolved.

      Thank you.

      I am wanting to do the same thing in Media Mogul. However when I get to the file mentioned above there is not anything about maxlength. Do I need to add something?

      Thanks.

Time to create page: 0.057 seconds