The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (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.31 (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.31 (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.31 (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.31 (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.31 (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.31 (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 property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(257) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/printthread.php(257) : eval()'d code 2 errorHandler->error
/printthread.php 257 eval
/printthread.php 117 printthread_multipage
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Carriage Returns Stripped from TextArea Submissions - 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: Carriage Returns Stripped from TextArea Submissions (/showthread.php?tid=314)

Pages: 1 2 3


RE: Carriage Returns Stripped from TextArea Submissions - Ben - Feb 16th, 2010

Hmmm... I wonder about csv, though. The Excel fix is for specifically Excel: it inserts a <Br /> with a proprietary Microsoft style attribute value. I couldn't do that for CSV because it could be used anywhere - imported into any application, not just CSV. I'll have to think about this one!

Ben


RE: Carriage Returns Stripped from TextArea Submissions - waizen - Jun 16th, 2010

Hello, Ben:

I'm seeing this same problem, but I'm using version 2.0. Excel 2007, if that helps.

Unfortunately, when a visitor writes a long message in the text area within the form in question and creates multiple paragraphs, the separate paragraphs appear on separate rows within Excel. That screws up my client's data when imported into his Act program.

I tried employing your fix above (although I know it's for an older version) but when I try to generate a report, the browser opens up to this page:

http://www.domain.com/modules/export_manager/export.php

and shows just a white blank screen.

Any thoughts? Thank you in advance.

Thanks.


RE: Carriage Returns Stripped from TextArea Submissions - Ben - Jun 19th, 2010

Hi waizen,

Sorry you're having trouble with it!

The white screen lets us know that something seriously bad just happened. Smile That can occur if there's a PHP or Smarty syntax error - the script doesn't know how to handle it and just dies, seeing the web equivalent of the Windows' Blue Screen of Death.

Double check the change you made to the email template. It sounds like there's a syntax error in the Smarty content. If you don't have any luck with it, post the entire content here and I'll take a look at it.

All the best -

Ben


RE: Carriage Returns Stripped from TextArea Submissions - waizen - Jun 21st, 2010

I hadn't changed anything within any smarty file. Not sure where I should have or if I should have...please advise.

No, the change I had made was within the control panel...in the module section, export manager, clicked on edit link of Excel, chose Export Types and then clicked on edit link.

That's where I changed:

Code:
{elseif $field_type == "textarea"}
        {$value|nl2br}
      {else}
        {$value}
      {/if}

to:

Code:
{elseif $field_type == "textarea"}
        {$value|nl2br_excel}
      {else}
        {$value}
      {/if}

Again, I'm using version 2.0.0, so all this should have been unnecessary, right?