<?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; link</title>
	<atom:link href="http://www.openscriptsolution.com/tag/link/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.openscriptsolution.com</link>
	<description>... where solutions for script programming are found ...</description>
	<lastBuildDate>Thu, 29 Jul 2010 07:48:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to Navigate Posts Only in The Current Category using Smarter Navigation Plugin and Atahualpa Theme of WordPress</title>
		<link>http://www.openscriptsolution.com/2010/01/16/how-to-navigate-posts-only-in-the-current-category-using-smarter-navigation-plugin-and-atahualpa-theme-of-wordpress/</link>
		<comments>http://www.openscriptsolution.com/2010/01/16/how-to-navigate-posts-only-in-the-current-category-using-smarter-navigation-plugin-and-atahualpa-theme-of-wordpress/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 09:14:58 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Atahualpa]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[next]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[previous]]></category>
		<category><![CDATA[smart]]></category>
		<category><![CDATA[Smarter Navigation]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=1095</guid>
		<description><![CDATA[If you want to change the existing navigation in Atahualpa Theme of your WordPress website that navigate all post based on the order of the general Post ID no matter which category you choose, become the smarter technique which will navigate based on the current category that selected by user, then this following modification is [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to change the existing navigation in Atahualpa Theme of your WordPress website that navigate all post based on the order of the general Post ID no matter which category you choose, become the smarter technique which will navigate based on the current category that selected by user, then this following modification is for you! As we know, Atahualpa theme has provided the previous/next link when we display the certain post in the top of the post page. Unfortunately, by default, when we choose the certain category, then we navigate through that navigation post link, it will avoid the selected category. Now, after you implement this following modification, you will be able to navigate only through the posts that located in the certain category that you have choosen. Isn&#8217;t smarter, huh? <span id="more-1095"></span></p>
<ol>
<li>
Download the <a href="http://wordpress.org/extend/plugins/smarter-navigation/">Smarter Navigation</a> plugin.
</li>
<li>
Upload this plugin to your <strong>/wp-content/plugins/</strong> and then extract it.
</li>
<li>
Activate this plugin from your wp-admin.
</li>
<li>
Open your <strong>/wp-content/themes/{youratahualpaname}/functions/bfa_next_previous_links.php</strong> file, and find this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>137
138
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">		previous_post_link<span style="color: #009900;">&#40;</span><span style="color: #000088;">$bfa_ata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'single_next_prev_older'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> 
		next_post_link<span style="color: #009900;">&#40;</span><span style="color: #000088;">$bfa_ata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'single_next_prev_newer'</span><span style="color: #009900;">&#93;</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>137
138
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">		previous_post_smart<span style="color: #009900;">&#40;</span><span style="color: #000088;">$bfa_ata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'single_next_prev_older'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">// previous_post_link replaced by previous_post_smart in order to navigate only in the current category using Smarter Navigation plugin, modified by Masino Sinaga, Januari 16, 2010</span>
		next_post_smart<span style="color: #009900;">&#40;</span><span style="color: #000088;">$bfa_ata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'single_next_prev_newer'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #666666; font-style: italic;">// next_post_link replaced by next_post_smart in order to navigate only in the current category using Smarter Navigation plugin, modified by Masino Sinaga, Januari 16, 2010</span></pre></td></tr></table></div>

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

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>147
148
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">		next_post_link<span style="color: #009900;">&#40;</span><span style="color: #000088;">$bfa_ata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'single_next_prev_newer'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> 
		previous_post_link<span style="color: #009900;">&#40;</span><span style="color: #000088;">$bfa_ata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'single_next_prev_older'</span><span style="color: #009900;">&#93;</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>147
148
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">		next_post_smart<span style="color: #009900;">&#40;</span><span style="color: #000088;">$bfa_ata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'single_next_prev_newer'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">// next_post_link replaced by next_post_smart in order to navigate only in the current category using Smarter Navigation plugin, modified by Masino Sinaga, Januari 16, 2010</span>
		previous_post_smart<span style="color: #009900;">&#40;</span><span style="color: #000088;">$bfa_ata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'single_next_prev_older'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// previous_post_link replaced by previous_post_smart in order to navigate only in the current category using Smarter Navigation plugin, modified by Masino Sinaga, Januari 16, 2010</span></pre></td></tr></table></div>

</li>
</ol>
<p>The conclusion: All you need to do is simply replace the <strong>link</strong> with <strong>smart</strong> in the <strong>previous_post_link</strong> and <strong>next_post_link</strong> function call in <strong>bfa_next_previous_links.php</strong> file belongs to <strong>Atahualpa</strong> theme. Afterwards, you can navigate through the posts only that located in the certain category you chose.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2010/01/16/how-to-navigate-posts-only-in-the-current-category-using-smarter-navigation-plugin-and-atahualpa-theme-of-wordpress/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 addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></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>10</slash:comments>
		</item>
		<item>
		<title>Add &#8220;Read More&#8221; Link in The Post</title>
		<link>http://www.openscriptsolution.com/2009/08/24/add-read-more-link-in-the-post/</link>
		<comments>http://www.openscriptsolution.com/2009/08/24/add-read-more-link-in-the-post/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 04:01:12 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[baca]]></category>
		<category><![CDATA[lanjutannya]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[more]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[read]]></category>
		<category><![CDATA[selengkapnya]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=66</guid>
		<description><![CDATA[If your post in WordPress contains of so many words or sentences or even paragraphs, and you want to display only the first paragraph or even the certain first amount of characters, plus you want to display &#8220;Read More&#8230;&#8221; link, what will you do? Honestly, I have no idea at all how to implement this, [...]]]></description>
			<content:encoded><![CDATA[<p>If your post in WordPress contains of so many words or sentences or even paragraphs, and you want to display only the first paragraph or even the certain first amount of characters, plus you want to display &#8220;<strong>Read More&#8230;</strong>&#8221; link, what will you do? Honestly, I have no idea at all how to implement this, until I found the information regarding this from <a href="http://codex.wordpress.org/Customizing_the_Read_More" target="_blank">http://codex.wordpress.org/Customizing_the_Read_More</a>. Thanks to WordPress has provided the easiest feature for this. <span id="more-66"></span></p>
<p>There are some methods that you can use to implement this. But, I think the easiest way is to add this tag:</p>
<pre>&lt;!--more--&gt;</pre>
<p>after the last word or character you want to display.</p>
<p>Let&#8217;s say you have these 3 paragraphs below, and you want to display the &#8220;<strong>Read More&#8230;</strong>&#8221; link after the first paragraph:</p>
<blockquote><p><em>Bahwa sesungguhnya kemerdekaan itu ialah hak segala bangsa. Oleh karena itu maka penjajahan di atas dunia harus dihapuskan karena tidak sesuai dengan perikemanusiaan dan perikeadilan.</p>
<p>Dan perjuangan pergerakan kemerdekaan Indonesia telah sampailah kepada saat yang berbahagia, dengan selamat sentausa, mengantarkan rakyat Indonesia ke depan pintu gerbang kemerdekaan Indonesia, yang merdeka, bersatu, berdaulat, adil dan makmur.</p>
<p>Atas berkat rakhmat Tuhan yang Mahakuasa, dan dengan didorong oleh keinginan luhur, maka rakyat Indonesia dengan ini menyatakan kemerdekaannya. Kemudian daripada itu, untuk membentuk pemerintahan negara Indonesia yang melindungi segenap bangsa Indonesia, dan seterusnya.</em></p></blockquote>
<p>then you just simply add the</p>
<pre>&lt;!--more--&gt;</pre>
<p>after the <strong>perikeadilan</strong> word while you edit the post in <strong>HTML</strong> mode, so it is something like this:</p>
<blockquote><p><em>Bahwa sesungguhnya kemerdekaan itu ialah hak segala bangsa. Oleh karena itu maka penjajahan di atas dunia harus dihapuskan karena tidak sesuai dengan perikemanusiaan dan perikeadilan.</em></p>
<pre>&lt;!--more--&gt;</pre>
<p><em>Dan perjuangan pergerakan kemerdekaan Indonesia telah sampailah kepada saat yang berbahagia, dengan selamat sentausa, mengantarkan rakyat Indonesia ke depan pintu gerbang kemerdekaan Indonesia, yang merdeka, bersatu, berdaulat, adil dan makmur.</p>
<p>Atas berkat rakhmat Tuhan yang Mahakuasa, dan dengan didorong oleh keinginan luhur, maka rakyat Indonesia dengan ini menyatakan kemerdekaannya. Kemudian daripada itu, untuk membentuk pemerintahan negara Indonesia yang melindungi segenap bangsa Indonesia, dan seterusnya.</em></p></blockquote>
<p>By using this technique, then only the first paragraph you specified above will be displayed in the front page of your website.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2009/08/24/add-read-more-link-in-the-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
