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
Take submission OFFLINE with out deleting. - 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: Take submission OFFLINE with out deleting. (/showthread.php?tid=826)



Take submission OFFLINE with out deleting. - bwaye - Aug 27th, 2010

I use form tools as a CMS. Can I take a submission/post off line without deleting?


RE: Take submission OFFLINE with out deleting. - Ben - Aug 28th, 2010

Hi bwaye,

Sure! I should really write a tutorial on how to do this - it's a handy trick to do all sorts of things.

Here's the gist of it: add a new field to your database table (not form) called "Status". In your case, This would be a radio button with two options "online", "offline".

Then, for your form View(s), just add a new Standard Filter that only shows results that are set to "Online". For more info on Views and the filters, see:
http://docs.formtools.org/userdoc/index.php?page=view_filters

Then, instead of deleting the submissions, you would just mark them as "offline". They would then disappear from view - but still be in the database.

- Ben

P.S. I'm about half-way through a new module called "Submission History". This may help as well. What it does is track all changes made to your submissions - who made them, when, and what changed between each edit. The module also keeps track of submissions that were deleted from the main form, so you always have a paper trail of deleted submissions.


RE: Take submission OFFLINE with out deleting. - bwaye - Sep 1st, 2010

(Aug 28th, 2010, 9:08 AM)Ben Wrote: Hi bwaye,

Sure! I should really write a tutorial on how to do this - it's a handy trick to do all sorts of things.

Here's the gist of it: add a new field to your database table (not form) called "Status". In your case, This would be a radio button with two options "online", "offline".

Then, for your form View(s), just add a new Standard Filter that only shows results that are set to "Online". For more info on Views and the filters, see:
http://docs.formtools.org/userdoc/index.php?page=view_filters

Then, instead of deleting the submissions, you would just mark them as "offline". They would then disappear from view - but still be in the database.

- Ben

P.S. I'm about half-way through a new module called "Submission History". This may help as well. What it does is track all changes made to your submissions - who made them, when, and what changed between each edit. The module also keeps track of submissions that were deleted from the main form, so you always have a paper trail of deleted submissions.

GREAT - will give a try a post back.


RE: Take submission OFFLINE with out deleting. - bwaye - Sep 1st, 2010

(Sep 1st, 2010, 7:13 AM)bwaye Wrote:
(Aug 28th, 2010, 9:08 AM)Ben Wrote: Hi bwaye,

Sure! I should really write a tutorial on how to do this - it's a handy trick to do all sorts of things.

Here's the gist of it: add a new field to your database table (not form) called "Status". In your case, This would be a radio button with two options "online", "offline".

Then, for your form View(s), just add a new Standard Filter that only shows results that are set to "Online". For more info on Views and the filters, see:
http://docs.formtools.org/userdoc/index.php?page=view_filters

Then, instead of deleting the submissions, you would just mark them as "offline". They would then disappear from view - but still be in the database.

- Ben

P.S. I'm about half-way through a new module called "Submission History". This may help as well. What it does is track all changes made to your submissions - who made them, when, and what changed between each edit. The module also keeps track of submissions that were deleted from the main form, so you always have a paper trail of deleted submissions.

GREAT - will give a try a post back.


THANKS BEN!

work like a charm -

Here is the code i used to filter the results:

mysql_select_db($database_database, $database);
$query_coupons = "SELECT * FROM ft_form_2 WHERE `online` = 'online' ORDER BY name ASC";
$query_limit_coupons = sprintf("%s LIMIT %d, %d", $query_coupons, $startRow_coupons, $maxRows_coupons);
$coupons = mysql_query($query_limit_coupons, $database) or die(mysql_error());
$row_coupons = mysql_fetch_assoc($coupons);