Link problem in SPAW editor

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
spirelli
Posts: 996
Joined: Tue 27. Jul 2004, 13:37
Location: London

Link problem in SPAW editor

Post by spirelli »

I ahve a big problem with SPAW in DEV 1.2.1. Has anyone else experienced this?

Whenever I open a WYSIWYG content part SPAW adds a string to the URLs in the <A> tags. So when the content part is saved the links are all wrong.
For example: <A href="sample.phtml"> becomes <A href="include/inc_ext/spaw/sample.phtml">.

THis is very annoying. I really like SPAW for its looks and how easy I can customise it. But of cause I cannot expect the user to correct all links everytime he opens a WYSIWYG content part.

Does anyone have an idea how to fix this?
Thanks.
spirelli
Posts: 996
Joined: Tue 27. Jul 2004, 13:37
Location: London

Post by spirelli »

bump
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hi

I'm not shure - but maybe you take a look to the spaw_control.config.php in

Code: Select all

\include\inc_ext\spaw\config
here

Code: Select all

$spaw_dir         = '/'.$phpwcms["root"].'include/inc_ext/spaw/';	
$spaw_base_url 	= $phpwcms["site"].$phpwcms["root"];
$spaw_root        = PHPWCMS_ROOT.'/include/inc_ext/spaw/';
I'm have switched to FCKeditor - and since yesterday to Ver 2.0rc3 - it makes more XHTML-like Code :)
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
spirelli
Posts: 996
Joined: Tue 27. Jul 2004, 13:37
Location: London

Post by spirelli »

These are exactly my settings. Just can't fugure out what's going on.

Maybe I shouold also make the switch for the time being (or forever, who knows...)

Does FCKeditor work with MAC?
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hi Spirelli

don't know - I only own a MAC with MAC-OS 8.x and there is a 'Ur'-old Netscape on it - and with this it doesn't.
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
disho
Posts: 3
Joined: Tue 15. Mar 2005, 21:17

Post by disho »

Same here
on every update it adds "/include/inc_ext/spaw/" to every url in content part
any help?
Lumimies
Posts: 63
Joined: Sat 25. Sep 2004, 14:03
Location: Suomi - Finland

Post by Lumimies »

spirelli wrote:
Does FCKeditor work with MAC?
FCKeditor works with Mac. (OS X 10.3.8 and Firefox)

Try it: http://www.fckeditor.net/demo/default.html

Lumimies
donatas
Posts: 4
Joined: Mon 31. Jan 2005, 15:01

Post by donatas »

i;m getting the same problem, anyone found a solution? i thought it could be in spaw/dialogs/a.php but i didn't found the place there to change something, maybe you will be more lucky...
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Same Problem Here

Post by jsw_nz »

Same problems here, using 1.2.1

The URL's are re-written with include/inc_ext/spaw/ prepending them.
This occurs when article contents are reloaded...ie in updating scenario.

Very frustrating. The client prefers spaw, so no choice on my end.
I hope this issue gets some attention...has to be simple path/config issue, but I have been unable to fix.....

:( perplexed
spirelli
Posts: 996
Joined: Tue 27. Jul 2004, 13:37
Location: London

Post by spirelli »

From "Alan Mendelevich" <alan@solmetra.lt>
Subject Re: Problem with SPAW
Date Thu, March 17, 2005 9:06 am
To

Hi,

We are aware of this bug in 1.1 beta and it will be fixed in the next release. Actually it's already fixed and you can grab a working version with some other fixes from CVS (if you know how to).

Best regards,
Alan Mendelevich
Senior Developer
Solmetra, UAB
alan@solmetra.com
http://www.solmetra.com

----- Original Message -----
From: Markus Jacob
To: info@solmetra.com
Sent: Thursday, March 17, 2005 2:48 AM
Subject: Problem with SPAW

We have a small issue with SPAW here. Could you perhaps have a look on the phpwcms forum: http://phpwcms.de/forum/viewtopic.php?t=6135
Maybe you can help and tell us whether there is a fix for this. I think the last phpwcms version has the last beta release of SPAW.

Many thanks
Markus
disho
Posts: 3
Joined: Tue 15. Mar 2005, 21:17

Post by disho »

I am new to cvs
downloaded wincvs and tried to save a copy of dev spaw, but with no luck.
to download all files 1 by 1 takes ~ 400 files, so this is not an option. Can somebody help?

and is "spaw_control.config.php" is the only file that I must change in order spaw to work corect with phpwcms
thanks
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Post by jsw_nz »

OK GOOD NEWS..........

Alan Mendelevich just posted a new version of the script.js.php which fixed the stripAbsoluteUrls function.
I downloaded and at least as far as this annoying bug is concerned, it is now history. :D

It can be downloaded here:

http://cvs.sourceforge.net/viewcvs.py/s ... 4&view=log

Posted: Thu Mar 17 09:06:46 2005 UTC
Revison 1.44

All best,
John
disho
Posts: 3
Joined: Tue 15. Mar 2005, 21:17

Post by disho »

Bless you jsw_nz ;)
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Post by jsw_nz »

Just wanted to add this note.

Although the new posting fixed certain problems, it strips out absolute urls, which are needed if using spaw to compose newsletters. Using the new script.js.php.......all links back to your wcms site are dead:

instead of:
http://www.mySite.com/index.php?myPage

it returns:
/index.php?myPage

inside email
:cry:

spirelli - any chance you could contact again, since he likely is familiar with your original email..........
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post by Ben »

Too bad there wasn't a way to turn the "strip absolute urls" function on and off, as in the case of newsletters, it isn't always desirable to make links document relative.
Post Reply