Hi!!
I need that the download link in the email notifications to be shown in full
http://.....
Is this possible?
Started 4 months ago by moshin | 4 posts |
Hi!!
I need that the download link in the email notifications to be shown in full
http://.....
Is this possible?
Any solution?
It is possible to do so. You'll need to edit "includes/entry-functions.php" file.
Search around line 395 for this code:
if(!empty($options['machform_base_path'])){ //if the form is called from advanced form code
$entry_details[$i]['value'] = '<img src="'.$options['machform_path'].
'images/icons/attach.gif" align="absmiddle" /> <a class="entry_link"
href="'.$options['machform_base_path'].'download.php?q='.$q_string.'">'.$filename_value.'</a>';
}else{
$entry_details[$i]['value'] = '<img src="'.$options['machform_path'].
'images/icons/attach.gif" align="absmiddle" /> <a class="entry_link"
href="http'.$ssl_suffix.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/download.php?q='.$q_string.'">'.$filename_value.'</a>';
}
replace it with this one:
if(!empty($options['machform_base_path'])){ //if the form is called from advanced form code
$entry_details[$i]['value'] = '<img src="'.$options['machform_path'].
'images/icons/attach.gif" align="absmiddle" /> <a class="entry_link"
href="'.$options['machform_base_path'].'download.php?q='.$q_string.'">'.$options['machform_base_path'].'download.php?q='.$q_string.'</a>';
}else{
$entry_details[$i]['value'] = '<img src="'.$options['machform_path'].
'images/icons/attach.gif" align="absmiddle" /> <a class="entry_link"
href="http'.$ssl_suffix.'://'.$_SERVER['HTTP_HOST'].
dirname($_SERVER['PHP_SELF']).'/download.php?q='.$q_string.'">http'.$ssl_suffix.'://'.$_SERVER['HTTP_HOST'].
dirname($_SERVER['PHP_SELF']).'/download.php?q='.$q_string.'</a>';
}MachForm Founder
That worked nicely!
Many thanks Yuniar.
Look forward 3.0
You must log in to post.