Fullsize Access - Page 3 Fullsize Access - Page 3
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Fullsize Access

Started by ks, September 17, 2006, 10:29:39 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jokas

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!
_____________________________________
|-->  J1.5.6 + CPG1.4.19 + Bridge  <--|

jokas

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?
_____________________________________
|-->  J1.5.6 + CPG1.4.19 + Bridge  <--|

Nibbler

edit jpgdownload.php find


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


Change to


$file = create_fullsize_read__( (int) $_GET['pid']);

jokas

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.
_____________________________________
|-->  J1.5.6 + CPG1.4.19 + Bridge  <--|

liquid-motion

Quote from: jokas on September 15, 2008, 04:07: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?

Joachim Müller

No "Powered by Coppermine"-tag on your gallery -> no support for you! The e107 port goes unsupported anyway. Restore the tag or stop using our app.

k4nt0r

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
<?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
<?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.

devilsreign

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.

ravenlife

Quote from: 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.

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.

cedege

this plugin is really helpful, are there any plans to release it for CPG 1.5 as well?