{"options":{"id":"8","testing_mode":"0","name":"work-the-flow-file-upload demo","include_plugin_style_default_overrides":"1","default_back_label":"Go Back","default_next_label":"Next","page_template":"1"},"stages":{"wtf-fu_workflow_8_stage_0_options":{"key_id":"0","options":{"stage_title":"Introduction","header":"<p>This step introduces the work-the-flow-file-upload plugin.<\/p>","content_area":"<p>In this demo you will upload some files, reorder them, view them, and then submit them. An automated email will then be sent containing a thumbnail image display of your submitted files in the selected order.<\/p>\r\n<p>You can read additional relevant documentation on each step by expanding the accordion links along the way.<\/p>\r\n<p>The plugin has two separate but complimentary functions<\/p>\r\n\r\n<ol>\r\n<div id=\"accordion\">\r\n<li><h4><a href=\"#\">Workflow<\/a><\/h4>\r\n<div>[wtf_eval]echo wtf_fu_get_workflow_info('intro');[\/wtf_eval]<\/div>\r\n<\/li>\r\n<li><h4><a href=\"#\">File Upload<\/a><\/h4>\r\n<div>[wtf_eval]echo wtf_fu_get_fileupload_info('intro');[\/wtf_eval]<\/div>\r\n<\/li>\r\n<\/div>\r\n<\/ol>\r\n\r\n<p>Workflows allow stepwise presentation to users, showing a single step at a time.<\/p>\r\n<p>The <code>work-the-flow-file-upload<\/code> plugin allows you to embed short codes into your pages and posts.<br \/> This demo is a workflow that was embedded into this page using the shortcode <code>[<strong>wtf_fu id='3'<\/strong>]<\/code>.<\/p>\r\n<p>You can add and edit each stage of the workflow from the admin interface to the plugin.<br \/> You can also control whether a user can move forward or backwards and also add your own custom functions to<br \/> execute before or after each stage is entered.<\/p>\r\n<p>PRO users can also attach email templates to workflow stages to easily automate sending progress notification emails, when users reach milestone stages.<\/p>\r\n<p>PRO users can also edit the workflow template to modify the display you are seeing now to suit.<\/p>\r\n<p>There are two other shortcodes available :<\/p>\r\n<ol>\r\n<li><code>[<strong>wtf_fu_upload<\/strong>]<\/code><\/li>\r\n<li><code>[<strong>wtf_fu_show_files<\/strong>]<\/code><\/li>\r\n<\/ol>\r\n<p>These can be embedded directly in pages \/ posts or embedded in workflow stage content in the admin interface.<\/p>\r\n<p>We will demonstrate these by embedding these shortcodes in the following workflow stages.<\/p>\r\n<p>[wtf_fu_upload wtf_upload_dir=\"demofiles\" wtf_upload_subdir='%%WORKFLOW_STAGE_TITLE%%']<\/p>","footer":"<p>Press start to proceed to step 1 and upload some files.<\/p>","next_active":"1","next_label":"Start the tour","next_js":"","back_active":"1","back_label":"","back_js":"","pre_hook":"","post_hook":""}},"wtf-fu_workflow_8_stage_10_options":{"key_id":"10","options":{"stage_title":"","header":"In this stage we will ....","content_area":"Enter the workflow stage main body of content here.","footer":"Press next to proceed.","next_active":"1","next_label":"","next_js":"\" onClick=\"return confirm('Are you sure you want to proceed ?');\"","back_active":"1","back_label":"","back_js":"","pre_hook":"","post_hook":""}},"wtf-fu_workflow_8_stage_1_options":{"key_id":"1","options":{"stage_title":"%%WORKFLOW_STAGE_NUMBER%%. Uploading files.","header":"<p>In this workflow stage we will demonstrate how to embed a file upload in pages, posts or workflow stages.<\/p>","content_area":"<p>The <code>[<strong>wtf_fu_upload<\/strong>]<\/code> shortcode embeds an interface allowing you to drag and drop files for upload.<\/p>\r\n<p>Files are upload to specified locations under the users wp-content\/upload\/userid\/ directory.<\/p>\r\n<p>Shortcode attributes can be use to specify destination subdirectories, number of allowed file, max file sizes and other details.<\/p>\r\n<p>Default attributes for the shortcode can be modified in the admin interface, or overridden by supplying them in the embedded shortcode.<\/p>\r\n<p>For example a shortcode specifying all the default attributes would look like :<\/p>\r\n<p><code>\r\n[wtf_eval]\r\necho wtf_fu_get_shortcode_with_default_attributes('wtf_fu_upload');\r\n[\/wtf_eval]\r\n<\/code>\r\n<div id=\"accordion\">\r\n<h4><a href=\"#\">Full Shortcode Documentation<\/a><\/h4>\r\n<div>\r\n[wtf_eval]\r\necho get_shortcode_info_table('wtf_fu_upload');\r\n[\/wtf_eval]\r\n<\/div>\r\n<\/div>\r\n\r\n<p>You only need to supply the attributes that you wish to override.<\/p>","footer":"<p>Press next to try out an upload.<\/p>","next_active":"1","next_label":"","next_js":"","back_active":"1","back_label":"","back_js":"","pre_hook":"","post_hook":"","send_email":"0"}},"wtf-fu_workflow_8_stage_2_options":{"key_id":"2","options":{"stage_title":"%%WORKFLOW_STAGE_NUMBER%%. Upload some files.","header":"<p>In this stage we will upload some files to the server.<\/p>","content_area":"<p><span style=\"text-decoration: underline;\"><strong>As this is a public demo some restriction have been put in place.<\/strong><\/span><\/p>\r\n<ol>\r\n<li>Uploaded files will periodically be deleted from the server.<\/li>\r\n<li>Uploads are restricted to image files of the type <strong>jpg, jpeg, png, or gif<\/strong>.<\/li>\r\n<li>The maximum size for each uploaded file is <strong>1 Mb<\/strong>.<\/li>\r\n<li>You may upload up to 18 files<\/li>\r\n<\/ol>\r\n<p>The embedded shortcode used below is :<\/p>\r\n<p><code>[<strong>wtf_fu_upload<\/strong> wtf_upload_dir=\"demofiles\" accept_file_types=\"jpg|jpeg|png|gif\" max_file_size=\"1\" max_number_of_files=\"18\" auto_orient=\"1\" thumbnail_crop=\"1\"]<\/code><\/p>\r\n<p>[wtf_fu_upload wtf_upload_dir=\"demofiles\" accept_file_types=\"jpg|jpeg|png|gif\" max_file_size=\"5\" max_number_of_files=\"30\" auto_orient=\"1\" thumbnail_crop=\"1\"]<\/p>\r\n<p>Drag and drop some files onto this page. You will see a preview display of thumbnails appear.<br \/> Press the <code>Start Upload<\/code> button when ready to upload them.<\/p>","footer":"<p>Press next when your uploads have completed.<\/p>","next_active":"1","next_label":"","next_js":"","back_active":"1","back_label":"","back_js":"","pre_hook":"","post_hook":"","send_email":"0"}},"wtf-fu_workflow_8_stage_3_options":{"key_id":"3","options":{"stage_title":"%%WORKFLOW_STAGE_NUMBER%%. The [<strong>wtf_fu_showfiles<\/strong>] shortcode","header":"<p>In this stage we will introduce the [<strong>wtf_fu_showfiles<\/strong>] shortcode.<\/p>","content_area":"<p>The <code>[<strong>wtf_fu_showfiles<\/strong>]<\/code> shortcode is used to display a users uploaded files.<\/p>\r\n<p>Attributes can be supplied to files location under the users upload directory, and to customise the display.<br \/>A shortcode specifying a full set of attributes would look like :<\/p>\r\n<p><code>[wtf_eval] echo wtf_fu_get_shortcode_with_default_attributes('wtf_fu_upload'); [\/wtf_eval] <br \/> <\/code><\/p>\r\n<p>Some of these are illustrated below :<br \/> Note that the <code>gallery<\/code> attribute will display a gallery display of the full sized images when clicked.<\/p>\r\n<div id=\"accordion\">\r\n<h3><a href=\"#\">Default Display<\/a><\/h3>\r\n<div>\r\n<p>The attribute <code>wtf_upload_dir<\/code> is required. All the rest are optional.\r\n<code>[<strong>wtf_fu_show_files<\/strong> wtf_upload_dir=\"demofiles\"]<\/code><\/p>\r\n<p>[wtf_fu_show_files wtf_upload_dir=\"demofiles\" show_numbers=\"0\"]<\/p>\r\n<\/div>\r\n<h3><a href=\"#\">Numbering off<\/a><\/h3>\r\n<div>\r\n<p>To turn default numbering off use <code>show_numbers=0<\/code><\/p>\r\n<p><code>[<strong>wtf_fu_show_files<\/strong> wtf_upload_dir=\"demofiles\" show_numbers=0]<\/code><\/p>\r\n<p>[wtf_fu_show_files wtf_upload_dir=\"demofiles\" show_numbers=0]<\/p>\r\n<\/div>\r\n<h3><a href=\"#\">Gallery off<\/a><\/h3>\r\n<div>\r\n<p><code>[<strong>wtf_fu_show_files<\/strong> wtf_upload_dir=\"demo files\" gallery=0]<\/code><\/p>\r\n<p>[wtf_fu_show_files wtf_upload_dir=\"demofiles\"]<\/p>\r\n<\/div>\r\n<h3><a href=\"#\">Vertical Display<\/a><\/h3>\r\n<div>\r\n<p><code>[<strong>wtf_fu_show_files<\/strong> wtf_upload_dir=\"demo files\" vertical=1]<\/code><\/p>\r\n<p>[wtf_fu_show_files wtf_upload_dir=\"demofiles\" vertical=1]<\/p>\r\n<\/div>\r\n<\/div>","footer":"The reorder attribute will be demonstrated in the next stage.\r\n<p>Press next to proceed.<\/p>","next_active":"1","next_label":"","next_js":"","back_active":"1","back_label":"","back_js":"","pre_hook":"","post_hook":"","send_email":"0"}},"wtf-fu_workflow_8_stage_4_options":{"key_id":"4","options":{"stage_title":"%%WORKFLOW_STAGE_NUMBER%%. Reordering files.","header":"In this stage we will see how to allow users to reorder there uploads.","content_area":"<p>The <code>[<strong>wtf_fu_showfiles<\/strong>]<\/code> shortcode can also have the <code>reorder<\/code> attribute enabled. \r\n\r\n<p>This enables users to rearrange the order of their upload into a desired order.<\/p>\r\n<p>When the user saves the order a text file is written to the users upload directory with the ordered list of files and \r\nthe files last modified timestamps are updated to reflect the new order.<\/p>\r\n\r\n<p>Drag the thumbnails around into your preferred order and click the update button to save.<\/p>\r\n<p>If you like can go back to the upload stage and upload extra files if you haven't already done so yet. You will see that previous display will be updated to your new order.<\/p>\r\n\r\n<p>The full short code to achieve the action below is :<\/p><p><code>[<strong>wtf_fu_show_files<\/strong> wtf_upload_dir=\"demofiles\" file_type=\"image\" gallery=\"true\" reorder=\"true\"]<\/code><\/p><p>[wtf_fu_show_files wtf_upload_dir=\"demofiles\" file_type=\"image\" gallery=\"true\" reorder=\"true\"]<\/p>\r\n\r\n","footer":"Press next to proceed.","next_active":"1","next_label":"","next_js":"","back_active":"1","back_label":"","back_js":"","pre_hook":"","post_hook":"","send_email":"0"}},"wtf-fu_workflow_8_stage_5_options":{"key_id":"5","options":{"stage_title":"%%WORKFLOW_STAGE_NUMBER%%. TODO","header":"In this stage we will ....","content_area":"Enter the workflow stage main body of content here.","footer":"Press next to proceed.","next_active":"1","next_label":"","next_js":"\" onClick=\"return confirm('Are you sure you want to proceed ?');\"","back_active":"1","back_label":"","back_js":"","pre_hook":"","post_hook":"","send_email":"0"}},"wtf-fu_workflow_8_stage_6_options":{"key_id":"6","options":{"stage_title":"","header":"In this stage we will ....","content_area":"Enter the workflow stage main body of content here.","footer":"Press next to proceed.","next_active":"1","next_label":"","next_js":"\" onClick=\"return confirm('Are you sure you want to proceed ?');\"","back_active":"1","back_label":"","back_js":"","pre_hook":"","post_hook":""}},"wtf-fu_workflow_8_stage_7_options":{"key_id":"7","options":{"stage_title":"","header":"In this stage we will ....","content_area":"Enter the workflow stage main body of content here.","footer":"Press next to proceed.","next_active":"1","next_label":"","next_js":"\" onClick=\"return confirm('Are you sure you want to proceed ?');\"","back_active":"1","back_label":"","back_js":"","pre_hook":"","post_hook":""}},"wtf-fu_workflow_8_stage_8_options":{"key_id":"8","options":{"stage_title":"","header":"In this stage we will ....","content_area":"Enter the workflow stage main body of content here.","footer":"Press next to proceed.","next_active":"1","next_label":"","next_js":"\" onClick=\"return confirm('Are you sure you want to proceed ?');\"","back_active":"1","back_label":"","back_js":"","pre_hook":"","post_hook":""}},"wtf-fu_workflow_8_stage_9_options":{"key_id":"9","options":{"stage_title":"","header":"In this stage we will ....","content_area":"Enter the workflow stage main body of content here.","footer":"Press next to proceed.","next_active":"1","next_label":"","next_js":"\" onClick=\"return confirm('Are you sure you want to proceed ?');\"","back_active":"1","back_label":"","back_js":"","pre_hook":"","post_hook":""}}},"version":"2.2.0"}