Image uploading in FCKeditor?

Once you've installed phpList Version 2... ask questions here!
Forum rules
Please help the volunteers to help you by supplying the version of phpList you are using, browser & version and if possible, a link to your phpList installation. This is for Version 2 of phpList (the orange one).

Image uploading in FCKeditor?

Postby tmdrake » 7:20am, Thu 18 Feb, 2010

Is it just me or does that seem to be a regular problem here?
tmdrake
phpList newbie
 
Posts: 4
Joined: 5:58am, Thu 18 Feb, 2010

Re: Image uploading in FCKeditor?

Postby Dragonrider » 6:21pm, Thu 18 Feb, 2010

I'm sorry to disappoint you, but from what I've found during the last half hour of attempting to get this image upload working, it's not a phpList issue, but a FCKEditor issue.

I've searched the Durpal forums and tried a number of suggested fixes, which didn't fix anything, though in the end I did, apparently, get a successful Image Uploaded! Message, but I can't find it on my server!

There's also one at Bin-Blog though again, it won't work on my server. Also this one gives a suggestion on how to secure the folder via htaccess

I also eventually found this one, why oh why didn't I just check the phpList Docs?
However, have to report it still does not work for me, you may have better luck?
My sites:- http://wharfedalefestival.co.uk, http://ilkleygardeners.org.uk, http://emergencyaid.net, http://dragonrider.co.uk
Latest phpList version is now 3.0.12 (3 February 2015) and requires a minimum of MySQL 5.0 and PHP 5.3.x
Dragonrider
Moderator
 
Posts: 3460
Joined: 6:58am, Sun 02 Jul, 2006
Location: Ilkley, West Yorkshire, United Kingdom

Re: Image uploading in FCKeditor?

Postby tmdrake » 7:42pm, Fri 19 Feb, 2010

Dragonrider wrote:I'm sorry to disappoint you, but from what I've found during the last half hour of attempting to get this image upload working, it's not a phpList issue, but a FCKEditor issue.

I've searched the Durpal forums and tried a number of suggested fixes, which didn't fix anything, though in the end I did, apparently, get a successful Image Uploaded! Message, but I can't find it on my server!

There's also one at Bin-Blog though again, it won't work on my server. Also this one gives a suggestion on how to secure the folder via htaccess

I also eventually found this one, why oh why didn't I just check the phpList Docs?
However, have to report it still does not work for me, you may have better luck?


Well, I got it working. Not the best way but I created a better variable in FCKEditor config.php file to find the phplist config file. Then turns out someone left a several test files for the FCKEditor connectors, which were useful in finding a bug in the io.php file. I also modified several of the upload scripts to add the image link in the FCKEditor as a solid absolute URL, which is needed if its embedded in an HTML e-mail. To bad phplist can't detect the URL linked images, download them, attached them and convert to attached images (though that could make the e-mail extremely large)

Again this is not the best way to "hack" the issue, but it seems to be working at the moment...lol, but what do i know, I just started back in to linux/php about 2 weeks ago.

Oh yea, if its hosted on a server the "upload root" directly should be web accessible and have write permissions from the script.
Last edited by tmdrake on 8:01pm, Fri 19 Feb, 2010, edited 1 time in total.
tmdrake
phpList newbie
 
Posts: 4
Joined: 5:58am, Thu 18 Feb, 2010

Re: Image uploading in FCKeditor?

Postby tmdrake » 7:52pm, Fri 19 Feb, 2010

lol, after tweaking the code, yes I got it working....
Attachments
working1.jpg
working1.jpg (152.17 KiB) Viewed 4842 times
working2.jpg
working2.jpg (171.64 KiB) Viewed 4852 times
working3.jpg
working3.jpg (201.13 KiB) Viewed 4867 times
tmdrake
phpList newbie
 
Posts: 4
Joined: 5:58am, Thu 18 Feb, 2010

Re: Image uploading in FCKeditor?

Postby Dragonrider » 8:38pm, Fri 19 Feb, 2010

Well done Drake!

Don't suppose you'd be willing to share what you did so it may help someone else out?
My sites:- http://wharfedalefestival.co.uk, http://ilkleygardeners.org.uk, http://emergencyaid.net, http://dragonrider.co.uk
Latest phpList version is now 3.0.12 (3 February 2015) and requires a minimum of MySQL 5.0 and PHP 5.3.x
Dragonrider
Moderator
 
Posts: 3460
Joined: 6:58am, Sun 02 Jul, 2006
Location: Ilkley, West Yorkshire, United Kingdom

Re: Image uploading in FCKeditor?

Postby mvvugt » 7:05pm, Thu 25 Mar, 2010

You said:
I also modified several of the upload scripts to add the image link in the FCKEditor as a solid absolute URL, which is needed if its embedded in an HTML e-mail.

What did you modifie in wich files?

I have the exact same problem.

Thanks in advance,
Marcel
mvvugt
phpList newbie
 
Posts: 1
Joined: 7:02pm, Thu 25 Mar, 2010

Re: Image uploading in FCKeditor?

Postby nxnlvz » 5:03am, Fri 07 May, 2010

Here is what I have found.

[basedir] = to wherever you files are. ie /opt/phplist

#1 Turn on the uploadimages in [basedir]/conf/config.php * This is a relative directory so no "/" at the beginning
Code: Select all
define("FCKIMAGES_DIR","uploadimages");


#2 Add option to the [basedir]/conf/config.php
Code: Select all
define ("EMBEDUPLOADIMAGES",1);


#3 Fix the connector to import the correct config in [basedir]/admin/FCKeditor/editor/filemanager/connectors/phplist
Code: Select all
/* original
} elseif (is_file('../../../../../../../../config/config.php')) {
  include "../../../../../../../../config/config.php";
*/
/* correct */
} elseif (is_file('../../../../../../config/config.php')) {
  include "../../../../../../config/config.php";


#4 change the connector [basedir]/admin/FCKeditor/editor/filemanager/connectors/phplist/config.php
Code: Select all
$Config['UserFilesAbsolutePath'] = '[basedir]/uploadimages' ;

You could fix this without hardcoding the [basedir] here but I was lazy and did not want to figure out why it was not picking it up in the first place.

After these items the image upload seems to work.

Happy Mailing
-nxn
nxnlvz
phpList newbie
 
Posts: 1
Joined: 3:37am, Fri 07 May, 2010


Return to Question & Problems - after installing

Who is online

Users browsing this forum: No registered users and 11 guests

cron