From: Mediratta, B. <bh...@fu...> - 2002-03-27 20:13:28
|
Markus -- Unfortunately, Gallery is currently set up to only allow you to choose one photo printing service per album. I guess that wasn't a very good idea. It hasn't been a problem up until recently because we hadn't found any other services that let us do this! I think that the main problem is presenting a decent UI to the user which lets them choose the printing service from the admin menus. For now we can easily add Bildermachen to the list of print-service-providers, though pending a UI change. Having said that, I tried to use the silverlab site but was unable to since I don't speak German. Can you help me to get a partner account so that we can get the code in? Thanks, -Bharat > -----Original Message----- > From: Markus Illenseer [mailto:ma...@co...] > Sent: Tuesday, March 26, 2002 2:40 PM > To: gal...@li... > Subject: [Gallery-devel] print photo - found one... > > > > As this shutterfry-thingie is not a valid commodity for > german users, I > finally came across "www.silverlab.de" and their partner > program, which is > very similar to shutterfly in technique and handling. It could even be > used as a "donation source", and users printing photos > through them would > automatically donate (nice gag)... > > All I had to do was to alter view_photo.php and set > approriate properties > in the albums I wanted to. > > Now, how would we deal with more than one photo_print offer? > > End-user-speaking, I'd say, offer as much as possible and > let the user > choose which photo print to use - among those offered to him > by the admin > of the album. > > Admin-wise speaking, a per-album setting is OK, including > the choice for > several photo printers at once. > > Currently the code is not prepared for this: > > edit_appereance.php should read the entries for valid > $photo_print from > config.php. > > config.php should set an array of valid photo prints to $photo_print. > > view_photo.php should offer something usefull to click on - > probably a > pull-down menu if there are several photo printers made available. > > view_photo.php currently contains the <form> to be submitted > by pressing > the above link. Currently it supports _only_ shutterfry; no switch or > elseif-branch. A good code design would be to call a > function; i.e. from > util.php. > > Due possible settings in httpd.conf to prevent hot-linking, the > photo print need to be allowed to access album directories > w/o referrer > from Gallery. > > I haven't checked out what happens if you need to login to Gallery > (Apache Basic Auth). Then you need to alter the rawImage and > thumbImage > variables and add user:password to them. > > > What do you think? > > > > Here is my code for view_photo.php: > > $adminCommands .= "<a href=# > onClick=\"document.bildermachen.sub > mit();return false\">[print this photo on Bildermachen]</a>"; > > > ... > > > <form name="bildermachen" > action="http://www.bildermachen.de/NetPrint/servlet/NetPrint" > mothod=get> > <input type=hidden name=Command value=order> > <input type=hidden name=imgurl value="<?= $rawImage ?>"> > <input type=hidden name=pid value=3183259700> > <input type=hidden name=thumb value="<?= $thumbImage ?>"> > </form> > > > (That is _my_ private pid, but I do not earn money with it, I have > registered as non-profit partner. You better register yourself though, > please :-) > > (No, they currently do not offer a return URL) > > > Markus Illenseer > > > __[ g a l l e r y - d e v e l ]_________________________ > > [ list info/archive --> http://gallery.sf.net/lists.php ] > [ gallery info/FAQ/download --> http://gallery.sf.net ] > |