FCKeditor2.1.1 for phpWCMS (pico's Edition)

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
phalancs
Posts: 793
Joined: Thu 19. Feb 2004, 05:09
Location: Germany

thx

Post by phalancs »

danke, nach so einem button habe ich gesucht..

werde ich gleich mal ausprobieren, wenn ich ihn denn finde.
MIt den HTML Vorlagen hast Du natürlich recht, dass wäre dann quasi noch einfacher.

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

Post by pico »

Hallo

Yes - after changing anything at the JS-Source-Code in ../_Source you must repack the complete Pakage with a special Tool -> see Sourceforge Page of FCK
also remember that a lot of Functions of the FCK editor are Browserbased - so some Functions work different on different Browsers. The Problem with the Styles is one of them :( you can almost 'destroy' a Layout with multiple Style changes and Formatings like Left, Center orientated - the is only one solution for that - open the HTML-Window and clear the Code by Hand.
Almost the same happens withe Tables when you delete or combine Cells or Rows - you can see this also in Tools like Dreamweaver or GoLive etc.

Best way to use WYSIWYG-Editors is to make first a Scribble on Paper and the realize it with the Editor.
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
phalancs
Posts: 793
Joined: Thu 19. Feb 2004, 05:09
Location: Germany

Post by phalancs »

Ok, thanx pico for that information.
Much appreciated, although not very optimistic :)

I will not touch the JS Source but try the html Template thingy as a solution.
Perhaps then style-changes will be less often necessary then.

BTW: That button fliflop talked about does not really work in most cases. In my experience id did not work with removing styles at all. Just manual changes in the formatting will be removed.

hmmm
its a pity...

------------------

Danke pico für die Aufklärung.

P.S.: Fliflop-Man, dieser Button entfernt die style formatierungen leider auch nicht richtig. Man muss immernoch oft in den Source Code eingreifen.

Ich denke die Beste Lösung ist, html Templates im FCKeditor zu nutzen und somit Style Veränderungen selten notwendig zu machen.
2008
phalancs
Posts: 793
Joined: Thu 19. Feb 2004, 05:09
Location: Germany

Ugly major bug (usually no problem...)

Post by phalancs »

Ugly major bug (calm down, usually never appears...)

I am still shocked.....

I had just set up a new cms system and spent hours configuring the FCKeditor....

After that i wanted to transfer all contents via copy&paste from the admin section of the old site to the new one.
First I logged in into the new cool version, then logged into the admin section of the old version.

Copied the first text (inkl. formatting) from an old article of the old system, then when i wanted to paste it into the new system:
:shock: :shock: :shock: :shock:

all the setting were from the old systems FCKeditor version.

All my things were gone, after i checked all settings it came into my mind thta there might be the reason in the fact that the editor does not differentiate between the different setting files from the two running sessions.....

....


Puh i got it.

Ok i know its probably not really a bug, but a normal behavior - BUT I WAS SHOCKED! ;)

Ok, just for your consideration if enyone else experiences such thing, calm down.....



--------------------------


Als ich in zwei adminbereichen gleichzeitig war hat der editor auf einmal nicht meine settings mehr gehabt...
es lag daran dass er die settings von der falschen, zuletzt gestarteten adminsession übernommen hatte..

Puh ich habs überlebt und zum glück schnell gefunden woran es lag.


CYO
2008
larmann
Posts: 311
Joined: Thu 23. Jun 2005, 10:51
Location: Hamburg
Contact:

Empty Field / Leeres Feld - kein Edior

Post by larmann »

So, nun habe ich Pico's Edition auch mal installiert und die diversen Schritte der readme durchgeführt.

Wenn ich mich nun in meine frische neue 1.2.6 einlogge und über die Artikelzentrale einen Text/ mit Bild erstellen will, wird gar keine Editorleiste angezeigt, einfach nur ein leeres Feld, in dem man auch nichts schreiben kann. An welcher Stelle habe ich da einen Fehler begangen?

---------------

I just installed Pico's Edition.

If I go in the backend of my fresh ly installed empty 1.2.6 and try to create a new text with image in the article center - there is no editor shown, just an empty field. I can't write anything in there. Can somebody tell me the mistake a made?

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

Post by pico »

Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
larmann
Posts: 311
Joined: Thu 23. Jun 2005, 10:51
Location: Hamburg
Contact:

Post by larmann »

Hi pico,

no, this I did. I was sending a login to you by pm. I don't want to bother you, but if you feel like having a closer look you can do it. Otherwise I will get it working by myself, at a certain point of time.

thanx
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Try some logical steps:

1. backup (save) the files you modded ~somewhere~ (to be re-tried later).
2. restore the originals from archive.
3. Re-login (must *always*) after changes.
4. See if default install of the editor works.
5. If NO, it may be "relative" path-related, so slightly unusual "config.inc.php" paths for Site, Document_Root, or phpWCMS Root can interfere (post "paths" if possible conflict). Also browser or firewall issues with blocking, etc. may be at work, here.
If there are Red "X" 's for icon placeholders, etc... check their properties for "path" issue. Maybe turning on all errors & notices in "php.ini" will reveal more.
6. If YES (works with "default" install), re-examine the "modded" files to confirm all changes are included and correct.
7. Let us know how you get on!
larmann
Posts: 311
Joined: Thu 23. Jun 2005, 10:51
Location: Hamburg
Contact:

Post by larmann »

Thank you Dexxus - and THANK YOU PICO!

@Dexxus: This is a good guideline illiminate mistakes anyway. Pico had a look on the installation and found a missing bracket. That's all.

Great support in this forum.

Thanx!
fbatista
Posts: 36
Joined: Tue 2. Nov 2004, 21:53
Location: Portugal
Contact:

add line in htaccess.txt

Post by fbatista »

Hi Pico

add line in htaccess.txt.

I had the necessity to add this line

Code: Select all

RewriteEngine Off
to the file: .htaccess .
For FCKeditor to function.

That is normal?
Last edited by fbatista on Wed 21. Dec 2005, 19:44, edited 1 time in total.
Fernando Batista
_______________________________________
Department of Mechanical Engineering (DEM)
School of Technology and Management (ESTG)
Polytechnic Institute of Leiria (IPL)
HOME: http://fernandobatista.net
fbatista
Posts: 36
Joined: Tue 2. Nov 2004, 21:53
Location: Portugal
Contact:

add line in htaccess.txt

Post by fbatista »

Hi Pico

add line in htaccess.txt

I had the necessity to add this line

Code: Select all

RewriteEngine Off
to the file: .htaccess .
For FCKeditor to function.

That is normal?
Fernando Batista
_______________________________________
Department of Mechanical Engineering (DEM)
School of Technology and Management (ESTG)
Polytechnic Institute of Leiria (IPL)
HOME: http://fernandobatista.net
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hi fbatista

I have all my Sites running with rewrite-URL ON without any Problems!
As far as I know there is no Part in FCK where a 'rewriting' of URL is used.
What happens when rewrite is On on your Site?
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
fbatista
Posts: 36
Joined: Tue 2. Nov 2004, 21:53
Location: Portugal
Contact:

Post by fbatista »

pico wrote:Hi fbatista

I have all my Sites running with rewrite-URL ON without any Problems!
As far as I know there is no Part in FCK where a 'rewriting' of URL is used.
What happens when rewrite is On on your Site?
My Site running with rewrite-URL ON .
Example: http://ww2.estg.ipleiria.pt/~fbatista/p ... 0.1.0.html.

Code: Select all

$phpwcms["rewrite_url"]       = 1; 
$phpwcms["wysiwyg_editor"]    = 2 ; 
with file .htaccess in DIR phpWCMS

Code: Select all

php_flag magic_quotes_gpc Off
php_flag register_globals Off

RewriteEngine On

RewriteBase /~fbatista/phpwcms
RewriteRule ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.html$ /~fbatista/phpwcms/index.php?id=$1,$2,$3,$4,$5,$6
RewriteRule ^(.+)\.html$ /~fbatista/phpwcms/index.php?$1 
but with file .htaccess in DIR FCKeditor

Code: Select all

# Just rename this file to ".htaccess" and live it in the editor directory. 
# There are no security issues on doing it. It just set the ".js" and ".css" 
# files to their correct type.
#

AddType application/x-javascript .js
AddType text/css .css
I have this
Image


With

Code: Select all

# Just rename this file to ".htaccess" and live it in the editor directory. 
# There are no security issues on doing it. It just set the ".js" and ".css" 
# files to their correct type.
#

RewriteEngine Off 

AddType application/x-javascript .js
AddType text/css .css
I have this
Image

Which is the problem?
Fernando Batista
_______________________________________
Department of Mechanical Engineering (DEM)
School of Technology and Management (ESTG)
Polytechnic Institute of Leiria (IPL)
HOME: http://fernandobatista.net
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

?
have never used the .htaccess in the FCK-Folder :roll:
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

fbatista wrote:My Site running with rewrite-URL ON .
Example: http://ww2.estg.ipleiria.pt/~fbatista/p ... 0.1.0.html.

Code: Select all

$phpwcms["rewrite_url"]       = 1; 
$phpwcms["wysiwyg_editor"]    = 2 ; 
with file .htaccess in DIR phpWCMS

Code: Select all

php_flag magic_quotes_gpc Off
php_flag register_globals Off

RewriteEngine On

RewriteBase /~fbatista/phpwcms
RewriteRule ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.html$ /~fbatista/phpwcms/index.php?id=$1,$2,$3,$4,$5,$6
RewriteRule ^(.+)\.html$ /~fbatista/phpwcms/index.php?$1 
If your "config.inc.php" is like this:

Code: Select all

// site values
$phpwcms["site"]            = "http://ww2.estg.ipleiria.pt/~fbatista/";
// paths
$phpwcms["root"]              = "phpwcms";
Shouldn't your entries be like this?

Without:
/~fbatista

Code: Select all

RewriteBase /phpwcms
RewriteRule ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.html$ /phpwcms/index.php?id=$1,$2,$3,$4,$5,$6
RewriteRule ^(.+)\.html$ /phpwcms/index.php?$1 
Locked