<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Open Script Solution&#187; status</title>
	<atom:link href="http://www.openscriptsolution.com/tag/status/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.openscriptsolution.com</link>
	<description>... where solutions for script programming are found ...</description>
	<lastBuildDate>Tue, 31 Jan 2012 03:22:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to Change Color in Check Ticket Status Form in osTicket v1.6 RC5</title>
		<link>http://www.openscriptsolution.com/2009/11/16/how-to-change-color-in-check-ticket-status-form-in-osticket-v1-6-rc5/</link>
		<comments>http://www.openscriptsolution.com/2009/11/16/how-to-change-color-in-check-ticket-status-form-in-osticket-v1-6-rc5/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 08:27:21 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[osTicket]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[status]]></category>
		<category><![CDATA[ticket]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=863</guid>
		<description><![CDATA[If you want to change the color on your check ticket status form in osTicket v1.6 RC5, then you may implement this following modification by editing the \styles\colors.css and \include\client\login.inc.php files. This modification also will answer the question in osTicket Discussion Forum that asking about this modification. Open your \styles\colors.css file, and find this code: [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to change the color on your check ticket status form in osTicket v1.6 RC5, then you may implement this following modification by editing the <strong>\styles\colors.css</strong> and <strong>\include\client\login.inc.php</strong> files. This modification also will answer <a href="http://www.osticket.com/forums/showthread.php?t=3010" target="_blank">the question in osTicket Discussion Forum</a> that asking about this modification. <span id="more-863"></span></p>
<ol>
<li>
Open your <strong>\styles\colors.css</strong> file, and find this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>195
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">hr <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>after that line, please insert this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>197
198
199
200
201
202
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.labelloginclient</span> <span style="color: #00AA00;">&#123;</span>
 <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">blue</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.textloginclient</span> <span style="color: #00AA00;">&#123;</span>
 <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#999eee</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

</li>
<li>
Open your <strong>\include\client\login.inc.php</strong> file, and find this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>21
22
23
24
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">    &lt;table cellspacing=&quot;1&quot; cellpadding=&quot;5&quot; border=&quot;0&quot; bgcolor=&quot;#000000&quot; align=&quot;center&quot;&gt;
        &lt;tr bgcolor=&quot;#EEEEEE&quot;&gt; 
            &lt;td&gt;E-Mail:&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;lemail&quot; size=&quot;25&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?=</span><span style="color: #000088;">$e</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;&lt;/td&gt;
            &lt;td&gt;Ticket ID:&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;lticket&quot; size=&quot;10&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?=</span><span style="color: #000088;">$t</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;&lt;/td&gt;</pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>21
22
23
24
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">    &lt;table cellspacing=&quot;1&quot; cellpadding=&quot;5&quot; border=&quot;0&quot; bgcolor=&quot;#000000&quot; align=&quot;center&quot;&gt;
        &lt;tr bgcolor=&quot;#EEEEEE&quot;&gt; 
            &lt;td&gt;&lt;span class=&quot;labelloginclient&quot;&gt;E-Mail:&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;lemail&quot; size=&quot;25&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?=</span><span style="color: #000088;">$e</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; class=&quot;textloginclient&quot;&gt;&lt;/td&gt;
            &lt;td&gt;&lt;span class=&quot;labelloginclient&quot;&gt;Ticket ID:&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;lticket&quot; size=&quot;10&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?=</span><span style="color: #000088;">$t</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; class=&quot;textloginclient&quot;&gt;&lt;/td&gt;</pre></td></tr></table></div>

</li>
</ol>
<p>If you want to change the form background color, then you may change the &#8220;#EEEEEE&#8221; value above become the other value. Hope it helps.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2009%2F11%2F16%2Fhow-to-change-color-in-check-ticket-status-form-in-osticket-v1-6-rc5%2F&amp;title=How%20to%20Change%20Color%20in%20Check%20Ticket%20Status%20Form%20in%20osTicket%20v1.6%20RC5" id="wpa2a_2"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2009/11/16/how-to-change-color-in-check-ticket-status-form-in-osticket-v1-6-rc5/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Password Needed to Activate A Ticket in osTicket v1.6 RC5</title>
		<link>http://www.openscriptsolution.com/2009/10/20/password-needed-to-activate-a-ticket-in-osticket-v1-6-rc5/</link>
		<comments>http://www.openscriptsolution.com/2009/10/20/password-needed-to-activate-a-ticket-in-osticket-v1-6-rc5/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 02:45:15 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[osTicket]]></category>
		<category><![CDATA[activate]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[closed]]></category>
		<category><![CDATA[delay]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[notification]]></category>
		<category><![CDATA[open]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[panel]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[sandi]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[send]]></category>
		<category><![CDATA[status]]></category>
		<category><![CDATA[ticket]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=632</guid>
		<description><![CDATA[The aim of the title of this article is to provide the additional prerequisite that is password when client obviously wanted to open a new ticket in osTicket System v1.6 RC5. I made this modification by adding a new field named password in ost_ticket table. After client open a new ticket, then osTicket will generate [...]]]></description>
			<content:encoded><![CDATA[<p>The aim of the title of this article is to provide the additional prerequisite that is password when client obviously wanted to open a new ticket in osTicket System v1.6 RC5. I made this modification by adding a new field named <strong>password</strong> in <strong>ost_ticket</strong> table. After client open a new ticket, then osTicket will generate the new password and display a message that inform client about the password that has just been sent to the client&#8217;s email. The ticket will be set to &#8216;delay&#8217; status at this moment, instead of set to &#8216;open&#8217; status. This password then will be automatically being sent by osTicket to the client&#8217;s email including the URL contains of that password. Afterwards, client has to click on that URL link in order to activate the ticket (in this case, osTicket will change the ticket status from &#8216;delay&#8217; become &#8216;open&#8217;). Therefore, staff will be able to see that ticket on the ticket list via staff-panel. <span id="more-632"></span></p>
<ol>
<li>
First of all, you have to alter your <strong>ost_ticket</strong> table, by adding a new field named <strong>password</strong>, and also add a new enum with <strong>delay</strong> value, into the <strong>status</strong> field, besides the existing value: &#8216;open&#8217;, &#8216;closed&#8217;. Please also make sure that you have set &#8216;delay&#8217; as the default value. It means, each time client open a new ticket, the status is become &#8216;delay&#8217; instead of &#8216;open&#8217;.</p>
<p>You may use this SQL from your phpMyAdmin or another MySQL tools:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">ALTER TABLE ost_ticket 
ADD COLUMN `password` varchar(20) NULL;</pre></div></div>

</li>
<li>
Open your <strong>\include\client\thankyou.inc.php</strong> file, and find this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>17
18
19
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">    <span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>
     Thank you <span style="color: #b1b100;">for</span> contacting us<span style="color: #339933;">.&lt;</span>br<span style="color: #339933;">&gt;</span>
     A support ticket request has been created and a representative will be getting back to you shortly <span style="color: #b1b100;">if</span> necessary<span style="color: #339933;">.&lt;/</span>p<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>17
18
19
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">    <span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>
     Thank you <span style="color: #b1b100;">for</span> contacting us<span style="color: #339933;">.&lt;</span>br<span style="color: #339933;">&gt;</span>
     An email has been sent to your email contains of the URL with password to activate this ticket<span style="color: #339933;">.&lt;/</span>p<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

</li>
<li>
Open your <strong>\include\class.ticket.php</strong> file, and find this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1194
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">        <span style="color: #000088;">$extId</span><span style="color: #339933;">=</span>Ticket<span style="color: #339933;">::</span><span style="color: #004000;">genExtRandID</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>after that line of code, please insert this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1195
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">        <span style="color: #000088;">$password</span> <span style="color: #339933;">=</span> Ticket<span style="color: #339933;">::</span><span style="color: #004000;">generatePassword</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Find again this code, and make sure that code located inside the create() function:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1207
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">                <span style="color: #0000ff;">',source='</span><span style="color: #339933;">.</span>db_input<span style="color: #009900;">&#40;</span><span style="color: #000088;">$source</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1207
1208
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">                <span style="color: #0000ff;">',source='</span><span style="color: #339933;">.</span>db_input<span style="color: #009900;">&#40;</span><span style="color: #000088;">$source</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>
                <span style="color: #0000ff;">',password='</span><span style="color: #339933;">.</span>db_input<span style="color: #009900;">&#40;</span><span style="color: #000088;">$password</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #666666; font-style: italic;">// MOD Open Ticket With Password, Added by Masino Sinaga, Oct 19, 2009</span></pre></td></tr></table></div>

<p>Find again this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1336
1337
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">   <span style="color: #000000; font-weight: bold;">function</span> generatePassword<span style="color: #009900;">&#40;</span><span style="color: #000088;">$length</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span>
   <span style="color: #009900;">&#123;</span>
     <span style="color: #000088;">$password</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
     <span style="color: #000088;">$chars</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890&quot;</span><span style="color: #339933;">;</span>
     <span style="color: #990000;">srand</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>double<span style="color: #009900;">&#41;</span><span style="color: #990000;">microtime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">1000000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span><span style="color: #000088;">$length</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
     <span style="color: #009900;">&#123;</span>
       <span style="color: #000088;">$password</span> <span style="color: #339933;">.=</span> <span style="color: #990000;">substr</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$chars</span><span style="color: #339933;">,</span> <span style="color: #990000;">rand</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">%</span> <span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$chars</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #009900;">&#125;</span>
     <span style="color: #b1b100;">return</span> <span style="color: #000088;">$password</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
&nbsp;
   <span style="color: #000000; font-weight: bold;">function</span> updateTicketStatus<span style="color: #009900;">&#40;</span><span style="color: #000088;">$password</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
     <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>db_query<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'UPDATE '</span><span style="color: #339933;">.</span>TICKET_TABLE<span style="color: #339933;">.</span><span style="color: #0000ff;">' SET status=\'open\', password=\'\' WHERE password='</span><span style="color: #339933;">.</span>db_input<span style="color: #009900;">&#40;</span><span style="color: #000088;">$password</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> db_affected_rows<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
       <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
     <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
     	 <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
     <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

</li>
<li>
Open your <strong>open.php</strong> file, and find this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>20
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$errors</span><span style="color: #339933;">=</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>after that line, please insert this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>21
22
23
24
25
26
27
28
29
30
31
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'password'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$password</span><span style="color: #339933;">=</span><span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'password'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>Ticket<span style="color: #339933;">::</span><span style="color: #004000;">updateTicketStatus</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$password</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">require</span><span style="color: #009900;">&#40;</span>CLIENTINC_DIR<span style="color: #339933;">.</span><span style="color: #0000ff;">'header.inc.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Thank you for activating your ticket. We will response it as soon as possible.'</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">require</span><span style="color: #009900;">&#40;</span>CLIENTINC_DIR<span style="color: #339933;">.</span><span style="color: #0000ff;">'footer.inc.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #990000;">exit</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$errors</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'err'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'Incorrect password or ticket status has been activated.'</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Find again this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>42
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">        <span style="color: #000088;">$inc</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'thankyou.inc.php'</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>after that line, please insert this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">        <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$cfg</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$username</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$helpdesk_email</span><span style="color: #339933;">=</span><span style="color: #000088;">$cfg</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getDefaultEmail</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$helpdesk_url</span><span style="color: #339933;">=</span><span style="color: #000088;">$cfg</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getUrl</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$helpdesk_title</span><span style="color: #339933;">=</span><span style="color: #000088;">$cfg</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getTitle</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$helpdesk_email</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
          <span style="color: #000088;">$sqle</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'SELECT email, password FROM '</span><span style="color: #339933;">.</span>TICKET_TABLE<span style="color: #339933;">.</span>
                <span style="color: #0000ff;">' WHERE ticketID='</span><span style="color: #339933;">.</span>db_input<span style="color: #009900;">&#40;</span><span style="color: #000088;">$ticket</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getExtId</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
          <span style="color: #000088;">$respe</span><span style="color: #339933;">=</span>db_query<span style="color: #009900;">&#40;</span><span style="color: #000088;">$sqle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
          <span style="color: #000088;">$countRec</span> <span style="color: #339933;">=</span> db_num_rows<span style="color: #009900;">&#40;</span><span style="color: #000088;">$respe</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
          <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span> <span style="color: #339933;">=</span> db_fetch_array<span style="color: #009900;">&#40;</span><span style="color: #000088;">$respe</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000088;">$password</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'password'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
          <span style="color: #009900;">&#125;</span>	
          <span style="color: #000088;">$helpdesk_email</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">send</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'email'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Password for Your Ticket #'</span><span style="color: #339933;">.</span><span style="color: #000088;">$ticket</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getExtId</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">.</span><span style="color: #000088;">$username</span><span style="color: #339933;">.</span><span style="color: #0000ff;">', You are receiving this notification because you have (or someone pretending to be you has) requested a new ticket on &quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$helpdesk_title</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;. If you did not request this notification then please ignore it, if you keep receiving it please contact your Administrator. Otherwise, in order to activate your new ticket so that we will receive it, please click on this link: '</span><span style="color: #339933;">.</span><span style="color: #000088;">$helpdesk_url</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'open.php?password='</span><span style="color: #339933;">.</span><span style="color: #000088;">$password</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

</li>
</ol>
<p>That&#8217;s all. Now each time client open a new ticket, then osTicket will send the password including the URL link to the client&#8217;s email. After the URL link clicked, then the ticket will be activated, and staff will be able to see this ticket on the list. </p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2009%2F10%2F20%2Fpassword-needed-to-activate-a-ticket-in-osticket-v1-6-rc5%2F&amp;title=Password%20Needed%20to%20Activate%20A%20Ticket%20in%20osTicket%20v1.6%20RC5" id="wpa2a_4"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2009/10/20/password-needed-to-activate-a-ticket-in-osticket-v1-6-rc5/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Blank Page After Check Ticket Status from Index osTicket v1.6 RC5</title>
		<link>http://www.openscriptsolution.com/2009/10/18/blank-page-after-check-ticket-status-from-index-osticket-v1-6-rc5/</link>
		<comments>http://www.openscriptsolution.com/2009/10/18/blank-page-after-check-ticket-status-from-index-osticket-v1-6-rc5/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 16:10:03 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[osTicket]]></category>
		<category><![CDATA[blank]]></category>
		<category><![CDATA[check]]></category>
		<category><![CDATA[index]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[status]]></category>
		<category><![CDATA[ticket]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=616</guid>
		<description><![CDATA[In osTicket v1.6 RC5, after you check the ticket status from index page, then you will get the blank page afterwards. This condition does not happen when you check the ticket status from the Ticket Status page by clicking on that menu link. Then, after comparing with osTicket v1.6 RC4, and in order to fix [...]]]></description>
			<content:encoded><![CDATA[<p>In osTicket v1.6 RC5, after you check the ticket status from index page, then you will get the blank page afterwards. This condition does not happen when you check the ticket status from the <strong>Ticket Status</strong> page by clicking on that menu link. Then, after comparing with osTicket v1.6 RC4, and in order to fix this problem, simply follow this little modification on <strong>index.php</strong> file. <span id="more-616"></span></p>
<p>Open your <strong>index.php</strong> file that located on your osTicket root directory, and find this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>45
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">  <span style="color: #339933;">&lt;</span>form <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;status_form&quot;</span> action<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;tickets.php&quot;</span> method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post&quot;</span><span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>45
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">  <span style="color: #339933;">&lt;</span>form <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;status_form&quot;</span> action<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;login.php&quot;</span> method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post&quot;</span><span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>That&#8217;s all. Now everything is gonna be all right.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2009%2F10%2F18%2Fblank-page-after-check-ticket-status-from-index-osticket-v1-6-rc5%2F&amp;title=Blank%20Page%20After%20Check%20Ticket%20Status%20from%20Index%20osTicket%20v1.6%20RC5" id="wpa2a_6"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2009/10/18/blank-page-after-check-ticket-status-from-index-osticket-v1-6-rc5/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Display The Forgot Ticket Number List Including The Closed Status in osTicket v1.6 RC5</title>
		<link>http://www.openscriptsolution.com/2009/10/06/display-the-forgot-ticket-number-list-including-the-closed-status-in-osticket-v1-6-rc5/</link>
		<comments>http://www.openscriptsolution.com/2009/10/06/display-the-forgot-ticket-number-list-including-the-closed-status-in-osticket-v1-6-rc5/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 12:25:25 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[osTicket]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[closed]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[number]]></category>
		<category><![CDATA[open]]></category>
		<category><![CDATA[panel]]></category>
		<category><![CDATA[status]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[ticket]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=504</guid>
		<description><![CDATA[For those of you who have implemented the modification I made for osTicket through this article: Add Forgot Ticket Number Feature into osTicket System v1.6 RC5 and need to display the forgot ticket number list including the ticket which have closed status, I made a modification regarding this. Please make sure that you have implemented [...]]]></description>
			<content:encoded><![CDATA[<p>For those of you who have implemented the modification I made for osTicket through this article: <a href="http://www.openscriptsolution.com/2009/09/12/add-forgot-ticket-number-feature-into-osticket-system-v1-6-rc5/" target="_blank">Add Forgot Ticket Number Feature into osTicket System v1.6 RC5</a> and need to display the forgot ticket number list including the ticket which have closed status, I made a modification regarding this. Please make sure that you have implemented that modification on that link above before doing this modification. <span id="more-504"></span></p>
<ol>
<li>
Open <strong>forgotticket.php</strong> file, and find this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">  <span style="color: #000088;">$sqle</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'SELECT email, ticketID, name FROM '</span><span style="color: #339933;">.</span>TICKET_TABLE<span style="color: #339933;">.</span>
      <span style="color: #0000ff;">' WHERE email='</span><span style="color: #339933;">.</span>db_input<span style="color: #009900;">&#40;</span><span style="color: #000088;">$femail</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' AND status = &quot;open&quot;'</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$respe</span><span style="color: #339933;">=</span>db_query<span style="color: #009900;">&#40;</span><span style="color: #000088;">$sqle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$ticketNumber</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$countRec</span> <span style="color: #339933;">=</span> db_num_rows<span style="color: #009900;">&#40;</span><span style="color: #000088;">$respe</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$countRec</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$nameForgot</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">list</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$email</span><span style="color: #339933;">,</span><span style="color: #000088;">$ticketID</span><span style="color: #339933;">,</span><span style="color: #000088;">$name</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">=</span> db_fetch_row<span style="color: #009900;">&#40;</span><span style="color: #000088;">$respe</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">==</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	  <span style="color: #000088;">$ticketNumber</span> <span style="color: #339933;">.=</span> <span style="color: #000088;">$ticketID</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
          <span style="color: #000088;">$ticketNumber</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;, &quot;</span><span style="color: #339933;">.</span> <span style="color: #000088;">$ticketID</span><span style="color: #339933;">;</span>	
      <span style="color: #009900;">&#125;</span>
      <span style="color: #000088;">$nameForgot</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$name</span><span style="color: #339933;">;</span>
      <span style="color: #000088;">$i</span><span style="color: #339933;">++;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000088;">$tplId</span><span style="color: #339933;">=</span><span style="color: #000088;">$cfg</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getDefaultTemplateId</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000088;">$sql</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'SELECT forgot_ticket_subj,forgot_ticket_body FROM '</span><span style="color: #339933;">.</span>EMAIL_TEMPLATE_TABLE<span style="color: #339933;">.</span>
          <span style="color: #0000ff;">' WHERE cfg_id='</span><span style="color: #339933;">.</span>db_input<span style="color: #009900;">&#40;</span><span style="color: #000088;">$cfg</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getId</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' AND tpl_id='</span><span style="color: #339933;">.</span>db_input<span style="color: #009900;">&#40;</span><span style="color: #000088;">$tplId</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$resp</span><span style="color: #339933;">=</span>db_query<span style="color: #009900;">&#40;</span><span style="color: #000088;">$sql</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>db_num_rows<span style="color: #009900;">&#40;</span><span style="color: #000088;">$resp</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #990000;">list</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$subj</span><span style="color: #339933;">,</span><span style="color: #000088;">$body</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">=</span>db_fetch_row<span style="color: #009900;">&#40;</span><span style="color: #000088;">$resp</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$body</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;%name&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$nameForgot</span><span style="color: #339933;">,</span> <span style="color: #000088;">$body</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #000088;">$body</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #009933; font-weight: bold;">%e</span>mail&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$email</span><span style="color: #339933;">,</span> <span style="color: #000088;">$body</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #000088;">$body</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;%ticketlist&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$ticketNumber</span><span style="color: #339933;">,</span> <span style="color: #000088;">$body</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">  <span style="color: #000088;">$sqle</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'SELECT email, ticketID, name, status FROM '</span><span style="color: #339933;">.</span>TICKET_TABLE<span style="color: #339933;">.</span>
      <span style="color: #0000ff;">' WHERE email='</span><span style="color: #339933;">.</span>db_input<span style="color: #009900;">&#40;</span><span style="color: #000088;">$femail</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$respe</span><span style="color: #339933;">=</span>db_query<span style="color: #009900;">&#40;</span><span style="color: #000088;">$sqle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$ticketNumber</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$countRec</span> <span style="color: #339933;">=</span> db_num_rows<span style="color: #009900;">&#40;</span><span style="color: #000088;">$respe</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$countRec</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$j</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$nameForgot</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">list</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$email</span><span style="color: #339933;">,</span><span style="color: #000088;">$ticketID</span><span style="color: #339933;">,</span><span style="color: #000088;">$name</span><span style="color: #339933;">,</span><span style="color: #000088;">$status</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">=</span> db_fetch_row<span style="color: #009900;">&#40;</span><span style="color: #000088;">$respe</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$status</span><span style="color: #339933;">==</span><span style="color: #0000ff;">'open'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">==</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
          <span style="color: #000088;">$ticketNumber</span> <span style="color: #339933;">.=</span> <span style="color: #000088;">$ticketID</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
          <span style="color: #000088;">$ticketNumber</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;, &quot;</span><span style="color: #339933;">.</span> <span style="color: #000088;">$ticketID</span><span style="color: #339933;">;</span>	
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000088;">$i</span><span style="color: #339933;">++;</span>
      <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">// closed status</span>
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$j</span><span style="color: #339933;">==</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
          <span style="color: #000088;">$ticketClosed</span> <span style="color: #339933;">.=</span> <span style="color: #000088;">$ticketID</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
          <span style="color: #000088;">$ticketClosed</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;, &quot;</span><span style="color: #339933;">.</span> <span style="color: #000088;">$ticketID</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000088;">$j</span><span style="color: #339933;">++;</span>
      <span style="color: #009900;">&#125;</span>
      <span style="color: #000088;">$nameForgot</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$name</span><span style="color: #339933;">;</span>  	  
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000088;">$tplId</span><span style="color: #339933;">=</span><span style="color: #000088;">$cfg</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getDefaultTemplateId</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000088;">$sql</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'SELECT forgot_ticket_subj,forgot_ticket_body FROM '</span><span style="color: #339933;">.</span>EMAIL_TEMPLATE_TABLE<span style="color: #339933;">.</span>
         <span style="color: #0000ff;">' WHERE cfg_id='</span><span style="color: #339933;">.</span>db_input<span style="color: #009900;">&#40;</span><span style="color: #000088;">$cfg</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getId</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' AND tpl_id='</span><span style="color: #339933;">.</span>db_input<span style="color: #009900;">&#40;</span><span style="color: #000088;">$tplId</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$resp</span><span style="color: #339933;">=</span>db_query<span style="color: #009900;">&#40;</span><span style="color: #000088;">$sql</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>db_num_rows<span style="color: #009900;">&#40;</span><span style="color: #000088;">$resp</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #990000;">list</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$subj</span><span style="color: #339933;">,</span><span style="color: #000088;">$body</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">=</span>db_fetch_row<span style="color: #009900;">&#40;</span><span style="color: #000088;">$resp</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
      <span style="color: #000088;">$body</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;%name&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$nameForgot</span><span style="color: #339933;">,</span> <span style="color: #000088;">$body</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #000088;">$body</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #009933; font-weight: bold;">%e</span>mail&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$email</span><span style="color: #339933;">,</span> <span style="color: #000088;">$body</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #000088;">$body</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;%ticketlist&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$ticketNumber</span><span style="color: #339933;">,</span> <span style="color: #000088;">$body</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #000088;">$body</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;%ticketclosed&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$ticketClosed</span><span style="color: #339933;">,</span> <span style="color: #000088;">$body</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

</li>
<li>
Adjust the email template from your admin panel menu: <strong>Emails -> Templates</strong>:</p>
<p>from:</p>
<blockquote><p>Subject = Forgot Ticket Number<br />
Message Body = %name,</p>
<p>This is the list of your tickets:<br />
%ticketlist</p>
<p>Admin</p></blockquote>
<p>become:</p>
<blockquote><p>Subject = Forgot Ticket Number<br />
Message Body = %name,</p>
<p>This is the list of your opened tickets:<br />
%ticketlist</p>
<p>This is the list of your closed tickets:<br />
%ticketclosed</p>
<p>Admin</p></blockquote>
</li>
</ol>
<p>Hopefully this is helpful.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2009%2F10%2F06%2Fdisplay-the-forgot-ticket-number-list-including-the-closed-status-in-osticket-v1-6-rc5%2F&amp;title=Display%20The%20Forgot%20Ticket%20Number%20List%20Including%20The%20Closed%20Status%20in%20osTicket%20v1.6%20RC5" id="wpa2a_8"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2009/10/06/display-the-forgot-ticket-number-list-including-the-closed-status-in-osticket-v1-6-rc5/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>
