Re: Advanced image module for CuteNews

I installed this mod but it doesn't work

the mod does work. I have it so you can't say it doesn't work http://cutephp.com/forum/style_emoticons/default/wink.gif
As for uploading an image, do you have the same problem with the original image module?

302 (edited by 2008-08-26 16:24:57)

Re: Advanced image module for CuteNews

the mod does work. I have it so you can't say it doesn't work http://cutephp.com/forum/style_emoticons/default/wink.gif
As for uploading an image, do you have the same problem with the original image module?

Ok, the mod doesn't work on my CN :'(
The original image module works...
what can I do? I download it from the link on the first page of this topic and modify as the .txt says

EDIT*
I have found THIS code and the mod works but it doesn't create the thumbs. Any suggestions?

Re: Advanced image module for CuteNews

I have found THIS code

that's an older version of this, hack. Though it sounds as if your images.mdu of v3 wasn't uplaoded completly.

As for the thumbs. beside the things posted in this topic, there are many other topics about thumbs.

304 (edited by 2008-08-26 21:37:05)

Re: Advanced image module for CuteNews

I have deleted the older version and installed the 3.0v again.
Now the mod lets me see ONLY images which are < 100x100pxl.
If I upload an image measuring 101x101, the mod doesn't work and hides all the previous uploaded images...
So if I delete the biggest image from FTP, the image module shows the smaller images again...
I'm going crazy -.-'

305 (edited by 2008-08-27 16:11:04)

Re: Advanced image module for CuteNews

So if I delete the biggest image from FTP

and the image that is bigger, does it have the correct size on your ftp, or is it smaller then the size on your computer?

also just check with your host anywayand ask them if there's a file size limit when uplaoding a file through a form.
As this migth be the problem.

Re: Advanced image module for CuteNews

and the image that is bigger, does it have the correct size on your ftp, or is it smaller then the size on your computer?


Both images have the same size...

also just check with your host anywayand ask them if there's a file size limit when uplaoding a file through a form.
As this migth be the problem.


uhm...
In my opinion it isn't a kb problem but a pixel problem :S
I tested it uploading an image 400x400pxl - 22kb and the module didn't upload it.
Vice versa if i upload an image 95x95pxl x 45.9kb the module uploads it and create the thumbs.
My host is aruba... surfing the net i found that aruba has an upload limit of 8Mb... but my problem depends on pixel :S

p.s. sorry if my English is not so good, I'm Italian hmm

Re: Advanced image module for CuteNews

In my opinion it isn't a kb problem but a pixel problem :S

OK, that would be a first.
And through your ftp you can upload images images taht have higher pixels?

I really think it's some restriction on your hosts end; As the uplaod script is ment to just upload the file and then it applies watermark etc, creates thumbs.
Could it be you host doesn't have the GD library

308

Re: Advanced image module for CuteNews

Hello, Tired of looking for similar topics, I've decided to posting my problem. 

I'm using last version of Advanced Image Module, and it works fine, but I'm not be able to create Thumbs. When I upload an image I have the original one in the Upimages directory but It doesn't create the thumbs.

Anybody can help me please?

Thanks a lot.

309 (edited by 2008-09-13 00:05:31)

Re: Advanced image module for CuteNews

I've installed the script and it's working pretty good.

I was wondering if I could use it in conjunction with this script:
http://cutephp.com/forum/index.php?showtopic=4603

When I use them both the thumbnail is displayed but when i click it it takes me to a broken image link.

The reason is because clicking on the thumbnail takes me to:

http://themakeuptimes.com/news/data/upimag...0'1242'

When it needs to be:
http://themakeuptimes.com/news/data/USERNA...0'1242'

Here is an example of the page that isn't working.......
http://themakeuptimes.com/gallery.php

The thumbnail is being found okay so I just need the popup to use a similar url.


THANKS.

Re: Advanced image module for CuteNews

try
in images.mdu find all

'/data/upimages/'


and replace with

$static_path_image_upload

311

Re: Advanced image module for CuteNews

thanks for the suggestion but I found an alternative which works even better (for me).

http://sye.dk/sfpg/

All you have to do is drop the php file in any folder with images and it automatically creates an impressive gallery.  So you can put it in the upimages folder and you get a gallery of those images.  Thumbnails, automatic resizing, cuistomizable and free.

Hope this is of help to someone.

312 (edited by 2008-10-16 17:48:40)

Re: Advanced image module for CuteNews

Hi...i'm pretty new here, and i got lost in this topic..
i need some help.. want to add vspace and hspace... hmm...

here is original image.mdu that works fine

i want to put vspace and hspace in this code.. actually i tried, bud does not work...
this is what i did..
i put:

hSpace = document.forms['properties'].hSpace.value;
vSpace = document.forms['properties'].vSpace.value;

after this:

imageBorder = document.forms['properties'].imageBorder.value;

then i added extra code to "finalImage":

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

and in form "Properties" added this

<td>hspace</td>
<td><input type=text value='15' name=hSpace style=\"width:35\"> pixels</td>
</tr>
<tr>
<td>vspace</td>
<td><input type=text value='5' name=vSpace style=\"width:35\"> pixels</td>
</tr>


u guess, it does not work... there's no difference when i insert (no vspace and hspace) missing something? what did i do wrong?

if somebody can help me or put in right direction....
thanks..

Re: Advanced image module for CuteNews

<td>hspace</td>
<td><input type=text value='15' name=\"hSpace\" style=\"width:35\"> pixels</td>
</tr>
<tr>
<td>vspace</td>
<td><input type=text value='5' name=\"vSpace\" style=\"width:35\"> pixels</td>
</tr>

other then that i don't see any reason why it wouldn't work.
altough

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

has a "; to much which should result in a error. So then i would think you've uploaded the modified images.mdu in a wrong place, or you used a wrong source. But seeing you say it gives no difference i'll let you be the judge of that.

Re: Advanced image module for CuteNews

So then i would think you've uploaded the modified images.mdu in a wrong place, or you used a wrong source. But seeing you say it gives no difference i'll let you be the judge of that.

Solved.. and it works.. Thank you, i find one more place where i forgot to put extra code...
Below line with finalImage code, there is:

echo"
MYRTE=window.opener.document.getElementById(area).window.opener.currentRTE=area;
MYRTE.document.execCommand('InsertImage', false, '-my-temp-img-url-');
replacement = \"$config_http_script_dir/data/upimages/\" + selectedImage + \"\\\" hspace=\\\"\"+ hSpace +\"\\\" vspace=\\\"\"+ vSpace +\"\\\" alt=\\\"\" + alternativeText + \"\\\" border=\\\"\" + imageBorder + \"\\\" align=\\\"\" + imageAlign;
MYRTE.document.body.innerHTML = MYRTE.document.body.innerHTML.replace(/-my-temp-img-url-/gi,replacement);
";

and i just insert code for vspace and hspace...

regards,
http://cutephp.com/forum/style_emoticons/default/wink.gif

Re: Advanced image module for CuteNews

Hello, I have installed the new module with 1.4.6 and everything seems to work great except for two things.  Perhaps someone can assist me?


1.  Users besides admin are not allowed to delete images.  I am curious if this is a bug or a non included feature?

2. When renaming images, everything seems to work great except the thumb preview disappears.   
It still links to a working preview of the image when you click on it, but in the preview list it just shows a broken image after being renamed.

Re: Advanced image module for CuteNews

1) that's normal
2) it's possible the thumb isn't renamed?

317 (edited by 2008-10-30 15:28:30)

Re: Advanced image module for CuteNews

Thanks for the response.

1. Is there anything that I can do to give permission to editors?  (I have used cutehack in the past which has a permission setting for users to be able to delete images.)

2. It appears that the thumbnails were automatically renamed just as one would expect. But are still not showing the thumb in the list. (The thumbnail still clicks to show a preview)

FUNimations, I can grant you access to the back-end of the site if need be.

Re: Advanced image module for CuteNews

ahh here is a piece of informaton that might be helpful....


"The requested URL /portal/data/upimages/01_Drum-Machines/thumbs/Korg was not found on this server."

The actual filename is "Korg ES-1.jpg".  It appears the script does not know how to handle spaces in the filename.

Which is kind of necessary, due to the fact that in my gallery setup, the file name acts as the description for the photo.
It neds to be able to have spaces.  Any ideas?

319 (edited by 2008-10-30 16:06:32)

Re: Advanced image module for CuteNews

1) probably http://cutephp.com/forum/style_emoticons/default/tongue.gif
find

($member_db[1] != 1 and $action == "doimagedelete")


adn replace the  != 1 with

> 2


2) I'm surprised it can handle the space of the full image, but not the thumb...
But it's NEVER a good idea to have spaces in names or directories on your server.
For example, linux servers cannot handle spaces properly. Which i think would be the problem here as well. You have linux hosting. (if you need to chmodd, your on  linux )

I'm even surprised FI-DD didn't trim names of images.
As he does do this for his file upload hack

Re: Advanced image module for CuteNews

I sincerely appreciate the help.

If I upload the image with a space in the file name, everything seems to work fine. 
The problem only exists when I do a file rename within the image manager.
It seems there could be a way to do some sort of work around. If only I knew how.....

http://cutephp.com/forum/style_emoticons/default/mellow.gif

Re: Advanced image module for CuteNews

If I upload the image with a space in the file name, everything seems to work fine.

hmm
strange, in any case i can't find code that does any checking or limiting on file names when renaming.
Just in case could you ask your host about this too.

something like
when submitting a string through a php form, the part of my string after a space seem to get missing and my file get's the wrong filename.
I'm curious about their answer on that matter.On the bright side, if it is some doing due to the hack
I tried on my cn aswell, and got the same problem. Still that doesn't mean it's the hack.

322

Re: Advanced image module for CuteNews

Spaces in the file name shouldn't be a problem because spaces are replaced with underscores (around line 213):

$image_name = str_replace(" ", "_", $image_name);

1. What's the image name and the thumb name before renaming it?

2. What the image name and the thumb name after renaming it?

Re: Advanced image module for CuteNews

if ($action == 'rename' and $image and $name){
    $dir = end(explode("/", $path));
    @rename($path.'/'.$image, $path.'/'.$name);
    @rename($path.'/thumbs/'.$image, $path.'/thumbs/'.$name);
    echo '<script type="text/javascript">self.location.href="'.$PHP_SELF.'?mod=images&folder='.($path == $static_path_image_upload ? '' : $dir).'&start_from='.$start_from.'";</script>';
}

i migth be missing something here, but where do you replace spaces?

324

Re: Advanced image module for CuteNews

I replace the spaces during the upload process.

325 (edited by 2008-10-31 00:41:21)

Re: Advanced image module for CuteNews

Hey guys thanks again for the help.
As requested, I will go through the process again.....

upload file: ni4massive_l.jpg
it becomes located at: http://electrospectivemusic.com/portal/dat...i4massive_l.jpg
(That link will not work after renaming it of course, just wanted you to see the location seems correct.)

You can see a screen-shot of the thumbnail working here amongst the files I already renamed:
http://www.electrospectivemusic.com/ima … mthumb.jpg

Then, after I change the file name to: Native Instruments Massive.jpg
the thumbnail image preview breaks.

However, if you click it, we can still see the image is really working here:
http://electrospectivemusic.com/portal/dat...s%20Massive.jpg

(please notice that my browser only added the %20 as spaces when I pasted the link into this forum)

Posts: 301 to 325 of 427

Pages Previous 1 11 12 13 14 15 18 Next

You must login or register to post a reply

CutePHP Forums → Script Feedback and Suggestion → Advanced image module for CuteNews



The pun_antispam official extension is installed. Copyright © 2003–2009 PunBB.