• Different download options / Verschiedene Download Möglichkeiten 5 0 5 1
Currently:  

Author Topic: Different download options / Verschiedene Download Möglichkeiten  (Read 169067 times)

0 Members and 3 Guests are viewing this topic.

Offline Gulper

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Different download options / Verschiedene Download Möglichke
« Reply #60 on: June 24, 2005, 02:57:47 AM »
Is there a way to integrate this mod somehow into the ACP?
It would be great, if I can add more than currently one download... If for example I have three downloads for one image, I enter three different download urls in the ACP for this one image or movie.... then in the details of this picture or movie, the three downloads are visible... if I only enter two downloads, only these are visible... etc...
Would be also great, if I could assign a seperate download button to each download... That would be awsome! :)
Can someone adjust this mod?

Offline headmax

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: Different download options / Verschiedene Download Möglichke
« Reply #61 on: September 01, 2005, 12:27:07 PM »
great mod, it works fine.
but is it possible to show the file-size and the resolution of the big picture?

thanks headmax

Offline jkn

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: Different download options / Verschiedene Download Möglichke
« Reply #62 on: September 02, 2005, 02:12:52 PM »
hey guy's,

it's possible to change this mod so different users have different download options??? also for example: 

1. guests can download files from cat_id/ and cat_id/big folder and
2. only registered members can download files vom cat_id/highres folder !????

thx for your help!!
jkn 

Offline khan

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: Different download options / Verschiedene Download Möglichke
« Reply #63 on: November 06, 2005, 07:01:08 PM »
Hi guys
i am using 4images for music site and there i have each song in 3 formats ".rm" ".wma" and ".mp3". when a user click on thumbnail and he enter to details page the song is start playing in .wma format and the default buttons for download is linked to this wma file but now what i want that to put 2 more buttons on details page and link it to ".rm" and the ".mp3" file.

any help will be apriciated :)


Offline newb

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: Different download options / Verschiedene Download Möglichke
« Reply #64 on: December 02, 2005, 10:00:42 PM »
hey guy's,

it's possible to change this mod so different users have different download options??? also for example: 

1. guests can download files from cat_id/ and cat_id/big folder and
2. only registered members can download files vom cat_id/highres folder !????

thx for your help!!
jkn 

I was wondering the same thing. That would fit perfectly.

Offline Eagle Eye

  • Full Member
  • ***
  • Posts: 191
    • View Profile
Re: Different download options / Verschiedene Download Möglichke
« Reply #65 on: February 09, 2006, 01:55:42 PM »
I think I did it:

look for
Code: [Select]
$file_path = MEDIA_PATH."/".$image_row['cat_id']."/".$image_row['image_media_file'];
and replace it with
Code: [Select]
$file_path = ROOT_PATH."/data/download/".$image_row['cat_id']."/".$image_row['image_media_file'];
only 2 changes! - seems it works!  :D

I want to resize all images and keep the original in a folder called "download" i tried the above modification, but it still seems to be taking the file from the original cat if folder (the file that I resized and not the saved original in download folder) what could be wrong?

path: resized image: .../data/#/  and orginal: .../data/#/download/

Thanks in advance

Offline obmob01

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Re: Different download options / Verschiedene Download Möglichke
« Reply #66 on: February 09, 2006, 08:45:00 PM »
Ok, i hope this is what you want:

Open functions.php and add

Code: [Select]
ereg("(.+)\.(.+)", $image_row['image_media_file'], $regs);  
$rar_path = MEDIA_PATH."/".$image_row['cat_id']."/".$regs[1].'.rar';  

$rar_size = 0;
if (file_exists($rar_path)) {  
    $rar_size = format_file_size(filesize($rar_path));
}
after
Code: [Select]
elseif ($detailed_view) {
  $file_size = get_remote_file_size($image_row['image_media_file']);
}
and add
Code: [Select]
"rar_file_size" => $rar_size,after
Code: [Select]
"image_file_size" => $file_size,Then use {rar_file_size} in the templates.

Jan
This was incredibly useful, thanks, i was having that problem with ZIP files :)

Offline fotograf74

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: Different download options / Verschiedene Download Möglichke
« Reply #67 on: April 26, 2006, 08:22:49 PM »
I read the whole thread. Is there any example in the web to see this mod in action?

Can I do this with the mod?
- upload a high-res picture
- automatic resized in 4 sizes, which are automatic saved in different folders
- can put each in the lightbox
- download the lightbox (cart)

Offline Eagle Eye

  • Full Member
  • ***
  • Posts: 191
    • View Profile
Re: Different download options / Verschiedene Download Möglichke
« Reply #68 on: May 08, 2006, 12:35:23 PM »
Try to change this line:
Code: [Select]
$file = ((is_local_file($image_row['image_media_file'])) ? dirname($image_row['image_media_file'])."/" : MEDIA_PATH."/".$image_row['cat_id']."/").$regs[1]."_".$size.".".$regs[2]; to
Code: [Select]
$file = ((is_local_file($image_row['image_media_file'])) ? dirname($image_row['image_media_file'])."/" : MEDIA_PATH."/".$image_row['cat_id']."/").'highres/'.$regs[1]."_".$size.".".$regs[2]; Now you can create a subfolders called "highres" and store the additional images in it.

Jan

Thanks for this MOD
I am using jan's original mod http://www.4homepages.de/forum/index.php?topic=1861.msg7846#msg7846 and with a little modification with http://www.4homepages.de/forum/index.php?topic=1861.msg9178#msg9178 and my own for the active buttons (cause it was showing the same donwload.gif) i got the buttons working...

but when i press download... it is downloading an empty file with 789 bytes.. and correct file name   8O

what must have gone wrong?

Offline IWS_steffen

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • Kreuzfahrtschiffe gestern und heute
Re: Different download options / Verschiedene Download Möglichke
« Reply #69 on: May 09, 2006, 10:56:55 PM »
great mod, it works fine.

thanks steffen

Offline GhostPool

  • Newbie
  • *
  • Posts: 42
    • View Profile
    • GhostPool Designs
Re: Different download options / Verschiedene Download Möglichke
« Reply #70 on: July 30, 2006, 01:00:10 AM »
Is it possible someone could modify this code slightly so that I can have some of the download options available to everyone, whilst other's only available to registered users.

Offline sajwal

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: Different download options / Verschiedene Download Möglichke
« Reply #71 on: July 30, 2006, 03:08:03 AM »
Hi Jan,
         You will have to really help me with this! :D (you have already done something like this now!)

I want to provide my registered users with the source file of an image
viz : 1. either *.cdr   2. *.psd   or 3. *.ai  but the guest with only the *.jpg of it
Now, I want to show three download buttons to registered members (for *.cdr, *.psd and *.ai),
if i upload only one of the format source file - the rest two should get blurred,
if i upload two the third should get blurred and
 if all three formats , all should be active

Thanks in advance Jan, please take this pain ... i dont know php and i am helpless

Offline GhostPool

  • Newbie
  • *
  • Posts: 42
    • View Profile
    • GhostPool Designs
Re: Different download options / Verschiedene Download Möglichke
« Reply #72 on: August 02, 2006, 01:41:14 PM »
Is it possible someone could modify this code slightly so that I can have one of the download options available to everyone, whilst the others only available to registered users.
Any help here for my above query. I'm hoping it's something easy to change, or maybe you could just allow the default {download_button} to be available to everyone regardless of the option selected in the Control Panel.

Offline GhostPool

  • Newbie
  • *
  • Posts: 42
    • View Profile
    • GhostPool Designs
Re: Different download options / Verschiedene Download Möglichke
« Reply #73 on: August 29, 2006, 03:11:56 PM »
Again I ask is there a way to adapt this Mod so that some of the download options can be available to guests, whilst other's are available to members only. Hope someone can help. Thanks.

Offline Eagle1

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: Different download options / Verschiedene Download Möglichke
« Reply #74 on: October 15, 2006, 11:22:57 AM »

I read the whole thread. Is there any example in the web to see this mod in action?

Can I do this with the mod?
- upload a high-res picture
- automatic resized in 4 sizes, which are automatic saved in different folders
- can put each in the lightbox
- download the lightbox (cart)

I have same question. Is this possible?

I am surprised, that this feature is not in the CORE  :( Every Photographer which will offer Images over the web needs this function. Preview images, and download the full Print version and Full Size of an Image. So I hope this feature is in Core as Donwload Option in the Future, also a simple Workflow to Upload ONE Image and generate all other Thumbs from this one. No Upload more Images....

Thanks Roland