Re: Advanced image module for CuteNews

Sorry, no idea.  https://cutephp.com/forum/style_emoticons/default/sad.gif

Thanks, anyone have try this hack with firefox?

Re: Advanced image module for CuteNews

I don't get the errors you talk about. However, the buttons to insert full image, thumb images, and clickable thumb do not work for me in Firefox.

In IE the popup image manager closes when I select any of the above 3 buttons and the correct code is inserted. Firefox on the other hand leaves the image manager open and the buttons do not insert any code...

Re: Advanced image module for CuteNews

I don't get the errors you talk about. However, the buttons to insert full image, thumb images, and clickable thumb do not work for me in Firefox.

In IE the popup image manager closes when I select any of the above 3 buttons and the correct code is inserted. Firefox on the other hand leaves the image manager open and the buttons do not insert any code...

Well that's exactly what I'm talking about.
I just put the info of the JS window

Hope someone can solve this, I just can be a tester coz my JS is like my English...it just suck!
:-)

Re: Advanced image module for CuteNews

Thats what i'm saying billbody, I do not get ANY ERRORS (including the JAVA Script prompt that you talk about - It just does not work for me in Firefox).

Anyway, hope it is fixed soon but as I use both IE and FF it does not really affect me too much.

Re: Advanced image module for CuteNews

Thats what i'm saying billbody, I do not get ANY ERRORS (including the JAVA Script prompt that you talk about - It just does not work for me in Firefox).

Anyway, hope it is fixed soon but as I use both IE and FF it does not really affect me too much.

I use most firefox, and with this kind of scripts the bbcode addon that you can add to firefox really make it a complete solution... I think we will have to wait until a guru make our lives easy ;-)

Re: Advanced image module for CuteNews

Hehe, true. I know I don't know where to start.... Don't you just hate the browser wars thing, webby shows mint in one but crap in another lalala - I do however love the -moz-border-radius: 15px; CSS thing you can do with MOZ, for instance, look at the buttons & form fields of the the comments section of my news posts in both FF and IE.

Click for my site and an example << Scroll to the bottom for the comments bit.

Finally, whats the bbcode addon that you speak of if you don't mind me asking?

Re: Advanced image module for CuteNews

Thankx for the link via PM matey, cool add-on.

Just had a power cut here so my site might not have worked earlier, all up and running now though  https://cutephp.com/forum/style_emoticons/default/cool.gif

Re: Advanced image module for CuteNews

mmmm well I just try on IE and works ok.
But on Firefox I get this....

Error: opener.document.getElementById(area) has no properties
Archivo Fuente: http://......../cute/index.php?&mod=images&action=quick&area=short_story
Línea: 54

Any idea?


Ok, I got the error.  https://cutephp.com/forum/style_emoticons/default/smile.gif
The textareas in addnews.mdu and editnews.mdu are missing an id.

In addnews.mdu find this:
    <textarea rows=\"8\" cols=\"74\" name=\"short_story\" tabindex=4></textarea>

change to this:
    <textarea rows=\"8\" cols=\"74\" id=\"short_story\" name=\"short_story\" tabindex=4></textarea>

Do the same for full story in addnews.mdu and for short story/full story in editnews.mdu.

Re: Advanced image module for CuteNews

<!--sizeo:15--><span style="font-size:12pt;line-height:100%"><!--/sizeo-->THANKS THANKS THANKS !!!!!!

60 (edited by 2005-11-22 11:20:58)

Re: Advanced image module for CuteNews

This is not working for me!

I changed to ID and now when posting news i get the error that there is no news filles in...! (changing to ID; i can insert the image, that's working, but cant post news anymore)

What can i do, this is a very handy hack for me so i want i to work...

Re: Advanced image module for CuteNews

This is not working for me!

I changed to ID and now when posting news i get the error that there is no news filles in...! (changing to ID; i can insert the image, that's working, but cant post news anymore)

What can i do, this is a very handy hack for me so i want i to work...

Mmmmm well I just follow the instructions and works fine for me
Using 1.36 and firefox

Re: Advanced image module for CuteNews

I'm also using 1.36 and firefox... But my cutenews is very hacked.

I'm also using xfields, can that have something to do with it???

Re: Advanced image module for CuteNews

I'm also using 1.36 and firefox... But my cutenews is very hacked.

I'm also using xfields, can that have something to do with it???

Don't really know, I just do a clean install and hack only with this one and the newsletter hack.

sorry can 't help iu more

64 (edited by 2005-11-22 17:56:19)

Re: Advanced image module for CuteNews

Ok thanks, ill wait for some respons of FI-DD.

Re: Advanced image module for CuteNews

I would prefer if it was possible to let the text float left or right of the image/thumb. Right now floating doesn't seem to be possible.

Re: Advanced image module for CuteNews


Choosing "Image align = left/right" is exactly doing this, I think.  https://cutephp.com/forum/style_emoticons/default/smile.gif

67 (edited by 2005-12-04 00:18:17)

Re: Advanced image module for CuteNews

Choosing "Image align = left/right" is exactly doing this, I think.  https://cutephp.com/forum/style_emoticons/default/smile.gif


No it doesn't. It just aligns it to the left or right but the text isn't floating. I have to add css (style="float:left" oder style="float:right") to each image or thumb in the source code.

If I choose align only a single line of text is next to the image but not a text block or paragraph.

Just see the examples:

align:
http://www.cyclingimages.com/align.jpg

float:
http://www.cyclingimages.com/float.jpg

Re: Advanced image module for CuteNews


I don't know why it's not working for you but the text is floating to the left or right of the picture for me.

And the html reference is saying the same, I think: http://en.selfhtml.org/html/grafiken/ausri...htm#textumfluss

69 (edited by 2005-12-05 16:30:25)

Re: Advanced image module for CuteNews

Today it works also for me using align. I don't know what was wrong. Maybe it was a cache problem.

But I have another question: would it be possible to include css option as margin into the hack? I know vspace and hspace are included but I think by using css you could position the image much better. I for example do not want to have any space on the left and on top but on the right and bottom of the pic. That can't be done with hspace vspace but if you are using css. Have you ever thought about this?

70 (edited by 2005-12-12 14:35:20)

Re: Advanced image module for CuteNews

Another suggestion/question:

When inserting images it's always inserted the absolute path. Is there any way inserting the relative path instead? Right now I have to modify the path of the images every time I upload the news from my test server to the working server. If the relative path was inserted this wouldn't make any difference.

Re: Advanced image module for CuteNews

Change this:

link1 +\"<img border=\\\"\"+ imageBorder +\"\\\" align=\\\"\"+ imageAlign +\"\\\" alt=\\\"\"+ alternativeText +\"\\\" hspace=\\\"\"+ hSpace +\"\\\" vspace=\\\"\"+ vSpace +\"\\\" src=\\\"$config_http_script_dir/data/upimages/\"+ path +\"\"+ selectedImage +\"\\\">\" + link2;

to this:

link1 +\"<img border=\\\"\"+ imageBorder +\"\\\" align=\\\"\"+ imageAlign +\"\\\" alt=\\\"\"+ alternativeText +\"\\\" hspace=\\\"\"+ hSpace +\"\\\" vspace=\\\"\"+ vSpace +\"\\\" src=\\\"$config_path_image_upload/\"+ path +\"\"+ selectedImage +\"\\\">\" + link2;

and this:

$link1 = htmlspecialchars('<a target="_blank" href="'.$config_http_script_dir.'/data/upimages/'.$file.'">');

to this:

$link1 = htmlspecialchars('<a target="_blank" href="'.$config_path_image_upload.'/'.$file.'">');

72 (edited by 2005-12-21 16:59:33)

Re: Advanced image module for CuteNews

One genious made this... But. I've encoutered one problem. What about all the images that have been uploaded previously? There haven't been made any tumbs of them,which means that I  have a very large portion of the upload page showing the following error message: Warning: getimagesize(./data/upimages/thumbs/trobbelpc.png): failed to open stream: No such file or directory in /home/1/v/villaveien-skole/Cutenews/inc/images.mdu on line 433. The errormessage comes for each picture that has been uploaded. What can I do to get rid of theese error messages?  Please don't tell me I have to upload each and every image once more - for there are several images uploaded... https://cutephp.com/forum/style_emoticons/default/smile.gif

Re: Advanced image module for CuteNews

Same error for me , Any idea ?

Re: Advanced image module for CuteNews

Simply get the thumbs of those images into the thumbs folder - by reuploading the pictures or with a different script.  https://cutephp.com/forum/style_emoticons/default/smile.gif

Re: Advanced image module for CuteNews

Well , I solved it pretty easly , because i use FCKeditor anyhow i created a subdirectory called avatars and underneth it /thumbs and directed the script to there so it will have an empty directory .
Great script and solution ! thanks !