Fix the Spaw -Editor upload and path problem

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
whbsa
Posts: 16
Joined: Sun 14. Aug 2005, 13:45

Fix the Spaw -Editor upload and path problem

Post 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
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post by Ben »

Andy,
Thanks for this info. SPAW is my favorite, as well.
antal
Posts: 9
Joined: Fri 5. Nov 2004, 22:45

Post by antal »

Post Reply