Coppermine Gallery Shutterfly Print Mod
So, I was looking for a way to send photos in my Coppermine Photo Gallery to the online print company Shutterfly. Nothing was built in to the Coppermine source code, but a quick search of their Support Forum gave me the following:
It’s a pretty easy mod to carry out, so just follow the instructions below and you should be ready to send photos to Shutterfly in about 5 or 10 minutes.
(Note: these instructions are valid for Coppermine version 1.3.x Please check the Support Forum if you have a different version).
FILE displayimage.php (found in the root of your Coppermine installation).
–ADD CODE BELOW THE FOLLOWING LINE:
'{NEXT_IMAGE}' => ($lang_text_dir=='LTR') ? 'next' : 'prev',
–ADD FOLLOWING CODE:
'{WIDTH}' => $CURRENT_PIC_DATA['pwidth'], //Shutterfly Mod
'{HEIGHT}' => $CURRENT_PIC_DATA['pheight'], //Shutterfly Mod
'{IMG}' => $CONFIG['ecards_more_pic_target'] . $CONFIG['fullpath'] . $CURRENT_PIC_DATA['filepath'] . $CURRENT_PIC_DATA['filename'], //Shutterfly Mod
'{THUMB}' => $CONFIG['ecards_more_pic_target'] . $CONFIG['fullpath'] . $CURRENT_PIC_DATA['filepath'] . $CONFIG['thumb_pfx'] . $CURRENT_PIC_DATA['filename'], //Shutterfly Mod
'{URL}' => $CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') .basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]", //Shutterfly Mod
FILE theme.php (You will need to modify all themes that you use).
–ADD CODE BELOW THE FOLLOWING LINE:
<td align="center" valign="middle" class="navmenu" witdh="100%"> {PIC_POS}</td>
–ADD FOLLOWING CODE:
<!-- Start Shutterfly Mod --><td align="center" valign="middle" class="navmenu" width="48px">
<form name="order" action="http://www.shutterfly.com/c4p/UpdateCart.jsp" method="POST">
<input type=hidden name=addim value="1"/>
<input type=hidden name=protocol value="SFP,100"/>
<input type=hidden name=pid value="C4PP"/>
<input type=hidden name=psid value="GALL"/>
<input type=hidden name=imnum value="1"/>
<input type=hidden name=imraw-1 value="{IMG}"/>
<input type=hidden name=imrawheight-1 value="{HEIGHT}"/>
<input type=hidden name=imrawwidth-1 value="{WIDTH}"/>
<input type=hidden name=imthumb-1 value="{THUMB}"/>
<input type=hidden name=returl value="{URL}"/>
</form>
<a href="#" onclick="order.submit()" class="navmenu_pic" title="Order Prints"><img src="images/order.gif" border="0" align="middle" alt="Order Prints" /></a>
</td><!-- End Shutterfly Mod -->
–UPLOAD order.gif
(right-click, save as order.gif)
UPLOAD to root/images folder
To see an example of this in action visit my personal Coppermine Photo Gallery
If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!










May 22nd, 2008 at 6:13 am
What version of coppermine will this mod work with. I am using 1418 and it does not seem to contain the code you listed.
This is a great mod so any help in getting it setup on my system would be greatly appreciated.
May 22nd, 2008 at 7:41 am
I’m still using an old version (1.3.2) and haven’t upgraded for quite some time.
Really not sure how you’ll get it working on 1418. Maybe a post on the Coppermine Forums will help? http://coppermine-gallery.net/forum/
Good luck,
–Steve