This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
Download link in email - plain text
Started 12 years 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?
Posted 12 years ago # -
Any solution?
Posted 12 years ago # -
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
Posted 12 years ago # -
That worked nicely!
Many thanks Yuniar.Look forward 3.0
Posted 12 years ago #
Reply
You must log in to post.