Hi,
I have a problem with the browser!
I want it to brows on the whole website, so it should not create the subdirectorys like Files, Images and so on! The script is in a save area so just administrators can access the tool...
The second problem is: I said FCKConfig.LinkUpload = false ; in the config file, but I can upload files. How can I disable the upload function? I just want to browse for files!?
Thanks for help,
Michael Ochs
I have a problem with the browser!
I want it to brows on the whole website, so it should not create the subdirectorys like Files, Images and so on! The script is in a save area so just administrators can access the tool...
The second problem is: I said FCKConfig.LinkUpload = false ; in the config file, but I can upload files. How can I disable the upload function? I just want to browse for files!?
Thanks for help,
Michael Ochs
RE: Browser and upload doesn't work right
However, I'm not even able to RUN it. You better tell me now, how you managed to RUN it, thanks
RE: Browser and upload doesn't work right
The whole FCKeditor: I unzipped the stuff, moved the directorys wich do NOT start with a _ into mypage /_fckeditor/ an then I set the following code in my html file and it works fine:
<script type="text/javascript" src="../_fckeditor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'artikel','99%',500 ) ;
oFCKeditor.BasePath = '/_fckeditor/' ;
oFCKeditor.Value = '{artikel}';
oFCKeditor.ReplaceTextarea();
}
</script>
...
<textarea id="artikel" name="artikel" style="width:99%; height:500px;">{artikel}</textarea>
Then you can configure your editor in the fckconfig.js! That's all I did! (the {artikel} stuff are variables wich are replaced by the template engine of my site, so just enter your own values in there! And it is necessary that your textarea's id and name is the same as you called your fckeditor-class, wich means:
var oFCKeditor = new FCKeditor( 'HAS TO MATCH WITH NAME AND ID','99%',500 ) ;
RE: Browser and upload doesn't work right
It's so frustrating
RE: Browser and upload doesn't work right
RE: Browser and upload doesn't work right
I'm using the RC2! I just downloaded it yesterday!![:)](http://b.cksource.com/a/2/img/smilies/icon_e_smile.gif)
RE: Browser and upload doesn't work right
hmmm, and what browser and OS ?![;-)](http://b.cksource.com/a/2/img/smilies/icon_e_wink.gif)
RE: Browser and upload doesn't work right
RE: Browser and upload doesn't work right
The path to my images folder in the root of my web directory is
images/photos/
I've tried to configure the image browser to use this folder but so far not succeeded - can anyone help?
RE: Browser and upload doesn't work right
RE: Browser and upload doesn't work right
Have placed a file called test.jpg in all of the following locations, but it doesn't show up in the browser.
UserFiles/
UserFiles/Image/
fckEditor/UserFiles/
fckEditor/UserFiles/Image
fckEditor/Editor/UserFiles/
fckEditor/Editor/UserFiles/Image
I noticed that the full path to one of the images you can use on the demo site is
http://www.fckeditor.net/public/userfil ... 000104.jpg
so I also placed my test image in
public/userfiles/
public/userfiles/image/
They didn't work either. I have no idea which directory the browser is looking at.
RE: Browser and upload doesn't work right
If I try to Create New Folder an alert pops up and asks me for the folder name. Once I type it in and click OK the alert disappears but nothing else happens.
RE: Browser and upload doesn't work right
yet it seems to work great for lots of other folks. I wonder what similarities we have in terms of platforms because my install works fine on my windoze testing server (localhost) but the image browser/uploader behaves as described above on my production server (freeBSD/apache).
I'm using the rc2 version as a mambo plug-in.
I'm practically pulling my hair out over this one now.
I'd be really grateful if someone could contribute some effort to this dilemna that holds this app back from prime time.
RE: Browser and upload doesn't work right
have you tried a test page?
if not, that/'s the first thing to do, if it works, the image browser should work too, but you can be messing something up (like I did)
for php one would try:
http://blabla.xxx/path_to_fckeditor/edi ... testme.php
RE: Browser and upload doesn't work right
in the file fckconfig.js, look for this code:
// Image Browsing
FCKConfig.ImageBrowser = true ;
////FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Image&Connector=connectors/aspx/connector.aspx" ;
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=img&Connector=connectors/php/connector.php&ServerPath=/" ;
FCKConfig.ImageBrowserWindowWidth = screen.width * 0.7 ; // 70% ;
FCKConfig.ImageBrowserWindowHeight = screen.height * 0.7 ; // 70% ;
the important bit is this: filemanager/browser/default/browser.html?Type=img&Connector=connectors/php/connector.php&ServerPath=/
this will lead to a folder called img, this folder must be chmod 777, you can put sub folders in this folder also 777 and they will appear in the browser.
By changing 'img' in the path string above you will be able to change the name of the folder.
Hope it works for you...
Anyone know javascript out there, I need some help regarding something else...
RE: Browser and upload doesn't work right
When I change "Type=images" to "Type=../../../../../images" it works on my server.
But it's just a silly workaround... no solution, as the links on images are included as:
/var/www/htdocs/myserver/folder/../../../../../images
It works but doesn't look very stable...
If someone trys this: The number of the '../' may be more or less I think so. And when I tested it, I had to delete my cache each time...
By the way, I can work with the image browser now, and can just delete "/var/www/htdocs/myserver/folder/../../../../../". Either if I didn't it would work...
Thomas
RE: Browser and upload doesn't work right