PDA

View Full Version : Downloading all User photos


kevinrstruck
October 18th, 2012, 11:34 PM
I was just served with a supeona requesting a full copy of a particular users photos on our site.

I have no idea how to comply with this. Is there an easy way to download and a zip version of a users photos. There are over 2000 of them.

We are running an old version of PhotoPost (6.23) and cannot update at this time. Any help would be greatly appreciated. I do not relish the thought of spending some time in the big house.

Chuck S
October 19th, 2012, 07:49 AM
There is no such functionality to do what you are posting here. You can not download and zip up photos.

You would have to view a users members gallery that shows all his photos and download them one at a time. That is the only action you have.

You might also want to inquire about this supeona as they can not require you to spend alot of your time doing this so you might also offer then access and they can spend there time doing this work seperating and copying out all this data.

Chuck S
October 21st, 2012, 09:39 AM
I did think of a way you might be able to do it with a code mod.

In pp-inc.php around line 2713 add the code below in bold


$childnav = "» {$Globals['pp_lang']['custom']}";
}

if ( $Globals['allowfavzip'] && THIS_SCRIPT == "showgallery" )
{
$childnav .= "&nbsp;&nbsp;&nbsp;<a rel=\"nofollow\" href=\"{$Globals['maindir']}/misc.php?action=downloadzip&amp;cat=$parid&amp;ppuser=$ppuser\"><img border=\"0\" src=\"{$Globals['idir']}/download.gif\" alt=\"{$Globals['pp_lang']['downfav']}\" /></a>";
}



That should add the zip icon to the childnav like you see in when viewing your favorites.

You would then need to actually edit misc.php and add in a clause as noted here to get photos based off the userid.

Find this in misc.php around line 616


if ( is_numeric($cat) )
{
$query = "SELECT id,userid,cat,bigimage,storecat FROM {$Globals['pp_db_prefix']}photos WHERE cat=$cat";
}



add below


elseif ( $ppuser > 0 )
{
$query = "SELECT id,userid,cat,bigimage,storecat FROM {$Globals['pp_db_prefix']}photos WHERE userid=$ppuser";
}

Chuck S
December 31st, 2012, 12:55 PM
I will consider adding this into the next release as its a minor thing.

Chuck S
January 1st, 2013, 08:05 PM
This will be released in the upcoming 8.3 that will be released to support vb5.

DanielRobin
February 2nd, 2013, 03:10 PM
I am waiting for the next release now. And hoping that there will be more added thing in it.

Chuck S
February 2nd, 2013, 04:23 PM
You can in 8.3 download a users photos.

kevinrstruck
February 4th, 2013, 11:16 PM
For some reason I cannot see the actual code. It is saying it is only available to verified customers. I am a verified customer and I am logged in. Am I doing something wrong?

I did think of a way you might be able to do it with a code mod.

In pp-inc.php around line 2713 add the code below in bold


$childnav = "&raquo; {$Globals['pp_lang']['custom']}";
}

if ( $Globals['allowfavzip'] && THIS_SCRIPT == "showgallery" )
{
$childnav .= "&nbsp;&nbsp;&nbsp;<a rel=\"nofollow\" href=\"{$Globals['maindir']}/misc.php?action=downloadzip&amp;cat=$parid&amp;ppuser=$ppuser\"><img border=\"0\" src=\"{$Globals['idir']}/download.gif\" alt=\"{$Globals['pp_lang']['downfav']}\" /></a>";
}



That should add the zip icon to the childnav like you see in when viewing your favorites.

You would then need to actually edit misc.php and add in a clause as noted here to get photos based off the userid.

Find this in misc.php around line 616


if ( is_numeric($cat) )
{
$query = "SELECT id,userid,cat,bigimage,storecat FROM {$Globals['pp_db_prefix']}photos WHERE cat=$cat";
}



add below


elseif ( $ppuser > 0 )
{
$query = "SELECT id,userid,cat,bigimage,storecat FROM {$Globals['pp_db_prefix']}photos WHERE userid=$ppuser";
}

Chuck S
February 5th, 2013, 06:56 AM
You would not be a verified customer if you are an expired license holder. One license comes with one years access to support and download access. You may purchase a members area renewal to have access to support and download access. The announcement posted at the top of every support forum in 2005 explains how to become verified on the forums here and covers all this.

The latest beta Photopost Pro 8.3 has any alterations discussed here.

delfi_r
February 6th, 2013, 09:54 AM
The latest beta Photopost Pro 8.3 has any alterations discussed here.

Great!

On 8.23 we can download a complete Gallery in one zip archive, and on 8.3 all photos from one user, a great admin tool!

Chuck S
February 6th, 2013, 09:57 AM
8.3 adds in the ppuser variable yes