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.
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hi

irgendwie steh ich jetzt auf der Leitung - in dem ZIP ist doch die 'alte' fck_table.html v. 24.08.2005 drin - also das mit den 'Rahmen' Karteireiter.
Neu hinzugekommen ist 'Ueberschrift' (th) - die aber nicht richtig Funktioniert.

Oder was blick ich hier nicht :?:
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hallo,

ich meine die fck_table.html 31.831 kb vom 20.05.05 mit den Erweiterungen wie unter http://www.hdk-online.de/fckeditor2.phtml Enhanced Border etc.
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

nu versteh ich garnix - sollte doch drin sein
geht doch auch auf der 'Testseite'
http://www.hdk-online.de/include/inc_ex ... mple01.php
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hat mich auch etwas gewundert, ist aber nicht drin, zumindest heute morgen nicht. Ich lade gerade die aktuelle Version.
unter dialog ist die alte mit 9.871 kb enthalten.
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Peekay
Posts: 286
Joined: Sun 25. Jul 2004, 23:24
Location: UK

Post by Peekay »

Peekay wrote:Think I answer my own question. It appears that images are not (never?) deleted from phpwcms_filestorage, which of course is where FCKEditor takes them from.
Of course, I am using 1.23 dev, so, to answer my own question again... :lol: it appears that there is in 1.25 dev a facility for admin users to move image files 'deleted' from the file centre into a 'for deletion' folder which the site operator can periodically empty via F T P.

http://www.phpwcms.de/forum/viewtopic.php?p=43187#43187

I haven't tried it, but I guess this removes them from the FCKEditor file manager window too?
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hi

the ImageBrowser(s) - used in FCK just 'look' into the Folders of phpWCMS not into the Database so the Images are all visible for all Users.

Thats also the Reason for iBrowser and iManager that I wrote:
WICHTIGER HINWEIS:
in den 'Site Pictures' keine Bilder oder Dateien löschen, bearbeiten oder hochladen!
Dies führt zu problemen mit den Bilddaten in der SQL-Datenbank von phpWCMS!
----------------------------------------------------------

IMPORTANT:
Don't delete, modify or upload Files or Images to the 'Site Pictures'
This will give you Problems with the Filedata in SQL-Database from phpWCMS.

that means the phpWCMS-Pictures Section in iBrowser and iManager.

The other Managers and Folders use their own Filestructure and the Images you are handle here, are not visible in phpWCMS Filecenter
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
Peekay
Posts: 286
Joined: Sun 25. Jul 2004, 23:24
Location: UK

Post by Peekay »

Thx pico. I need to upgrade everything!. :D
zyphlix
Posts: 3
Joined: Wed 26. Oct 2005, 23:39
Contact:

Post by zyphlix »

pico wrote: try to rename the Folder ../FCKeditor2/editor/plugins/htmltiles to HtmlTiles - haven't check this Plugin for Case-Sensitive Servers :oops:
Worked fine, now works in firerfox, too

----
pico wrote: second Problem - have you done this (described in fckwcms.conf.inc.php)
/* path to FCKeditor-Filemangers upload default 'picture/upload' from root
if you have installed phpWCMS in a Subfolder like cms change it to
cms/picture/upload
!!! no Slash at front and end '/cms/picture/upload/' will not work !!!

Create at this Location the Folders Image, File, Flash and Media
../picture/upload/Image
../picture/upload/File
../picture/upload/Flash
../picture/upload/Media
set the Permissions of this Folders to 777
*/
EDIT: The Sub-Folder 'upload' is fixed - so just enter 'picture' but you must have the Sub-Folder 'upload'.
Found a small Bug - goto ../FCKeditor2/editor/plugins/imanager/config/config.inc.php
and change

Code: Select all

array (
			'value'   	=> '/'.$fckedit['UploadPath'].'/Image', 				
			'text'    	=> 'FCK Images',
		),	
to

Code: Select all

array (
			'value'   	=> '/'.$fckedit['UploadPath'].'/upload/Image', 				
			'text'    	=> 'FCK Images',
		),	
same at ../ibrowser/config/config.inc.php

Sorry - will fix it in the Archive
Done everything, but doesn't work. cant make an upload except in imagebrowser - but there i cant see any thumbnails. don't understand your EDIT. Perhaps you can make some words in german, my prefered language :wink: Kapier nicht ganz was Du damit meinst, "The Sub-Folder 'upload' is fixed - so just enter 'picture' but you must have the Sub-Folder 'upload'". Hab alles so eingetragen wie oben erwähnt, und Struktur unter picture und auch unter phpwcms_filestorage angelegt und Permissions gesetzt. Geht nix im imanager. The Error is:
Warning: move_uploaded_file(/var/www/web1/html/www1/include/inc_ext/FCKeditor2/editor/plugins/imanager/temp/1.jpg): failed to open stream: Permission denied in /var/www/web1/html/www1/include/inc_ext/FCKeditor2/editor/plugins/imanager/scripts/rfiles.php on line 425

Warning: move_uploaded_file(): Unable to move '/var/www/web1/phptmp/phpvYWTQm' to '/var/www/web1/html/www1/include/inc_ext/FCKeditor2/editor/plugins/imanager/temp/1.jpg' in /var/www/web1/html/www1/include/inc_ext/FCKeditor2/editor/plugins/imanager/scripts/rfiles.php on line 425
An error occured while handling file upload. Please try again.Error: An error occured while handling file upload. Please try again.
Please wait while loading...

Error building image list!
What goes wrong? I have phpwcms in /var/www/html/www1 ... not in html directly. but i made an extra domain for it: www1.jugendarbeit-rm.de Is this a problem ????

Perhaps you can help me ones again :oops: ?

Viele Grüße, ZYPHLiX
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hallo

dann mal in deutsch ;)

1. das Download-ZIP ist nun gefixt
2. was die Pfade angeht - also es gibt 2 Strukturen, wo Bilder abgelegt werden.
a. der phpWCMS Ordner 'phpwcms_filestorage' - hier werden Bilder und Dateien vom phpWCMS-Dateimanager abgelegt - die sind dann mit dem iBrowser und iManager in dem Bereich 'Library - phpWCMS Pictures' zu finden. Diese Bilder werden von phpWCMS umbenannt und heissen alle so ähnlich wie '9cb9a8baeade9df6c6c7b9deada74569.gif'

b. der Ordner 'picture' oder wie auch immer du ihn benannt hast. Diesen
Ordner musst du selbst anlegen mit den Unterordner 'upload' und in diesem
Ordner 'upload' musst du die 4 Ordner 'Image', 'File', Flash' und 'Media'
(Groß/Kleinschreibung beachten !) anlegen und die Rechte auf chmod 777
setzen.

Die Thumbnail Generierung erfolgt über GD und schau mal ob der 'temp'-Ordner aus der Fehlermeldung exsistiert und die Rechte 755 hat.

Ansonsten schick mir mal per Mail oder PM deine Zugangsdaten zu phpWCMS und den FTP-Zugang, dann schau ich mir das mal an.
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hi

if you don't get the modified Toolbar with the new phpWCMS-Version 1.2.6
goto ../include/inc_lib/wysiwyg.editor.inc.php and goto Line ~90
and change

Code: Select all

$oFCKeditor->ToolbarSet = 'Default';
to

Code: Select all

$oFCKeditor->ToolbarSet = 'phpwcms';
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
ColdFarmer
Posts: 1
Joined: Thu 8. Dec 2005, 21:04

HallO!

Post by ColdFarmer »

Hi zusammen!

Habe ein mehr oder weniger einfache Frage!
Wenn ich einen Artikel mit "TEXT MIT BILD" erstellen möchte, bekomme ich über das Javascript Fenster keine Bilder zur Auswahl!
Habe über den Bildbrowser allerdings schon welche hochgeladen welche auch angezeigt werden! Musste dafür in den config.php Dateien allerdings das Verzeichnis manuell ändern!

Wo bzw. in welcher Datei kann ich denn das Verzeichnis für die Java abfrage ändern?

Danke und Gruß,
-CF-
phalancs
Posts: 793
Joined: Thu 19. Feb 2004, 05:09
Location: Germany

styles. nice and annoying

Post by phalancs »

Style Probleme:

Diese Style-Geschichte ist zwar sehr schön, aber durch die Tatsache dass sie sich kombinieren lassen gerät man schnell in ein heiloses Chaos.
Lässt sich dieses "Featrure" irgendwie abstellen? Ich finde es saudämlich jedesmal bei einem Stylewechsel etwas doppelt auswählen zu müssen.

Ausserdem habe ich das Gefühl dass die Styles manchmal nicht funzen weil nach dem <span class=xx"> wieder diese <p> dinger anfangen und dann irgendwie das vorige Style keien Anwendung findet.

Also:

1. Lässt sich das Style kombinieren ausstellen, so dass ein Style das andere jeweils ersetzt?

2. Wie kommt es dass diese <p> Teile manchmal die <span> wirkung ausser kraft setzen und was kann man dagegen tun?


---


1. Is there a way to disable the combining "feature" of the Styles attributes? I want just one style at a time.

2. Why do sometimes appear <p> tags in the generated html code and why do those prevent the <style class="style"> Tags from working?


Thanx in advance

Danke im Nachinein
2008
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hi,

@ColdFarmer
mir ist nicht ganz klar wie Du vorgegangen bist.
- Javascript Fenster ?
- Bildbrowser ?

Hier ist grob die Vorgehensweide beschrieben:
http://www.phpwcms.de/forum/viewtopic.p ... ght=#53962
---------------------------

@phalancs
Die verschiedenen CSS-Befehle sollten auf die frontend.css abgestimmt sein.
Du kannst den Fck umkonfigurieren und den Menüeintrag entfernen.
Das Prinzip wird hier beschrieben.
http://www.peperkorn-online.de/fckeditor.phtml

Gruß Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
phalancs
Posts: 793
Joined: Thu 19. Feb 2004, 05:09
Location: Germany

hmm

Post by phalancs »

@fliflop

danke für die Info, jedoch möchte ich ja nicht prinzipiell auf die styles verzichten.
Es geht mir nur darum die Funktion zu deaktivieren die dazu führt dass sich Styles kombinieren lassen.

Wenn ich einen Style "Head Bold" habe und einen "Head Unterline" und beide nacheinander auf ein Wort anwähle, dann habe ich hinterher eine bold und underlined Überschrift, dass ist doch kacke...

Wie siehts aus? Hinweise?

Danke.
2008
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hi phalancs,

ja jetzt verstehe ich Dein Problem. Eigentlich ist das sogar so gewünscht, dass Styles kombiniert werden können.
Meiner Ansicht nach wiederspricht es auch ein wenig dem Grundgedanken eines CMS im Contentpart große Formatieraktionen durchzuführen. Dazu kann ich dem User doch verschiedene Contentparts zum Teil CSS Vorformatiert anbieten.
Aber es gibt natürlich eine Lösung:
1. Mit dem Ikon "Formatierung entfernen" wird die Formatierung gelöscht.

[EDIT] unter großem Vorbehalt: (Wäre ein Fall für den Experten Pico)
2. Du kannst Dir auch die Dateien /include/inc_ext/FCKeditor2/editor/_source/classes/fcktoolbarfontformatcombo.js
/include/inc_ext/FCKeditor2/editor/lang/1de.js
umbauen. (suche nach fontFormat)
[/EDIT] Muss wohl danach neu komprimiert bzw. relokatierbare Datei erzeugt werden???

3. Verwende doch die HTML Tiles. So kannst Du innerhalb des Contentparts komplett vorformatierte Sets in Tabellen- oder div - Form ablegen und dem User anbieten ohne dass er überhaubt einen Style anfassen muss.
Eine Seite sollte auch nicht zerformatiert werden, da der Betrachter sonst ein sehr unruhiges Bild vorfindet und schnell wieder weg ist.

Gruß Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Locked