forum.coppermine-gallery.net
Support => cpg1.5.x Support => cpg1.5 email => Topic started by: Malm_Vogn on January 06, 2012, 10:55:57 am
-
Hi!
How do I prefill the ecard receiver fields with a name and an email adress?
We use our gallery to collect information about old photos; a substantial part of our visitors will not, or are not skilled enough to, register and hence make comments. We still want them to tell us what they know about the photo, so prefilled ecards sent to us we think is the way around.
Best regards
Terje S, Museum Nord - Narvik, Norway
-
IMHO the "Report to administrator" function is more appropriate for your purpose. If not, it's of course possible to predefine data in the ecard form. Just let me know if you need the corresponding code changes.
-
IMHO the "Report to administrator" function is more appropriate for your purpose. If not, it's of course possible to predefine data in the ecard form. Just let me know if you need the corresponding code changes.
Good idea, but the Report to Administration form needs too much rewriting to serve our purpose. Image is too small, also.So yes, I do need the code changes. Thx for quick answering.
Terje
-
Open ecard.php, find
} else {
echo <<< EOT
<a href="displayimage.php?pid=$pid">
<img src="$thumb_pic_url" width="{$thumb_size['width']}" height="{$thumb_size['height']}" alt="" vspace="8" border="0" class="image" />
</a>
EOT;
}
and below, add
if (!$recipient_name) {
$recipient_name = 'Default name';
}
if (!$recipient_email) {
$recipient_email = 'default@address.com';
}
-
Thank U very much. Works like a charm ;D Problem solved!!!!!
-
Please
tag your answer as "solved" by clicking on the "Topic Solved" button on the bar at the left hand side at the bottom of your thread.
-
Of course :)