Page 2 of 2
Posted: Sun 6. Mar 2005, 08:57
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" ?

)
Danke für den Hinweis wegen dem Bug, dann brauch ich mir wegen der Pfade nämlich keine Sorgen mehr machen, hehe.
Gruß Carino
Posted: Sun 6. Mar 2005, 09:10
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
And in english please?
Posted: Sun 6. Mar 2005, 13:25
by Lumimies
Hi
Can someone refer this topic in english - please?
Lumimies
Posted: Sun 6. Mar 2005, 13:27
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....
Posted: Sun 6. Mar 2005, 13:32
by Lumimies
Yes that is enough for me - Thank You!
Lumimies
Posted: Sun 6. Mar 2005, 21:31
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
Posted: Sun 6. Mar 2005, 22:01
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
Posted: Sun 6. Mar 2005, 22:13
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"];
Posted: Sun 6. Mar 2005, 22:21
by Oliver Georgi
versuchs:
spaw_control.config.php
line 33:
$spaw_base_url = $phpwcms["site"].$phpwcms["root"];
Aber ich glaube es geht nicht.
Oliver
Posted: Mon 11. Apr 2005, 01:30
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.
Posted: Mon 11. Apr 2005, 09:57
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

Posted: Mon 11. Apr 2005, 12:41
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
Posted: Mon 11. Apr 2005, 15:10
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....

Posted: Tue 12. Apr 2005, 01:53
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
Posted: Tue 12. Apr 2005, 09:32
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?