Page 1 of 4

images from wysiwyg editor

Posted: Wed 14. Jan 2004, 10:22
by Fulvio Romanin
hi oliver,
thanx for the FCKeditor which saves lots of time. I know you hate that, i don't . :)
On the editor, when you click on "insert image" you get prompted a url location to fill. Would it be impossible or hard to substitute that with the usual phpwcms image insert menu? that would save a lot of time and work ....

thx in advance
F

Re: images from wysiwyg editor

Posted: Wed 14. Jan 2004, 11:19
by frold
Fulvio Romanin wrote:hi oliver,
thanx for the FCKeditor which saves lots of time. I know you hate that, i don't . :)
On the editor, when you click on "insert image" you get prompted a url location to fill. Would it be impossible or hard to substitute that with the usual phpwcms image insert menu? that would save a lot of time and work ....

thx in advance
F
As a insider :wink: I know Oliver has thought about it, but you have to wait some weeks - as you know.. but he is thinking about it :wink:

But maybe you are able to make it?

image library images in the wysiwyg editor

Posted: Wed 14. Jan 2004, 14:17
by Shrike71
I'm working on this too.... watch this space next week

Regards,

Shrike71

Re: image library images in the wysiwyg editor

Posted: Wed 14. Jan 2004, 14:42
by frold
Shrike71 wrote:I'm working on this too.... watch this space next week

Regards,

Shrike71
Cool can wait to see it 8)

Posted: Wed 14. Jan 2004, 19:37
by Fulvio Romanin
shrike is actually my hero :)

i'm no php coder, i'm mostly a flasher and i try to purify my soul from this horrible sin using phpwcms ;)

some time ago i talked with someone about doing a frontend interface in flash, but he said "he considered it" and disappeared....volunteers, anyone?

i'd just like to know how to pass the variables from php to flash...ok, i know about amfphp and stuff, but if someone could tell me how to pass, eg, the "content" variable, or the "image location" variable, it'd be a breeze to work it out...

Re: image library images in the wysiwyg editor

Posted: Thu 15. Jan 2004, 18:41
by frold
Shrike71 wrote:I'm working on this too.... watch this space next week

Regards,

Shrike71
any news... :D

internal images in wysiwyg editor .... update

Posted: Thu 15. Jan 2004, 18:47
by Shrike71
:?

Hi All,

Bit of an update.... i've trawled the mechanisms of the code and although browsing internal images is certainly possible, the intricacies of the various code bases (htmlarea & FCKEdit) have defeated me......

i've been trying to replicate the behaviour of the image browser as it works in the content part for "text w/image", trying also to include the folder/views and privileges per user, so that Oliver's ideas as to image ownership and availability remain intact.... but it's just too complicated for me in the limited timeframe that i have.

Unfortunately, my javascript is a trifle rusty, and i don't understand the commenting in German.... and i have no more time to spend on evaluating this. Anybody else care to try? I' can make my findings know to you if you wish to try .... and i think it IS a worthwhile feature to have.

Shrike71

Posted: Thu 15. Jan 2004, 18:58
by Fulvio Romanin
/me encourages shrike to go on

come on! come on! come on! :) you can do it! come on! :)

internal images in wysiwyg editor .... another update

Posted: Fri 16. Jan 2004, 11:26
by Shrike71
:idea:
OK...

For anybody who wants to know.... one of the major difficulties in implementing the internal image browser in the rich editor is the fact that a "virtual name" (the name that the image USED to be known as, eg. sitelogo.jpg ) is placed in the text field when inserting an image in the respective content part creation, this is for user-friendliness.

During the rendering of the page, a complex substitution process of the virtual name occurs and the REAL name is placed there instead, which would look something like 1_2_uGaT0P45bv-340x.jpg.

Since no substitution seems to take place when rendering rich content a solid understanding of the substitution mechanism is required (Oliver? help!) .... for which i haven't the time.

However, i'm changing tack.... this weekend i'm going to try and write a "Plug-in" that will use the equivalent SQL queries to extract the images, thumbnails and REAL names from the database according to the access control privileges, create a list which will display the thumbnails, and upon selecting the thumbnail, deposit the REAL name and relative path in the text field of the image selection box. If anybody has got any insights they might enlighten me with i'll be mighty grateful!

I will be testing this with htmlArea as it's a lot easier to work with, but once the plug-in is complete, it shouldn't be too difficult for some bright javascript spark to implement it in FCKeditor.

All, please bear in mind phpwcms will be front ending a very real intranet project (schedules, deadlines... all that bulls**t...), so if i can't get this mechanism working within a day or so, i'm just going to take a "tough!" stance with my users on the internal image browser, but anyone else will be welcome to my notes & code snippets if they're willing to carry on the good work!


Cheers,

Shrike71

Another update!

Posted: Thu 22. Jan 2004, 20:59
by Shrike71
:D
Hi all,

I'm close to a solution that will allow you to post images (paste links, actually) from the uploaded file library into any rich editor that you want!

It might not be the best way of doing things and doesn't work quite in the same way as Oliver's browse_image.php works, with the folders and all, but it's quite a clever workaround, respects user access control for images (public/private and owned), checks to see if it can recycle any already used images and moreover, you shouldn't have to write a single line of code in any phpwcms script to implement it, as it's been designed as a sort of plug-in!

The example will show it working below the left article menu in phpwcms.php though.

Watch this space next week!

Cheers,

Shrike71

Posted: Thu 22. Jan 2004, 21:23
by frold
you are so great!!

Posted: Thu 22. Jan 2004, 21:51
by Fulvio Romanin
we are waiting! good job shrike!

(i thought there was gonna be an official - even if minor - update too, am i wrong?)

Posted: Thu 22. Jan 2004, 22:05
by Oliver Georgi
Sorry I would help - because I think I can. But I'm rare of time at the moment.

Image selections in image browsers are only based on the file ID. The name is copied for an easier understanding.

What I would create first is a simple image browser for the "picture" directory. That can be handled very fast. In a second I way I would build an optimized image browser where you can select the image you want to use, define the size -> then it will be converted if needed and inserted into the WYSIWIG editor. This is really easy. ;-) Cheers.


Oliver

Posted: Wed 18. Feb 2004, 02:59
by Fulvio Romanin
this is still one of the most important items in my wishlist...any chance to fix that in the next release, oliver?

it's like having two different systems on the same cms...it's a pity we can't "link" them....

pleeeease... :lol:

Posted: Wed 18. Feb 2004, 10:19
by frold
Actually I was searching for this post to - but couldnĀ“t find it :oops:

I would really like that function and when it is added I think phpwcms is more or less complete (to support my needs :P )... !!

Any taking that challenge?