Re: Advanced image module for CuteNews

FI-DD you rocks!!!

it worked of course, thanx again.

Re: Advanced image module for CuteNews

I see in the demo that you insert Files. Thats likes me greet!

Can you put the files here on the forum? It helps me very much!

103

Re: Advanced image module for CuteNews

check the first post in this thread

Re: Advanced image module for CuteNews

Ok I found my error, but still can 't fix it.
I need to change the path from "./data......"  to 05/news/data......
Where exactly do I have to edit this?

T.I.A

105

Re: Advanced image module for CuteNews

Ok I found my error, but still can 't fix it.
I need to change the path from "./data......"  to 05/news/data......
Where exactly do I have to edit this?

T.I.A


same here mate  https://cutephp.com/forum/style_emoticons/default/sad.gif

Re: Advanced image module for CuteNews

try this:

find

function insertimage(selectedImage, path, link1, link2) {

in this function you've got something like this

src=\\\"./$config_path_image_upload/\"+ path +\"\"+ selectedImage +\"\\\">\"

replace it with this (in 2 or 3 places)

src=\\\"$config_http_script_dir/$config_path_image_upload/\"+ path +\"\"+ selectedImage +\"\\\">\"

you have only add $config_http_script_dir/

now you get path:
http://youradress.com/cutenews_dir/./data......

it works for me... http://www.ee.pw.edu.pl/~borowska/

Re: Advanced image module for CuteNews

well it works, almost, I able now to see the image, but now, click thums are not show in full mode

It still point me to data/upimages  and not to dir/data/upimages/thumb

Do I miss something?

108

Re: Advanced image module for CuteNews

well are not click thumbs supposed to open up the full image?
or do i missunderstand U?

Re: Advanced image module for CuteNews

well are not click thumbs supposed to open up the full image?
or do i missunderstand U?

Yes, but the path to the image on the full page is wrong, it's supposed to be something like "...DIR/data/upimages/thumb/image.jpg"  But I get  "data/upimage/image.jpg"

110

Re: Advanced image module for CuteNews


Open index.php and change the image path:
$config_path_image_upload        = "./data/upimages";

Re: Advanced image module for CuteNews

Open index.php and change the image path:
$config_path_image_upload        = "./data/upimages";

Sorry can't follow you, if i change that path will change for all images?
I just need to point the link to the full image to "DIR/data/upimages"

I think I miss something in the solution the the path post before, may some replace....

112 (edited by 2006-03-08 21:09:13)

Re: Advanced image module for CuteNews

I got the fix  https://cutephp.com/forum/style_emoticons/default/smile.gif
for me  https://cutephp.com/forum/style_emoticons/default/tongue.gif

u can try do this:

[OPEN]
index.php

[FIND]
config_path_image_upload        = "./data/upimages";

[REPLACE WITH]
$config_path_image_upload        = "data/upimages";

[SAVE & CLOSE]

[OPEN]
inc/images.mdu

[FIND]
finalImage = link1 +\"<img border=\\\"\"+ imageBorder +\"\\\" align=\\\"\"+ imageAlign +\"\\\" alt=\\\"\"+ alternativeText +\"\\\" hspace=\\\"\"+ hSpace +\"\\\" vspace=\\\"\"+ vSpace +\"\\\" src=\\\"$config_path_image_upload/

[IN-LINE ADD]
finalImage = link1 +\"<img border=\\\"\"+ imageBorder +\"\\\" align=\\\"\"+ imageAlign +\"\\\" alt=\\\"\"+ alternativeText +\"\\\" hspace=\\\"\"+ hSpace +\"\\\" vspace=\\\"\"+ vSpace +\"\\\" src=\\\"YOUR_DIR/$config_path_image_upload/

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

[IN-LINE ADD]
$link1 = htmlspecialchars('<a target="_blank" href="YOUR_DIR/'.$config_path_image_upload.'/'.$file.'">');

[SAVE & CLOSE]

ps: YOUR_DIR means NEWS, NOTICIAS, or where u put your cutenews folder! https://cutephp.com/forum/style_emoticons/default/smile.gif

113

Re: Advanced image module for CuteNews


I don't understand the problem. If you want to change the image path you do this in index.php.  https://cutephp.com/forum/style_emoticons/default/blink.gif

Re: Advanced image module for CuteNews

this little changes that I have post works for me, I think ppl can try do  the same! https://cutephp.com/forum/style_emoticons/default/smile.gif

Re: Advanced image module for CuteNews

I don't understand the problem. If you want to change the image path you do this in index.php.  https://cutephp.com/forum/style_emoticons/default/blink.gif

Will try to explain a little more, hope you can read my english ( may be I'm out of practice )

I have the cutenews install in a dir call "news"
The page where the news are shown, is outside of this dir

When i use the image manager to upload a jpg or gif image it works fine, when I try to show the image on my page it was not show, so I apply the solution superhero had posted, now images are shown ok, BUT if I use the opction of clickable thumb it just refuse to show full image on click.
I check the path and on full image is something like "site/data/upimages/IMAGE.JPG " and it must be : site/news/data/upimage/IMAGE.JPG"

Hope you understand me now

Re: Advanced image module for CuteNews

Will try to explain a little more, hope you can read my english ( may be I'm out of practice )

I have the cutenews install in a dir call "news"
The page where the news are shown, is outside of this dir

When i use the image manager to upload a jpg or gif image it works fine, when I try to show the image on my page it was not show, so I apply the solution superhero had posted, now images are shown ok, BUT if I use the opction of clickable thumb it just refuse to show full image on click.
I check the path and on full image is something like "site/data/upimages/IMAGE.JPG " and it must be : site/news/data/upimage/IMAGE.JPG"

Hope you understand me now


try my fix above  https://cutephp.com/forum/style_emoticons/default/tongue.gif

Re: Advanced image module for CuteNews

hi, I just post at same time, :-D will try and let iu know, thanks!

Re: Advanced image module for CuteNews

try this:

find this

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

and replace with this

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

maybe it will be good for you

Re: Advanced image module for CuteNews

I'm having a few problems that I saw addressed earlier in this post. The first is my image paths not appearing correctly. The path name is missing the name of my cutenews directory.
For example it should be [img]cutenews/blah/blah/image.jpg[/img]instead I get <omg src=.blah/img.jpg">


I fooled around with the images.mdu file and changed the script to this

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

It was this


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

This seemed to correct the image path problem. Was this a good fix?


Next problem
Now, however, if i drag an image around in the window to position it in a different spot on the page it again incorrectly writes the image path and the image no longer shows up.


I'm having a few problems that I saw addressed earlier in this post. The first is my image paths not appearing correctly. The path name is missing the name of my cutenews directory.
For example it should be [img]cutenews/blah/blah/image.jpg[/img]instead I get <omg src=.blah/img.jpg">
I fooled around with the images.mdu file and changed the script to this

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

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

This seemed to correct the image path problem. Was this a good fix?
Next problem
Now, however, if i drag an image around in the window to position it in a different spot on the page it again incorrectly writes the image path and the image no longer shows up.

OK
I fixed the image path problem. I'm still having an issue if I try to move any of my images. It breaks the path and writes it incorrectly

120 (edited by 2006-03-09 23:04:50)

Re: Advanced image module for CuteNews

Problem here... Whew, I found myself posting just problems https://cutephp.com/forum/style_emoticons/default/sad.gif

Anyway, if you insert image and drag it somewhere inside textarea, image url loses /cutenews part

Correct url should be

domain.com/cutenews/data/upimages/image.jpg

but it somehow became

domain.com/data/upimages/image.jpg (notice lost of /cutenews)

I noticed the same thing after editing article. Any help?


I have this same problem! Anyone find a fix?
When I move the image the link goes from this
src="http://www.boringvillage.com/news/./data/upimages/helm_copy.jpg"
to this
src="data/upimages/helm_copy.jpg"

Re: Advanced image module for CuteNews

I have this same problem! Anyone find a fix?
When I move the image the link goes from this
src="http://www.boringvillage.com/news/./data/upimages/helm_copy.jpg"
to this
src="data/upimages/helm_copy.jpg"


I keep answering my own problems, but perhaps this will help someone else having the same problem. The problem seems to be browser specific. On windows XP you need to be using explorer. Firefox breaks the URL when you move the image, explorer does not. On a mac I haven't found a browser that works properly yet. I've tried camino, firefox, explorer, opera, and netscape.

122 (edited by 2006-03-12 11:27:08)

Re: Advanced image module for CuteNews

FI-DO, $config_path_image_upload is the relative path for index.php of the news folder. If i have the news folder in... let's say, www.site.com/news, $config_path_image_upload is the path of www.site.com/news/inc/images.mdu, and not www.site.com/inc/images.mdu.

foxfirediego fix worked. thanks :x

oh, and i have 2 questions/requests:

1. What is the MAIN dropdown and how can I use it?
2. Is there a way to preview the images sorted "by date" and not "by name" ?

Re: Advanced image module for CuteNews

try my fix above  https://cutephp.com/forum/style_emoticons/default/tongue.gif


WORKS!!!
thanks!!!

124 (edited by 2006-03-22 09:51:55)

Re: Advanced image module for CuteNews

Thanks for this script.

More needed:
Multiple image insertion in a news message with a checkbox selection.
Multiple image upload with multiple selection.

Do we have the chance to have this beautiful plugins into next CuteNews releases????

And... what is cutenews.ru and how it links with cutenews on cutephp.com???  https://cutephp.com/forum/style_emoticons/default/blink.gif

125

Re: Advanced image module for CuteNews

is there any way that you can click insert clickable thumbnail but the insert image window does not close so as you can insert loads of pics one after the other rather than having to re open the image upload window every time.

for cutenews 1.3.6 please!! sorry wrong forum i know.

thanks