htmlArea

A directory of browser-based WYSIWYG editors

  MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN

Home: htmlArea 2: htmlArea 2 & 3 archive (read only): htmlArea v2.0 - Add-Ons: Re: [taurentius] "Image Manager"-like file manager: Edit Log



vonbrocklin
Novice

May 1, 2003, 5:22 PM


Views: 10789
Re: [taurentius] "Image Manager"-like file manager


In Reply To
the double "//" is indeed a small bug, but I think it only occurs if you want to link to a file in the root directory. I'll have a look at it at a later point, I'm afraid don't have time to look at it right now Unsure

--t




NOTE: There was a problem with reassigning the newPath variable. The pathFix hack below solves this.
I fixed this if anybody is interested. Just go into files.php and find this line from the table that starts at about line 237:


Code
  REPLACE THIS:   
<a href="javascript:;" onClick="fileSelected('<? echo $newPath."/".$file_name; ?>',
'<? echo $file_name." (".parse_size($size).")"; ?>')">
WITH THIS:


<? $pathFix = $newPath;
if ($pathFix = "/") { $pathFix = ""; } ?>


<a href="javascript:;" onClick="fileSelected('<? echo $pathFix."/".$file_name; ?>',
'<? echo $file_name."
(".parse_size($size).")"; ?>')">

I'm sure there is a more logical place to fix this wherever the newPath variable is set but I was in a hurry and this seems to work fine.


(This post was edited by vonbrocklin on May 2, 2003, 12:37 PM)


Edit Log:
Post edited by vonbrocklin (Novice) on May 1, 2003, 5:37 PM
Post edited by vonbrocklin (Novice) on May 2, 2003, 12:33 PM
Post edited by vonbrocklin (Novice) on May 2, 2003, 12:37 PM


Search for (options)