?: "Print this photo" Button directly under photo

MA

Joined: 2004-03-09
Posts: 3
Posted: Tue, 2004-03-09 18:29

I am trying to use Fotokasten and I can see the "print your photos" button in the right upper edge of my gallery. Is it possible to get this link directly under the photo so that you can see it clearly ?
I am not really good in programming and hope for your help.

 
MA

Joined: 2004-03-09
Posts: 3
Posted: Thu, 2004-03-11 07:48

Meanwhile I think I found the file view_photo.php an i have read several tutorials but after trying out many changes I stil cannot get it to work. It would be great if someone could get me a hint. Thank you all.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2004-03-11 17:41

In view_photo.php find this code

 
<?php
echo("<tr><td colspan=3 align=center>");
includeHtmlWrap("inline_photo.footer");
echo("</td></tr>");
?>N

and replace with this code

<?php
echo("<tr><td colspan=3 align=center>");
includeHtmlWrap("inline_photo.footer");
echo("<a class=\"admin\" href=\"#\" onClick=\"doPrintService('$name');\">[print this photo with $fullName[$name]]</a></td></tr>");
?>

This will only work if you are using one print service. If you want to have more than one print service you will have to move a bunch more code. You can also experiment with moving the changed code (the link) to other places on the page like above the photo or in one of the photo wrap files as well. You might want ot add a break tag at the end as well for some nice formatting.
Not sure how the translation part works but I guess you can hand code that yourself.

Dave

 
MA

Joined: 2004-03-09
Posts: 3
Posted: Thu, 2004-03-11 18:23

Hey this is absolutely great!!!!
THANK YOU VERY VERY VERY MUCH

Meanwhile I've learned a little stuff through fine tutorials. But still this is not really a rough overview over php and the stuff is still pretty heavy for me.

 
antisa33

Joined: 2006-06-26
Posts: 30
Posted: Tue, 2006-07-11 13:03

Hello ! Where can i put this code in the G2 version ?!
I dont find view_photo.php
Thanks !

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2006-07-11 18:51

Reviving a 2 year old thread (thanks for using the search function........but,.....You can't use this mod) G1 and G2 are not interchangable. G1 mods will not work with G2.
For G2 you will have to edit your template file. Post G2 questions in the G2 forums for more assistance.

Dave
____________________________________________________
Blog with G2 |
| Gallery Frames / Mods || G1 Test Gallery

 
antisa33

Joined: 2006-06-26
Posts: 30
Posted: Wed, 2006-07-12 16:39

What is the G2 file in my templte to modify to allow this sort of lines (i dont want to put the same lines like this) ?
Where to paste the line ?
Thanks