• [MOD] Alternate directory for download files. 5 0 5 1
Currently:  

Author Topic: [MOD] Alternate directory for download files.  (Read 224098 times)

0 Members and 1 Guest are viewing this topic.

Offline Gostemilov

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: [MOD] Alternate directory for download files.
« Reply #105 on: May 25, 2008, 08:45:08 PM »
Quote
then feel free to wait, that some one post these files

Of course, I'm feel free to wait. And, of course, I made all necessary changes long time ago. But there is a small question... What are You doing here, Mr. Moderator? Usually, Moderators helps people (don't care, it'not about You, of course!)  :D

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [MOD] Alternate directory for download files.
« Reply #106 on: May 25, 2008, 09:03:14 PM »
[offtopic]
hmmmm...

Moderator is not a helper.
moderator is the guy who moderate/watch/move/edit/delete users sarcastics posts ;)
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline Gostemilov

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: [MOD] Alternate directory for download files.
« Reply #107 on: May 26, 2008, 08:21:55 AM »
Quote
Moderator is not a helper.
- really?

I think it's the first forum on the Net there Moderator is just Watcher.

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [MOD] Alternate directory for download files.
« Reply #108 on: May 26, 2008, 11:27:30 AM »
not always.. ;)

but sometimes...

our moderator mawenzi is a helper... but sometimes you have to wait for the answer like he wrote..

btw.. your problem description is not usefull
Quote
I've tried lot of above,but it still doesn't works.
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Alternate directory for download files.
« Reply #109 on: May 28, 2008, 12:37:43 AM »
@Gostemilov

1. it is not my MOD, please contakt Chris for the file download ...
2. I have not these files, where only this MOD is integrated ...
3. as I said ... http://www.4homepages.de/forum/index.php?topic=7499.msg117713#msg117713 ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline SunnyUK

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: [MOD] Alternate directory for download files.
« Reply #110 on: June 22, 2008, 02:29:52 AM »
I've struggled with this MOD for some hours now. There is something wrong with downloads from the \big directory (and yes, I have read all 8 pages in detail and been over the code several times). But the good news is that the mod works (at least for me) if the big files are stored in \download.

So an easy way around it is to update admin\checkimages.php and make "download" the default directory for oversized images:
Code: [Select]
$big_folder_default = "download"; //name of the "big" folder where original image will be copied to, if its bigger then size set in the settings.
Just thought this might help some of the other people who have struggled with the download still being of the reduced size even when there is a bigger file they'd like to download.

Offline SunnyUK

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: [MOD] Alternate directory for download files.
« Reply #111 on: June 22, 2008, 11:12:06 PM »
Firstly, thanks a bunch for this great mod. It's great functionality!

When an image is deleted, both the image and the thumbnail gets deleted. However, the "big" or "download" version does not automatically get deleted at the same time.

Any idea about how to fix that?

Thanks in advance

Offline SunnyUK

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: [MOD] Alternate directory for download files.
« Reply #112 on: June 24, 2008, 12:07:32 PM »
Just in case anyone else would like to be able to also delete the "big" files, here's the solution I came up with after seeing that this issue hadn't been tackled by anyone else before.

In lang\english\admin.php search for
Code: [Select]
$lang['thumb_delete_success'] = "Thumbnail file deleted";
$lang['thumb_delete_error'] = "Error deleting thumbnail file";

Insert this after:
Code: [Select]
$lang['bigimage_delete_success'] = "Big image file deleted";
$lang['bigimage_delete_error'] = "Error deleting big image file";

Do the same in \lang\deutch\admin.php

in admin\images.php search for
Code: [Select]
      if (!empty($image_row['image_thumb_file']) && !is_remote($image_row['image_thumb_file']) && !is_local_file($image_row['image_thumb_file'])) {
        if (@unlink(THUMB_PATH."/".$image_row['cat_id']."/".$image_row['image_thumb_file'])) {
          echo "&nbsp;&nbsp;".$lang['thumb_delete_success']." (".$image_row['image_thumb_file'].")<br />\n";
        }
        else {
          $error_log[] = "<b>".$lang['thumb_delete_error']." (".$image_row['image_thumb_file'].")<br />\n";
        }
      }

(this is within a function called delete_images)

After that code, insert
Code: [Select]
/* We should also delete the "big" version in folder /download */
      if (!is_remote($image_row['image_media_file']) && !is_local_file($image_row['image_media_file'])) {
        $download_del = MEDIA_PATH."/".$image_row['cat_id']."/download/".$image_row['image_media_file'];
if (file_exists($download_del)) {

          if (@unlink($download_del)) {
            echo "&nbsp;&nbsp;".$lang['bigimage_delete_success']." (".$image_row['image_media_file'].")<br />\n";
          }
          else {
            $error_log[] = "<b>".$lang['bigimage_delete_error']." (".$download_del.")<br />";
          }
}
      }

If your "big" folder is not called \download, then you need to replace the /download/ with your "big folder"-name in this line of my code:
Code: [Select]
        $download_del = MEDIA_PATH."/".$image_row['cat_id']."/download/".$image_row['image_media_file'];

Offline FunnyUser

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Re: [MOD] Alternate directory for download files.
« Reply #113 on: February 27, 2009, 11:38:53 AM »
I know it sound crazy but how can I change generally the download-dir.

I need the download dir for ALL images like this:
http://www.MY-EXTERNAL-SERVER.com/downloads/{image_name}.jpg

Please don't worry! I perfectly know what I'm doing (all images are named to let this work).

But I don't want to link the thumbnail, or the image to that URL because than the script will not count how often each image was downloaded.


Can someone please help me!?


Thanks a lot!

Offline Sam1

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [MOD] Alternate directory for download files.
« Reply #114 on: March 05, 2009, 04:09:02 AM »
Ok, this is the mod I was looking for, but after I did the mod I don't see the player anywhere in the gallery.  Is there something in the acp that needs to be turned on?  I looked therere but don't see anything to activate the player.

Offline CarstenM

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Re: [MOD] Alternate directory for download files.
« Reply #115 on: April 15, 2009, 10:19:20 AM »
was genau macht der mod??

Rembrandt

  • Guest
Re: [MOD] Alternate directory for download files.
« Reply #116 on: April 15, 2009, 05:30:35 PM »
Hi!
was genau macht der mod??
du nix lesen?
so.. wenn du ein großes bild z.b. 2000px x 3000px hochladest, und anschliessend in ACP es validierst wird ein thumbnail erstellt, ein verkleinertes z.b. 800px x600px
auf der detailseite siehst du das 800 x 600 bild, und kannst es dort downloaden, in der detailbeschreibung siehst du wie groß das originalbild ist,
 und wenn du es in die lightbox verschiebst, kannst du von dort aus das original 2000px 3000px downloaden.

mfg Andi

Offline CarstenM

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Re: [MOD] Alternate directory for download files.
« Reply #117 on: April 16, 2009, 11:57:53 AM »
d.h. ich lade bilder per ftp auf den Server und dann check ich sie ein und dann macht der direkt die Thumbnail und das Detailbild???

Rembrandt

  • Guest
Re: [MOD] Alternate directory for download files.
« Reply #118 on: April 16, 2009, 06:00:42 PM »
Hi!
d.h. ich lade bilder per ftp auf den Server und dann check ich sie ein und dann macht der direkt die Thumbnail und das Detailbild???
ja wie oft den noch.
vorraussetzung ist, du hast einen vernünftigen provider, bei funpic z.b. funktioniert das nur sehr eingeschränkt, das die zuwenig speicher zur verfügung stellen.


Offline CarstenM

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Re: [MOD] Alternate directory for download files.
« Reply #119 on: April 18, 2009, 07:28:19 PM »
also anscheinend bin ich zublöd dafür....

ich lade die Bilder hoch per ftp.... und dann was mach ich dann?  geh ich auf Bilder einschecken und dann??

? erstelle ich Thumbnail manuell
? und dann autoimage resize?