printing service feature - a LOT of new services
nick77
![]()
Joined: 2003-07-22
Posts: 77 |
![]() |
Hi all The line numbers of the changes below apply to gallery version 1.3.4; although the modifications still work with G1.4, keep in mind to look out for the right context instead of line numbers! I've added quite a revolutionary printing service feature (in my opinion) which will allow to print to dozends of different services all over the world. I haven't tested it that much yet, please report bugs/problems/wishes The link to a picture where you should be able to test it You should see then the logo of Photocolor Kreuzlingen. But together with a button "change my lab..." 3 easy modifications necessary if you want the same for your gallery:
line 166 should read new after adding "photocolor" to the array:
starting with line ~ 415 $printService = $gallery->album->fields["print_photos"]; written in blue is the very important ID! With exchanging only this numbers you get access to ~100 different labs. (see below) Please note that there shouldn't be any spaces in the string before and after the ID. (unfortunately produced by this forum) That's it, enjoy! Nick[/] [/] |
|
nick77
![]()
Joined: 2003-07-22
Posts: 77 |
![]() |
You can make the changes even more complete by editing the setup screen showing printing services as well: in the /setup folder find config_data.inc edit this passage rather at the end of the file as you wish: (The changes in red correspond with above example) "print_photos" => array( If anyone has any kind of feedback I'd be interested Nick |
|
loxly
Joined: 2003-01-28
Posts: 126 |
![]() |
I only saw european labs. |
|
nick77
![]()
Joined: 2003-07-22
Posts: 77 |
![]() |
I'm on the way figuring out the different Codes used to specify the different labs. Basically, ALL labs served by fotowire should be accessible. http://www.fotowire.com/home/html/labs.asp There are a located (and/or shipping) all around the globe. It's really amazing how many labs are listed, take a look! The first 2 codes I found up to now (serving Germany/Switzerland):
*365003 Photocolor Kreuzlingen serving Switzerland *18000 Colormailer International (based in Switzerland) more information about Colormailer (prices): http://www.colormailer.com/prices.cpl?lng=en&cntry=eu I hope to be able to provide other codes soon! Anyway you didn't look quite well: there are following non-European labs available: Platinum Imaging Ion Photo & Design Fahyfoto - U.K. and Northern Ireland and others shipping worldwide, too We could start collecting codes here; everybody askes his favotrite lab for it and lists it below. What do you think?[/] |
|
carl_scarlett
Joined: 2003-07-27
Posts: 9 |
![]() |
This system looks exactly what I'm looking for, has anyone got the codes for any of the UK labs, otherwise how do I go about getting the codes? |
|
nick77
![]()
Joined: 2003-07-22
Posts: 77 |
![]() |
the idea I had was either asking the labs directly (they must be interested in selling something and obviously know their codes) Maybe you can ask directly at www.fotowire.com (they didn't answer my email one week ago, though) third, maybe best: try their downloadable Software for fotouploads (you can choose the printing service their) and use httptracer as local proxy ([url]www.lazydogutilities.com[/url]). This program logs all traffic you can look for your favorite service and it's ID which is between <ID>...</ID> [somehow logically;-)] Anyway, you might have to try out a bit as it seems not all labs are supporting this feature at the moment. Just try different IDs and replace it in the view-photo.php file. (it's hidden in the ordering string; take care you delete nothing else...) I just tried out the last thing,
hope this helps, Nick ps I added a little txt file with some logs, it's by far not complete (basically Swiss, bc I have Switzerland in my profile;-), but it's there to give you an idea of how it looks. Hope to find more time to find more IDs soon. It would maybe really be a good idea for everybody to help searching for valid IDs...[/] |
|
nick77
![]()
Joined: 2003-07-22
Posts: 77 |
![]() |
alright, just made some more log files for you, so you don't have to download everything... Hope something is useful for somebody! |
|
nick77
![]()
Joined: 2003-07-22
Posts: 77 |
![]() |
[/] |
|
carl_scarlett
Joined: 2003-07-27
Posts: 9 |
![]() |
Thanks nick, the UK list looks exactly what I want. When I've had a chance totry it I'll report back. |
|
BorgKing
![]()
Joined: 2002-09-12
Posts: 314 |
![]() |
Any Dutch labs in the list? |
|
nick77
![]()
Joined: 2003-07-22
Posts: 77 |
![]() |
there are some You have to find an appropriate yourself though Nick Edited: added New Zealand lablist |
|
nick77
![]()
Joined: 2003-07-22
Posts: 77 |
![]() |
Well, some more lists, tell me what else you need. Try to extract the IDs from the messy txt files as written above and post working IDs here for other users. If anyone knows how to write a patch file to easy apply the changes he is welcome to pm it to me or invited to write the patch himself;-) When looking for IDs, consider, that normally, at the beginning of the file are country-based companies, later foreign companies shipping to this country. Hope to help somebody Nick |
|
trax-l
![]()
Joined: 2003-07-27
Posts: 5 |
![]() |
nick77, Hello, where can i find the ID for the french part of Switzerland... http://idealdeal.ch and at Twice with your script code for photos print labo at fotocolor Kreuzlingen... But i would like put the links to swiss-french labo. Thank's for your great contribution :lol: trax-l |
|
trax-l
![]()
Joined: 2003-07-27
Posts: 5 |
![]() |
nick77, Sorry, So Sorry!!!! I find the swiss ID's In this Forum... Thank you nick... A suggestion, can you offer the choice for another labos, may be in a roll over menu? I try to do that... bye |
|
nick77
![]()
Joined: 2003-07-22
Posts: 77 |
![]() |
I was thinking of this, too, but as fotowire features like 100 different labs, it's out of question... But I welcome suggestions about this thing! And I wonder how the official part of gallery developers plans to integrate printing services in G2... Cause it's quite well possible that visitors to your site from different countries would like to use different services.... Nick |
|
loxly
Joined: 2003-01-28
Posts: 126 |
![]() |
Unless I have an option for setting my own prices I don't see any reason to switch from the built in printing services. I am sure this will be very useful for a wide variety of users however. One thing you need to remember about the built in services is that they support Gallery in exchange for being featured in the software... |
|
trax-l
![]()
Joined: 2003-07-27
Posts: 5 |
![]() |
loxly, That's OK, but I don't see how my visitors who come in majority from Switzerland would order images in USA or elsewhere in Europe... I think it's better to offer a choice for each country... May be? or i mistaken... |
|
nick77
![]()
Joined: 2003-07-22
Posts: 77 |
![]() |
@loxly, trax-I: 1-2 cents per image ordered for gallery is a nice thought, I think though (and this is an old discussion in this forum) that for a lot of users, shutterfly & the other services already integrated are too expensive and too slow. I sent bharat an email a couple of days ago regarding fotowire. Probably he is checking out whether they would offer an affiliate program. Would be great! In the meantime you can always donate 5$ to gallery you saved by purchasing cheaper prints :wink: Nick |
|
trax-l
![]()
Joined: 2003-07-27
Posts: 5 |
![]() |
@trax-l, loxly:, I can send 10 $ to the development team, but i don't have a credit card. can i have your bank information to send monney. you can give me these informations trough my private e-mail :wink: |
|
bobob
Joined: 2003-07-12
Posts: 110 |
![]() |
Jezus christ, good working guys. I was looking just for such a feature. Does anyone, also have a list of Indian services? |
|
nick77
![]()
Joined: 2003-07-22
Posts: 77 |
![]() |
There is, as far as I saw no lab directly in India, but some shipping to. Find out the prices by downloading the fotowire software. Hope this helps NIck |
|
bobob
Joined: 2003-07-12
Posts: 110 |
![]() |
thanks nick77! |
|
bobob
Joined: 2003-07-12
Posts: 110 |
![]() |
see a new thread I started: http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=8232 |
|
nick77
![]()
Joined: 2003-07-22
Posts: 77 |
![]() |
and a follow-up (with the Gallery Crew) to the fotowire business: (look at the bottom of the page) Nick |
|
nick77
![]()
Joined: 2003-07-22
Posts: 77 |
![]() |
lablist for australia, queensland. Forgot to post it the other day... |
|
jonday
![]()
Joined: 2002-07-24
Posts: 20 |
![]() |
Nick The link in your previous post re "and a follow-up (with the Gallery Crew) to the fotowire business" does not seem to work. Can you post a link that works to that info please. I had already been speaking to fotowire about other options when I came across your post. I already have a detailed document from them for their 'client protocol' which is an xml definition document to get into the more techy parts of the web print software you have linked to. If you would like the client protocol document, let me know. I do not have permission to post it here, so please ask me offline. Thanks Jon |
|
Darksied9
Joined: 2003-08-15
Posts: 1 |
![]() |
I am attaching a list with all the Fotowire Labs at this time. Feel free to play with it. |
|
jmullan
![]()
Joined: 2002-07-28
Posts: 974 |
![]() |
when you search for labs in your country on their website, the logo for each lab appears to have an id number associated with it, like I don't have the page open, so I can't give you exact examples. |
|
bobob
Joined: 2003-07-12
Posts: 110 |
![]() |
nick, how does this script work? If a user clicks on "order photprint" when viewing the intermediate resolution picture, will this lower resolution photo be used to print, or is the script smart enough to use the full-sized / high resolution photo instead? |
|
nick77
![]()
Joined: 2003-07-22
Posts: 77 |
![]() |
@jmullan: I can confirm the pictures I had a look at used the IDs of the appropriate lab. Seems to be safe & foolproof. Thanks. @bobob: the script is only a little add-on to what already exists - both on the side of gallery and of fotowire. Of course it sends the hi-quality pic, better saying: it's giving it's url to the fotowire webserver; he downloads it afterwards. $rawImage is the variable containing the path to the high resolution image. In short: it doesn't matter whether you are looking at the small or big image. By the way: If you have unabled users to see the full resolution image, it still should be possible (for example, if you want to sell your images at higher prices and don't want users to download the image and send it by themselfes to a lab) to have it printed at highest quality. I didn't try out if it really works (I don't need that...). Would be nice, if somebody could post whether it's yes or no! nick |
|
ajoyprabhu
Joined: 2002-09-26
Posts: 65 |
![]() |
Hi guys, I am trying to put the link as an image in the view_photo.php and this is what I have come up with so far... $adminCommands .= '<a href=# onclick="window.open(\'http://print.fotowire.com/webprint/v2/start.asp?WID=18001&FN=\' . $rawImage . \'&TN=\' . $thumbImage . \'&RF=\' . $RF . \'width=600,height=400,scrollbars,location,resizable,status\');"><img src="images/view-labs.gif" ALT="Photolabs=\"0\"></a> \'; What am I doing wrong? Thanks a ton in advance! Ajoy |
|
bobob
Joined: 2003-07-12
Posts: 110 |
![]() |
I am using the hack posted here to use a local printing service in my country. It's great, but would like to make things easier for the user by letting him/her select multiple foto's in one time in the album view for printing. I started a new thread for this. See Any advice/pointers are welcome! |
|
beckett
![]()
Joined: 2002-08-16
Posts: 3474 |
![]() |
nick77 Should we be including this in the Gallery codebase? -Beckett ( beck@beckettmw.com) |
|
nick77
![]()
Joined: 2003-07-22
Posts: 77 |
![]() |
@bobob, sorry for the delay: I think, best would be, if you would change the overview windows of your gallery and generate near each picture the appropriate link. you could use a button or image too, I guess Cheers, Nick |
|
jonday
![]()
Joined: 2002-07-24
Posts: 20 |
![]() |
Nick I see you have this working on a 1.4 CVS version of Gallery. The code seems to have changed quite a lot in the latest CVS files to offer drop down lists. Would you be able to update this code to work with the latest version? Thanks |
|
nick77
![]()
Joined: 2003-07-22
Posts: 77 |
![]() |
asap I'm looking at it; though I doubt this will be soon, too busy at the moment Further: I don't have a drop-down list; this was just an idea... I didn't have a look at the 1.4.1 neither, so I really am behind the moon... nick ps: though at first glance I should guess that the fotowire code still should work as it is mostly based on fotowire.... So hopefully only little modifications. |
|
jonday
![]()
Joined: 2002-07-24
Posts: 20 |
![]() |
Nick OK, I thought in the meantime I would test this on the 1.4pl2 version (same as yours). I followed the code changes in the first 2 posts and I have no errors and can change the print provider to include 'photocolor' in the config pages. But each time I go in to the album, it is fixed to PhotoAccess and does not change, whatever option I choose. Are there any other places to make the changes in the 1.4 version files. Alternatively, is there a way to choose manually to select photocolor as the print photos option? Thanks |
|
jonday
![]()
Joined: 2002-07-24
Posts: 20 |
![]() |
oops. Nick you can ignore this previous post. Just realised that the print photos options is set per album. I just had to go into album properties and change it there. Fixed now. Now to link to the Jersey lab ID to see if I can get prints locally. |
|
nick77
![]()
Joined: 2003-07-22
Posts: 77 |
![]() |
Quote:
oops. Nick you can ignore this previous post. :P |
|
sstteevvee
Joined: 2003-04-01
Posts: 14 |
![]() |
can someone pls post the code changes needed for the more recent versions of gallery (ie after the dropdown menu was implemented)? I'm having a look now but if someone has already done it...... Steve |
|
babywebmaster
![]()
Joined: 2003-07-17
Posts: 31 |
![]() |
Sorry Guys I have lost the thread of this thread! |
|
nick77
![]()
Joined: 2003-07-22
Posts: 77 |
![]() |
you have to use a australian ID (chose from attached australian file above) with the code provided at the beginning of the thread. (I didn't check though if it still is working in the new 1.4.1 version. Will be doing this over Christmas hopefully... Nick |
|
babywebmaster
![]()
Joined: 2003-07-17
Posts: 31 |
![]() |
Yes i have the new version. Just tried for an hour no luck, just get erroron page message, something with the javascript? Anyway will keep trying & let u know |
|
sstteevvee
Joined: 2003-04-01
Posts: 14 |
![]() |
i'm from australia as well, i must have checked about 50 australian ids but not a single one works. If you find one, let me know! Cheers, |
|
sstteevvee
Joined: 2003-04-01
Posts: 14 |
![]() |
using the http tracer program above, i get the following info POST http://printservice.fotowire.com/fworder2/orderevaluate3.asp HTTP/1.0 LID=61200576&CID=48847027&CPW=hdd009bn&SID=200576&AID=5000&OEM=3&PID=1&Q=1 The LID above is the same as the WID shown in the xml list but this number doesn't appear to work using the web. If i change WID to LID in the url, i get the standard error "Invalid parameter Any ideas? |
|
nick77
![]()
Joined: 2003-07-22
Posts: 77 |
![]() |
I just tried a couple of australian lab and I had the same error. Possibly not all of the labs are equiped for web transmission though I don't see the differnce to the program... Anyway, you find of course a lot of labs shipping to australia, try for example their ID: 18013 What I noted: a couple of labs (especially some AGFA labs) where marked as Quote:
Sorry. There are no service providers corresponding to the criteria you have entered. Please try again. Possibly they switched to Agfanet print service. Unfortunately it seems, they only offer printing from software and not from the web. Further I gonna ask Beckett whether he (as he wanted) is going to implement fotowire labs in the gallery core; this would mean: no more headaches with updated gallery version I don't see another solution at the moment then choosing a lab overseas. At least you've got some choice.... nick |
|
nick77
![]()
Joined: 2003-07-22
Posts: 77 |
![]() |
ps: why not email one of the labs and ask for their WID? they won't have anything against a couple of additional prints.... |
|
babywebmaster
![]()
Joined: 2003-07-17
Posts: 31 |
![]() |
Forgive me for being dumb. But i have been trying like crazy to get this working with the lab codes, now I look & you say they don't work? |
|
nick77
![]()
Joined: 2003-07-22
Posts: 77 |
![]() |
pitty you! The labcodes in general work great; though it really seems that there's no lab based in Australia which is able to accept orders from online galleries. My suggestion as above: ask either a fotolab or fotowire - Or use a lab from a different continent (which is - I know - dumb, but probably could serve for the instance) You have to understand that I couldn't check hundreds of codes, but to easen you the search for labs, I posted above xml files. I'm sorry the codes of Australia don't do as they promised Nick |
|
mkunz
Joined: 2003-12-11
Posts: 4 |
![]() |
Quote:
... I didn't check though if it still is working in the new 1.4.1 version. Will be doing this over Christmas hopefully... It doesn't still work the same way as before. The Source Codes of the two files edit_appearence.php and -especially- view_photo.php has been changed. I tried to adapt your idea but my php knowledge is too bad. I gave up. You would be my hero, if you could alter the code. Cause the new features of 1.4.1 are quite important... Grüessli vom Weschte... |
|
babywebmaster
![]()
Joined: 2003-07-17
Posts: 31 |
![]() |
The two source codes are quite easy to change, but what is it exactly you want to do. I have altered the codes & think it works in new version... I haven't tested it because no Australian labs support Gallery! |
|