<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Add Auto Staff Time Sheet Feature into osTicket v1.6 RC5</title>
	<atom:link href="http://www.openscriptsolution.com/2009/11/08/add-auto-staff-time-sheet-feature-into-osticket-v1-6-rc5/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.openscriptsolution.com/2009/11/08/add-auto-staff-time-sheet-feature-into-osticket-v1-6-rc5/</link>
	<description>... where solutions for script programming are found ...</description>
	<lastBuildDate>Wed, 08 Sep 2010 06:13:48 +0700</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Jorge Jordao</title>
		<link>http://www.openscriptsolution.com/2009/11/08/add-auto-staff-time-sheet-feature-into-osticket-v1-6-rc5/comment-page-1/#comment-1667</link>
		<dc:creator>Jorge Jordao</dc:creator>
		<pubDate>Wed, 25 Aug 2010 20:41:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=798#comment-1667</guid>
		<description>I&#039;ve installed like you show here, but when i post a note the timesheet shows like this:

Staff Member Total Time Spent 
Admin Admin -1 Day(s), -2 Hour(s), -60 Minute(s), -41 Second(s).</description>
		<content:encoded><![CDATA[<p>I&#8217;ve installed like you show here, but when i post a note the timesheet shows like this:</p>
<p>Staff Member Total Time Spent<br />
Admin Admin -1 Day(s), -2 Hour(s), -60 Minute(s), -41 Second(s).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anonymous</title>
		<link>http://www.openscriptsolution.com/2009/11/08/add-auto-staff-time-sheet-feature-into-osticket-v1-6-rc5/comment-page-1/#comment-1307</link>
		<dc:creator>anonymous</dc:creator>
		<pubDate>Fri, 18 Jun 2010 18:17:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=798#comment-1307</guid>
		<description>There&#039;s an error in your postNote and postResponse code. Since assigning a ticket to a staffmember also creates a note it will fail adding that note since $start_time is undefined ;)

So changing the function by adding =0 to the parameter sets the value to 0 if not set.
Then you need to add a check to make sure it doesn&#039;t start calculating when the value is set to 0 otherwise you&#039;d been working for a long time on one ticket :P

        $time_spent = 0;
        
        if ($start_time != 0) {
            $sql_duration=&#039;SELECT TIMESTAMPDIFF(SECOND,&quot;&#039;.$start_time.&#039;&quot;,NOW());&#039;;
            $result_duration = db_query($sql_duration);
            $row = mysql_fetch_row($result_duration);
            $time_spent = $row[0];
        }</description>
		<content:encoded><![CDATA[<p>There&#8217;s an error in your postNote and postResponse code. Since assigning a ticket to a staffmember also creates a note it will fail adding that note since $start_time is undefined <img src='http://www.openscriptsolution.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>So changing the function by adding =0 to the parameter sets the value to 0 if not set.<br />
Then you need to add a check to make sure it doesn&#8217;t start calculating when the value is set to 0 otherwise you&#8217;d been working for a long time on one ticket <img src='http://www.openscriptsolution.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>        $time_spent = 0;</p>
<p>        if ($start_time != 0) {<br />
            $sql_duration=&#8217;SELECT TIMESTAMPDIFF(SECOND,&#8221;&#8216;.$start_time.&#8217;&#8221;,NOW());&#8217;;<br />
            $result_duration = db_query($sql_duration);<br />
            $row = mysql_fetch_row($result_duration);<br />
            $time_spent = $row[0];<br />
        }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: raoul</title>
		<link>http://www.openscriptsolution.com/2009/11/08/add-auto-staff-time-sheet-feature-into-osticket-v1-6-rc5/comment-page-1/#comment-1216</link>
		<dc:creator>raoul</dc:creator>
		<pubDate>Mon, 17 May 2010 21:06:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=798#comment-1216</guid>
		<description>Do this work on  v1.6 ST ?</description>
		<content:encoded><![CDATA[<p>Do this work on  v1.6 ST ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Masino Sinaga</title>
		<link>http://www.openscriptsolution.com/2009/11/08/add-auto-staff-time-sheet-feature-into-osticket-v1-6-rc5/comment-page-1/#comment-1065</link>
		<dc:creator>Masino Sinaga</dc:creator>
		<pubDate>Thu, 04 Mar 2010 06:32:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=798#comment-1065</guid>
		<description>&lt;blockquote cite=&quot;#commentbody-1059&quot;&gt;
&lt;strong&gt;&lt;a href=&quot;#comment-1059&quot; rel=&quot;nofollow&quot;&gt;Chris &lt;/a&gt; :&lt;/strong&gt;&lt;p&gt;The problem is with the old modification if I worked 30 minutes on a problem I would simply type 30 into the time spent box. Now my 30 minutes is 30 seconds and this is throwing off reporting somewhat. Any suggestions?&lt;/p&gt;&lt;/blockquote&gt;

Simply convert your old tickets which have time_spent value in &quot;minutes&quot; become &quot;seconds&quot; value. For example (as in your case), an old ticket #321567 which has time_spent value = 30 minutes, then change that value become: 1800 seconds. 

Please note that you have to carefully doing this just in case if you have already the new tickets which generated by using &quot;minutes&quot; value.</description>
		<content:encoded><![CDATA[<blockquote cite="#commentbody-1059"><p>
<strong><a href="#comment-1059" rel="nofollow">Chris </a> :</strong>
<p>The problem is with the old modification if I worked 30 minutes on a problem I would simply type 30 into the time spent box. Now my 30 minutes is 30 seconds and this is throwing off reporting somewhat. Any suggestions?</p>
</blockquote>
<p>Simply convert your old tickets which have time_spent value in &#8220;minutes&#8221; become &#8220;seconds&#8221; value. For example (as in your case), an old ticket #321567 which has time_spent value = 30 minutes, then change that value become: 1800 seconds. </p>
<p>Please note that you have to carefully doing this just in case if you have already the new tickets which generated by using &#8220;minutes&#8221; value.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.openscriptsolution.com/2009/11/08/add-auto-staff-time-sheet-feature-into-osticket-v1-6-rc5/comment-page-1/#comment-1059</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 01 Mar 2010 19:41:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=798#comment-1059</guid>
		<description>Masino,

The OS Ticket Forum that set your creative genius ablaze to create this, very cool by the way, modification was used by yours truly.  Since upgrading to the stable release of version 1.6 I can not get that one to work.  I have now moved pre-production testing to another site and have implemented this modification - again I love it.

The problem is with the old modification if I worked 30 minutes on a problem I would simply type 30 into the time spent box.  Now my 30 minutes is 30 seconds and this is throwing off reporting somewhat.  Any suggestions?

Once I move this to production we have hours worth of work that needs to be credited to our staff.  I thank you for your time.</description>
		<content:encoded><![CDATA[<p>Masino,</p>
<p>The OS Ticket Forum that set your creative genius ablaze to create this, very cool by the way, modification was used by yours truly.  Since upgrading to the stable release of version 1.6 I can not get that one to work.  I have now moved pre-production testing to another site and have implemented this modification &#8211; again I love it.</p>
<p>The problem is with the old modification if I worked 30 minutes on a problem I would simply type 30 into the time spent box.  Now my 30 minutes is 30 seconds and this is throwing off reporting somewhat.  Any suggestions?</p>
<p>Once I move this to production we have hours worth of work that needs to be credited to our staff.  I thank you for your time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: akhrikas</title>
		<link>http://www.openscriptsolution.com/2009/11/08/add-auto-staff-time-sheet-feature-into-osticket-v1-6-rc5/comment-page-1/#comment-1025</link>
		<dc:creator>akhrikas</dc:creator>
		<pubDate>Tue, 02 Feb 2010 03:26:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=798#comment-1025</guid>
		<description>&lt;pre lang=&quot;php&quot; escaped=&quot;true&quot;&gt;
&lt;?php // MOD Auto Staff Time Sheet, by Masino Sinaga, November 7, 2009 $totaltimespent = Ticket::formatStaffTimeSheet($total_time); ?&gt;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #666666; font-style: italic;">// MOD Auto Staff Time Sheet, by Masino Sinaga, November 7, 2009 $totaltimespent = Ticket::formatStaffTimeSheet($total_time); ?&gt;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Masino Sinaga</title>
		<link>http://www.openscriptsolution.com/2009/11/08/add-auto-staff-time-sheet-feature-into-osticket-v1-6-rc5/comment-page-1/#comment-967</link>
		<dc:creator>Masino Sinaga</dc:creator>
		<pubDate>Sun, 03 Jan 2010 00:03:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=798#comment-967</guid>
		<description>&lt;a href=&quot;#comment-964&quot; rel=&quot;nofollow&quot;&gt;@lolita  &lt;/a&gt; 

Which lines of code do you mean? I have rechecked the whole original code and comparing to the original of osTicket v1.6 RC5, and the code are there.</description>
		<content:encoded><![CDATA[<p><a href="#comment-964" rel="nofollow">@lolita  </a> </p>
<p>Which lines of code do you mean? I have rechecked the whole original code and comparing to the original of osTicket v1.6 RC5, and the code are there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lolita</title>
		<link>http://www.openscriptsolution.com/2009/11/08/add-auto-staff-time-sheet-feature-into-osticket-v1-6-rc5/comment-page-1/#comment-964</link>
		<dc:creator>lolita</dc:creator>
		<pubDate>Thu, 31 Dec 2009 14:56:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=798#comment-964</guid>
		<description>i don&#039;t find the lines of code on 4.</description>
		<content:encoded><![CDATA[<p>i don&#8217;t find the lines of code on 4.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Masino Sinaga</title>
		<link>http://www.openscriptsolution.com/2009/11/08/add-auto-staff-time-sheet-feature-into-osticket-v1-6-rc5/comment-page-1/#comment-909</link>
		<dc:creator>Masino Sinaga</dc:creator>
		<pubDate>Mon, 07 Dec 2009 15:54:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=798#comment-909</guid>
		<description>&lt;a href=&quot;#comment-755&quot; rel=&quot;nofollow&quot;&gt;@David &lt;/a&gt; 

&lt;a href=&quot;http://www.openscriptsolution.com/2009/12/05/add-time-spent-at-the-bottom-of-each-staffs-page-of-osticket-v1-6-rc5/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;Add Time Spent at the Bottom of Each Staff’s Page of osTicket v1.6 RC5&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p><a href="#comment-755" rel="nofollow">@David </a> </p>
<p><a href="http://www.openscriptsolution.com/2009/12/05/add-time-spent-at-the-bottom-of-each-staffs-page-of-osticket-v1-6-rc5/" target="_blank" rel="nofollow">Add Time Spent at the Bottom of Each Staff’s Page of osTicket v1.6 RC5</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Masino Sinaga</title>
		<link>http://www.openscriptsolution.com/2009/11/08/add-auto-staff-time-sheet-feature-into-osticket-v1-6-rc5/comment-page-1/#comment-908</link>
		<dc:creator>Masino Sinaga</dc:creator>
		<pubDate>Mon, 07 Dec 2009 15:52:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=798#comment-908</guid>
		<description>Hi Dave, 

Good catch, anyway. Okay, done. I have fixed it.  :-)
Thanks for your kind feedback. Glad to know it is useful for you.
Have a nice day!</description>
		<content:encoded><![CDATA[<p>Hi Dave, </p>
<p>Good catch, anyway. Okay, done. I have fixed it.  <img src='http://www.openscriptsolution.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
Thanks for your kind feedback. Glad to know it is useful for you.<br />
Have a nice day!</p>
]]></content:encoded>
	</item>
</channel>
</rss>