Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - varoon

Pages: [1] 2
1
The current Thumb creation does center crop only or left or right or resize to fit...

but im looking for resize and then crop to fit....

can u add a new option (5) resize and crop to fit..

i found some code which does exact wat i need..

PHP+GD Output

http://911-need-code-help.blogspot.com/2009/04/crop-to-fit-image-using-aspphp.html

can this be implemented ?  :?:

or im wrong somewhere ??  :?

2
what happen when i upload a Animated Gif ?

will that too get converted to smaller image and still animated ???

When you upload an animated gif and tell 4images to create a thumnail for it. Is the thumbnail animated?
This mod does the same resizing that is used to create thumbnails...

So if the thumnails are animated then the resized gifs should be animated.
If not then for the animated gifs you will have to upload your own resized images to place in the big folder for those files.

UPDATED:
Doing more research into animated gifs, no this will not resize them correctly,
the best thing I can tell you to do would be to take gif out of the selection area of the mod so it will just get the normal download button instead...
But this would be for ALL gifs and not just animated ones.
in the details.php file look for this line in my insert...
Code: [Select]
if(!strpos(",jpg,jpeg,JPG,JPEG,png,gif",pathinfo($image_row['image_media_file'], PATHINFO_EXTENSION))){
Remove the ,gif from that line and you should be good...

Sorry, that is the best I can do...

Thx man... not a prob...

i will keep them in a separate folder and not going to enable multi download option...  :)

today came across some Cropping scripts

http://www.hotscripts.com/blog/javascript-image-cropping-scripts/

can these be implemented ???

i personally like the Kroppr but its Paid and the UvumiTools Crop its free!

Eg:
when i click on a download button.. say 800 x 600...
in the preview image show the selected cropping region... let width and height be fixed only u can select region and Download....

3
what happen when i upload a Animated Gif ?

will that too get converted to smaller image and still animated ???

4
Hi

Great collection. Good work guyz...  :thumbup:

how about Sharing the Fully Modded 4image 1.7.7 gallery ?  8)

it will help lot of users...   :wink:

wat say ?  :roll:

5
what will happen if i have a zip or other than image files ?

will these Multi download option will be visible ? or just the default download option ?

6
What will happen if i upload a 500x500 picture ? when the default size for thumb is 800x600 !

Does the thumbnail will resize to 800x600 ??? or the original size 500x500 will be displayed ?

7
Hallo,

habe das jetz mal durchgeführt,  Die URL http://www.tram-und-bahnbilder.de/img-tw-8012-augsburg-m8c-1094.htm  allerdings kommt  "Die Webseite konnte nicht angezeigt werden!" 404

wer kann helfen ?? hab die Änderung erstmal rausgenommen wieder

grüße Tobias

Add this code to ur .htaccess file

the attachment is missing this code.

Code: [Select]
RewriteRule ^img-(.*)-([0-9]+)\.htm$ details.php?image_id=$2&%{QUERY_STRING}
RewriteRule ^img([0-9]+)\.search.htm$ details.php?image_id=$1&%{QUERY_STRING}
RewriteRule ^img([0-9]+)\.lightbox.htm$ details.php?image_id=$1&%{QUERY_STRING}

8
Mods & Plugins (Releases & Support) / Re: [Mod] Photo Of The Day
« on: July 16, 2009, 11:11:19 AM »
Thx for this mod, but actually it is no "Photo of the day"  8O

In my imagination a 'photo of the DAY' would be

- a selection of the admin (who has chosen the best photos for each day), or the picture has

- the most hits, comments, downloads etc. (in your case they are the total hits, and not of the past 24h)

...or am I wrong?  :|

ya ur right... but now a days many admin cannot update these small options regularly. so they have created it random.  :mrgreen:

9
The first error looks like you did not remove the old mod before pasting the new one in. Look at the blue area of my first post. I am no longer using that string in the mod. I will look over the original code to see if I forgot something...

The second error was an oversight on my part.
This is what I think will fix the problem. Let me know if it works and I will modify my original post to include the change.

in your functions file...
look for
Code: [Select]
$max_width = $site_template->val_cache['download_width'];
if (ISSET($max_width)){
$max_height = $site_template->val_cache['download_height'];
}
else {

Replace with...
Code: [Select]
if (ISSET($site_template->val_cache['download_width'])){
$max_width = $site_template->val_cache['download_width'];
$max_height = $site_template->val_cache['download_height'];
}
else {

see what that does for you and let me know...


i removed the code from my /includes/functions.php  

Code: [Select]
// MOD multi download

if (!check_permission("auth_download", $image_row['cat_id'])) {
$multi_download_options="&nbsp;&nbsp;<img src=\"".get_gallery_image("download_off.gif")."\" border=\"0\" alt=\"\" />";
$allow_download = 0;
clear_download_token($image_row['image_id']);
}
else{
$multi_download_options = $multi_download_options_string;
    $multi_download_options .= "</td><td><input type='submit' name='download' value='".$lang['download']."' class='button' />
                   </TD></TR></TABLE></TABLE><input type='hidden' name='action' value='resize' />
                    <input type='hidden' name='image_id' value='".$image_row['image_id']."' /></form>";
//
$allow_download = 1;
    set_download_token($image_row['image_id']);

}
$site_template->register_vars("multi_download_options", $multi_download_options);
// END MOD multi download

and the first Error disappear!

(let me know if this code is need for some other purpose)


and for the second error, i replaced as u said

Code: [Select]
if (ISSET($site_template->val_cache['download_width'])){
$max_width = $site_template->val_cache['download_width'];
$max_height = $site_template->val_cache['download_height'];
}
else {

and the second error also gone...  :D

10
can anyone help me...

using 1.7.7

after updating. in index page. i see all my link ****.htm seems perfect.

 but when i click on them it says Page does not exist.

what might be the problem ??

11
Hi i got a Error Message !

While i click New images i get error msg at top...  :(

url : /search.php?search_new_images=1

##########
Notice: Undefined variable: multi_download_options_string in /home/content/v/a/r/xxxx/html/xyz.com/includes/functions.php on line 398

Notice: Undefined index: download_width in /home/content/v/a/r/xxxx/html/xyz.com/includes/functions.php on line 528
##########

i just found that its something related to Images per page

coz when i increase the no. of images displayed. Errors also occurs many times... 

may i know y this occurs ?? did anyone else get the same error ?



12
Hi

can anyone tell me the full steps for 1.7.7


i m confused...  :?

thx in advance...

13

Can u provide an option to Delete all Files Created in BIG Folders ????  :roll:

If you installed the mod correctly, there should be a plugin in your control panel that will clear out the resized files

Cool....  :thumbup:

"""Clear Multi Download Cache"""" just Found...  :wink:

14
hi.

How do i Auto Hide the Large resolutions download links than the Original image size

Eg:

original size  : 800 x 600
Large size : 1024 x 768

here i want to hide the 1024  in the download option..

is it possible ???

I think this is what you are wanting?
http://www.4homepages.de/forum/index.php?topic=22741.msg137970#msg137970

you can just delete the arrays that you do not want people to be able to select.
This is a global settings so this will effect everyone and not just per user or per group.

If you are just wanting only sizes smaller the original then that setting will be in your admin panel, under categorie settings, you will see that as an option.

let me know if I mis understood your question

Not Actually... later i found myself.. u hav already DONE it  :)

"""Only allow smaller sizes then original to be selectable""" ( available at Add / Edit categories at admin panel)

Thx for that option...  :mrgreen:

Can u provide an option to Delete all Files Created in BIG Folders ????  :roll:

15
hi.

How do i Auto Hide the Large resolutions download links than the Original image size

Eg:

original size  : 800 x 600
Large size : 1024 x 768

here i want to hide the 1024  in the download option..

is it possible ???

Pages: [1] 2