Photo_Shop Plug-in :: PID vs Filename Photo_Shop Plug-in :: PID vs Filename
 

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

Photo_Shop Plug-in :: PID vs Filename

Started by Jeremy Rasmussen, July 07, 2006, 10:16:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jeremy Rasmussen

I need some help with the Photo_Shop cart plug-in...

On the admin side when you view an order it gives the PID from each image ordered however this is a problem for me because my the image file name is what I need to know so I can send those images to the photolab, and obviously the PID is going to be different from my filename. 

Here's what I would like help with.  I would like to be able to see the filename of each image next to the PID.  I just don't know how the PHP markup for this, can someone tell me what to add? 

thanks,

Jeremy

Stramm

in photo_shop_admin.php find
{$lang_photoshop_admin['amount']}: {$quantity[$k]} :: {$lang_photoshop_admin['pid']}: -{$pid[$k]}

and replace with
{$lang_photoshop_admin['amount']}: {$quantity[$k]} :: {$lang_photoshop_admin['pid']}: -{$pid[$k]} :: {$row_pic['title']}

Jeremy Rasmussen

Thanks, however it did not work... here is an example of what it looks like 

Amount: 1 :: PID: -8799 ::

It seems that $row_pic['title'] is not finding any data.

Stramm

works for me ... do your pics have titles?

if some don't have titles then of course nothing will show up. You can add a lil check
instead of the above mentioned lines add

{$lang_photoshop_admin['amount']}: {$quantity[$k]} :: {$lang_photoshop_admin['pid']}: -{$pid[$k]} :: {$title}

now find a few lines above
$item_price =  number_format($quantity[$k]*$price[$k],2);

and below add
    ($row_pic['title']) ? $title = $row_pic['title'] : $title = "No name";

Jeremy Rasmussen

Oh I didnt realize that it was searching for the 'title', i didnt examine the code... I changed 'title' to 'filename' and now it's doing exactly what I wanted it to do. 


The reason being filename and not title is because I batch add 400 photos or more at a time and there is no way I am going back and giving each one a title, especially now after there are over 7000 images in the gallery.

anyway, thanks for the help.