[release] Spaw 2.01 wysiwyg for dragonfly 9.1.1 (also 9.2.x)
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexAdd-Ons & Blocks
Author Message
Pitcher
Creative Designer


Joined: Apr 20, 2004
Posts: 147
Location: Norway

PostPost subject: Re: [release] Spaw 2.01 wysiwyg for dragonfly 9.1.1
Posted: Fri Mar 09, 2007 2:49 pm
Reply with quote

harbrum wrote:

That confused me a little.
I was editing the config.default.php instead of the config.php
I only had to edit the path to the uploads directory.
Because my dragonfly is installed in a subdirectory of the root.

My mistake Smile it should of course be config.php and not config.default.php Embarassed

_________________


Pitcher's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
ClarkConnect 3.2/Apache 2.0.x/MySQL 4.1.x/PHP 4.3.x/Dragonfly CVS
Back to top
View user's profile Visit poster's website
robojerk
Nice poster


Joined: Feb 23, 2006
Posts: 62

PostPost subject: Re: [release] Spaw 2.01 wysiwyg for dragonfly 9.1.1
Posted: Fri Mar 09, 2007 7:11 pm
Reply with quote

Pitcher wrote:
try to manually insert the correct paths to the config file for the spaw editor.

located in includes/wysiwyg/SpawEditor/config/config.default.php

I'm still kind of confused.. Are you telling me to add the path to the config in the config file itself (like the file can't find itself) or am I supposed to edit a different file to tell it where the the config file is?

or are you talking about Dragonfly's /includes/config.php

_________________


robojerk's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
FreeBSD 5.5/Apache 1.3.36/Mysql 4.1.16/PHP 4.4.2/9.0.6.1 (upgraded form phpnuke 7.8)
Back to top
View user's profile Visit poster's website
Pitcher
Creative Designer


Joined: Apr 20, 2004
Posts: 147
Location: Norway

PostPost subject: Re: [release] Spaw 2.01 wysiwyg for dragonfly 9.1.1
Posted: Fri Mar 09, 2007 8:13 pm
Reply with quote

You should edit the includes/wysiwyg/SpawEditor/config/config.php and enter the full path.
like it says in the file:
// if calculation fails (usually if web server is not apache) set this manually
and
// sets physical filesystem directory where spaw files reside
// should work fine most of the time but if it fails set SPAW_ROOT manually by providing correct path

_________________


Pitcher's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
ClarkConnect 3.2/Apache 2.0.x/MySQL 4.1.x/PHP 4.3.x/Dragonfly CVS
Back to top
View user's profile Visit poster's website
robojerk
Nice poster


Joined: Feb 23, 2006
Posts: 62

PostPost subject: Re: [release] Spaw 2.01 wysiwyg for dragonfly 9.1.1
Posted: Fri Mar 09, 2007 11:12 pm
Reply with quote

I messed around with this code for awhile but just can't get it working..

redux.blacktemplars.or...ile=submit

Perhaps you can show me an example.

local path
/home/u6/robojerk/blacktemplars.org/redux/html/

PHP:
<?

// sets physical filesystem directory of web site root
// if calculation fails (usually if web server is not apache) set this manually
SpawConfig::setStaticConfigItem('DOCUMENT_ROOT', str_replace("\\","/",SpawVars::getServerVar("DOCUMENT_ROOT")));
if (!
ereg('/$', SpawConfig::getStaticConfigValue('DOCUMENT_ROOT')))
SpawConfig::setStaticConfigItem('DOCUMENT_ROOT', SpawConfig::getStaticConfigValue('DOCUMENT_ROOT').'/');
// sets physical filesystem directory where spaw files reside
// should work fine most of the time but if it fails set SPAW_ROOT manually by providing correct path
SpawConfig::setStaticConfigItem('SPAW_ROOT', str_replace("\\","/",realpath(dirname(__FILE__)."/..").'/'));
// sets virtual path to the spaw directory on the server
// if calculation fails set this manually
SpawConfig::setStaticConfigItem('SPAW_DIR', '/'.str_replace(SpawConfig::getStaticConfigValue("DOCUMENT_ROOT"),'',SpawConfig::getStaticConfigValue("SPAW_ROOT")));

_________________


robojerk's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
FreeBSD 5.5/Apache 1.3.36/Mysql 4.1.16/PHP 4.4.2/9.0.6.1 (upgraded form phpnuke 7.8)
Back to top
View user's profile Visit poster's website
Pitcher
Creative Designer


Joined: Apr 20, 2004
Posts: 147
Location: Norway

PostPost subject: Re: [release] Spaw 2.01 wysiwyg for dragonfly 9.1.1
Posted: Fri Mar 09, 2007 11:46 pm
Reply with quote

PHP:
SpawConfig::setStaticConfigItem('DOCUMENT_ROOT', '/home/u6/robojerk/blacktemplars.org/redux/html/');
SpawConfig::setStaticConfigItem('SPAW_ROOT', '/home/u6/robojerk/blacktemplars.org/redux/html/includes/wysiwyg/SpawEditor/');

_________________


Pitcher's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
ClarkConnect 3.2/Apache 2.0.x/MySQL 4.1.x/PHP 4.3.x/Dragonfly CVS
Back to top
View user's profile Visit poster's website
robojerk
Nice poster


Joined: Feb 23, 2006
Posts: 62

PostPost subject: Re: [release] Spaw 2.01 wysiwyg for dragonfly 9.1.1
Posted: Sat Mar 10, 2007 12:07 am
Reply with quote

Sorry for being a pain...



Thanks, that worked like a champ! =)

_________________


robojerk's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
FreeBSD 5.5/Apache 1.3.36/Mysql 4.1.16/PHP 4.4.2/9.0.6.1 (upgraded form phpnuke 7.8)
Back to top
View user's profile Visit poster's website
Pitcher
Creative Designer


Joined: Apr 20, 2004
Posts: 147
Location: Norway

PostPost subject: Re: [release] Spaw 2.01 wysiwyg for dragonfly 9.1.1
Posted: Sat Mar 10, 2007 12:44 am
Reply with quote

No Problem Wink
_________________


Pitcher's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
ClarkConnect 3.2/Apache 2.0.x/MySQL 4.1.x/PHP 4.3.x/Dragonfly CVS
Back to top
View user's profile Visit poster's website
robojerk
Nice poster


Joined: Feb 23, 2006
Posts: 62

PostPost subject: Re: [release] Spaw 2.01 wysiwyg for dragonfly 9.1.1
Posted: Sat Mar 10, 2007 12:45 am
Reply with quote

One last thing, on the demo site, you have a way to change the font (Arial, Courier, Tahome, etc.) Where did you get that plugin?
_________________


robojerk's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
FreeBSD 5.5/Apache 1.3.36/Mysql 4.1.16/PHP 4.4.2/9.0.6.1 (upgraded form phpnuke 7.8)
Back to top
View user's profile Visit poster's website
Pitcher
Creative Designer


Joined: Apr 20, 2004
Posts: 147
Location: Norway

PostPost subject: Re: [release] Spaw 2.01 wysiwyg for dragonfly 9.1.1
Posted: Sat Mar 10, 2007 1:15 am
Reply with quote

Its build in.

Just change
PHP:
SpawConfig::setStaticConfigItem('default_toolbarset','standard');
with
PHP:
SpawConfig::setStaticConfigItem('default_toolbarset','all');
in the config file

_________________


Pitcher's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
ClarkConnect 3.2/Apache 2.0.x/MySQL 4.1.x/PHP 4.3.x/Dragonfly CVS
Back to top
View user's profile Visit poster's website
Kinsman
Heavy poster


Joined: May 29, 2006
Posts: 222
Location: Australia

PostPost subject: Re: [release] Spaw 2.01 wysiwyg for dragonfly 9.1.1
Posted: Thu Mar 15, 2007 3:16 am
Reply with quote

i really like this, thanks.

One thing though, is it always displays SPAW, even if i choose none or bbcode?


Kinsman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.18-164.11.1.el5xen/2.2.13/5.0.89-community-log/5.2.11/9.2.1
Back to top
View user's profile Visit poster's website
Kismet
Newbie


Joined: Jan 16, 2005
Posts: 13

PostPost subject: Spawn Editor stopped working...
Posted: Sat Mar 24, 2007 5:16 pm
Reply with quote

Hi all,

Installed the SPAW Editor 2.0.1 on my Dragonfly 9.1.1 site and it worked rather well. Then I upgraded to 9.1.2.1 and sadly it stopped working correctly.

Now it auto adds "700px" to both the story text and extended text. When a member creates a news story now and hits "preview" the story shows up at the top preview, but the actual information is gone below in the editor and replaced with the "700px" text in both fields.

If the member "submits" the story it shows up as "700px" in both areas in the submissions area of site.



(Also i'd like to know how to make the editor box higher and how to get the editor to work in the Admin "Add Story" as well as "Blogs" parts of my site.)

Any help & suggestions would be great.

Our site is at www.kismetbp.com.

Lord Kismet


Kismet's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Redhat Linux/Apache - 1.3.37/mySQL - 4.1.15 /PHP - 5.2.3/Dragonfly CMS 9.2.1
Back to top
View user's profile Visit poster's website
Kismet
Newbie


Joined: Jan 16, 2005
Posts: 13

PostPost subject: Re: [release] Spaw 2.01 wysiwyg for dragonfly 9.1.1
Posted: Sat Mar 24, 2007 9:02 pm
Reply with quote

Problem solved. Was issue with new Dragonfly update files i installed. Just did a reinstall of the SpawEditor and checked my config on everything and it works good now.

Kismet's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Redhat Linux/Apache - 1.3.37/mySQL - 4.1.15 /PHP - 5.2.3/Dragonfly CMS 9.2.1
Back to top
View user's profile Visit poster's website
Unrest
Newbie


Joined: Apr 04, 2007
Posts: 1
Location: USA

PostPost subject: Re: [release] Spaw 2.01 wysiwyg for dragonfly 9.1.1
Posted: Wed Apr 04, 2007 2:46 am
Reply with quote

I've been fooling with it for the past hour or so, and I just can't get it to work properly. I too am having an issue similar to robojerk with the path configuration. My DragonFly site begins in a single sub-directory beneath the root, but I'm not sure what I'm doing wrong. I've tried changing the pathing to everything I could think of. Below is the code I'm using; any suggestions would be well appreciated!

Thanks in advance!

(I tried desperately to post this using [php] tags, and it would not accept the whole script. I'm sorry if it's hard to read.)

Code:
// sets physical filesystem directory of web site root
// if calculation fails (usually if web server is not apache) set this manually
SpawConfig::setStaticConfigItem('DOCUMENT_ROOT', '');
if (!ereg('/$',
SpawConfig::getStaticConfigValue('DOCUMENT_ROOT')))
  SpawConfig::setStaticConfigItem('DOCUMENT_ROOT', SpawConfig::getStaticConfigValue('DOCUMENT_ROOT').'/');
// sets physical filesystem directory where spaw files reside
// should work fine most of the time but if it fails set SPAW_ROOT manually by providing correct path
SpawConfig::setStaticConfigItem('SPAW_ROOT', '/includes/wysiwyg/SpawEditor/');
// sets virtual path to the spaw directory on the server
// if calculation fails set this manually
SpawConfig::setStaticConfigItem('SPAW_DIR', '/'.str_replace(SpawConfig::getStaticConfigValue("DOCUMENT_ROOT"),'',SpawConfig::getStaticConfigValue("SPAW_ROOT")));


Unrest's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
MySQL 5.x / PHP 5.x
Back to top
View user's profile Visit poster's website
Revenger
Heavy poster


Joined: Oct 23, 2004
Posts: 200

PostPost subject: Re: [release] Spaw 2.01 wysiwyg for dragonfly 9.1.1
Posted: Tue Aug 21, 2007 12:26 pm
Reply with quote

Kimset could you elaborate on how you fixed it as Im having a similar problem on 9.1.2.1?

I managed to get it working in the mKnow module.

Though it saids 500px you just replace that.

But when you go to edit your article it doesn't show the article or the sprawl toolbar instead it just shows 500px again in the imput text area and nothing else in there.

Is there a way to overcome it?

If anyone wants to test it just let me know and I'll grant permissions.

Edit: news post is fine now but mKnow still has 500px in it.


Revenger's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Dragonfly (9.1.2.1) PHP 4.3.10 MySQL 4.1.13
Back to top
View user's profile
warden
Silver Supporter


Joined: Dec 16, 2004
Posts: 196
Location: North Carolina

PostPost subject: Re: [release] Spaw 2.01 wysiwyg for dragonfly 9.1.1
Posted: Tue Aug 21, 2007 10:04 pm
Reply with quote

Quote:
I managed to get it working in the mKnow module.

Would you or could you give the instructions on what you did to implement this? The versatile module mKnow is the main Content module on a school site that I maintain. I would really like to know how to do this. Any help would be greatly appreciated.

_________________


warden's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexAdd-Ons & Blocks All times are GMT
Go to page Previous  1, 2, 3, 4  Next
Page 2 of 4


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

stopsoftwarepatents.eu petition banner
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 1.123 seconds with 16 DB Queries in 0.1369 seconds
Memory Usage: 3.05 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy