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 "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
Field 'last modified' - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Modules / Other (https://forums.formtools.org/forumdisplay.php?fid=8)
+--- Forum: Modules (https://forums.formtools.org/forumdisplay.php?fid=16)
+--- Thread: Field 'last modified' (/showthread.php?tid=5)



Field 'last modified' - maxx - Jan 18th, 2009

I am using a test installation of form tools beta with the old petition form
(just updated today).

If I go to submissions/view and than edit any data set, I find there a the correct input for 'last modified' (at first same as 'date').

If I go to 'display' and than 'click here' to view the file there all data sets show for 'last modified': Nov 30th, 12:00 AM.

What's going wrong?


Other Question:
Can I show the view file (html) with all data sets with a static url
(public viewing of all subscribers for a petition form)?

maxx


RE: Field 'last modified' - Ben - Jan 18th, 2009

Hey Maxx,

Thanks for the post!

The first problem is actually a bug with the Export Manager. I'll include a fix for this in the next release (later tonight or tomorrow). But that will only affect people doing fresh installations. To fix it, do the following:

  1. Go to your Export Manager (Modules -> Export Manager)
  2. Edit the "HTML / Printer-friendly" export type group.
  3. Click the second tab ("Export Types")
  4. Edit the "Table format" option.
  5. In the Smarty Template field, find the following line (it's near the end):
    {elseif $col_name == "last_modified_date"}
    Then, change the line AFTERWARDS to this: {$submission.last_modified_date|custom_format_date:$timezone_offset:$date_format}

The problem was that that line incorrectly referenced the wrong variable for the last modified date field. If you don't have any luck with it, wait until I release the updated Beta version of the Export Manager (soon!), uninstall the module from within Form Tools, then upload the new version to your server and do a fresh install. That'll fix it!

Concerning your second problem, this is a job for the API! This page explains exactly how to do it:
http://docs.formtools.org/api/?page=ft_api_show_submissions

That's a function that was written for this very purpose.

As with most things around here (!) it's very new and I've only tested it with earlier versions of the code. So be sure to post back if you run into
any trouble or my documentation isn't clear.

- Ben


RE: Field 'last modified' - maxx - Jan 19th, 2009

Thank you so much Ben,

I will try to get it work and if I run into any
trouble, it doesn't hurt because I'm only
do it for testing/learning :-).

maxx