The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.28 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.28 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.28 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.28 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.28 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.28 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.28 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Different path display in email to form owner as opposed to the sender - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: Different path display in email to form owner as opposed to the sender (/showthread.php?tid=1665)



Different path display in email to form owner as opposed to the sender - filch - Sep 29th, 2011

Ben,

Why is the path to an uploaded file showed differently in the email sent to the client or form owner than it is in the users email? In the one sent to the client, the path to the file is hidden and just shows the link as the filename. In the email sent to the sender, it shows the complete path from root to the file ... which I really do not want to show?

Dave


RE: Different path display in email to form owner as opposed to the sender - Ben - Sep 29th, 2011

Hi Dave,

That sounds like a bug... could you post your email template here? (just the appropriate bit, if it contains sensitive information)

- Ben




RE: Different path display in email to form owner as opposed to the sender - filch - Sep 30th, 2011

(Sep 29th, 2011, 8:12 PM)Ben Wrote: Hi Dave,

That sounds like a bug... could you post your email template here? (just the appropriate bit, if it contains sensitive information)

- Ben

Here's the HTML portion of the email sent to the poster:

Code:
<p>
  Thanks for your submission to the Community Service Awards! Below is what you submitted. If there are any errors or ommissions, simply reply to this email with your changes.
</p>

<table cellpadding="0" cellspacing="1">
{foreach from=$fields item=field}
{if $field.col_name != "submission_date" && $field.answer}
  {if $field.field_type == "file"}
    <tr>
      <td style="font-weight: bold">{$field.field_title}:</td>
      <td><a href="{$field.folder_url}/{$field.answer}">{$field.answer}</a> ({$field.folder_path})</td>    
    </tr>
  {else}
    <tr>
      <td style="font-weight: bold">{$field.field_title}:</td>
      <td>{$field.answer}</td>
    </tr>
  {/if}
{/if}  
{/foreach}
</table>

<p>
  Submission made: {$SUBMISSIONDATE}
</p>

and the text only version:

Code:
Thanks for your submission to the Community Service Awards! Below is what you submitted. If there are any errors or ommissions, simply reply to this email with your changes.

{foreach from=$fields item=field}
{if $field.col_name != "submission_date" && $field.answer}
  {if $field.field_type == "file"}{$field.field_title}: {$field.folder_url}/{$field.answer}
{else}{$field.field_title}: {$field.answer}
{/if}
{/if}
{/foreach}

Submission made: {$SUBMISSIONDATE}

Dave



RE: Different path display in email to form owner as opposed to the sender - Ben - Oct 2nd, 2011

Hi Dave,

I think it's just this bit in your HTML template: ({$field.folder_path}).

Just delete that, and the path will disappear.

It shouldn't be there: it looks like it's some old debugging code that snuck in there. I'll remove it in the next version of the Core. Thanks for letting me know! And sorry for the bug.

- Ben