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 !

I think that you can not use this hack with FCKeditor, how is the order to install those together? I mean, first install fck and then this hack ?
Once install, when I click the image button on fck it will use the hack?

Thanks in advance!

Re: Advanced image module for CuteNews

No no no , I used this hack to insert an image in the avatar field and fck for the article itself .
The major problem with my website is the high load caused by large images in the avatar field . this hack creates a thumbnail for the avatar .  the images i use for the article full story dont load on the main page so its an idle solution for me .

78 (edited by 2006-01-09 19:09:15)

Re: Advanced image module for CuteNews

hi
i want to use a picture in 3 differnet sizes.
one for the small story (85/70px)
one for the full story (200/150px) and this should be clickable to the original picture in a popup(400/300/

what ca i do?
thanks

Re: Advanced image module for CuteNews

Thats an excellent idea and i think i will look into it also but i think FI-DD can come up with a quicker solution .

Re: Advanced image module for CuteNews

I would like to know if there are any thoughts to make this script working as XHTML strict in future? It inserts vspace, hspace, align which aren't validated if using XHTML strict. Are there any plans making such design elements included via css and not directly in the html code?

81 (edited by 2006-02-03 13:33:18)

Re: Advanced image module for CuteNews

I want to resize the picture to a thumb but not only the width. Also the height. Is it possible to resize the height and width together, so that the sizes of all thumbs have the same size ?

So I want a option something like this : Use Cropped Square Thumbnails

Re: Advanced image module for CuteNews

So I want a option something like this : Use Cropped Square Thumbnails


You asked so nicely - I had to make it.  https://cutephp.com/forum/style_emoticons/default/wink.gif

Version 2.0 now supports sub directories and cropping of the thumbs which means that the thumbs are squares with a fixed width and height.  https://cutephp.com/forum/style_emoticons/default/smile.gif

Re: Advanced image module for CuteNews

You asked so nicely - I had to make it.  https://cutephp.com/forum/style_emoticons/default/wink.gif

Version 2.0 now supports sub directories and cropping of the thumbs which means that the thumbs are squares with a fixed width and height.  https://cutephp.com/forum/style_emoticons/default/smile.gif


and what about making it valid xhtml strict? do I still have to delete all vspace, hspace, align etc. manually or have you converted them to css?

84 (edited by 2006-02-05 10:07:58)

Re: Advanced image module for CuteNews

You asked so nicely - I had to make it.  https://cutephp.com/forum/style_emoticons/default/wink.gif

Version 2.0 now supports sub directories and cropping of the thumbs which means that the thumbs are squares with a fixed width and height.  https://cutephp.com/forum/style_emoticons/default/smile.gif

https://cutephp.com/forum/style_emoticons/default/laugh.gif  Thanks a lot !!! It's exactly what I wanted ! Thank you very much. I'm dutch and I have a quite limited knowledge of the English vocabulary. But I'm working on it.  https://cutephp.com/forum/style_emoticons/default/wink.gif

Re: Advanced image module for CuteNews

Another suggestion:

option to delete dir

Re: Advanced image module for CuteNews

I can see im gonna have to download this again and check out all the new funky features  https://cutephp.com/forum/style_emoticons/default/biggrin.gif

I see you've been busy FI-DD  https://cutephp.com/forum/style_emoticons/default/wink.gif

Peace out, TinnyFusion

Re: Advanced image module for CuteNews


Another little update:
- Delete empty folders
- Move images from one folder to another
- Pagination

Re: Advanced image module for CuteNews

it's a detail:

in image properties:

http://validator.w3.org/
value of attribute "ALIGN" cannot be "NONE"; must be one of "TOP", "MIDDLE", "BOTTOM", "LEFT", "RIGHT".

btw: great job https://cutephp.com/forum/style_emoticons/default/smile.gif

Re: Advanced image module for CuteNews

Boohooo....  https://cutephp.com/forum/style_emoticons/default/sad.gif

When trying to use this great module I get this error message (in the images window):


Uploaded Images

Fatal error: Only variables can be passed by reference in /home/web25302/domains/esy.se/public_html/moduler/nyheter/inc/images.mdu on line 408 


Can U help?

Regards
Magnus J

Re: Advanced image module for CuteNews


Please post line 408.

Re: Advanced image module for CuteNews

Here is line 408:

$img_type = end(explode(".",$file));

I tried to fix it by doing this (something I read on the net):

$img_type = explode(".",$file);
$lastpart = end($img_type);

That took away the error message (in the Admin image module), but... the images are not listed under "Uploaded Images"? I can see the directory dropdown and everything above.

https://cutephp.com/forum/style_emoticons/default/huh.gif

Re: Advanced image module for CuteNews


$lastpart won't work as a variable. It has to be $img_type.

Try this: $img_type = end($img_parts = explode(".",$file));


Re: Advanced image module for CuteNews

Yippie!!!

It worked like a charm. First I got the same error, but on line 432. So I did the same change on that line and it worked.

Also I had this error in the file hack (files.mdu) on line 302:

$file_name = substr($file, 0, -(strlen(end(explode(".", $file)))+1));

So I tried changing that one to:

$file_name = substr($file, 0, -(strlen(end($file_parts = explode(".", $file)))+1));

And... it seems to work!

Thanks a lot mate. U R a life saver!

https://cutephp.com/forum/style_emoticons/default/biggrin.gif

Re: Advanced image module for CuteNews

why isn't the path of the thumb good? my news are postet on www.site.xxx, and show_news is is in www.site.xxx/news/, but the thumbs are in www.site.xxx/data/upimages/thumbs... someone asked this before me, but the solution didn't work

Re: Advanced image module for CuteNews

Well I have a problem, I upload an image with no problems, it is insert with no problems, when I check the preview is ok....but when I post the news it just refuse to show the image

Any idea?

Re: Advanced image module for CuteNews

Great hack! But i have one problem:

everything works fine, just in editor i always get the messages:

Warning: Missing argument 2 for get_subfolder() in /usr/home/commercial/www.ng.socialnidemokrati.si/www/cutenews/inc/images.mdu on line 640

Warning: Missing argument 4 for get_subfolder() in /usr/home/commercial/www.ng.socialnidemokrati.si/www/cutenews/inc/images.mdu on line 640

Line 640 in images.mdu is:
function get_subfolder($path, $old_path, $move = false, $image){


any idea how to fix this?? i am trying for whole day  https://cutephp.com/forum/style_emoticons/default/sad.gif




Re: Advanced image module for CuteNews

Try this:

Open images.mdu and find

function get_subfolder($path, $old_path, $move = false, $image){

change it to this:

function get_subfolder($path, $old_path = false, $move = false, $image = false){

Re: Advanced image module for CuteNews

vl003056.jpg -> Image was uploaded
-> No File Specified For Upload!


is there something wrong with the code
i allways get this when uploading images!

after selected one image to upload i get another field to add the next image.
that keeps repeting after each image.
so i always get a empty upload filed and the error above.

anything to do to fix this or live with it ?

Re: Advanced image module for CuteNews


I think I fixed it in the latest version.

100

Re: Advanced image module for CuteNews

ok.
ill better update some day then!
tnx