Two requests

Help
Lapja
2003-06-09
2013-05-17
  • Lapja

    Lapja - 2003-06-09

    When you do a search and get a list of files you cannot dowload those files immediately by clickin gon them.  there is somehting wrong with the paths.

    I like the search feature it's pretty fast.  But why not set some default wildcards to save some seconds to the user (i.e. For the mommen if I search for 'foo' and I have 'foobar' and 'refoobar' they will not show in the results. I have to search for '*foo*' in order to show 'foobar' and 'refoobar'.)

    And just an aesthetic lifting:
    The icons are nice but too damn small.  On higher resolutions it becomes quite a challenge to click on the right icon.  Ther is lots of place on the bar why not making them bigger ?

     
    • Felix C. Stegerman

      Thanks for your remarks.
      We'll consider implementing them in the next version.

      Regards,

      Felix

       
      • Claudio Klingler

        the patch has been added to the development trunk and will be shipped with the next version.
        thanks a lot!

         
    • Neverlands

      Neverlands - 2008-03-17

      Replace this code in the .include/fun_search.php

      #########################################################################################
      Find:
      function print_table($list) {            // print table of found items
          if(!is_array($list)) return;
         
          $cnt = count($list);
          for($i=0;$i<$cnt;++$i) {
              $dir = $list[$i][0];    $item = $list[$i][1];
              $s_dir=$dir;    if(strlen($s_dir)>65) $s_dir=substr($s_dir,0,62)."...";
              $s_item=$item;    if(strlen($s_item)>45) $s_item=substr($s_item,0,42)."...";
              $link = "";    $target = "";
             
              if(get_is_dir($dir,$item)) {
                  $img = "dir.gif";
                  $link = make_link("list",get_rel_item($dir, $item),NULL);
              } else {
                  $img = get_mime_type($dir, $item, "img");
                  //if(get_is_editable($dir,$item) || get_is_image($dir,$item)) {
                      $link = $GLOBALS["home_url"]."/".get_rel_item($dir, $item);
                      $target = "_blank";
                  //}
              }
             
              echo "<TR><TD>" . "<IMG border=\&quot;0\&quot; width=\&quot;16\&quot; height=\&quot;16\&quot; ";
              echo "align=\&quot;ABSMIDDLE\&quot; src=\&quot;_img/" . $img . "\&quot; ALT=\&quot;\&quot;>&nbsp;";
              /*if($link!="")*/ echo"<A HREF=\&quot;".$link."\&quot; TARGET=\&quot;".$target."\&quot;>";
              //else echo "<A>";
              echo $s_item."</A></TD><TD><A HREF=\&quot;" . make_link("list",$dir,NULL)."\&quot;> /";
              echo $s_dir."</A></TD></TR>\n";
          }
      }

      ####################################################################################################
      Replace:
      function print_table($list) {            // print table of found items
          if(!is_array($list)) return;
         
          $cnt = count($list);
          for($i=0;$i<$cnt;++$i) {
              $dir = $list[$i][0];    $item = $list[$i][1];
              $s_dir=$dir;    if(strlen($s_dir)>65) $s_dir=substr($s_dir,0,62)."...";
              $s_item=$item;    if(strlen($s_item)>45) $s_item=substr($s_item,0,42)."...";
              $link = "";    $target = "";
             
              if(get_is_dir($dir,$item)) {
                  $img = "dir.gif";
                  $link = make_link("list",get_rel_item($dir, $item),NULL);       
              } else {
                  $img = get_mime_type($dir, $item, "img");
                  //if(get_is_editable($dir,$item) || get_is_image($dir,$item)) {
                      $link = make_link("download",$dir,$item);
                      $target = "_blank";
                  //}
              }
             
              echo "<TR><TD>" . "<IMG border=\&quot;0\&quot; width=\&quot;16\&quot; height=\&quot;16\&quot; ";
              echo "align=\&quot;ABSMIDDLE\&quot; src=\&quot;_img/" . $img . "\&quot; ALT=\&quot;\&quot;>&nbsp;";
              /*if($link!="")*/ echo"<A HREF=\&quot;".$link."\&quot; TARGET=\&quot;".$target."\&quot;>";
              //else echo "<A>";
              echo $s_item."</A></TD><TD><A HREF=\&quot;" . make_link("list",$dir,NULL)."\&quot;> /";
              echo $s_dir."</A></TD></TR>\n";
          }
      }
      ##########################################################################################

       

Log in to post a comment.