Form on gallery specific to image

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

Comments

  • acrylian Administrator, Developer
    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.
  • all good, I managed to figure it out using contact form and changing the coding a bit.

    thanks though!
  • hi Penny, how did you do this? I need to get the same thing done....

    thanks
  • 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<strong>%s:"),(checkRequiredField(getOption('contactform_message')))); ?>
    ><?php echo $mailcontent['message']; ?>Regarding <?php echo getImageTitle();?>, by <?php echo getAlbumTitle();?>.

    <?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
Sign In or Register to comment.