<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: Take the "Seconds" option out of the "Time" element</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Take the "Seconds" option out of the "Time" element</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 01:27:11 +0000</pubDate>

<item>
<title>yuniar on "Take the "Seconds" option out of the "Time" element"</title>
<link>https://www.machform.com/forums/topic/take-the-seconds-option-out-of-the-time-element#post-510</link>
<pubDate>Fri, 04 Jan 2008 05:51:39 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">510@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thanks Hermann,&#60;/p&#62;
&#60;p&#62;That's definitely a great idea!
&#60;/p&#62;</description>
</item>
<item>
<title>hermann on "Take the "Seconds" option out of the "Time" element"</title>
<link>https://www.machform.com/forums/topic/take-the-seconds-option-out-of-the-time-element#post-508</link>
<pubDate>Fri, 04 Jan 2008 01:41:57 +0000</pubDate>
<dc:creator>hermann</dc:creator>
<guid isPermaLink="false">508@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hello yuniar,&#60;/p&#62;
&#60;p&#62;please also concern to get rid of the AM/PM drop down. In Germany we don't have this, we use 24h.&#60;/p&#62;
&#60;p&#62;I think it will be nice to have an checkbox option under the &#34;Field Label/Field Type&#34; called something like &#34;use seconds&#34; and &#34;use AM/PM&#34;.&#60;/p&#62;
&#60;p&#62;However, thanks for the wonderful script.&#60;br /&#62;
Best,&#60;br /&#62;
Hermann
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Take the "Seconds" option out of the "Time" element"</title>
<link>https://www.machform.com/forums/topic/take-the-seconds-option-out-of-the-time-element#post-459</link>
<pubDate>Tue, 18 Dec 2007 18:14:32 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">459@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hmm.. try to do one more patch below:&#60;/p&#62;
&#60;p&#62;Edit your &#60;strong&#62;includes/post-functions.php&#60;/strong&#62; file, search around line 386.&#60;br /&#62;
You'll find this code:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$target_input[&#38;#39;element_time_no_meridiem&#38;#39;]=@date(&#38;quot;G:i:s&#38;quot;,strtotime($target_input[&#38;#39;element_time&#38;#39;]));&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;&#60;/code&#62;&#60;br /&#62;
Replace that line with this one:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(!empty($user_input[$element_name])){
	$target_input[&#38;#39;element_time_no_meridiem&#38;#39;] = @date(&#38;quot;G:i:s&#38;quot;,strtotime($target_input[&#38;#39;element_time&#38;#39;]));
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#60;br /&#62;
If that doesn't work either, I'll need to directly check your server.
&#60;/p&#62;</description>
</item>
<item>
<title>vrenda on "Take the "Seconds" option out of the "Time" element"</title>
<link>https://www.machform.com/forums/topic/take-the-seconds-option-out-of-the-time-element#post-455</link>
<pubDate>Mon, 17 Dec 2007 21:34:13 +0000</pubDate>
<dc:creator>vrenda</dc:creator>
<guid isPermaLink="false">455@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;After we did this, the form is processed but the email sent has the blank time defaulted  with 7:00am.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Take the "Seconds" option out of the "Time" element"</title>
<link>https://www.machform.com/forums/topic/take-the-seconds-option-out-of-the-time-element#post-451</link>
<pubDate>Mon, 17 Dec 2007 15:43:11 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">451@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Oh, you are absolutely right! Sorry that was my fault.&#60;/p&#62;
&#60;p&#62;Ok, change this line:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$user_input[$element_name_3] = &#38;#39;00&#38;#39;;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;With this one:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if(!empty($user_input[$element_name])){
	$user_input[$element_name_3] = &#38;#39;00&#38;#39;;
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>vrenda on "Take the "Seconds" option out of the "Time" element"</title>
<link>https://www.machform.com/forums/topic/take-the-seconds-option-out-of-the-time-element#post-448</link>
<pubDate>Mon, 17 Dec 2007 08:00:33 +0000</pubDate>
<dc:creator>vrenda</dc:creator>
<guid isPermaLink="false">448@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;This work for me unless the time was left blank. &#60;/p&#62;
&#60;p&#62;We are using this form for time sheets.&#60;br /&#62;
If someone did not work Monday and left the &#34;IN' &#38;#38; &#34;OUT&#34; blank we receive an error:&#60;/p&#62;
&#60;p&#62;&#34;This field is not in the correct time format&#34;&#60;/p&#62;
&#60;p&#62;Any suggestions?
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Take the "Seconds" option out of the "Time" element"</title>
<link>https://www.machform.com/forums/topic/take-the-seconds-option-out-of-the-time-element#post-281</link>
<pubDate>Mon, 12 Nov 2007 09:44:26 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">281@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Glad to help :-)
&#60;/p&#62;</description>
</item>
<item>
<title>Al on "Take the "Seconds" option out of the "Time" element"</title>
<link>https://www.machform.com/forums/topic/take-the-seconds-option-out-of-the-time-element#post-280</link>
<pubDate>Mon, 12 Nov 2007 09:40:51 +0000</pubDate>
<dc:creator>Al</dc:creator>
<guid isPermaLink="false">280@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thank you for fixing the problem for me in my website. You are sooOOOOooo helpful.&#60;br /&#62;
I'll look into the program in two seconds.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Take the "Seconds" option out of the "Time" element"</title>
<link>https://www.machform.com/forums/topic/take-the-seconds-option-out-of-the-time-element#post-279</link>
<pubDate>Mon, 12 Nov 2007 09:32:01 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">279@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Ok, this seems indeed a text editor problem. Notepad is not so good for this.&#60;br /&#62;
If you don't have any other text editor, I suggest to use WordPad and just ignore the warning it says (remove all formating..etc).&#60;/p&#62;
&#60;p&#62;Even better, you might want to use this powerful editor:&#60;br /&#62;
&#60;a href=&#34;http://notepad-plus.sourceforge.net/uk/site.htm&#34; rel=&#34;nofollow&#34;&#62;http://notepad-plus.sourceforge.net/uk/site.htm&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;It's free and very good.
&#60;/p&#62;</description>
</item>
<item>
<title>Al on "Take the "Seconds" option out of the "Time" element"</title>
<link>https://www.machform.com/forums/topic/take-the-seconds-option-out-of-the-time-element#post-278</link>
<pubDate>Mon, 12 Nov 2007 09:04:56 +0000</pubDate>
<dc:creator>Al</dc:creator>
<guid isPermaLink="false">278@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Yes I'm using Notepad because the Wordpad will only let me save it as (RTF; TEXT DOCUMENT; TEXT DOCUMENT-MS DOS FORMAT; UNICODE TEXT DOCUMENT) and it says it will remove all formatting.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Take the "Seconds" option out of the "Time" element"</title>
<link>https://www.machform.com/forums/topic/take-the-seconds-option-out-of-the-time-element#post-277</link>
<pubDate>Mon, 12 Nov 2007 08:37:09 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">277@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Could be text editor problem. Are you using notepad? Try to use wordpad and save the file again.&#60;/p&#62;
&#60;p&#62;If that still doesn't work, please send me your view-functions.php file to customer.service [at] appnitro.com &#60;/p&#62;
&#60;p&#62;I'll take a look.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Take the "Seconds" option out of the "Time" element"</title>
<link>https://www.machform.com/forums/topic/take-the-seconds-option-out-of-the-time-element#post-276</link>
<pubDate>Mon, 12 Nov 2007 08:31:12 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">276@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;ok, thats weird. the error seems to be on line 1 of view-functions.php&#60;/p&#62;
&#60;p&#62;make sure you don't have any spaces/new lines at the first line ( before the &#60;strong&#62;&#38;lt;?php &#60;/strong&#62;tag )
&#60;/p&#62;</description>
</item>
<item>
<title>Al on "Take the "Seconds" option out of the "Time" element"</title>
<link>https://www.machform.com/forums/topic/take-the-seconds-option-out-of-the-time-element#post-275</link>
<pubDate>Mon, 12 Nov 2007 08:26:52 +0000</pubDate>
<dc:creator>Al</dc:creator>
<guid isPermaLink="false">275@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Here is the error code on top:&#60;br /&#62;
Warning: Cannot modify header information - headers already sent by (output started at /home/content/p/o/e/poetsstudy/html/orderforms/includes/view-functions.php:1) in /home/content/p/o/e/poetsstudy/html/orderforms/view.php on line 67
&#60;/p&#62;</description>
</item>
<item>
<title>Al on "Take the "Seconds" option out of the "Time" element"</title>
<link>https://www.machform.com/forums/topic/take-the-seconds-option-out-of-the-time-element#post-274</link>
<pubDate>Mon, 12 Nov 2007 08:16:56 +0000</pubDate>
<dc:creator>Al</dc:creator>
<guid isPermaLink="false">274@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;It does and it does not work. While it does delete the seconds column, there is an error at the top of the page when viewing the form and the header is not correct. It has something to do with the includes/view-functions.php file when I change it. The error goes away and the seconds come back when I put the code back in for&#60;br /&#62;
&#38;lt;span&#38;gt;&#60;br /&#62;
   &#38;lt;input id=&#34;element_{$element-&#38;gt;id}_3&#34; name=&#34;element_{$element-&#38;gt;id}_3&#34; class=&#34;element text &#34; size=&#34;2&#34; type=&#34;text&#34; maxlength=&#34;2&#34; value=&#34;{$element-&#38;gt;populated_value['element_'.$element-&#38;gt;id.'_3']['default_value']}&#34;/&#38;gt;&#60;br /&#62;
   &#38;lt;label&#38;gt;SS&#38;lt;/label&#38;gt;&#60;br /&#62;
&#38;lt;/span&#38;gt;
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Take the "Seconds" option out of the "Time" element"</title>
<link>https://www.machform.com/forums/topic/take-the-seconds-option-out-of-the-time-element#post-273</link>
<pubDate>Mon, 12 Nov 2007 05:28:55 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">273@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;More people are asking this one, so I'll definitely provide an option to remove the seconds field. For now, please follow the instruction below:&#60;/p&#62;
&#60;p&#62;Modify your &#60;strong&#62;includes/view-functions.php&#60;/strong&#62; file. Search around line 705 (inside display_time() function), you'll find this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;span&#38;gt;
   &#38;lt;input id=&#38;quot;element_{$element-&#38;gt;id}_3&#38;quot; name=&#38;quot;element_{$element-&#38;gt;id}_3&#38;quot; class=&#38;quot;element text &#38;quot; size=&#38;quot;2&#38;quot; type=&#38;quot;text&#38;quot; maxlength=&#38;quot;2&#38;quot; value=&#38;quot;{$element-&#38;gt;populated_value[&#38;#39;element_&#38;#39;.$element-&#38;gt;id.&#38;#39;_3&#38;#39;][&#38;#39;default_value&#38;#39;]}&#38;quot;/&#38;gt;
   &#38;lt;label&#38;gt;SS&#38;lt;/label&#38;gt;
&#38;lt;/span&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#60;br /&#62;
Remove that code.&#60;br /&#62;
After that, modify &#60;strong&#62;includes/post-functions.php&#60;/strong&#62;, search around line 354, look for these code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$element_name_2 = substr($element_name,0,-1).&#38;#39;2&#38;#39;;
$element_name_3 = substr($element_name,0,-1).&#38;#39;3&#38;#39;;
$element_name_4 = substr($element_name,0,-1).&#38;#39;4&#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#60;br /&#62;
Right under those lines, add the code below:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$user_input[$element_name_3] = &#38;#39;00&#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#60;br /&#62;
This way, the seconds would be default to 00.&#60;/p&#62;
&#60;p&#62;Let me know if you have any difficulty.
&#60;/p&#62;</description>
</item>
<item>
<title>Al on "Take the "Seconds" option out of the "Time" element"</title>
<link>https://www.machform.com/forums/topic/take-the-seconds-option-out-of-the-time-element#post-271</link>
<pubDate>Mon, 12 Nov 2007 05:20:35 +0000</pubDate>
<dc:creator>Al</dc:creator>
<guid isPermaLink="false">271@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;How many people will be using this option? I need to use the element but just hours and minutes.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
