Open in new window?

Help
2012-06-25
2013-09-01
  • Andrew Pearce

    Andrew Pearce - 2012-06-25

    Hi. Great script. i am using it to list pdfs but i can't figure out how to open the pdfs in a new window.
    Thanks
    Andrew

     
  • islander2u

    islander2u - 2013-09-01

    I recently came across this same need. Here is what I did to fix this.
    Around line 614 in the "index.php" file you should find the following:

    else
    {
    $cells_thumbs[] = '<td class="'.$file_class.' table_border" width="128" height="140" align="center" valign="middle"><a href="'.$file_link.'"><img border="0" src="dirLIST_files/icons_large/'.$files_icons_array[$key].'" /></a></td>'."\n";
    }
    

    Now change:

    <a href="'.$file_link.'">
    

    to this:

    <a href="'.$file_link.'" target="_blank">
    
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks