Member
Member
pennystewart   2011-04-08, 10:43
#1
Hi there,

I am creating a website for an art gallery and they have requested a "contact form" next to the image which has already populated the data of the image into the form.

My example page is here, http://pennystewartdesigns.com/merrepen/gallery/merrepen-arts/img_0863.jpg.php

As you can see I have a form on the right hand side that I generated from a free form website. I tried to input the php codes for the "title" of the image etc into the value boxes for the form, but this did not work.

Is there any way I can make a form with the image name in the subject "artwork title" on a form?

Thanks for your help!

Penny
Administrator
Administrator
acrylian   2011-04-08, 14:11
#2
If you ask if there is a Zenphoto way to do this with a custom form or the standard contact form no. You probably could do it using jQuery. See www.jquery.com.
Member
Member
pennystewart   2011-04-08, 17:50
#3
all good, I managed to figure it out using contact form and changing the coding a bit.

thanks though!
Member
Member
masterloney   2011-04-11, 02:19
#4
hi Penny, how did you do this? I need to get the same thing done....

thanks
Member
Member
pennystewart   2011-04-12, 16:03
#5
hi masterloney,

i enabled the "contact form" plugin in zenphoto..then i edited the /zp-core/zp-extensions/contact_form/form.php file to display the following for my "message" box: (this displays the album name & image name in the message box)

`
<?php printf(gettext("Message[b]%s[/b]:"),(checkRequiredField(getOption('contactform_message')))); ?></td>
<td><textarea id="message" name="message" rows="5" cols="37" <?php if ($_processing_post) echo ' disabled="disabled"'; ?>><?php echo $mailcontent['message']; ?>Regarding <?php echo getImageTitle();?>, by <?php echo getAlbumTitle();?>.</textarea></td>
</tr>
<?php } ?>
`
please see example here: http://www.pennystewartdesigns.com/merrepen/gallery/paintings/elise-dorat/blg1cts.jpg.php right hand side column is the form.

thanks,

penny
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.