Page 1 of 1

Fix the Spaw -Editor upload and path problem

Posted: Sun 14. Aug 2005, 14:00
by whbsa
Hello I have fixed the Spaw Path problem in Version 1.2...

Change this line

Code: Select all

$spaw_base_url 	= $phpwcms["site"].$phpwcms["root"];

to

$spaw_base_url 	= $phpwcms["site"];
and line 99 until 113 must simular the code below

Code: Select all

// allowed extentions for uploaded image files
$spaw_valid_imgs = array('gif', 'jpg', 'jpeg', 'png');

// allow upload in image library
$spaw_upload_allowed = true;

// allow delete in image library
$spaw_img_delete_allowed = true;

// image libraries
$spaw_imglibs = array();
$spaw_imglibs[0]['value']	= $phpwcms["root"].$phpwcms["content_path"].$phpwcms["cimage_path"];
$spaw_imglibs[0]['text']	= 'phpwcms';
$spaw_imglibs[1]['value']	= $phpwcms["root"].$phpwcms["file_path"];
$spaw_imglibs[1]['text']	= 'picture';
that the file_path also work, you have to set the $phpwcms["file_path"]; to picture in the general config_inc.php

I hope that help someone with my favorite editor

andy

Posted: Mon 15. Aug 2005, 07:09
by Ben
Andy,
Thanks for this info. SPAW is my favorite, as well.

Posted: Wed 1. Feb 2006, 14:05
by antal