<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Office-it.orGOffice-it.orG</title>
	
	<link>http://www.office-it.org</link>
	<description>All about Web and Desktop Application</description>
	<pubDate>Sun, 21 Dec 2008 05:48:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/office-it" type="application/rss+xml" /><feedburner:emailServiceId>1753047</feedburner:emailServiceId><feedburner:feedburnerHostname>http://www.feedburner.com</feedburner:feedburnerHostname><item>
		<title>20+ Useful WordPress Code</title>
		<link>http://feeds.feedburner.com/~r/office-it/~3/491156145/</link>
		<comments>http://www.office-it.org/20-useful-wordpress-code/#comments</comments>
		<pubDate>Sun, 21 Dec 2008 05:45:36 +0000</pubDate>
		<dc:creator>Hii Hiong Ching</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[code]]></category>

		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.office-it.org/?p=215</guid>
		<description><![CDATA[Here are some collection of WordPress Code for theme designer, or just enjoy customizing your existing WordPress theme. This should be an easy reference as I consolidate them all into one post.
Recent Posts Display

&#60;?php query_posts&#40;'showposts=5'&#41;; ?&#62;
&#60;ul&#62;
&#60;?php while &#40;have_posts&#40;&#41;&#41; : the_post&#40;&#41;; ?&#62;
&#60;li&#62;&#60;a href=&#34;&#60;?php the_permalink&#40;&#41; ?&#62;&#34;&#62;&#60;?php the_title&#40;&#41;; ?&#62;&#60;/a&#62;&#60;/li&#62;
&#60;?php endwhile;?&#62;
&#60;/ul&#62;


Recently Updated Posts/Pages Display

&#60;?php
$today = current_time&#40;'mysql', 1&#41;;
$howMany = 5; [...]]]></description>
			<content:encoded><![CDATA[<p>Here are some collection of WordPress Code for theme designer, or just enjoy customizing your existing WordPress theme. This should be an easy reference as I consolidate them all into one post.</p>
<h3>Recent Posts Display</h3>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> query_posts<span style="color: #009900;">&#40;</span><span style="">'showposts=5'</span><span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;ul&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;li&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/li&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span>;?<span style="color: #339933;">&gt;</span>
&lt;/ul&gt;</pre></div></div>

<p><span id="more-215"></span><br />
<h3>Recently Updated Posts/Pages Display</h3>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$today</span> <span style="color: #339933;">=</span> current_time<span style="color: #009900;">&#40;</span><span style="">'mysql'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>;
<span style="color: #000088;">$howMany</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">5</span>; <span style="color: #666666; font-style: italic;">//Number of posts you want to display</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$recentposts</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get_results</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT ID, post_title FROM $wpdb-&gt;posts WHERE post_status = 'publish' AND post_modified_gmt &lt; '$today' ORDER BY post_modified_gmt DESC LIMIT $howMany&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;h2&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Recent Updates&quot;</span><span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/h2&gt;
&lt;ul&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$recentposts</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$post</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;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_title</span> <span style="color: #339933;">==</span> <span style="">''</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_title</span> <span style="color: #339933;">=</span> <span style="color: #990000;">sprintf</span><span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="">'Post #%s'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #009900;">&#41;</span>;
<span style="color: #990000;">echo</span> <span style="color: #0000ff;">&quot;&lt;li&gt;&lt;a href='&quot;</span><span style="color: #339933;">.</span>get_permalink<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;'&gt;&quot;</span>;
the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
<span style="color: #990000;">echo</span> <span style="">'&lt;/a&gt;&lt;/li&gt;'</span>;
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h3>Recently Comments Display</h3>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #990000;">global</span> <span style="color: #000088;">$wpdb</span>;
<span style="color: #000088;">$sql</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;SELECT DISTINCT ID, post_title, post_password, comment_ID,
comment_post_ID, comment_author, comment_date_gmt, comment_approved,
comment_type,comment_author_url,
SUBSTRING(comment_content,1,30) AS com_excerpt
FROM $wpdb-&gt;comments
LEFT OUTER JOIN $wpdb-&gt;posts ON ($wpdb-&gt;comments.comment_post_ID =
$wpdb-&gt;posts.ID)
WHERE comment_approved = '1' AND comment_type = '' AND
post_password = ''
ORDER BY comment_date_gmt DESC
LIMIT 10&quot;</span>;
<span style="color: #000088;">$comments</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get_results</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sql</span><span style="color: #009900;">&#41;</span>;
<span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$pre_HTML</span>;
<span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&lt;ul&gt;&quot;</span>;
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$comments</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$comment</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&lt;li&gt;&quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">strip_tags</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_author</span><span style="color: #009900;">&#41;</span>
<span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;:&quot;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;&lt;a href=<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span> <span style="color: #339933;">.</span> get_permalink<span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span>
<span style="color: #0000ff;">&quot;#comment-&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_ID</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span> title=<span style="color: #000099; font-weight: bold;">\&quot;</span>on &quot;</span> <span style="color: #339933;">.</span>
<span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_title</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;&quot;</span> <span style="color: #339933;">.</span> <span style="color: #990000;">strip_tags</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">com_excerpt</span><span style="color: #009900;">&#41;</span>
<span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;/a&gt;&lt;/li&gt;&quot;</span>;
<span style="color: #009900;">&#125;</span>
<span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&lt;/ul&gt;&quot;</span>;
<span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #000088;">$post_HTML</span>;
<span style="color: #990000;">echo</span> <span style="color: #000088;">$output</span>;?<span style="color: #339933;">&gt;</span></pre></div></div>

<h3>Top Comments Display</h3>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get_results</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT comment_count,ID,post_title FROM $wpdb-&gt;posts ORDER BY comment_count DESC LIMIT 0 , 10&quot;</span><span style="color: #009900;">&#41;</span>;
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$topten</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$postid</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$topten</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span>;
<span style="color: #000088;">$title</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$topten</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_title</span>;
<span style="color: #000088;">$commentcount</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$topten</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_count</span>;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$commentcount</span> <span style="color: #339933;">!=</span> <span style="color:#800080;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;li&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #990000;">echo</span> get_permalink<span style="color: #009900;">&#40;</span><span style="color: #000088;">$postid</span><span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; title=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #990000;">echo</span> <span style="color: #000088;">$title</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #990000;">echo</span> <span style="color: #000088;">$title</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/li&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h3>Categories Display</h3>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;">&lt;h2&gt;Categories&lt;/h2&gt;
&lt;ul&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_cats<span style="color: #009900;">&#40;</span><span style="">'sort_column=name'</span><span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;</pre></div></div>

<h3>Categories in Drop-Down Box Display</h3>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;">&lt;form action=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="">'url'</span><span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>/&quot; method=&quot;get&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$select</span> <span style="color: #339933;">=</span> wp_dropdown_categories<span style="color: #009900;">&#40;</span><span style="">'show_option_none=Select category&amp;show_count=1&amp;orderby=name&amp;echo=0'</span><span style="color: #009900;">&#41;</span>;
<span style="color: #000088;">$select</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#&lt;select([^&gt;]*)&gt;#”, “&lt;select$1 onchange=’return this.form.submit()’&gt;”, $select); echo $select; ?&gt;</span>
&lt;noscript&gt;&lt;input type=”submit” value=”View” /&gt;&lt;/noscript&gt;
&lt;/form&gt;</pre></div></div>

<h3>Archives Display</h3>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;">&lt;h2&gt;Archives&lt;/h2&gt;
&lt;ul&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_get_archives<span style="color: #009900;">&#40;</span><span style="">'type=monthly'</span><span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;</pre></div></div>

<h3>Archives in a Drop-Down Box Display</h3>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;">&lt;select name=\&quot;archive-dropdown\&quot; onChange='document.location.href=this.options[this.selectedIndex].value;’&gt;
&lt;option value=\”\”&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #990000;">echo</span> attribute_escape<span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span>’Select Month’<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/option&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_get_archives<span style="color: #009900;">&#40;</span>’type<span style="color: #339933;">=</span>monthly<span style="color: #339933;">&amp;</span>format<span style="color: #339933;">=</span>option<span style="color: #339933;">&amp;</span>show_post_count<span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span>′<span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span> &lt;/select&gt;</pre></div></div>

<h3>Display a Pages Menu in your Sidebar</h3>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;">&lt;h2&gt;Pages&lt;/h2&gt;
&lt;ul&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_pages<span style="color: #009900;">&#40;</span><span style="">'title_li='</span><span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;</pre></div></div>

<h3>Gravatars (WordPress 2.5 above Only) Display</h3>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span>’get_avatar’<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #990000;">echo</span> get_avatar<span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment</span><span style="color: #339933;">,</span> ‘<span style="color: #cc66cc;">50</span>?<span style="color: #009900;">&#41;</span>;<span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h3>Blogroll Links Display</h3>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;">&lt;ul&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_links_list<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;</pre></div></div>

<h3>Admin Section Display</h3>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;">&lt;ul&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_register<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;li&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_loginout<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.wordpress.org/&quot;&gt;WordPress&lt;/a&gt;&lt;/li&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_meta<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;li&gt;&lt;a href=&quot;http://validator.w3.org/check?uri=referer&quot;&gt;XHTML&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</pre></div></div>

<h3>Display a Pages SubMenu in your Sidebar</h3>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span><span style="color: #000088;">$children</span> <span style="color: #339933;">=</span> wp_list_pages<span style="color: #009900;">&#40;</span><span style="">'title_li=&amp;child_of='</span><span style="color: #339933;">.</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">.</span><span style="">'&amp;echo=0'</span><span style="color: #009900;">&#41;</span>;if <span style="color: #009900;">&#40;</span><span style="color: #000088;">$children</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;ul&gt; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #990000;">echo</span> <span style="color: #000088;">$children</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h3>Tags Display</h3>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> the_tags<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h3>Tags Cloud Display</h3>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_tag_cloud<span style="color: #009900;">&#40;</span><span style="">'smallest=8&amp;largest=36&amp;'</span><span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h3>Template Name</h3>
<p>This allows you to use the WordPress page template to customize how a page is displayed:</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #666666; font-style: italic;">/* Template Name: Portfolio */</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h3>Dynamic Title Tags</h3>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;">&lt;title&gt;<span style="color: #339933;">&lt;</span>?phpif <span style="color: #009900;">&#40;</span>is_home<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: #990000;">echo</span> bloginfo<span style="color: #009900;">&#40;</span><span style="">'name'</span><span style="color: #009900;">&#41;</span>;
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span>is_404<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: #990000;">echo</span> <span style="">'404 Not Found'</span>;
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span>is_category<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: #990000;">echo</span> <span style="">'Category:'</span>; wp_title<span style="color: #009900;">&#40;</span><span style="">''</span><span style="color: #009900;">&#41;</span>;
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span>is_search<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: #990000;">echo</span> <span style="">'Search Results'</span>;
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> is_day<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> || is_month<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> || is_year<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: #990000;">echo</span> <span style="">'Archives:'</span>; wp_title<span style="color: #009900;">&#40;</span><span style="">''</span><span style="color: #009900;">&#41;</span>;
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
<span style="color: #990000;">echo</span> wp_title<span style="color: #009900;">&#40;</span><span style="">''</span><span style="color: #009900;">&#41;</span>;
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/title&gt;</pre></div></div>

<h3>Display PHP on a Single Page</h3>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_home<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;">include</span> <span style="color: #009900;">&#40;</span><span style="">'file.php'</span><span style="color: #009900;">&#41;</span>; <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h3>External RSS Feed Display</h3>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include_once</span><span style="color: #009900;">&#40;</span>ABSPATH<span style="color: #339933;">.</span>WPINC<span style="color: #339933;">.</span><span style="">'/rss.php'</span><span style="color: #009900;">&#41;</span>;
wp_rss<span style="color: #009900;">&#40;</span><span style="">'http://wpforums.com/external.php?type=RSS2'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h3>Most Recent Twitter Entry Display</h3>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">// Your twitter username.</span>
<span style="color: #000088;">$username</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;TwitterUsername&quot;</span>;
<span style="color: #666666; font-style: italic;">// Prefix - some text you want displayed before your latest tweet.</span>
<span style="color: #666666; font-style: italic;">// (HTML is OK, but be sure to escape quotes with backslashes: for example href=\&quot;link.html\&quot;)</span>
<span style="color: #000088;">$prefix</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span>;
<span style="color: #666666; font-style: italic;">// Suffix - some text you want display after your latest tweet. (Same rules as the prefix.)</span>
<span style="color: #000088;">$suffix</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span>;
<span style="color: #000088;">$feed</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;http://search.twitter.com/search.atom?q=from:&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$username</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;&amp;rpp=1&quot;</span>;
<span style="color: #000000; font-weight: bold;">function</span> parse_feed<span style="color: #009900;">&#40;</span><span style="color: #000088;">$feed</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$stepOne</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&lt;content type=<span style="color: #000099; font-weight: bold;">\&quot;</span>html<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$feed</span><span style="color: #009900;">&#41;</span>;
<span style="color: #000088;">$stepTwo</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&lt;/content&gt;&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$stepOne</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>;
<span style="color: #000088;">$tweet</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$stepTwo</span><span style="color: #009900;">&#91;</span><span style="color:#800080;">0</span><span style="color: #009900;">&#93;</span>;
<span style="color: #000088;">$tweet</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span>”<span style="color: #339933;">&amp;</span>lt;”<span style="color: #339933;">,</span> “<span style="color: #339933;">&lt;</span>”<span style="color: #339933;">,</span> <span style="color: #000088;">$tweet</span><span style="color: #009900;">&#41;</span>;
<span style="color: #000088;">$tweet</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span>”<span style="color: #339933;">&amp;</span>gt;”<span style="color: #339933;">,</span> “<span style="color: #339933;">&gt;</span>”<span style="color: #339933;">,</span> <span style="color: #000088;">$tweet</span><span style="color: #009900;">&#41;</span>;
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$tweet</span>;
<span style="color: #009900;">&#125;</span>
<span style="color: #000088;">$twitterFeed</span> <span style="color: #339933;">=</span> <span style="color: #990000;">file_get_contents</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$feed</span><span style="color: #009900;">&#41;</span>;
<span style="color: #990000;">echo</span> <span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$prefix</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> parse_feed<span style="color: #009900;">&#40;</span><span style="color: #000088;">$twitterFeed</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$suffix</span><span style="color: #009900;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>The following are some code always use in the header.</p>
<h3>Name of Blog</h3>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo <span style="color: #009900;">&#40;</span><span style="">'name'</span><span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h3>URL of Blog</h3>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo <span style="color: #009900;">&#40;</span><span style="">'url'</span><span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h3>Description of Blog</h3>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo <span style="color: #009900;">&#40;</span><span style="">'description'</span><span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>If you have any WordPress code you’d like me to add, please leave a comment below!</p>
<img src="http://feeds.feedburner.com/~r/office-it/~4/491156145" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.office-it.org/20-useful-wordpress-code/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.office-it.org/20-useful-wordpress-code/</feedburner:origLink></item>
		<item>
		<title>How to Hide Image Address</title>
		<link>http://feeds.feedburner.com/~r/office-it/~3/480624100/</link>
		<comments>http://www.office-it.org/how-to-hide-image-address/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 14:25:47 +0000</pubDate>
		<dc:creator>Hii Hiong Ching</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[code]]></category>

		<category><![CDATA[Web Design]]></category>

		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://www.office-it.org/?p=212</guid>
		<description><![CDATA[Here is a simple php code to hide the image address of our website. It can use to hide url of flash too.

&#60;?php 
$image_path=&#34;images/path/to/&#34;;
$image_file=$image_path.$_GET&#91;'name'&#93;; 
$sTmpVar = fread&#40;fopen&#40;$image_file, 'r'&#41;, filesize&#40;$image_path&#41;&#41;; 
header&#40;&#34;Content-type: image/* &#34;&#41;; 
echo $sTmpVar; 
?&#62;


How to Use
What you need to amend is to change the &#8220;images/path/to/&#8221; to your image path and &#8220;name&#8221; to image name.
]]></description>
			<content:encoded><![CDATA[<p>Here is a simple php code to hide the image address of our website. It can use to hide url of flash too.</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> 
<span style="color: #000088;">$image_path</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/path/to/&quot;</span>;
<span style="color: #000088;">$image_file</span><span style="color: #339933;">=</span><span style="color: #000088;">$image_path</span><span style="color: #339933;">.</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="">'name'</span><span style="color: #009900;">&#93;</span>; 
<span style="color: #000088;">$sTmpVar</span> <span style="color: #339933;">=</span> <span style="color: #990000;">fread</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">fopen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$image_file</span><span style="color: #339933;">,</span> <span style="">'r'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #990000;">filesize</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$image_path</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>; 
<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Content-type: image/* &quot;</span><span style="color: #009900;">&#41;</span>; 
<span style="color: #990000;">echo</span> <span style="color: #000088;">$sTmpVar</span>; 
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p><span id="more-212"></span><br />
<h3>How to Use</h3>
<p>What you need to amend is to change the &#8220;images/path/to/&#8221; to your image path and &#8220;name&#8221; to image name.</p>
<img src="http://feeds.feedburner.com/~r/office-it/~4/480624100" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.office-it.org/how-to-hide-image-address/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.office-it.org/how-to-hide-image-address/</feedburner:origLink></item>
		<item>
		<title>Excel: Sort Worksheets Ascending or Descending</title>
		<link>http://feeds.feedburner.com/~r/office-it/~3/437986583/</link>
		<comments>http://www.office-it.org/excel-sort-worksheets-ascending-or-descending/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 12:21:46 +0000</pubDate>
		<dc:creator>Hii Hiong Ching</dc:creator>
		
		<category><![CDATA[MS Office]]></category>

		<category><![CDATA[excel]]></category>

		<category><![CDATA[VB Code]]></category>

		<guid isPermaLink="false">http://www.office-it.org/?p=205</guid>
		<description><![CDATA[This is VB code which will auto sort all sheets in the active workbook after execute it. It is easy for us to locate sheets when we have many sheets in our workbook.
Write the Code
Open the workbook for which we want to sort the sheets and press Alt + F11 to open the Visual Basic [...]]]></description>
			<content:encoded><![CDATA[<p>This is VB code which will auto sort all sheets in the active workbook after execute it. It is easy for us to locate sheets when we have many sheets in our workbook.</p>
<h3>Write the Code</h3>
<p>Open the workbook for which we want to sort the sheets and press Alt + F11 to open the Visual Basic Editor, and select Insert > Module to insert a module. Copy and paste the following code in module just created.</p>
<p><span id="more-205"></span></p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;">Sub SortSheets<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
Dim lCount <span style="color: #b1b100;">As</span> Long<span style="color: #339933;">,</span> lCounted <span style="color: #b1b100;">As</span> Long
Dim lShtLast <span style="color: #b1b100;">As</span> Long
Dim lReply <span style="color: #b1b100;">As</span> Long
&nbsp;
lReply <span style="color: #339933;">=</span> MsgBox<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;To sort Worksheets ascending, select 'Yes'. &quot;</span> <span style="color: #990000;">_</span>
<span style="color: #339933;">&amp;</span> <span style="color: #0000ff;">&quot;To sort Worksheets descending select 'No'&quot;</span><span style="color: #339933;">,</span> vbYesNoCancel<span style="color: #339933;">,</span> <span style="color: #990000;">_</span>
<span style="color: #0000ff;">&quot;Sheet Sort&quot;</span><span style="color: #009900;">&#41;</span>
<span style="color: #b1b100;">If</span> lReply <span style="color: #339933;">=</span> vbCancel Then <span style="color: #990000;">Exit</span> Sub
&nbsp;
lShtLast <span style="color: #339933;">=</span> Sheets<span style="color: #339933;">.</span><span style="color: #990000;">Count</span>
&nbsp;
<span style="color: #b1b100;">If</span> lReply <span style="color: #339933;">=</span> vbYes Then <span style="">'Sort ascending
    For lCount = 1 To lShtLast
        For lCount2 = lCount To lShtLast
            If UCase(Sheets(lCount2).Name) &lt; UCase(Sheets(lCount).Name) Then
                Sheets(lCount2).Move Before:=Sheets(lCount)
            End If
        Next lCount2
    Next lCount
Else '</span><span style="color: #990000;">Sort</span> descending
    <span style="color: #b1b100;">For</span> lCount <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span> To lShtLast
        <span style="color: #b1b100;">For</span> lCount2 <span style="color: #339933;">=</span> lCount To lShtLast
            <span style="color: #b1b100;">If</span> UCase<span style="color: #009900;">&#40;</span>Sheets<span style="color: #009900;">&#40;</span>lCount2<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>Name<span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> UCase<span style="color: #009900;">&#40;</span>Sheets<span style="color: #009900;">&#40;</span>lCount<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>Name<span style="color: #009900;">&#41;</span> Then
                Sheets<span style="color: #009900;">&#40;</span>lCount2<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>Move Before<span style="color: #339933;">:=</span>Sheets<span style="color: #009900;">&#40;</span>lCount<span style="color: #009900;">&#41;</span>
            <span style="color: #990000;">End</span> <span style="color: #b1b100;">If</span>
        <span style="color: #990000;">Next</span> lCount2
    <span style="color: #990000;">Next</span> lCount
<span style="color: #990000;">End</span> <span style="color: #b1b100;">If</span>
&nbsp;
<span style="color: #990000;">End</span> Sub</pre></div></div>

<p>Now close your Visual Basic Editor and return to your worksheet and save it.</p>
<h3>Running the Code</h3>
<p>To do this, press Alt + F8, select the macro named &#8220;SortSheets&#8221;, and press Run. You will be asked the way you sort your sheets either in ascending (A - Z) or descending order (Z - A).</p>
<p>This VB Code works with all version of Excel.</p>
<img src="http://feeds.feedburner.com/~r/office-it/~4/437986583" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.office-it.org/excel-sort-worksheets-ascending-or-descending/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.office-it.org/excel-sort-worksheets-ascending-or-descending/</feedburner:origLink></item>
		<item>
		<title>10+ New Beta Sites</title>
		<link>http://feeds.feedburner.com/~r/office-it/~3/301873994/</link>
		<comments>http://www.office-it.org/10-new-beta-site/#comments</comments>
		<pubDate>Sun, 19 Oct 2008 01:00:09 +0000</pubDate>
		<dc:creator>Hii Hiong Ching</dc:creator>
		
		<category><![CDATA[Web 2.0]]></category>

		<category><![CDATA[Web Design]]></category>

		<category><![CDATA[Web Tools]]></category>

		<category><![CDATA[beta]]></category>

		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.office-it.org/?p=165</guid>
		<description><![CDATA[Updated: 19 October 2008
We see new beta sites all the time, but are they any good? Here are some collection of new beta sites. Some of them provide free and useful web services.
1. http://www.sliderocket.com/

SlideRocket is a web application that provides everything you need to design professional quality presentations, manage and share libraries of slides and [...]]]></description>
			<content:encoded><![CDATA[<p><em>Updated: 19 October 2008</em></p>
<p>We see new beta sites all the time, but are they any good? Here are some collection of new beta sites. Some of them provide free and useful web services.</p>
<p>1. <a href="http://www.sliderocket.com/">http://www.sliderocket.com/</a><br />
<a href='http://www.sliderocket.com/'><img src="http://www.office-it.org/wp-content/uploads/2008/05/sliderocket.jpg" alt="http://www.sliderocket.com/" title="sliderocket" width="450" height="300" class="alignnone size-full wp-image-172" /></a><br />
SlideRocket is a web application that provides everything you need to design professional quality presentations, manage and share libraries of slides and assets, and to deliver presentations in person or remotely over the web.</p>
<p><span id="more-165"></span>2. <a href="http://www.behance.net/">http://www.behance.net/</a><br />
<a href='http://www.behance.net/'><img src="http://www.office-it.org/wp-content/uploads/2008/05/behance.jpg" alt="http://www.behance.net/" title="behance" width="450" height="300" class="alignnone size-full wp-image-167" /></a><br />
This site let us to build your portfolio, list your projects to share and collaborate with other artists.</p>
<p>3. <a href="http://www.popfly.com/">http://www.popfly.com/</a><br />
<a href='http://www.popfly.com/'><img src="http://www.office-it.org/wp-content/uploads/2008/05/popfly.jpg" alt="http://www.popfly.com/" title="popfly" width="450" height="300" class="alignnone size-full wp-image-168" /></a><br />
Popfly is a tool from Microsoft for developing mashups, widgets and web pages using Silverlight.</p>
<p>4. <a href="http://www.sproutbuilder.com/">http://www.sproutbuilder.com/</a><br />
<a href='http://www.sproutbuilder.com/'><img src="http://www.office-it.org/wp-content/uploads/2008/05/sprout.jpg" alt="http://www.sproutbuilder.com/" title="sprout" width="450" height="300" class="alignnone size-full wp-image-170" /></a><br />
Sprout is a browser based WYSIWYG editor which build by Flex. It facilitates the way to build, publish, and manage widgets, mini-sites, mashups, banners and more.</p>
<p>5. <a href="http://www.tryphone.com/">http://www.tryphone.com/</a><br />
<a href='http://www.tryphone.com/'><img src="http://www.office-it.org/wp-content/uploads/2008/05/tryphone.jpg" alt="http://www.tryphone.com/" title="tryphone" width="450" height="300" class="alignnone size-full wp-image-169" /></a><br />
This is online mobile phone test-drive site. You can get a feeling for what the phone is like to use.</p>
<p>6. <a href="http://www.meemix.com/">http://www.meemix.com/</a><br />
<a href='http://www.meemix.com/'><img src="http://www.office-it.org/wp-content/uploads/2008/05/meemix.jpg" alt="http://www.meemix.com/" title="meemix" width="450" height="300" class="alignnone size-full wp-image-166" /></a><br />
This is a site can let you to build a very personalised radio channel and interact with the community.</p>
<p>7. <a href="http://www.cushycms.com/">http://www.cushycms.com/</a><br />
<a href='http://www.cushycms.com/'><img src="http://www.office-it.org/wp-content/uploads/2008/05/cushycms.jpg" alt="http://www.cushycms.com/" title="cushycms" width="450" height="300" class="alignnone size-full wp-image-173" /></a><br />
Cushycms is a free and truly simple CMS for web designers to let clients to safely edit their own web content without any programming skills required.</p>
<p>8. <a href="http://www.kaltura.com/">http://www.kaltura.com/</a><br />
<a href='http://www.kaltura.com/'><img src="http://www.office-it.org/wp-content/uploads/2008/05/kaltura.jpg" alt="http://www.kaltura.com/" title="kaltura" width="450" height="300" class="alignnone size-full wp-image-171" /></a><br />
Kaltura is open source video platform which enables groups to create and edit video collaboratively.</p>
<p>9. <a href="http://www.dimdim.com/">http://www.dimdim.com/</a><br />
<a href='http://www.dimdim.com/'><img src="http://www.office-it.org/wp-content/uploads/2008/05/dimdim.jpg" alt="http://www.dimdim.com/" title="dimdim" width="450" height="300" class="alignnone size-full wp-image-174" /></a><br />
Dimdim is the world’s free web meeting where you can share your desktop, show slides, collaborate, chat, talk and broadcast via webcam with absolutely no download required for attendees.</p>
<p>10. <a href="http://www.nuconomy.com/">http://www.nuconomy.com/</a><br />
<a href='http://www.nuconomy.com/'><img src="http://www.office-it.org/wp-content/uploads/2008/05/nuconomy.jpg" alt="http://www.nuconomy.com/" title="nuconomy" width="450" height="300" class="alignnone size-full wp-image-175" /></a><br />
Another web analytics as Google Analytics. It let you understand your users&#8217; activities and how they interact with the various features of your site like never before.</p>
<p>11. <a href="http://www.skyfire.com/">http://www.skyfire.com/</a><br />
<a href="http://www.skyfire.com/"><img src="http://www.office-it.org/wp-content/uploads/2008/10/skyfire.jpg" alt="http://www.skyfire.com/" title="Skyfire" width="450" height="300" class="alignnone size-full wp-image-198" /></a><br />
Skyfire is a new mobile web browser that allows you to experience the internet on your phone exactly like on your computer. It is fast and support Flash and Ajax as well as QuickTime.</p>
<p>12. <a href="http://www.ping.fm/">http://www.ping.fm/</a><br />
<a href="http://www.ping.fm/"><img src="http://www.office-it.org/wp-content/uploads/2008/10/ping.jpg" alt="http://www.ping.fm/" title="Ping.fm" width="450" height="300" class="size-full wp-image-199" /></a><br />
Too many social networks? Use Ping to update WordPress, Twitter, Facebook, Friendster and many other supported services from whatever you are. <a href="http://www.ping.fm/">Ping.fm</a> is a simple service that makes updating your social networks a snap. Messanges can be sent via AIM, GTalk, iGoogle, Windows Live Messenger, Yahoo! Messenger, WAP, iPhone/iPod Touch, SMS or E-mail.</p>
<p>13. <a href="http://www.photrade.com/">http://www.photrade.com/</a><br />
<a href="http://www.photrade.com/"><img src="http://www.office-it.org/wp-content/uploads/2008/10/photrade.jpg" alt="http://www.photrade.com/" title="Photrade" width="450" height="300" class="alignnone size-full wp-image-200" /></a><br />
Photrade is great for sourcing free photos legally. It also let photographers to sell and licence their own pictures to make some money.</p>
<p>14. <a href="http://www.pluginmeter.com/">http://www.pluginmeter.com/</a><br />
<a href="http://www.pluginmeter.com/"><img src="http://www.office-it.org/wp-content/uploads/2008/10/pluginmeter.jpg" alt="" title="Pluginmeter" width="450" height="300" class="alignnone size-full wp-image-202" /></a><br />
If you are a wordpress blogger or just for some other reasons if you want to know which plugins are installed on your favorite wordpress blog then just go to Plugin Meter and you will see list of plugins installed on those blog.</p>
<img src="http://feeds.feedburner.com/~r/office-it/~4/301873994" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.office-it.org/10-new-beta-site/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.office-it.org/10-new-beta-site/</feedburner:origLink></item>
		<item>
		<title>Free Web Invoices Generator: Black Sheep Invoices</title>
		<link>http://feeds.feedburner.com/~r/office-it/~3/389692844/</link>
		<comments>http://www.office-it.org/free-web-invoices-generator-black-sheep-invoices/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 14:03:35 +0000</pubDate>
		<dc:creator>Hii Hiong Ching</dc:creator>
		
		<category><![CDATA[Script]]></category>

		<category><![CDATA[Software]]></category>

		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.office-it.org/?p=192</guid>
		<description><![CDATA[A nice script from Benjamin Keen - Black Sheep Invoices. With it, you can manage all your invoices directly on your web browser.
You can try it through its live demo here before install in your server. Don&#8217;t worry about its pricing, it is absolutely free!

Features

GNU-licensed (i.e. free!)
Simple to use. Quickly generates clear, attractive invoices
Printer-friendly and [...]]]></description>
			<content:encoded><![CDATA[<p>A nice script from <a href="http://www.benjaminkeen.com/">Benjamin Keen</a> - <a href="http://www.blacksheepsoft.com/invoices/">Black Sheep Invoices</a>. With it, you can manage all your invoices directly on your web browser.</p>
<p>You can try it through its live demo <a href="http://www.blacksheepsoft.com/invoices/index.php?page=demo">here</a> before install in your server. Don&#8217;t worry about its pricing, it is absolutely free!</p>
<p><a href="http://www.blacksheepsoft.com/invoices/"><img src="http://www.office-it.org/wp-content/uploads/2008/09/black_sheep_invoices.png" alt="" title="black_sheep_invoices" width="450" height="497" class="alignnone size-full wp-image-193" /></a></p>
<p><span id="more-192"></span><strong>Features</strong></p>
<ul>
<li>GNU-licensed (i.e. free!)</li>
<li>Simple to use. Quickly generates clear, attractive invoices</li>
<li>Printer-friendly and PDF view/print of all invoices</li>
<li>Entirely brandable to your company or person (no reference to Black Sheep Software)</li>
<li>Option to upload company logo</li>
<li>Database is customizable to store whatever invoice data you need</li>
<li>Choice of $ or £ currency</li>
<li>Stores client information to allow you to re-invoice the same client multiple times</li>
<li>May set custom invoice numbering scheme, specify whatever invoice date you wish</li>
<li>Build in &#8220;Flagging&#8221; mechanism to let you create invoices by matching up existing items to clients</li>
<li>May customize CSS to change the appearance of the invoices and PDFs</li>
</ul>
<p><strong>Download</strong><br />
<a href="http://www.blacksheepsoft.com/invoices/index.php?page=download&#038;download=1">Download the zipfile</a> (5.9MB)<br />
<a href="http://www.blacksheepsoft.com/invoices/index.php?page=download&#038;download=2">Download the tar file</a> (5.5MB)</p>
<img src="http://feeds.feedburner.com/~r/office-it/~4/389692844" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.office-it.org/free-web-invoices-generator-black-sheep-invoices/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.office-it.org/free-web-invoices-generator-black-sheep-invoices/</feedburner:origLink></item>
		<item>
		<title>dragtable: Visually reorder all your table columns</title>
		<link>http://feeds.feedburner.com/~r/office-it/~3/387663368/</link>
		<comments>http://www.office-it.org/dragtable-visually-reorder-all-your-table-columns/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 13:18:48 +0000</pubDate>
		<dc:creator>Hii Hiong Ching</dc:creator>
		
		<category><![CDATA[Script]]></category>

		<category><![CDATA[Software]]></category>

		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.office-it.org/?p=188</guid>
		<description><![CDATA[Here is a amazing and beautiful script from Dan Vanderkam. We can just drag the column headings to rearrange the data in the table.

Here is its URL for dragtable: http://www.danvk.org/wp/dragtable/
]]></description>
			<content:encoded><![CDATA[<p>Here is a amazing and beautiful script from Dan Vanderkam. We can just drag the column headings to rearrange the data in the table.</p>
<p><a href="http://www.danvk.org/wp/dragtable/"><img src="http://www.office-it.org/wp-content/uploads/2008/09/dragtable.png" alt="" title="dragtable" width="382" height="160" class="alignnone size-full wp-image-189" /></a></p>
<p>Here is its URL for dragtable: <a href="http://www.danvk.org/wp/dragtable/">http://www.danvk.org/wp/dragtable/</a></p>
<img src="http://feeds.feedburner.com/~r/office-it/~4/387663368" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.office-it.org/dragtable-visually-reorder-all-your-table-columns/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.office-it.org/dragtable-visually-reorder-all-your-table-columns/</feedburner:origLink></item>
		<item>
		<title>Google Chrome Web Browser</title>
		<link>http://feeds.feedburner.com/~r/office-it/~3/385778131/</link>
		<comments>http://www.office-it.org/google-chrome-web-browser/#comments</comments>
		<pubDate>Sun, 07 Sep 2008 13:18:09 +0000</pubDate>
		<dc:creator>Hii Hiong Ching</dc:creator>
		
		<category><![CDATA[Software]]></category>

		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://www.office-it.org/?p=182</guid>
		<description><![CDATA[Yes, a new web browser from Goolge - Google Chrome. As per what Goolge mention in its official website, it is a browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier.
I won&#8217;t post any features here as you can find a million posts / news articles on [...]]]></description>
			<content:encoded><![CDATA[<p>Yes, a new web browser from <a href="http://www.google.com/">Goolge</a> - <a href="http://www.google.com/chrome">Google Chrome</a>. As per what Goolge mention in its <a href="http://www.google.com/chrome">official website</a>, it is a browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier.</p>
<div id="attachment_183" class="wp-caption alignnone" style="width: 450px"><a href="http://www.google.com/googlebooks/chrome/index.html"><img src="http://www.office-it.org/wp-content/uploads/2008/09/google_chrome.jpg" alt="Google Chrome" title="google_chrome" width="440" height="359" class="size-full wp-image-183" /></a><p class="wp-caption-text">Google Chrome</p></div>
<p><span id="more-182"></span>I won&#8217;t post any features here as you can find a million posts / news articles on this. I just installed it. For those who want read about the technology, here is an interesting <a href="http://www.google.com/googlebooks/chrome/index.html">comic</a> from Scott McCloud.</p>
<div id="attachment_184" class="wp-caption alignnone" style="width: 434px"><a href="http://www.google.com/googlebooks/chrome/index.html"><img src="http://www.office-it.org/wp-content/uploads/2008/09/google_chrome_comic.jpg" alt="Google Chrome Comic" title="google_chrome_comic" width="424" height="348" class="size-full wp-image-184" /></a><p class="wp-caption-text">Google Chrome Comic</p></div>
<p>You can follow this link to download Google Chrome (BETA) for Windows (English version):</p>
<p><a href="http://www.google.com/chrome/eula.html?hl=en">http://www.google.com/chrome/eula.html?hl=en</a></p>
<p>Don&#8217;t forget to post your experience with <a href="http://www.google.com/chrome">Google Chrome</a> here. Enjoy your new browser!</p>
<img src="http://feeds.feedburner.com/~r/office-it/~4/385778131" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.office-it.org/google-chrome-web-browser/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.office-it.org/google-chrome-web-browser/</feedburner:origLink></item>
		<item>
		<title>How to Prevent Spam Bots From Collecting Email Addresses</title>
		<link>http://feeds.feedburner.com/~r/office-it/~3/317940727/</link>
		<comments>http://www.office-it.org/how-to-prevent-spam-bots-from-collecting-email-addresses/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 08:11:11 +0000</pubDate>
		<dc:creator>Hii Hiong Ching</dc:creator>
		
		<category><![CDATA[Javascript]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Web Tools]]></category>

		<category><![CDATA[email]]></category>

		<category><![CDATA[encode]]></category>

		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://www.office-it.org/?p=180</guid>
		<description><![CDATA[As I mentioned before in How to Include Subject, CC, BCC, and Email Body in Email Links, you are creating a risk to get spam if you simply placing email addresses on a page without encoding them.
Some websites using &#8220;[at]&#8221; to replace &#8220;@&#8221; and email will look as &#8220;name [at] domain.com&#8221;. This is a good [...]]]></description>
			<content:encoded><![CDATA[<p>As I mentioned before in <a href="http://www.office-it.org/how-to-include-subject-cc-bcc-and-email-body-in-email-links/">How to Include Subject, CC, BCC, and Email Body in Email Links</a>, you are creating a risk to get spam if you simply placing email addresses on a page without encoding them.</p>
<p>Some websites using &#8220;[at]&#8221; to replace &#8220;@&#8221; and email will look as &#8220;name [at] domain.com&#8221;. This is a good idea for personal websites since nobody challenge you. In commercial, many clients wouldn&#8217;t allow you to use &#8220;name [at] domain.com&#8221; this format. They are not web designer and they don&#8217;t understand how spam prevention works, or even care for that matter.</p>
<p>I have this method originally from <a href="http://davidwalsh.name/">david walsh blog</a>. Its author have a quick PHP script that you can use when putting raw email addresses on a page:</p>
<p><span id="more-180"></span>The Function</p>

<div class="wp_syntax"><div class="code"><pre class="text text" style="font-family:monospace;">function encode_email($e)
{
	for ($i = 0; $i &lt; strlen($e); $i++) { $output .= '&amp;#'.ord($e[$i]).';'; }
	return $output;
}</pre></div></div>

<p>Usage</p>

<div class="wp_syntax"><div class="code"><pre class="text text" style="font-family:monospace;">echo(encode_email('email@office-it.org'));</pre></div></div>

<p>The above function takes a string input (the email address), loops through each character replacing the letter with the character’s ASCII value, and returns the encoded email address. That’s all you need to do!</p>
<p>Another method (much simple) is found at <a href="http://www.solmetra.lt/scripts/mailto/">SOLMETRA</a>. It is a tiny JavaScript code which will encode email for you.</p>
<p><a href='http://www.solmetra.lt/scripts/mailto/'><img src="http://www.office-it.org/wp-content/uploads/2008/06/mailto-encoder.gif" alt="" title="mailto-encoder" width="480" height="278" class="alignnone size-full wp-image-181" /></a></p>
<p>The disadvantage for second method is if you have a page with hundreds of addresses, the page download will be bloated.</p>
<p>I am not guarantee methods above is bulletproof solution, but it is, at least, a basic protection.</p>
<img src="http://feeds.feedburner.com/~r/office-it/~4/317940727" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.office-it.org/how-to-prevent-spam-bots-from-collecting-email-addresses/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.office-it.org/how-to-prevent-spam-bots-from-collecting-email-addresses/</feedburner:origLink></item>
		<item>
		<title>How to Include Subject, CC, BCC, and Email Body in Email Links</title>
		<link>http://feeds.feedburner.com/~r/office-it/~3/317315128/</link>
		<comments>http://www.office-it.org/how-to-include-subject-cc-bcc-and-email-body-in-email-links/#comments</comments>
		<pubDate>Sun, 22 Jun 2008 07:48:07 +0000</pubDate>
		<dc:creator>Hii Hiong Ching</dc:creator>
		
		<category><![CDATA[XHTML]]></category>

		<category><![CDATA[email]]></category>

		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://www.office-it.org/?p=179</guid>
		<description><![CDATA[It is so easy to create a email link in our web page. Everyone who know or even don&#8217;t know HTML, they can easily create an email link by software.

&#60;a href=&#34;mailto:email@office-it.org&#34;&#62;Email Office-it.orG&#60;/a&#62;

However, they are not always know that they can include subject, CC, BCC, and email body text information in the link as well. By [...]]]></description>
			<content:encoded><![CDATA[<p>It is so easy to create a email link in our web page. Everyone who know or even don&#8217;t know HTML, they can easily create an email link by software.</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;mailto:email@office-it.org&quot;</span><span style="color: #339933;">&gt;</span>Email Office<span style="color: #339933;">-</span>it<span style="color: #339933;">.</span>orG<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span></pre></div></div>

<p>However, they are not always know that they can include subject, CC, BCC, and email body text information in the link as well. By using a querystring-like syntax, we can do more with that simple link.</p>
<p>Example code to add the subject:</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;mailto:email@office-it.org?Subject=Your Subject Here&quot;</span><span style="color: #339933;">&gt;</span>
Email Office<span style="color: #339933;">-</span>it<span style="color: #339933;">.</span>orG
<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Example code to add the cc&#8217;s and bcc&#8217;s:</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;mailto:email@office-it.org?Subject=Your Subject Here&amp;CC=email2@office-it.org&amp;BCC=email3@office-it.org&quot;</span><span style="color: #339933;">&gt;</span>
Email Office<span style="color: #339933;">-</span>it<span style="color: #339933;">.</span>orG
<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span></pre></div></div>

<p><span id="more-179"></span>Example code to add some default body text</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;mailto:email@office-it.org?Subject=Your Subject Here&amp;CC=email2@office-it.org&amp;BCC=email3@office-it.org&amp;Body=Your body text here.&quot;</span><span style="color: #339933;">&gt;</span>
Email Office<span style="color: #339933;">-</span>it<span style="color: #339933;">.</span>orG
<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Demo Email Link:<br />
<a href="mailto:email@office-it.org?Subject=Your Subject Here&#038;CC=email2@office-it.org&#038;BCC=email3@office-it.org&#038;Body=Your body text here.">Email Office-it.orG</a></p>
<p>However, you should remember that simply placing email addresses on a page without encoding them first is like simply emailing spammers your email address. <del datetime="2008-06-24T14:33:17+00:00">I will write some posts regarding email encoder soon.</del> Please refer here for <a href="http://www.office-it.org/how-to-prevent-spam-bots-from-collecting-email-addresses/">how to prevent spam bots from collecting email addresses</a>.</p>
<img src="http://feeds.feedburner.com/~r/office-it/~4/317315128" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.office-it.org/how-to-include-subject-cc-bcc-and-email-body-in-email-links/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.office-it.org/how-to-include-subject-cc-bcc-and-email-body-in-email-links/</feedburner:origLink></item>
		<item>
		<title>Excel: How to Unprotect Worksheet Without Password</title>
		<link>http://feeds.feedburner.com/~r/office-it/~3/304941961/</link>
		<comments>http://www.office-it.org/excel-how-to-unprotect-worksheet-without-password/#comments</comments>
		<pubDate>Thu, 05 Jun 2008 01:13:13 +0000</pubDate>
		<dc:creator>Hii Hiong Ching</dc:creator>
		
		<category><![CDATA[MS Office]]></category>

		<category><![CDATA[excel]]></category>

		<category><![CDATA[macro]]></category>

		<category><![CDATA[password]]></category>

		<category><![CDATA[unprotect]]></category>

		<category><![CDATA[VBA]]></category>

		<guid isPermaLink="false">http://www.office-it.org/?p=176</guid>
		<description><![CDATA[You may sometimes forgot your password of your Microsoft Excel sheet or workbook, or the original author (usually ex-colleague) lock the workbook and didn&#8217;t unlock it for next user, the marco below will unlock your sheet or workbook not matter what your original password is. However, it it will NOT report the original password.
How to [...]]]></description>
			<content:encoded><![CDATA[<p>You may sometimes forgot your password of your Microsoft Excel sheet or workbook, or the original author (usually ex-colleague) lock the workbook and didn&#8217;t unlock it for next user, the marco below will unlock your sheet or workbook not matter what your original password is. However, it it will NOT report the original password.</p>
<h3>How to unprotect</h3>
<p>1. First open your protected excel file<br />
2. Launch the Visual Basic Editor<br />
3. Copy and paste the following VB Code</p>
<p><span id="more-176"></span></p>

<div class="wp_syntax"><div class="code"><pre class="text text" style="font-family:monospace;">'----------------------------------------------------------------
Option Explicit 
&nbsp;
Public Sub AllInternalPasswords() 
' Breaks worksheet and workbook structure passwords. Bob McCormick 
' probably originator of base code algorithm modified for coverage 
' of workbook structure / windows passwords and for multiple passwords 
' 
' Norman Harker and JE McGimpsey 27-Dec-2002 (Version 1.1) 
' Modified 2003-Apr-04 by JEM: All msgs to constants, and 
' eliminate one Exit Sub (Version 1.1.1) 
' Reveals hashed passwords NOT original passwords 
&nbsp;
&nbsp;
Const DBLSPACE As String = vbNewLine &amp; vbNewLine 
Const AUTHORS As String = DBLSPACE &amp; vbNewLine &amp; _ 
&quot;Adapted from Bob McCormick base code by&quot; &amp; _ 
&quot;Norman Harker and JE McGimpsey&quot; 
Const HEADER As String = &quot;AllInternalPasswords User Message&quot; 
Const VERSION As String = DBLSPACE &amp; &quot;Version 1.1.1 2003-Apr-04&quot; 
Const REPBACK As String = DBLSPACE &amp; &quot;Please report failure &quot; &amp; _ 
&quot;to the microsoft.public.excel.programming newsgroup.&quot; 
Const ALLCLEAR As String = DBLSPACE &amp; &quot;The workbook should &quot; &amp; _ 
&quot;now be free of all password protection, so make sure you:&quot; &amp; _ 
DBLSPACE &amp; &quot;SAVE IT NOW!&quot; &amp; DBLSPACE &amp; &quot;and also&quot; &amp; _ 
DBLSPACE &amp; &quot;BACKUP!, BACKUP!!, BACKUP!!!&quot; &amp; _ 
DBLSPACE &amp; &quot;Also, remember that the password was &quot; &amp; _ 
&quot;put there for a reason. Don't stuff up crucial formulas &quot; &amp; _ 
&quot;or data.&quot; &amp; DBLSPACE &amp; &quot;Access and use of some data &quot; &amp; _ 
&quot;may be an offense. If in doubt, don't.&quot; 
Const MSGNOPWORDS1 As String = &quot;There were no passwords on &quot; &amp; _ 
&quot;sheets, or workbook structure or windows.&quot; &amp; AUTHORS &amp; VERSION 
Const MSGNOPWORDS2 As String = &quot;There was no protection to &quot; &amp; _ 
&quot;workbook structure or windows.&quot; &amp; DBLSPACE &amp; _ 
&quot;Proceeding to unprotect sheets.&quot; &amp; AUTHORS &amp; VERSION 
Const MSGTAKETIME As String = &quot;After pressing OK button this &quot; &amp; _ 
&quot;will take some time.&quot; &amp; DBLSPACE &amp; &quot;Amount of time &quot; &amp; _ 
&quot;depends on how many different passwords, the &quot; &amp; _ 
&quot;passwords, and your computer's specification.&quot; &amp; DBLSPACE &amp; _ 
&quot;Just be patient! Make me a coffee!&quot; &amp; AUTHORS &amp; VERSION 
Const MSGPWORDFOUND1 As String = &quot;You had a Worksheet &quot; &amp; _ 
&quot;Structure or Windows Password set.&quot; &amp; DBLSPACE &amp; _ 
&quot;The password found was: &quot; &amp; DBLSPACE &amp; &quot;$$&quot; &amp; DBLSPACE &amp; _ 
&quot;Note it down for potential future use in other workbooks by &quot; &amp; _ 
&quot;the same person who set this password.&quot; &amp; DBLSPACE &amp; _ 
&quot;Now to check and clear other passwords.&quot; &amp; AUTHORS &amp; VERSION 
Const MSGPWORDFOUND2 As String = &quot;You had a Worksheet &quot; &amp; _ 
&quot;password set.&quot; &amp; DBLSPACE &amp; &quot;The password found was: &quot; &amp; _ 
DBLSPACE &amp; &quot;$$&quot; &amp; DBLSPACE &amp; &quot;Note it down for potential &quot; &amp; _ 
&quot;future use in other workbooks by same person who &quot; &amp; _ 
&quot;set this password.&quot; &amp; DBLSPACE &amp; &quot;Now to check and clear &quot; &amp; _ 
&quot;other passwords.&quot; &amp; AUTHORS &amp; VERSION 
Const MSGONLYONE As String = &quot;Only structure / windows &quot; &amp; _ 
&quot;protected with the password that was just found.&quot; &amp; _ 
ALLCLEAR &amp; AUTHORS &amp; VERSION &amp; REPBACK 
Dim w1 As Worksheet, w2 As Worksheet 
Dim i As Integer, j As Integer, k As Integer, l As Integer 
Dim m As Integer, n As Integer, i1 As Integer, i2 As Integer 
Dim i3 As Integer, i4 As Integer, i5 As Integer, i6 As Integer 
Dim PWord1 As String 
Dim ShTag As Boolean, WinTag As Boolean 
&nbsp;
Application.ScreenUpdating = False 
With ActiveWorkbook 
WinTag = .ProtectStructure Or .ProtectWindows 
End With 
ShTag = False 
For Each w1 In Worksheets 
ShTag = ShTag Or w1.ProtectContents 
Next w1 
If Not ShTag And Not WinTag Then 
MsgBox MSGNOPWORDS1, vbInformation, HEADER 
Exit Sub 
End If 
MsgBox MSGTAKETIME, vbInformation, HEADER 
If Not WinTag Then 
MsgBox MSGNOPWORDS2, vbInformation, HEADER 
Else 
On Error Resume Next 
Do 'dummy do loop 
For i = 65 To 66: For j = 65 To 66: For k = 65 To 66 
For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66 
For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66 
For i5 = 65 To 66: For i6 = 65 To 66: For n = 32 To 126 
With ActiveWorkbook 
.Unprotect Chr(i) &amp; Chr(j) &amp; Chr(k) &amp; _ 
Chr(l) &amp; Chr(m) &amp; Chr(i1) &amp; Chr(i2) &amp; _ 
Chr(i3) &amp; Chr(i4) &amp; Chr(i5) &amp; Chr(i6) &amp; Chr(n) 
If .ProtectStructure = False And _ 
.ProtectWindows = False Then 
PWord1 = Chr(i) &amp; Chr(j) &amp; Chr(k) &amp; Chr(l) &amp; _ 
Chr(m) &amp; Chr(i1) &amp; Chr(i2) &amp; Chr(i3) &amp; _ 
Chr(i4) &amp; Chr(i5) &amp; Chr(i6) &amp; Chr(n) 
MsgBox Application.Substitute(MSGPWORDFOUND1, _ 
&quot;$$&quot;, PWord1), vbInformation, HEADER 
Exit Do 'Bypass all for...nexts 
End If 
End With 
Next: Next: Next: Next: Next: Next 
Next: Next: Next: Next: Next: Next 
Loop Until True 
On Error GoTo 0 
End If 
If WinTag And Not ShTag Then 
MsgBox MSGONLYONE, vbInformation, HEADER 
Exit Sub 
End If 
On Error Resume Next 
For Each w1 In Worksheets 
'Attempt clearance with PWord1 
w1.Unprotect PWord1 
Next w1 
On Error GoTo 0 
ShTag = False 
For Each w1 In Worksheets 
'Checks for all clear ShTag triggered to 1 if not. 
ShTag = ShTag Or w1.ProtectContents 
Next w1 
If ShTag Then 
For Each w1 In Worksheets 
With w1 
If .ProtectContents Then 
On Error Resume Next 
Do 'Dummy do loop 
For i = 65 To 66: For j = 65 To 66: For k = 65 To 66 
For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66 
For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66 
For i5 = 65 To 66: For i6 = 65 To 66: For n = 32 To 126 
.Unprotect Chr(i) &amp; Chr(j) &amp; Chr(k) &amp; _ 
Chr(l) &amp; Chr(m) &amp; Chr(i1) &amp; Chr(i2) &amp; Chr(i3) &amp; _ 
Chr(i4) &amp; Chr(i5) &amp; Chr(i6) &amp; Chr(n) 
If Not .ProtectContents Then 
PWord1 = Chr(i) &amp; Chr(j) &amp; Chr(k) &amp; Chr(l) &amp; _ 
Chr(m) &amp; Chr(i1) &amp; Chr(i2) &amp; Chr(i3) &amp; _ 
Chr(i4) &amp; Chr(i5) &amp; Chr(i6) &amp; Chr(n) 
MsgBox Application.Substitute(MSGPWORDFOUND2, _ 
&quot;$$&quot;, PWord1), vbInformation, HEADER 
'leverage finding Pword by trying on other sheets 
For Each w2 In Worksheets 
w2.Unprotect PWord1 
Next w2 
Exit Do 'Bypass all for...nexts 
End If 
Next: Next: Next: Next: Next: Next 
Next: Next: Next: Next: Next: Next 
Loop Until True 
On Error GoTo 0 
End If 
End With 
Next w1 
End If 
MsgBox ALLCLEAR &amp; AUTHORS &amp; VERSION &amp; REPBACK, vbInformation, HEADER 
End Sub
'----------------------------------------------------------------</pre></div></div>

<p>4. Then press Run button, all internal password will be removed.</p>
<p>If you really don&#8217;t know how to do or lazy to copy and cut, you can download the workbook attached below. The workbook is hidden, and has an attached toolbar with a button to start the macro. Activate the workbook you want to unlock and click the button. The code is unlocked so you may examine and modify it as needed. Note: This macro cannot unlock password to open.</p>
<p><a href='http://www.office-it.org/wp-content/uploads/2008/06/allinternalpasswords.xls'>Download here</a></p>
<p><strong>DISCLAIMER: Please note that breaking password protection MAY violate laws or regulations in your jurisdiction.</strong></p>
<img src="http://feeds.feedburner.com/~r/office-it/~4/304941961" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.office-it.org/excel-how-to-unprotect-worksheet-without-password/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.office-it.org/excel-how-to-unprotect-worksheet-without-password/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic Page Served (once) in 8.814 seconds --><!-- Cached page generated by WP-Super-Cache on 2008-12-21 19:10:36 -->
