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


  1. moshin
    Member

    Hi!!

    I need that the download link in the email notifications to be shown in full
    http://.....

    Is this possible?

    Posted 12 years ago #
  2. moshin
    Member

    Any solution?

    Posted 12 years ago #
  3. yuniar

    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" />&nbsp;<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" />&nbsp;<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" />&nbsp;<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" />&nbsp;<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 #
  4. moshin
    Member

    That worked nicely!
    Many thanks Yuniar.

    Look forward 3.0

    Posted 12 years ago #

RSS feed for this topic

Reply