error: filemanager inside the wysiwyg editor

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Carino
Posts: 98
Joined: Sat 25. Sep 2004, 13:27
Location: NRW - Oberbergisches Land
Contact:

Post by Carino »

Guten Morgen ....

grad probiert. Der IE gibt den Fehler aus:

Zeile: 17
Zeichen: 5
Fehler: Objekt erwartet
Code: 0
URL: http://localhost/kunden/pusteblume/phpw ... ion=1&id=1

Wenn es beim Spaw ein Bug ist, würde ich auch einen anderen nehmen, FCK zum Beispiel. Aber bei dem geht das mit dem Bild wählen ja auch nicht. Gibt aber keinen Fehler aus. Soweit ich weiß ging das bei der 1.1.4 auch bei keinem Browser außer Spaw (4. Browser in 1.2.1).

Ich finde das ist ein eindeutiger Vorteil wenn nicht sogar ein Muss, eine Voransicht der Bilder als Thumbnails im Backend zu haben, die man dann direkt einbinden kann. Das ist auch der einzige Grund weshalb ich den immer genommen habe. Denn FCK läuft auch unter Firefox und lässt sich wunderbar anpassen mit den Styles.

Kann man nicht einfach eine neue Version vom SPAW nehmen und anpassen? Gibt es da schon Threads drüber? So nach dem Motto "Selbst ist der Mann" ? :o)

Danke für den Hinweis wegen dem Bug, dann brauch ich mir wegen der Pfade nämlich keine Sorgen mehr machen, hehe.

Gruß Carino
User avatar
Oliver Georgi
Site Admin
Posts: 9900
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Du kannst versuchen, die Pfade manuell im SPAW einzutragen.

In der Datei "img_library.php" etwa in Zeile 173:

Code: Select all

  <select name="imglist" id="imglist" size="15" class="input" style="width: 150px;" 
    onchange="if (this.selectedIndex >=0) document.getElementById('imgpreview').src = '<?= $spaw_base_url.$imglib ?>' + this.options[this.selectedIndex].value;" ondblclick="selectClick();"> 
  <?php 
Du musst hier eigentlich nur $spaw_base_url durch Deine tatsächliche URL ohne Unterordner http://www.meinedomain.de/ ersetzen. Probiere es einfach aus. Aus irgendeinem Grund hängt SPAW da noch den Unterordner dran, der aber bereits über $imglib geliefert wird. Deswegen das Doppel-Gemoppel.

Neuere SPAW Versionen habe ich noch nicht angepaßt - da warte ich erst das Erscheinen der IE/Gecko kompatiblen Version ab. Allerdings soll zukünftig dieser Datei-Auswahl-Dialog direkt auf das Dateibackend von phpwcms zurückgreifen. Ich bereite da bald etwas vor ;-)

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Lumimies
Posts: 63
Joined: Sat 25. Sep 2004, 14:03
Location: Suomi - Finland

And in english please?

Post by Lumimies »

Hi

Can someone refer this topic in english - please?

Lumimies
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

hi,

do you mean the last one from oliver g.?

Neuere SPAW Versionen habe ich noch nicht angepaßt - da warte ich erst das Erscheinen der IE/Gecko kompatiblen Version ab. Allerdings soll zukünftig dieser Datei-Auswahl-Dialog direkt auf das Dateibackend von phpwcms zurückgreifen. Ich bereite da bald etwas vor

means:
The new SPAW customisation isn't made - I'll wait to the release of a IE/ecko compatible version.
In future it should be possible to open file-selection direct from phpwcms backend. I'll prepare something soon....
Last edited by cyrano on Sun 6. Mar 2005, 13:36, edited 1 time in total.
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
Lumimies
Posts: 63
Joined: Sat 25. Sep 2004, 14:03
Location: Suomi - Finland

Post by Lumimies »

Yes that is enough for me - Thank You!

Lumimies
Carino
Posts: 98
Joined: Sat 25. Sep 2004, 13:27
Location: NRW - Oberbergisches Land
Contact:

Post by Carino »

hallo,

die bilder werden angezeigt, jedenfalls im image dialog. habe mich jedoch zu früh gefreut. nach Auswahl des Bildes wird kein Bild angezeigt sondern:

http://localhost/kunden/pusteblume/kund ... e/logo.gif

gibt es sonst noch eine doppelnennung? ich schau mal weiter. wenn ich was rausbekommen habe, meld ich mich wieder.

Carino
User avatar
Oliver Georgi
Site Admin
Posts: 9900
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Code: Select all

function selectClick()
    {
      if (document.getElementById('lib').selectedIndex>=0 && document.getElementById('imglist').selectedIndex>=0)
      {
        window.returnValue = '<?php echo $spaw_base_url?>'+document.getElementById('lib').options[document.getElementById('lib').selectedIndex].value + document.getElementById('imglist').options[document.getElementById('imglist').selectedIndex].value;
        window.close();
        <?php
Hier schauen
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Carino
Posts: 98
Joined: Sat 25. Sep 2004, 13:27
Location: NRW - Oberbergisches Land
Contact:

Post by Carino »

Es geeeht!!! *festedrück* :))))

eigentlich müsste ich doch nur die spaw_base_url irgendwo anpassen, wo die variable übergeben wird und jut ist, oder nicht?

Edit:

Ganz einfach nur die /config/spaw_control.config.php ändern:

Von: $spaw_base_url = $phpwcms["site"].$phpwcms["root"];
in: $spaw_base_url = $phpwcms["site"];

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

If you have problems with choosing images from SPAW Editor, edit "spaw_control.config.php" and delete the red marked area:

$spaw_base_url = $phpwcms["site"].$phpwcms["root"];
Last edited by Carino on Sun 6. Mar 2005, 22:26, edited 2 times in total.
User avatar
Oliver Georgi
Site Admin
Posts: 9900
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

versuchs:
spaw_control.config.php

line 33:
$spaw_base_url = $phpwcms["site"].$phpwcms["root"];

Aber ich glaube es geht nicht.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Post by jsw_nz »

Although this thread is in German, I went to Babelfish and did a rough translation. Of particular interest is your post Oliver regarding trying to get the older spaw to work in developer versions of phpwcms. So this is what this post is about, addressed primarily to OliG.

Spaw worked fine in 1.1 RC4, particularly for newsletters, since Spaw by default included absolute URL in editor. I used Spaw-1.1 RC4 for newsletter for a client and it works fine!

But new Spaw beta (included in 119-122) has plenty of bugs.

(1) Directory does not physically exist (Linux error|Windows ok)
(2) Dialog (img_library.php) images listed - but no preview - unpredictable results
(3) recent new script.js.php (included in 122) strips out absolute urls - but not good for creating newsletters.

So I tried swapping new beta Spaw for older stable Spaw inside 119, 121, and 122 and in every case I got an error on page...even though the Spaw system worked fine in 1.1RC4.

So I am thinking that the error is thrown based on new 'subtle settings' you incorporated in new dev releases, (maybe file names or other include directives - at least I was unable to figure out the problem). It would be great if the stable spaw could be incorporated in new dev releases, because the beta Spaw has many bugs I have read the Spaw forums at sourceforge and many users experince same problems with beta Spaw.

Is there any chance you could reincorporate stable Spaw inside dev-release of Wcms. This would be great since newsletters could be done correctly. (I used FCK Editor of newsletter, but it does have problem with embedding images in newsletrer - since FCK's image paths are relative

I really like 122, especially copy/paste content parts
This is Great, much needed....
My only hope is that Spaw issue couuld be resolved, since getting a fix would make wcms newsletter creation (embedding images) that much better.

Keep up the great work Oliver
Cheers,
John.
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

but it does have problem with embedding images in newsletrer - since FCK's image paths are relative
Im pretty sure that there is a work-around on fckeditors support forum..


My opinion is: One wysiwug editor in phpwcms and then the feature of inserting images via the editor - so phpwcms file system would work with the editor ;-)
http://www.studmed.dk Portal for doctors and medical students in Denmark
User avatar
Oliver Georgi
Site Admin
Posts: 9900
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

multiple WYSIWYG support will stay. But I work on a WYSIWYG image selector based on phpwcms' file manager - where you can choose size of image and if click zoomable and so on.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

Oliver Georgi wrote:multiple WYSIWYG support will stay. But I work on a WYSIWYG image selector based on phpwcms' file manager - where you can choose size of image and if click zoomable and so on.

Oliver
wauw - just wht we need.... :wink:
http://www.studmed.dk Portal for doctors and medical students in Denmark
squidi
Posts: 143
Joined: Sat 17. Jan 2004, 13:49
Location: Berlin

Post by squidi »

hi ,

it works fine !!! change in spaw_control.config.php


// 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
// 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"].'picture/';
$spaw_imglibs[1]['text'] = 'picture/';
// file to include in img_library.php (useful for setting $spaw_imglibs dynamically
// $spaw_imglib_include = '';


chmod /picture = 0777


greetz squidi
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

squidi wrote:hi ,

it works fine !!! change in spaw_control.config.php


// 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
// 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"].'picture/';
$spaw_imglibs[1]['text'] = 'picture/';
// file to include in img_library.php (useful for setting $spaw_imglibs dynamically
// $spaw_imglib_include = '';


chmod /picture = 0777


greetz squidi
But does this sort between public and not public picures?
http://www.studmed.dk Portal for doctors and medical students in Denmark
Post Reply