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 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
Adding a comment/message type textbox formatting - 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: Adding a comment/message type textbox formatting (/showthread.php?tid=79)



Adding a comment/message type textbox formatting - antonitus - Mar 19th, 2009

Hi Ben,

I have a form that allows for large text entries and is a comment/message type textbox. I did some tests to see if I can leave <br> type spaces and create paragraphs. It works well when entered in the textbox of the form, however when viewed on email, the text turns into block format.

With my previous form mail script, it allowed for <br> type spaces. So I was wondering if anything can be done to allow for this on your script. I know there are limits as textboxes are not HTML based unless someone actually enters HTML tags in the textbox.

It's no big deal of course, I'm just enquiring if it's possible on your script.

Thanks,
Tony


RE: Adding a comment/message type textbox formatting - Ben - Mar 19th, 2009

Sure! Smarty is brilliant for things like this. In your email template, just tack on |nl2br at the end of your variable, like this:

Code:
{$ANSWER_yourfield|nl2br}

That will convert all newlines to <br />'s in your HTML template.


RE: Adding a comment/message type textbox formatting - antonitus - Mar 20th, 2009

Hi Ben,

Once again, you always find a solution to everything in FT. I'm so loving this script. It's doing exactly what it says on the tin, so to speak. As an added bonus, if someone could add a Newsletter module, that'll be the icing on the cake. It saves having 2 systems that hold duplicate email addresses when someone wants to sign up to a newsletter.

Thanks,
Tony


RE: Adding a comment/message type textbox formatting - Ben - Mar 20th, 2009

Haha :-) Funny - that's exactly what Joe, my business partner and I have been discussing. There's oodles of modules I'd like to work on, and this one gets discussed quite a bit. For now, though, I'm going to keep focussing on the essentials. Things like an RSV validation module is definitely higher priority for me (it would save me time with my own work - always a good incentive!)

Thanks for the feature suggestion, though!

- Ben