Re: Advanced image module for CuteNews
FI-DD you rocks!!!
it worked of course, thanx again.
Dear CuteNews Users! Please feel free to contact us via our new Feedback Form and please send information about bugs to our bug tracker.
You are not logged in. Please login or register.
CutePHP Forums → Script Feedback and Suggestion → Advanced image module for CuteNews
FI-DD you rocks!!!
it worked of course, thanx again.
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!
check the first post in this thread
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
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
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/
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?
well are not click thumbs supposed to open up the full image?
or do i missunderstand U?
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"
Open index.php and change the image path:
$config_path_image_upload = "./data/upimages";
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....
I got the fix
for me
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!
I don't understand the problem. If you want to change the image path you do this in index.php.
this little changes that I have post works for me, I think ppl can try do the same!
I don't understand the problem. If you want to change the image path you do this in index.php.
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
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 dirWhen 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
hi, I just post at same time, :-D will try and let iu know, thanks!
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
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 thisfinalImage = 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
Problem here... Whew, I found myself posting just problems
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"
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.
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" ?
try my fix above
WORKS!!!
thanks!!!
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???
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
CutePHP Forums → Script Feedback and Suggestion → Advanced image module for CuteNews
Powered by PunBB, supported by Informer Technologies, Inc.
The pun_antispam official extension is installed. Copyright © 2003–2009 PunBB.