forum.coppermine-gallery.net

Support => cpg1.4 plugins => cpg1.4.x Support => Older/other versions => cpg1.4 plugin contributions => Topic started by: ks on September 17, 2006, 10:29:39 am

Title: Fullsize Access
Post by: ks on September 17, 2006, 10:29:39 am
Hi,

this plugin controls access for downloading fullsize images and adds several features:

- restrict access to fullsize pics to registered users
- adds a download link to the image information section
- adds a fullsize download history (datetime,username,ip) table and a statistics page
- sending email to admin and/or customer for each download
- zip download link to download all pics in an album and in favorites
- clicking on medium sized pic to show fullsize pic is disabled
- Secure image files on the file system level via chmod

Most settings can be controlled by a configuration page added to the admin menu. Plugin language is english only, but some settings are in german. This may be improved in a future version... At the moment all registered users are allowed to download fullsize images. You can change this behavior by editing the file fullsize_check.php.

The zip download feature bypasses cpg's build-in favorites zip download. I recommend to switch off the cpg favorites-zip download in the cpg-config page if you want to use this plugin.


The optional file security feature will prevent users to download pics by entering the pics url directly and it works like this:
- if a fullsize pic is requested, the plugin first changes the file attributes from 660 (safe) to 666 (unsafe) and then sends the file to the user. After the download the attribute is set back to 660.
- The fullsize access conig panel has  buttons to secure and unsecure all files
- The file attribute is changed via ftp

If you want to use this feature you have to edit the file 'fullsize_secure.php'. At the beginning of the file there is a section where you must specify your ftp login and the path for the ftp client to the coppermine root.  New pics that are added to the cpg gallery are not automatically secured. You must use the secure button in the plugins config page. So this feature is only useful for galleries were only 1 or a few people are uploading pics.
I'm not an unix/apache expert and the security feature is open for discussion. On my present webserver the file attribute change from 660 to 666 is not needed to download the file via the script. However this was different on my old system.... Any suggestions are welcome!


klaus


Title: Re: Fullsize Access
Post by: JesseLeeStringer on September 24, 2006, 04:56:31 am
A small note that Jared Hatfield's plugin must be disabled to use this plugin.


"Name Download and Alternate File Loading v1.3     
Author Jared Hatfield
Description Add a download link for full resolution picture. Load ALL files through a PHP script. Requires a small modification to be fully functional."

JesseLeeStringer
Title: Re: Fullsize Access
Post by: NevilleX on September 25, 2006, 09:08:13 am
Great plugin. Thanks a lot!
I have noticed on bug though.
It doesn't work good with filenames with spaces.
For example if the file is named "my file.jpg" download link downloads file with filename "my" and without extension.
Title: Re: Fullsize Access
Post by: ks on September 25, 2006, 09:24:24 am
Hi Neville,

I always try to avoid spaces in filenames and paths whenever possible. I wasnt even aware that unix can deal with blanks, or do you run cpg on a win system? Anyway I will have a look at this issue.

klaus
Title: Re: Fullsize Access
Post by: NevilleX on September 25, 2006, 09:35:05 am
I have only tested it locally on windows. Maybe it works on unix which will be fine.
I also avoid spaces, but my users somethimes don't.  :)
Thanks for looking at it.
Title: Re: Fullsize Access
Post by: Sami on September 25, 2006, 09:42:58 am
CPG will replace space with _ on upload process
@ks: check your plugin for dealing with _
Title: Re: Fullsize Access
Post by: NevilleX on September 25, 2006, 10:03:41 am
CPG will replace space with _ on upload process
@ks: check your plugin for dealing with _

Oh I wasn't aware of that. However, I have files with spaces in the gallery uploaded by previous versions of CPG also.

Title: Re: Fullsize Access
Post by: Sami on September 25, 2006, 10:06:42 am
if you are running CPG (public one) on win box this would be OK
Title: Re: Fullsize Access
Post by: ks on September 25, 2006, 10:20:16 am
CPG will replace space with _ on upload process
@ks: check your plugin for dealing with _

SInce almost all my pics have underscores in the filename I'm sure the plugin has no problems with that  :D
Title: Re: Fullsize Access
Post by: NevilleX on September 25, 2006, 01:38:20 pm
I can confirm this behaviour on unix too.
I have installed the plugin on my site.

Try to download this file: http://www.segoodies.com/displayimage.php?album=100&pos=5 for example.

You can login with username: test password: test
Title: Re: Fullsize Access
Post by: NevilleX on October 01, 2006, 02:02:58 pm
Thanks for explaining this to me. I should rename all files that have spaces in my gallery.

Another thing i have noticed is that if someone who is not loged in enters download link directly in the browser, there is a message "no download for guests" which is great, but stylesheet is not included on that page so it looks funny.
See for yourself: http://www.segoodies.com/plugins/access/download.php?pid=1886

Title: Re: Fullsize Access
Post by: Dirk on October 11, 2006, 08:34:24 am
Hi Klaus,

i like to use your great mod. I´ve got problems to edit fullsize_secure.php (i´am not good in PHP). Perhaps someone can explain me where i have edit thing to rum the mod.

Many thanks!

Best regards!

Dirk
Title: Re: Fullsize Access
Post by: ir803 on January 19, 2007, 01:16:46 am
I too am unsure what to edit, I've put in my host details, that is the FTP for the host that my other sites including my coppermine site sits on.
I'm not sure whether I have to alter these lines
Code: [Select]
require_once('/home/www/web294/files/inc/schwarzburgland.init.php');
//require_once('c:/webserver/files/inc/schwarzburgland.init.php');
Do I put in a path to a php file in the fullsize_acess folder ??
I have the download link appearing on my site but when I click "secure files" in my config I get this error, i'm sure I need to chnage the code but not sure what too.
Fatal error: main(): Failed opening required 'c:/webserver/files/inc/schwarzburgland.init.php' (include_path='.:/usr/share/pear')
Title: Re: Fullsize Access
Post by: ir803 on January 20, 2007, 08:07:35 am
I've been looking at this a bit more and still no joy, where it says required_once is this something I have to remove after the initial activation of the plugin?
Title: Re: Fullsize Access
Post by: ir803 on January 21, 2007, 12:25:08 am
I tried changing the top part of the code to my cpg route and still got this error.
Code: [Select]
Fatal error: main(): Failed opening required '/ghsimages/cpg146/' (include_path='.:/usr/share/pear') in /home/fhlinux195/i/itsmy-space.co.uk/user/htdocs/ghsimages/cpg146/plugins/fullsize_access/fullsize_secure.php on line 18
what is include_path='.:/usr/share/pear' I can't find any reference to it in my directory and I know I'm a bit slow on the php but the editing instructions are a little vague. I'm using dreamweaver and in code view the php file is shown up in orange text with // in front which I think is the description and instructions NOT the code to be edited, then there is the code itself which I have edited correctly I think but obviously there's something not right coz I still get this error.
Title: Re: Fullsize Access
Post by: Nibbler on January 21, 2007, 12:52:43 pm
No reason to be using dreamweaver for this. I would suggest removing line 18 and hardcoding in your ftp details.
Title: Re: Fullsize Access
Post by: ir803 on January 21, 2007, 04:32:46 pm
Thanks for the reply Nibbler but I'm by no means competent enough to know what to put where, I took the line 18 out and now it just says it failed to connect to the FTP.
Title: Re: Fullsize Access
Post by: Nibbler on January 21, 2007, 04:59:57 pm
You need to enter your FTP details, so change

Code: [Select]
$ftp_server = $SLCONFIG['ftp_server'];
$ftp_user_name = $SLCONFIG['ftp_user_name'];
$ftp_user_pass = $SLCONFIG['ftp_user_pass'];
$ftppath_to_cpg = "html/images2/";

to what the real values are

Code: [Select]
$ftp_server = 'your_server_name_here';
$ftp_user_name = 'your_username_here';
$ftp_user_pass = 'your_password_here';
$ftppath_to_cpg = "htdocs/ghsimages/cpg146/";

I guessed the path, check it.
Title: Re: Fullsize Access
Post by: ir803 on January 21, 2007, 05:37:02 pm
You guessed correctly good sir, it looks like I got the details pretty close to right but I didn't know about removing the config bit of code.
YOU are my hero  ;D I'm sorry it's taken a long time to get a result I'm hoping all these questions haven't added to my bad karma.

RESULT. ;D hope this helps others as well.
Title: Re: Fullsize Access
Post by: ir803 on January 21, 2007, 07:48:13 pm
at the risk of destroying my karma completely, I've found another issue, I've only just noticed it when I logged out of the site, my site has intermediate images created and when logged in you can see them, but since the files were secured with this plugin when your not logged in you can't see the intermediate images at all, I had a java lightbox plugin activated and when you click on a thumbnail the loading symbol comes up but the image never loads, I deactivated it and now when you click a thumb to get to the intermediate image you can see the iptc info but not the picture, any idea if this can be overcome, I know the files are secured so I'm assuming the intermediate image is made from that file live rather than when it was uploaded so if it can't be accessed whilst unlogged how can I get the intermediate image ??
SORRY... I was so close, I thought we'd solved this problem.
Title: Re: Fullsize Access
Post by: ir803 on January 21, 2007, 11:03:30 pm
OK now it's really gone wrong. I have taken fullsize access off after disabling the secure option, now I no longer have any intermediate pictures, I can't refresh the list, unless someone has any ideas I'm looking at having to rebuild the library and reload over a thousand images. On NevilleX's site posted above you can go from thumbnail to an image before having to login to download a file ???
Title: Re: Fullsize Access
Post by: ir803 on January 24, 2007, 11:45:49 pm
I have now had to reload CPG using a different sql database as my site got completely messed up and I lost access to everything including the database.
I have now put the site back online minus the fullsize access until anybody can suggest more ideas or can come up with a solution. The progress of the site is on hold, so I'm hoping some helpfull advice will come soon.
Title: Re: Fullsize Access
Post by: ir803 on January 25, 2007, 12:27:11 am
put that last post on hold till I've had time to test something. I found a config setting in the theme I'm using which was messing up intermediate image sizes and it was currupting them so I've sorted it out, we'll see if it still works in the morning when I've loaded some more images.
Title: Re: Fullsize Access
Post by: Takako on February 19, 2007, 12:10:25 pm
Thankyou for this nifty plugin .. its what I have been looking for~ and do hope it can become a part of future CPG versions.

However, as Nibbler pointed out the fullsize_secure.php file does have to be hardcoded with ftp details, by just filling in the first section, the 'secure all' function simply doesn't work.

However I do have two issue this this download script, which I hope to get some help from.

1. After I have secured all, the direct url of the file does not work (which is great) but it does work if I was using a download tool like flashget or net-transport. Any ideas to disable downloading via direct url once and for all?
2. The download url generated by this plugin, ignores the assigned 'album permissions'. So people without the necessary access to an album, can actually download via the generated link as long as they are logged in. Is there any way of having this plugin also take 'permissions' into account?
Title: Re: Fullsize Access
Post by: bieme on April 01, 2007, 11:21:09 am
is there a download limit.

i get this error, if i try to download an album with about 300 pics.

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 70928 bytes) in /xxxxxxxxx/xxxxxxxxxxx/xxxxxxxx/xxxxxxx/include/archive.php on line 445

with a less number of pics, it works!

line 445 of the archive.php:
Code: [Select]
$this->offset = strlen(implode("",$this->zipdata));

do anyone knows whats going wrong?


thanks
Title: Re: Fullsize Access
Post by: Sami on April 01, 2007, 11:45:00 am
Ask your host for support you have 32MB memory_limit on your php.ini and it seems you need more than that
In most cases (on shared server ) they will not change this for you
Title: Re: Fullsize Access
Post by: ir803 on May 02, 2007, 01:09:05 am
I had a similar error, it relates (i think) to the actual jpg filesize, when the image is converted into the medium size and thumbnail it must be opened (uncompressed). I found that my host would not increase the file size allowance on my server SO a get around is create a set of slightly smaller images than the high res ones (anything less than 10 mb, I do about 4/5 mb) upload them and let the intermediate and thumbnail images be created and the file info set...THEN just upload the high res pictures in to the same folder and overwrite the ones already there, this does not effect the medium or thumbnails images, it just means when you secure your files they are the proper high res images. It's a bit fiddly but it does get round the issue.

I have another problem at the moment if anyone can offer an answer. I set an email address in the "fullsize" options on my site which is used to notify me of downloads, downloads are recorded online but I am not receiving the emails, I have copied the settings across from a site I know works but that hasn't helped. ????
Title: Re: Fullsize Access
Post by: dke on August 28, 2007, 04:49:09 pm
I don't fully understand the file i need to edit. Whats up with the "require_once" php file that does not exist?
Code: [Select]
c:/webserver/files/inc/schwarzburgland.init.php
is this suppose to be
Code: [Select]
c:/webserver/cpg1412/include/init.inc.php?
Title: Re: Fullsize Access
Post by: dke on August 28, 2007, 06:57:32 pm
Is there any valid documentation for this plugin? i would very much like to try it however the documentation isn't at its user friendliest :)

I've done the configurations i believe are the right ones:

Code: [Select]
require_once('c:/dkeserver.mine.nu/include/init.inc.php');
$ftp_server = $SLCONFIG['localhost:444'];
$ftp_user_name = $SLCONFIG['dke'];
$ftp_user_pass = $SLCONFIG['mypassworddeletedsoyoucannotstealit'];
$ftppath_to_cpg = "root/";

I don't understand how php is able to connect to a ftp, i've put up a ftp (ioftpd) which has access to coppermine. I know this is probably wrong, my guess is that PHP somehow can have its own internal ftp?

Anyhow, i dont think i even get the script to attempt to connect to anywhere. I get this error code when i try to download a picture:

Code: [Select]
Critical error 

There was an error while processing a database query

Ofcourse no valuable information is given on the error message, sigh.

Title: Re: Fullsize Access
Post by: Nibbler on August 28, 2007, 07:08:47 pm
Read my post on the previous page about how to enter your ftp details. PHP can connect to FTP servers (if you have that feature enabled), ie. it has its own built in ftp client.
Title: Re: Fullsize Access
Post by: dke on August 28, 2007, 07:37:32 pm
Read my post on the previous page about how to enter your ftp details. PHP can connect to FTP servers (if you have that feature enabled), ie. it has its own built in ftp client.

I actually just re-read the whole thread for some understanding and i noticed that you removed some code and ive modified mine to that now, but i still get no success, i'm watching the FTP serve GUI and i cannot see any attempts of any connections being made. I checked that FTP support was "ENABLE" with phpinfo();

This is how my config looks like now, i removed some text to make it more clear.

Code: [Select]
<?php

$ftp_server 'localhost:444';
$ftp_user_name 'dke';
$ftp_user_pass 'mypass';
$ftppath_to_cpg "/root";


function 
download_mail($filename,$uid) {

global $CONFIG;

code continues down here....

This is the message i get whenever i try to download a image...

Code: [Select]
Critical error 

There was an error while processing a database query

It looks like the script successfully access the sql database atleast, since i have the table fullsize_hist in there now.

There's something with php not interacting fully as it should even though it says FTP support enable. Maybe i have to make some changes in php.ini like something with these settings?:

Code: [Select]
; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
allow_url_fopen = Off

; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
allow_url_include = Off

Thanks for the support.
Title: Re: Fullsize Access
Post by: LaizurePhoto on February 22, 2008, 10:58:25 am
When I click on the download full size image link I get the following error message:

Fatal error: Cannot redeclare fullsize_check_user() (previously declared in /home/soonersp/public_html/ou/fullsize_check.php:3) in /home/soonersp/public_html/ou/plugins/fullsize_access/fullsize_check.php on line 8

Obviously I did something wrong....any suggestions?
Title: Re: Fullsize Access
Post by: Nibbler on February 22, 2008, 11:20:12 am
Post your file.
Title: Re: Fullsize Access
Post by: LaizurePhoto on February 22, 2008, 04:59:40 pm
which file?

Title: Re: Fullsize Access
Post by: Nibbler on February 22, 2008, 05:05:12 pm
Whatever you modify for this plugin.
Title: Re: Fullsize Access
Post by: LaizurePhoto on February 22, 2008, 05:23:08 pm
filename: fullsize_secure.php

<?php

// this file must be edited before use!



////////////////////// section to edit

   // edit ftp user/host data here:
   
   
   // edit ftp user/host data here:
   //$ftp_server = "ftp.soonersportsphotos.com";
   //$ftp_user_name = "soonersportsphotos";
   //$ftp_user_pass = "password";

   
   require_once('/home/soonersp/public_html/ou/include/init.inc.php');
   $ftp_server = $SLCONFIG['ftp.soonersportsphotos.com'];
   $ftp_user_name = $SLCONFIG['soonersportsphotos'];
   $ftp_user_pass = $SLCONFIG['password'];
   $ftppath_to_cpg = "ou/";
   

   /*
   require_once('/home/www/web294/files/inc/schwarzburgland.init.php');
   //require_once('c:/webserver/files/inc/schwarzburgland.init.php');
   $ftp_server = $SLCONFIG['ftp_server'];
   $ftp_user_name = $SLCONFIG['ftp_user_name'];
   $ftp_user_pass = $SLCONFIG['ftp_user_pass'];
   $ftppath_to_cpg = "html/images2/";
   */
   
   // this is the path to your cpg dir starting from your home page root (what the ftp sees by default) :
   
Title: Re: Fullsize Access
Post by: Nibbler on February 22, 2008, 06:09:05 pm
Change

Code: [Select]
   require_once('/home/soonersp/public_html/ou/include/init.inc.php');
   $ftp_server = $SLCONFIG['ftp.soonersportsphotos.com'];
   $ftp_user_name = $SLCONFIG['soonersportsphotos'];
   $ftp_user_pass = $SLCONFIG['password'];
   $ftppath_to_cpg = "ou/";

to

Code: [Select]
   $ftp_server = 'ftp.soonersportsphotos.com';
   $ftp_user_name = 'soonersportsphotos';
   $ftp_user_pass = 'password';
   $ftppath_to_cpg = "ou/";

Read back on the previous page where this has already been discussed.
Title: Re: Fullsize Access
Post by: LaizurePhoto on February 24, 2008, 11:09:24 am
I have modified the file to this

<?php

// this file must be edited before use!



////////////////////// section to edit

   // edit ftp user/host data here:
   
   
   // edit ftp user/host data here:
   //$ftp_server = "ftp.soonersportsphotos.com";
   //$ftp_user_name = "soonersp";
   //$ftp_user_pass = "password";

   
   $ftp_server = 'ftp.soonersportsphotos.com';
   $ftp_user_name = 'soonersp';
   $ftp_user_pass = 'password';
   $ftppath_to_cpg = "ou/";
   

   /*
   $ftp_server = $SLCONFIG['ftp_server'];
   $ftp_user_name = $SLCONFIG['ftp_user_name'];
   $ftp_user_pass = $SLCONFIG['ftp_user_pass'];
   $ftppath_to_cpg = "ou/";
   */
   
   // this is the path to your cpg dir starting from your home page root (what the ftp sees by default) :

I am able to secure/unsecure files via the FullSize admin page....

However, when I click on the Download Full Size Image Link I still get this error.....

Fatal error: Cannot redeclare fullsize_check_user() (previously declared in /home/soonersp/public_html/ou/fullsize_check.php:3) in /home/soonersp/public_html/ou/plugins/fullsize_access/fullsize_check.php on line 8

thanks for the continued help
   

Title: Re: Fullsize Access
Post by: tinorebel on May 14, 2008, 01:57:19 am
Hallo, I was looking for a plug in like this but with the ability to allow fullsize acess ony to admin or picture owner.
Would it be difficoult to mod this plug in this way?
Someone could give me a clue on how to do this?

Thanks dudes! ;)
Title: Re: Fullsize Access
Post by: jokas on September 10, 2008, 09:37:32 pm
hi guys,

just installed this great plugin and it works without errors.

but there is a small problem - when i push the downloadlink i get a emtpy site - no download. :-(

i use cpg 14.1.18 with the joomla bridge.

maybe someone can helf me and try to explain why it dosent work for me.
Title: Re: Fullsize Access
Post by: jokas on September 11, 2008, 12:21:45 am
i have no luck today - the script isnt working.  ???

if there is someone who can bring it to work, you are welcome to make me a offer by PM!
Title: Re: Fullsize Access
Post by: jokas on September 14, 2008, 10:02:55 pm
i figured out whats wrong:

While executing query "SELECT filepath,filename FROM cpg14x_demo_pictures WHERE pid=" on 0

mySQL error:


when i try a static pid in the fullsize_secure.php then it works. so there must be a problem with:
 $query = "SELECT filepath,filename FROM " . $CONFIG['TABLE_PICTURES'] . " WHERE pid=" . $pid;

can someone explain why the pid is empty?
Title: Re: Fullsize Access
Post by: Nibbler on September 15, 2008, 03:09:43 am
edit jpgdownload.php find

Code: [Select]
$file = create_fullsize_read__($HTTP_GET_VARS["pid"]);

Change to

Code: [Select]
$file = create_fullsize_read__( (int) $_GET['pid']);
Title: Re: Fullsize Access
Post by: jokas on September 15, 2008, 04:07:15 am
thanks nibbler, now i can download the pics.

in addition to that there is the next problem.

no email will be send and there is no entry for the pics in the download history. :-/

whats up with this mod.
can you explain whats wrong with it?
was the developer uploading a file with bugs, or has cpg to much modifications that here and there are some updates nessesary?

it would be great if i can get some more help to keep this mod runnin.
Title: Re: Fullsize Access
Post by: liquid-motion on August 19, 2009, 11:22:15 am
no email will be send and there is no entry for the pics in the download history. :-/

I'm running into a similair problem. The email is sent, but without the emailaddress of the downloader.
Furthermore there is no entry in the logfile/download history, except for the images downloaded by an admin.

What can be causing this problem?
Title: Re: Fullsize Access
Post by: Joachim Müller on August 19, 2009, 11:49:17 am
No "Powered by Coppermine"-tag on your gallery (http://www.liquid-motion.nl/e107_plugins/coppermine_menu/) -> no support for you! The e107 port goes unsupported anyway. Restore the tag or stop using our app.
Title: Re: Fullsize Access
Post by: k4nt0r on September 02, 2009, 12:51:44 am
Hi. I'm new to this board and to Coppermine Gallery. I was playing around with Coppermine to see what it can do besides adding a photo/video galleries. One thing I like about it is that you can install plugins like this one, Fullsize Access, where unregistered users are limited for Fullsize download.

Now here's my problem...
I think I may had successfully installed Coppermine and the Fullsize Access plugin. After reading all the posts from this thread and followed all instructions (I think?), the plugin seem to function alright. It doesn't give me errors when "Download Original File" or "Secure File" is clicked. There is one problem, I am able download and save the file/image, however, I am unable to view it on my computer. I tried different programs to open it but only Photoshop seemed to work. I used mainly Preview (Mac) for viewing image files. If I try to open it using Preview, a pop-up message will say "Couldn’t open the file. It may be corrupt or a file format that Preview doesn’t recognize." When I download the image using a FTP client, I can successfully see it using Preview, only this Plugin seems to be the problem. I need help in successfully installing it.

I know very little of PHP so here's what I have so far...

Original fullsize_secure.php
Code: [Select]
<?php

// this file must be edited before use!



////////////////////// section to edit

// edit ftp user/host data here:


// edit ftp user/host data here:
//$ftp_server = "ftp.myhost.de";
//$ftp_user_name = "me";
//$ftp_user_pass = "hello";


require_once('c:/webserver/files/inc/schwarzburgland.init.php');
$ftp_server $SLCONFIG['ftp_server'];
$ftp_user_name $SLCONFIG['ftp_user_name'];
$ftp_user_pass $SLCONFIG['ftp_user_pass'];
$ftppath_to_cpg "html/images2/";


/*
require_once('/home/www/web294/files/inc/schwarzburgland.init.php');
//require_once('c:/webserver/files/inc/schwarzburgland.init.php');
$ftp_server = $SLCONFIG['ftp_server'];
$ftp_user_name = $SLCONFIG['ftp_user_name'];
$ftp_user_pass = $SLCONFIG['ftp_user_pass'];
$ftppath_to_cpg = "html/images2/";
*/

// this is the path to your cpg dir starting from your home page root (what the ftp sees by default) :






////////////////////// end section to edit

Edited fullsize_secure.php
Code: [Select]
<?php

// this file must be edited before use!



////////////////////// section to edit

// edit ftp user/host data here:


// edit ftp user/host data here:
//$ftp_server = "ftp.myhost.de";
//$ftp_user_name = "me";
//$ftp_user_pass = "hello";


//require_once('home/flappitty/public_html/iphoto.mooo.com/include/init.inc.php');
$ftp_server 'ftp.iphoto.mooo.com';
$ftp_user_name 'flappitty';
$ftp_user_pass 'mypassword';
$ftppath_to_cpg "iphoto.mooo.com/";


/*
require_once('/home/www/web294/files/inc/schwarzburgland.init.php');
//require_once('c:/webserver/files/inc/schwarzburgland.init.php');
$ftp_server = $SLCONFIG['ftp_server'];
$ftp_user_name = $SLCONFIG['ftp_user_name'];
$ftp_user_pass = $SLCONFIG['ftp_user_pass'];
$ftppath_to_cpg = "html/images2/";
*/

// this is the path to your cpg dir starting from your home page root (what the ftp sees by default) :






////////////////////// end section to edit

I also edited the jpgdownload.php like Nibller suggested but I replaced it back to the original version because it didn't work.

Please indicate what needs to corrected.
I want to successfully integrate both Coppermine and Fullsize Plug-in before I can run the whole website so please help.
I appreciate all help. Thank you.
Title: Re: Fullsize Access
Post by: devilsreign on December 04, 2009, 01:21:52 am
Hello everyone,
   I recently downloaded this plugin in hopes of not really restricting downloads, but in keeping track of whom downloads what. I have went through the steps of hard coding in my ftp information. The plug in works as for downloading images. However, I see no record of whom downloads what. I do get an email sent to me on each download, but again, the information of whom downloaded what is not there.  Any suggestions of where I should start? the website is http://thesimplyraw.com/gallery                    I have also included an attachment of my coded fullsize secure file.  Any help would be appreciated.   Thank you.
Title: Re: Fullsize Access
Post by: ravenlife on April 05, 2010, 12:03:02 pm
Hello everyone,
   I recently downloaded this plugin in hopes of not really restricting downloads, but in keeping track of whom downloads what. I have went through the steps of hard coding in my ftp information. The plug in works as for downloading images. However, I see no record of whom downloads what. I do get an email sent to me on each download, but again, the information of whom downloaded what is not there.  Any suggestions of where I should start? the website is http://thesimplyraw.com/gallery                    I have also included an attachment of my coded fullsize secure file.  Any help would be appreciated.   Thank you.

The fullsize secure file has nothing todo with the download history it is only for the securing of fullsize files by the files system, I cannot comment on whether this works with standalone coppermine, but i had the same issue because i am using joomla -> coppermine bridge so my users are in a different location, so i had to change the sql queries in fullsize_hist.php to pull the data from the correct place.

a good way to find out whats going wrong your end is to first open up phpmyadmin and see if it is saving the data (it was my end) then if it is open up fullsize_hist.php and echo out the query. once you have the full query paste it into phpmyadmin and see what happens, if you get no results then something is different in your set up and you will need to find out what it is to make it work. then simply make the changes to the query and reupload via ftp.

@another post, about making it work with permissions systems, you would need to add any extra checks in the  fullsize_check.php file, currently it only checks that the user has an id.
Title: Re: Fullsize Access
Post by: cedege on November 26, 2010, 02:59:51 pm
this plugin is really helpful, are there any plans to release it for CPG 1.5 as well?