I'm trying to add some images using Grant's version of filemanager. Everything works great (config.php and fckconfig.js are set properly, as on http://mcpuk.net/fbxp/?page=info) apart from file uploding, where I receive this error: Upload a new file in this folder (Upload in progress, please wait.. NaN%)
It is probably due to the perl scripts not running correctly on your configurations, i am thinking of withdrawing the upload progress bit from the php connector, its causing nothing but problems. In the file http://www.mcpuk.net/fbxp/downloads/TestUpdate.zip you will find an updated copy of the testme.php script which includes a test for the progress.cgi script
I have made a mod to this mod ... if anyone is interested it's located here : http://www.prosjektweb.net/FCKeditor2/_ ... fault.html . The editing of the images does not work since I do not have ImageMagic installed on the server (I have a server with ImageMagic on and will be moving it there soon , but the point is that the editing works like a charm.)
Thanks for your contribution, i will be integrating the editor into the fbxp, i have nearly finished the connector documentation for the commands behind the editor, and i have to get an classic ASP connector written before i can start work on this.
mcukstorm, how did you get your fckeditor to show up in firefox on this link http://www.mcpuk.net/fbxp/demo/editor/test.php. I'm having problem with mine, it doesn't show up. Can you package what you're using for download?
Could anyone make a tutorial telling how to change the the window that opens when you press the "img"-icon.
Right now if you want to insert a image you first have to click on the img-icon, then on "browse server". I think the "browse server" function is hidden where it is now. Therefor I would like the "Resource Browser" to open when you press the img-icon. It would be more userfriendly I think.
if you have problems runnign this script on cgi mode replace # $uri="http".(((isset($_SERVER['HTTPS']))&&(strtolower($_SERVER['HTTPS'])!='off'))?"s":"")."://".$_SERVER['SERVER_NAME'].dirname($_SERVER['SCRIPT_NAME'])."/";
You define a var named $config['urlprefix'] in config.php but it never uses it.. it is creating server url on the fly on any ocurrence... it's a problema to me, cause my url is not as it asumes.. I'm not using port 80.. I use 8081 so I had to add this to my $config['urlprefix']: ((isset($_SERVER['SERVER_PORT'])&&($_SERVER['SERVER_PORT'] != '80'))? ":".$_SERVER['SERVER_PORT']:"")
of course, I had to add $config['urlprefix'] to every url .. ... got problems with $config['basedir'] too... it says : "only required for a web server not providing DOCUMENT_ROOT".. my server reports it perfectly, but it's still using $config['basedir'] ... so, my config now is
The urlprefix should be used by the connector to enable the file browser to return a complete url to the insert image / insert file dialogs, i will check and make sure this is the case throughout. As for the basedir the readme/comments are out of date, this is always required but you may leave it at its default settings if your server reports DOCUMENT_ROOT correctly.
Somehow I got it working, and hopefully tried to use it managing an existing homepage (driven by a little hot cms). In the End I had to delete all data-directorys and then to upload again every single file from the site-backup, because - as I am assuming - either the apache or some processes of the scripts kept ownership of the created directories and what is in. As I'm just a beginner, could somebody help me finding a solution for making cgi-pl-scripts compatible to php-safemode? Is that possible at all?
P.S.: It even could NOT chmod the created directorys by ftp!
Ive got this working well, its a great mod for a great tool. Ive just got one problem, I always get red boxes where the images that Ive just uploaded are.
Its because they dont have the correct permissions after being uploaded to the server. How can I fix this?
In the Thumbnail.php file in Commands, after the thumbnail is created put in a line to chmod the file to 644 , this should take care of it. I will get round to puting this in the connector at some point, promise
Ok.. two problems. The permission thing I never got working, but hey, I'll keep bashing away at that.
One problem I would like help on though is a problem in Firefox, couldn't find a solution to this on the forums.. In the image browser, when I upload an image, I go to click on it to insert into the wysiwyg area but nothing happens. On PC IE, when I click on the thumbnail, it returns me to the image properties window so I can continue to edit parameters such as spacing, alignment, etc.
Any help with this is greatly appreciated (kinda hoping its been covered before)
What errors if any do you get in the javascript console in firefox? (May be easier to take the demo from my site and see if you get a problem with that, as i have applied a few bug fixes/updates to the fckeditor.)
There are solutions to the permissions problem, several people have mailed me solutions, i will try an get these on my site this evening.
If I understand, your project is just a file browser extention for the FCK Editor. It is not the sample file that allows me to use the editor in another program.
To better clearify myself, the program I'm running is looking for fckeditor.php that they say is suppose to come with FCK Editor.
The filebrowser extension is only that, however i have written a php class to construct the editor, i will try and get it on my site over the weekend. ( http://www.mcpuk.net/fbxp )
RE: Unofficial filemanager update + php connector
I'm trying to add some images using Grant's version of filemanager. Everything works great (config.php and fckconfig.js are set properly, as on http://mcpuk.net/fbxp/?page=info) apart from file uploding, where I receive this error: Upload a new file in this folder (Upload in progress, please wait.. NaN%)
Any suggestions?
The testme.php file displays:
Checking for GD support: Yes
JPEG Support: Yes
PNG Support: Yes
GIF Support: Yes
Image Write Support: Yes
Requesting connector.php?Command=GetFolders&Type=Image&CurrentFolder=/ :
RE: Unofficial filemanager update + php conne
It is probably due to the perl scripts not running correctly on your configurations, i am thinking of withdrawing the upload progress bit from the php connector, its causing nothing but problems. In the file
http://www.mcpuk.net/fbxp/downloads/TestUpdate.zip
you will find an updated copy of the testme.php script which includes a test for the progress.cgi script
RE: Unofficial filemanager update + php connector
I have made a mod to this mod ... if anyone is interested it's located here : http://www.prosjektweb.net/FCKeditor2/_ ... fault.html . The editing of the images does not work since I do not have ImageMagic installed on the server (I have a server with ImageMagic on and will be moving it there soon , but the point is that the editing works like a charm.)
Anyone interested in the source is welcome to download from http://www.prosjektweb.net/FCKeditor2_imageedit.zip
It needs cleaning up and it has some files witch are not needed (in the imagemanager folder).
Maybe someone with more experience with javascript can clean it up and maybe add it to this project ?
BR Martin Kronstad
RE: Unofficial filemanager update + php conne
Thanks for your contribution, i will be integrating the editor into the fbxp, i have nearly finished the connector documentation for the commands behind the editor, and
i have to get an classic ASP connector written before i can start work on this.
Firefox
mcukstorm, how did you get your fckeditor to show up in firefox on this link http://www.mcpuk.net/fbxp/demo/editor/test.php. I'm having problem with mine, it doesn't show up. Can you package what you're using for download?
RE: Firefox
A full package of the demo running on the http://www.mcpuk.net/fbxp site is now available under the downloads section on the site.
RE: Unofficial filemanager update + php conne
RE: Unofficial filemanager update + php connector
Right now if you want to insert a image you first have to click on the img-icon, then on "browse server". I think the "browse server" function is hidden where it is now. Therefor I would like the "Resource Browser" to open when you press the img-icon. It would be more userfriendly I think.
Can anyone help with that?
RE: Unofficial filemanager update + php connector
can anybody mail the mod to me please
wio@psitrax.de
thx a lot!
RE: Unofficial filemanager update + php connector
testme.php
if you have problems runnign this script on cgi mode
replace
# $uri="http".(((isset($_SERVER['HTTPS']))&&(strtolower($_SERVER['HTTPS'])!='off'))?"s":"")."://".$_SERVER['SERVER_NAME'].dirname($_SERVER['SCRIPT_NAME'])."/";
with
$uri="http".(((isset($_SERVER['HTTPS']))&&(strtolower($_SERVER['HTTPS'])!='off'))?"s":"")."://".$_SERVER['SERVER_NAME'].dirname($_SERVER['PHP_SELF'])."/";
RE: Unofficial filemanager update + php connector
it is creating server url on the fly on any ocurrence... it's a problema to me, cause my url is not as it asumes.. I'm not using port 80.. I use 8081 so I had to add this to my $config['urlprefix']:
((isset($_SERVER['SERVER_PORT'])&&($_SERVER['SERVER_PORT'] != '80'))? ":".$_SERVER['SERVER_PORT']:"")
of course, I had to add $config['urlprefix'] to every url ..
...
got problems with $config['basedir'] too... it says : "only required for a web server not providing DOCUMENT_ROOT"..
my server reports it perfectly, but it's still using $config['basedir'] ... so, my config now is
$config['basedir']=$_SERVER['DOCUMENT_ROOT'];
..
RE: Unofficial filemanager update + php conne
The urlprefix should be used by the connector to enable the file browser to return a complete url to the insert image / insert file dialogs, i will check and make sure this is the case throughout. As for the basedir the readme/comments are out of date, this is always required but you may leave it at its default settings if your server reports DOCUMENT_ROOT correctly.
RE: Unofficial filemanager update + php connector
P.S.: It even could NOT chmod the created directorys by ftp!
RE: Unofficial filemanager update + php conne
Its because they dont have the correct permissions after being uploaded to the server. How can I fix this?
RE: Unofficial filemanager update + php conne
In the Thumbnail.php file in Commands, after the thumbnail is created put in a line to chmod the file to 644 , this should take care of it. I will get round to puting this in the connector at some point, promise
RE: Unofficial filemanager update + php conne
The permission thing I never got working, but hey, I'll keep bashing away at that.
One problem I would like help on though is a problem in Firefox, couldn't find a solution to this on the forums.. In the image browser, when I upload an image, I go to click on it to insert into the wysiwyg area but nothing happens. On PC IE, when I click on the thumbnail, it returns me to the image properties window so I can continue to edit parameters such as spacing, alignment, etc.
Any help with this is greatly appreciated (kinda hoping its been covered before)
RE: Unofficial filemanager update + php conne
There are solutions to the permissions problem, several people have mailed me solutions, i will try an get these on my site this evening.
RE: Unofficial filemanager update + php conne
Firefox thumbnail image browser thingy fix
Thanks so much, thats done the trick neatly, the txtURL thing.
Ive tried to add a title to this topic that someone else might be able to pick up on in the search.
Anyway to make the url of the image relative to the document root rather than the full url, ie..
http://www.example.com/data/Image/file.gif
I want it to be...
/data/Image/file.gif
RE: Unofficial filemanager update + php conne
for us newcomers your link http://www.mcpuk.net/downloads/fck_fb_conn_php_new.zip
is dead
RE: Unofficial filemanager update + php conne
Yes that link is not redundant please goto http://www.mcpuk.net/fbxp instead
Sorry i would remove/change the links in the other messages but its not possible in this forum.
RE: Unofficial filemanager update + php conne
That should have read:
Yes that link is *now* redundant please goto http://www.mcpuk.net/fbxp instead
Sorry i would remove/change the links in the other messages but its not possible in this forum.
RE: Unofficial filemanager update + php conne
To better clearify myself, the program I'm running is looking for fckeditor.php that they say is suppose to come with FCK Editor.
Any insight on that?
Thanks
RE: Unofficial filemanager update + php conne
The filebrowser extension is only that, however i have written a php class to construct the editor, i will try and get it on my site over the weekend. ( http://www.mcpuk.net/fbxp )
RE: Unofficial filemanager update + php connector
my filebrowser doesn`t work at all now, it used to work and I did all the things of the readme-file
http://212.204.230.90/Admin/nieuwsbriev ... testme.php
RE: Unofficial filemanager update + php connector
You might want to consider:
http://pecl.php.net/package/postparser
for a PHP version of the file upload progress bar. Its a module, but its relativly easily to include these dynamically.
RE: Unofficial filemanager update + php conne
RE: Unofficial filemanager update + php conne
Thanks Again,
RE: Unofficial filemanager update + php conne
RE: Unofficial filemanager update + php connector
ok here it is in CVS:
http://zirzow.dyndns.org/cgi-bin/viewcv ... ostparser/
and here is a demo (that dosen't work, but contains source code if you have PHP compiled right)
http://postparser.zirzow.dyndns.org/
Here is the announcement for it:
http://marc.theaimsgroup.com/?l=pecl-de ... 232516&w=2