<?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/"
	>

<channel>
	<title>byDust ( New media, Design and Web developer : Nick Van der Vreken )</title>
	<atom:link href="http://www.bydust.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bydust.com</link>
	<description>Nick Van der Vrekens blog &#38; portfolio</description>
	<pubDate>Tue, 17 Nov 2009 12:09:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Warning 5843: updates postphoned</title>
		<link>http://www.bydust.com/warning-5843-updates-postphoned/</link>
		<comments>http://www.bydust.com/warning-5843-updates-postphoned/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 15:58:00 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
		
		<category><![CDATA[Announcements]]></category>

		<guid isPermaLink="false">http://www.bydust.com/?p=452</guid>
		<description><![CDATA[A quick note to let you know I will be updating the portfolio section of this website soon. I don&#8217;t know if anyone really cares about the portfolio section but here&#8217;s a note anyway.
I will not be releasing a new version of Fhi-zin and the AJAX class due to a severe time shortage, sorry to [...]]]></description>
			<content:encoded><![CDATA[<p>A quick note to let you know I will be updating the portfolio section of this website soon. I don&#8217;t know if anyone really cares about the portfolio section but here&#8217;s a note anyway.</p>
<p>I will not be releasing a new version of Fhi-zin and the AJAX class due to a severe time shortage, sorry to keep you waiting ;-)</p>
<p>bbye</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bydust.com/warning-5843-updates-postphoned/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Advanced PHP Query function</title>
		<link>http://www.bydust.com/advanced-php-query-function/</link>
		<comments>http://www.bydust.com/advanced-php-query-function/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 13:42:36 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.bydust.com/?p=379</guid>
		<description><![CDATA[Today&#8217;s web applications are becoming more and more advanced, and most of them are relying on data stored in databases. In most cases several queries have to be executed to get the initial data in the application, so a quick way to get this job done would be usefull. Thats why I&#8217;ve made this advanced [...]]]></description>
			<content:encoded><![CDATA[<p>Today&#8217;s web applications are becoming more and more advanced, and most of them are relying on data stored in databases. In most cases several queries have to be executed to get the initial data in the application, so a quick way to get this job done would be usefull. Thats why I&#8217;ve made this advanced PHP query function to use in my own projects, but I&#8217;m sure many of you will find it usefull too.</p>
<p>Some of its features are custom SQL parameters like LAST_INSERTED_ID or INSERT_ID_FROM(n), executing different queries in one line of code, quickly returning SELECT queries as arrays, returning the new ID as the query result for INSERT-statements and so on.<br />
<span id="more-379"></span></p>
<h2>Executing several SQL-statements easily</h2>
<p>Suppose we need several SELECT-queries to retrieve the data needed for our application to run. Many of you already have made query-functions to retrieve the database resultset in just one line of code, but this probably still creates a new connection for each query you execute. Instead of doing that, we can loop through an array of SQL-statements and execute them all in the same connection. You&#8217;ll get the same result, but only one connection to the database is created, which results in a better function performance.</p>
<p>Offcourse we still need to be able to fetch all result-sets returned by our queries. This is where the &#8220;$query_results&#8221;-array comes in handy. I&#8217;ve placed a small example below to clear things up.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// when executing multiple queries, the function will always</span>
<span style="color: #666666; font-style: italic;">// return the result from the last executed SQL-statement</span>
<span style="color: #666666; font-style: italic;">// you can execute one query by just passing the </span>
<span style="color: #666666; font-style: italic;">// SQL-statement as a string, or execute multiple by passing</span>
<span style="color: #666666; font-style: italic;">// an array of SQL-statements.</span>
<span style="color: #000088;">$sessions</span> <span style="color: #339933;">=</span> query<span style="color: #009900;">&#40;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;SELECT * FROM db_accounts&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;SELECT * FROM db_hits_np&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;SELECT * FROM db_sessions_np&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// we can get the other results through $query_results</span>
<span style="color: #666666; font-style: italic;">// pass the index of the SQL-statement to get its result</span>
<span style="color: #666666; font-style: italic;">// be carefull, the indexes start from 0 !		</span>
<span style="color: #000088;">$accounts</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$query_results</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$hits_np</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$query_results</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<h2>Getting the result as an associative array</h2>
<p>This is basically the same functionality as the mysql_fetch_array() method, but it saves you a line of code. You can specify a second (optional ) parameter when calling the function to specify if you want the result of the query to be returned as a normal resultset or as an associative array.<br/><br />
Set this optional parameter to &#8220;true&#8221; if you&#8217;d like an associative array to be returned, false otherwise. The default value is false.</p>
<h2>SQL INSERT-statement functions</h2>
<p>There are many situations where we need to insert a new record to the database, and right after use the newly inserted ID in our code. We can retrieve the new ID through the SQL &#8220;@@IDENTITY&#8221; command or PHP&#8217;s mysql_insert_id() function, but wouldn&#8217;t it be a nice feature to get the ID as a result of every INSERT-statement ?  This function does it all for you.</p>
<h3>Custom SQL syntax for easier coding with INSERT-statements</h3>
<p>It happens quite a lot when we insert several new records in a database, and we need the newly added ID in other SQL statements. Instead of using our query result in our next SQL-statement, we can add a bunch of statements and define in our SQL which ID should come instead of the given parameter. There are 2 custom SQL variables available:</p>
<p>LAST_INSERTED_ID</p>
<p>This parameter returns the last inserted ID, as you could probably guess. Here&#8217;s an example:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// we're using the LAST_INSERTED_ID here to </span>
<span style="color: #666666; font-style: italic;">// use the newly returned ID of the last</span>
<span style="color: #666666; font-style: italic;">// INSERT-statement in this connection. </span>
<span style="color: #666666; font-style: italic;">// Don't use this if the last query was not </span>
<span style="color: #666666; font-style: italic;">// an INSERT-statement</span>
query<span style="color: #009900;">&#40;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;INSERT INTO db_first_table(name, value, something) VALUES('name', 'value', 'something')&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;INSERT INTO db_second_table(first_id, value) VALUES(LAST_INSERTED_ID, 'value')&quot;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>INSERT_ID_FROM(number)</p>
<p>Less obvious to use is the INSERT_ID_FROM variable. Before executing your query, this variable is replaced by the ID returned from one of the previous SQL INSERT-statements executed in the same database connection. We can define the SQL-statements index in the parameter. Another example:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// we're using the INSERT_ID_FROM here to</span>
<span style="color: #666666; font-style: italic;">// the newly added ID of one of the previous</span>
<span style="color: #666666; font-style: italic;">// INSERT-statements of this connection.</span>
<span style="color: #666666; font-style: italic;">// pass the index of the INSERT-statement</span>
<span style="color: #666666; font-style: italic;">// to the parameter</span>
query<span style="color: #009900;">&#40;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;INSERT INTO db_first_table(name, value, something) VALUES('name', 'value', 'something')&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;INSERT INTO db_second_table(first_id, value) VALUES(LAST_INSERTED_ID, 'value')&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;INSERT INTO db_third_table(first_id, value) VALUES(INSERT_ID_FROM(0), 'value')&quot;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<h2>The Query-function</h2>
<p>So here it is, the function I&#8217;ve spent 902 words on in this post:<br />
( You can easily download the function in the zip-file attached below )</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$c_host</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'localhost'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$c_database</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'database_name'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$c_username</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'username'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$c_password</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'password'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> query<span style="color: #009900;">&#40;</span><span style="color: #000088;">$sql</span><span style="color: #339933;">,</span> <span style="color: #000088;">$arr</span><span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">// Advanced PHP Query function by Nick Van der Vreken</span>
	<span style="color: #666666; font-style: italic;">// more information about this function on</span>
	<span style="color: #666666; font-style: italic;">// http://www.bydust.com/advanced-php-query-functionadvanced-php-query-function/</span>
	<span style="color: #666666; font-style: italic;">// please leave this comment intact if you're using my function :-)</span>
&nbsp;
	<span style="color: #990000;">global</span> <span style="color: #000088;">$c_host</span><span style="color: #339933;">,</span> <span style="color: #000088;">$c_database</span><span style="color: #339933;">,</span> <span style="color: #000088;">$c_username</span><span style="color: #339933;">,</span> <span style="color: #000088;">$c_password</span><span style="color: #339933;">,</span> <span style="color: #000088;">$query_inserted_id</span><span style="color: #339933;">,</span> <span style="color: #000088;">$query_results</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000088;">$query_inserted_id</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>
	<span style="color: #000088;">$query_results</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>
	<span style="color: #000088;">$queries</span> <span style="color: #339933;">=</span> <span style="color: #990000;">is_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sql</span><span style="color: #009900;">&#41;</span>?<span style="color: #000088;">$sql</span><span style="color: #339933;">:</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sql</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$conn</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_connect</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$c_host</span><span style="color: #339933;">,</span> <span style="color: #000088;">$c_username</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$c_password</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span>?<span style="color: #000088;">$c_password</span><span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">NULL</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">mysql_select_db</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$c_database</span><span style="color: #339933;">,</span> <span style="color: #000088;">$conn</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$queries</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$query</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: #990000;">eregi</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'LAST_INSERTED_ID'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">// LAST_INSERTED_ID parameter</span>
			<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query_inserted_id</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> 
				<span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'LAST_INSERTED_ID'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$query_inserted_id</span><span style="color: #009900;">&#91;</span><span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query_inserted_id</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$query</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">else</span> <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Error on LAST_INSERTED_ID, there were no insert-statements executed in the current connection'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #990000;">eregi</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'INSERT_ID_FROM'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">// INSERT_ID_FROM parameter</span>
			<span style="color: #000088;">$s</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strpos</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$query</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'INSERT_ID_FROM('</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$n</span> <span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$query</span><span style="color: #339933;">,</span> <span style="color: #000088;">$s</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">15</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: #000088;">$id</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$n</span> <span style="color: #339933;">&lt;</span> <span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query_inserted_id</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> ? <span style="color: #000088;">$query_inserted_id</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$n</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">:</span> <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Error on INSERT_ID_FROM, wrong index'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$query</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #000088;">$s</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$id</span> <span style="color: #339933;">.</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$query</span><span style="color: #339933;">,</span> <span style="color: #990000;">strpos</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$query</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">')'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$s</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: #666666; font-style: italic;">//echo &quot;&lt;br/&gt;&lt;b&gt;Query $i: &lt;/b&gt; $query&quot;;</span>
		<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span>  <span style="color: #000088;">$query</span> <span style="color: #339933;">,</span> <span style="color: #000088;">$conn</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #990000;">array_push</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$query_results</span><span style="color: #339933;">,</span> <span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
		<span style="color: #990000;">array_push</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$query_inserted_id</span><span style="color: #339933;">,</span> <span style="color: #990000;">mysql_insert_id</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$conn</span><span style="color: #009900;">&#41;</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: #009900;">&#40;</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">==</span> <span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$queries</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;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">strpos</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$query</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'INSERT'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">===</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">||</span> <span style="color: #990000;">strpos</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$query</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'insert'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">===</span> <span style="color: #cc66cc;">0</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$query_inserted_id</span><span style="color: #009900;">&#91;</span><span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query_inserted_id</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #990000;">mysql_close</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$conn</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;">$arr</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$result</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #990000;">mysql_num_rows</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> ? <span style="color: #990000;">mysql_fetch_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">NULL</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$result</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Don&#8217;t forget to set the database information in the variables mentioned, otherwise this won&#8217;t work !</p>
<p>If you have any fixes or additions, feel free to share with us ;-)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bydust.com/advanced-php-query-function/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using Custom fields in WordPress to attach images or files to your posts.</title>
		<link>http://www.bydust.com/using-custom-fields-in-wordpress-to-attach-images-or-files-to-your-posts/</link>
		<comments>http://www.bydust.com/using-custom-fields-in-wordpress-to-attach-images-or-files-to-your-posts/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 18:48:08 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
		
		<category><![CDATA[Noteworthy]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Themes]]></category>

		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.bydust.com/?p=334</guid>
		<description><![CDATA[This article has been posted on the official WordPress Codex
WordPress has introduced Custom Fields for some time now, but not many people seem to know how to use them. Today I&#8217;ll try to give you some enlightenment about this, and explain how they work or what they can be used for.
I&#8217;ve been using Custom Fields [...]]]></description>
			<content:encoded><![CDATA[<p><a class="red" href="http://codex.wordpress.org/Using_Custom_Fields_to_attach_images,_links_or_files_to_a_post_easily" title="Click to see part of this article on the official WordPress Codex">This article has been posted on the official WordPress Codex</a></p>
<p>WordPress has introduced Custom Fields for some time now, but not many people seem to know how to use them. Today I&#8217;ll try to give you some enlightenment about this, and explain how they work or what they can be used for.</p>
<p>I&#8217;ve been using Custom Fields in my themes too, and have created a function which enables an unlimited amount of images, files, links, flying cows or *whatever* to be attached to your posts and pages.  There are probably alot more people that can benefit from this method, so feel free to use it. I&#8217;ll explain how to do this in this post.<br />
<span id="more-334"></span></p>
<h2>What are these mistery fields?</h2>
<p>Well, Custom Fields are variables which you can attach to posts or pages. These variables can hold whatever you want, for example a demo version of something you&#8217;ve blogged about or a picture of the candybar you just ate.</p>
<h2>How do I use them?</h2>
<p>Custom Fields can be added through the &#8220;Custom Fields&#8221; panel in the WordPress editor, as shown in the image below. All a field requires is a key and a value. The key will be used to identify the variable in your theme, the value itself will be used where you want it. In this example we&#8217;ll add a Custom Field called &#8220;link1&#8243;, which will hold the URL of the WordPress Codex documentation about Custom Fields.<br />
Fill in your key/value set and press &#8220;Add Custom Field&#8221;.</p>
<div id="attachment_341" class="wp-caption alignnone" style="width: 510px"><img class="size-full wp-image-341" title="customfieldsadd1" src="http://www.bydust.com/wp-content/uploads/2009/02/customfieldsadd1.jpg" alt="In this form we'll add the Custom Field. Our key will be &quot;link1&quot; and it'll hold the value &quot;http://codex.wordpress.org/Using_Custom_Fields&quot;." width="500" height="105" /><p class="wp-caption-text">In this form we&#39;ll add the Custom Field. Our key will be &quot;link1&quot; and it&#39;ll hold the value &quot;http://codex.wordpress.org/Using_Custom_Fields&quot;.</p></div>
<p>Ok, thats that. If you did everything right you should get something like this:</p>
<div id="attachment_340" class="wp-caption alignnone" style="width: 510px"><img class="size-full wp-image-340" title="customfieldsadded1" src="http://www.bydust.com/wp-content/uploads/2009/02/customfieldsadded1.jpg" alt="If you see this you did a good job." width="500" height="69" /><p class="wp-caption-text">If you see this you did a good job.</p></div>
<p>You&#8217;ll see that WordPress makes it easy for us, and will display all keys you&#8217;ve used before in a selection box. Next time you want to insert a Custom Field with this key, you can easily select it.</p>
<p>Our keys have not been saved however, to save them permanently we&#8217;ll need to save the current post or page first. You can do this using the button in the top right corner. In the next step I&#8217;ll explain how to use the inserted variables in your theme.</p>
<h2>Retrieving the posts Custom Fields in your theme.</h2>
<p>A WordPress theme cycles through its posts in something what we call &#8220;<a title="Read more about &quot;The Loop&quot; on the WordPress Codex" href="http://codex.wordpress.org/The_Loop">The Loop</a>&#8220;. This is the preferred way of fetching your content from the WordPress database. In order to understand what happens next, you should have basic knowledge of what this thing really does ( <a title="Read more about &quot;The Loop&quot; on the WordPress Codex" href="http://codex.wordpress.org/The_Loop">click here to be enlightened</a> ).</p>
<p>Every time &#8220;The Loop&#8221; runs over one of our posts, we can ask WordPress if it has one of our Custom Fields on that particular post. The function we&#8217;ll use to do that is called &#8220;<a title="Read more about the &quot;get_post_meta()&quot; function on the WordPress Codex" href="http://codex.wordpress.org/Using_Custom_Fields">get_post_meta</a>&#8220;. If WordPress holds a key named &#8220;link1&#8243; for that post, it&#8217;ll put its value (the URL we entered) in the variable we define for it. In this example the variable &#8220;$our_custom_field_variable&#8221; will be the lucky one. When WordPress doesn&#8217;t find the key we asked for however, the variable will have a &#8220;null&#8221;-value.</p>
<p>You can see a basic implementation of how to get our key below.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&nbsp;
 &lt;!-- Start the Loop. --&gt;
 <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</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> <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: #339933;">;</span> 
<span style="color: #666666; font-style: italic;">// here we get the Custom Field with key &quot;link1&quot;. </span>
<span style="color: #666666; font-style: italic;">// the PHP variable &quot;$our_custom_field_variable&quot; will hold the link </span>
<span style="color: #666666; font-style: italic;">// to the WordPress Codex documentation. </span>
<span style="color: #000088;">$our_custom_field_variable</span> <span style="color: #339933;">=</span> get_post_meta<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: #339933;">,</span> <span style="color: #0000ff;">'link1'</span><span style="color: #339933;">,</span> <span style="color: #000000; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
 &lt;!-- Display the Post's Content in a div box. --&gt;
 &lt;div class=&quot;entry&quot;&gt;
   <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
 &lt;/div&gt;
&nbsp;
&nbsp;
&lt;!-- Display our Custom Field --&gt;
&lt;div class=&quot;link&quot;&gt;
   link1: &quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #990000;">echo</span> <span style="color: #000088;">$our_custom_field_variable</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;
 &lt;/div&gt;
&nbsp;
 &lt;!-- Stop The Loop (but note the &quot;else:&quot; - see next line). --&gt;
 <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">else</span><span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
 &lt;!-- The very first &quot;if&quot; tested to see if there were any Posts to --&gt;
 &lt;!-- display.  This &quot;else&quot; part tells what do if there weren't any. --&gt;
 &lt;p&gt;Sorry, no posts matched your criteria.&lt;/p&gt;
&nbsp;
 &lt;!-- REALLY stop The Loop. --&gt;
 <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>There you go, thats all !<br />
From now on you can use Custom Fields in all your WordPress themes.<br />
If you&#8217;re still interested in my own method, keep reading for a few more minutes.</p>
<h2>Automatically fetching all Custom Fields</h2>
<h3>What&#8217;s the point?</h3>
<p>If you have alot of Custom Fields defined, it may be a good idea to automate the fetching part.<br />
I wrote a small PHP function to do this for me, and to create an array of attached images/links/files along with their labels.</p>
<p>Here&#8217;s an example of its use: suppose I need to attach 5 images to a post, each with their own label.<br />
I could place them in the editor yourself, but using Custom Fields I could also create a nice slideshow.<br />
To accomplish this I need to create several Custom Fields. First we have the &#8220;image1&#8243;, &#8220;image2&#8243;, &#8220;image*&#8221; to &#8220;image5&#8243; keys, these will hold the image URL. This would be enough to create an array of images, but I&#8217;d like some of them to have a label too. Lets say the image with key &#8220;image2&#8243; needs the label &#8220;Second Image&#8221;, I could accomplish that by adding a field called &#8220;image2_label&#8221; with the value &#8220;Second Image&#8221;.</p>
<p>In this example the function would create two PHP arrays, one called &#8220;$post_images&#8221; which contains the images, and another one &#8220;$post_images_label&#8221; which contains the labels for these images. I&#8217;ll show you how to loop through these arrays later on, but you should get the point of doing this now. If not, look at the bottom of this post. The list of links and files and the image slideshow is created using Custom Fields.</p>
<p>The function also simplifies fetching other (non-list keys) too, by putting all of them in the &#8220;$post_var&#8221;-object. If I created a Custom Field called &#8220;myField&#8221;, I could easily reach its value through $post_var["myField"]. This is shorter than the &#8220;get_post_meta()&#8221;-method mentioned above.</p>
<h3>The magic function</h3>
<p>Here&#8217;s the function that does the trick, copy/paste this in your functions.php file so you can access it from your theme. I&#8217;d appreciate it if you would keep the author notice at the top intact ;-)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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: #000000; font-weight: bold;">function</span> bd_parse_post_variables<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #666666; font-style: italic;">// bd_parse_post_variables function for WordPress themes by Nick Van der Vreken.</span>
<span style="color: #666666; font-style: italic;">// please refer to bydust.com/using-custom-fields-in-wordpress-to-attach-images-or-files-to-your-posts/</span>
<span style="color: #666666; font-style: italic;">// for further information or questions.</span>
<span style="color: #990000;">global</span> <span style="color: #000088;">$post</span><span style="color: #339933;">,</span> <span style="color: #000088;">$post_var</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// fill in all types you'd like to list in an array, and</span>
<span style="color: #666666; font-style: italic;">// the label they should get if no label is defined.</span>
<span style="color: #666666; font-style: italic;">// example: each file should get label &quot;Download&quot; if no</span>
<span style="color: #666666; font-style: italic;">// label is set for that particular file.</span>
<span style="color: #000088;">$types</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'image'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'no info available'</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'file'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Download'</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'link'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Read more...'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// this variable will contain all custom fields</span>
<span style="color: #000088;">$post_var</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>
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span>get_post_custom<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: #b1b100;">as</span> <span style="color: #000088;">$k</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$v</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$post_var</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$k</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array_shift</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$v</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// creating the arrays</span>
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$types</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$type</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$message</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #990000;">global</span> $<span style="color: #009900;">&#123;</span><span style="color: #0000ff;">'post_'</span><span style="color: #339933;">.</span><span style="color: #000088;">$type</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'s'</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> $<span style="color: #009900;">&#123;</span><span style="color: #0000ff;">'post_'</span><span style="color: #339933;">.</span><span style="color: #000088;">$type</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'s_label'</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
$<span style="color: #009900;">&#123;</span><span style="color: #0000ff;">'post_'</span><span style="color: #339933;">.</span><span style="color: #000088;">$type</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'s'</span><span style="color: #009900;">&#125;</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>
$<span style="color: #009900;">&#123;</span><span style="color: #0000ff;">'post_'</span><span style="color: #339933;">.</span><span style="color: #000088;">$type</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'s_label'</span><span style="color: #009900;">&#125;</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>
<span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_var</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$type</span><span style="color: #339933;">.</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #990000;">array_push</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#123;</span><span style="color: #0000ff;">'post_'</span><span style="color: #339933;">.</span><span style="color: #000088;">$type</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'s'</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$post_var</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$type</span><span style="color: #339933;">.</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">array_push</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#123;</span><span style="color: #0000ff;">'post_'</span><span style="color: #339933;">.</span><span style="color: #000088;">$type</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'s_label'</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>  <span style="color: #000088;">$post_var</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$type</span><span style="color: #339933;">.</span><span style="color: #000088;">$i</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'_label'</span><span style="color: #009900;">&#93;</span>?<span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_var</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$type</span><span style="color: #339933;">.</span><span style="color: #000088;">$i</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'_label'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000088;">$message</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$i</span><span style="color: #339933;">++;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<h3>Customizing the script to your needs</h3>
<p>You may need to edit this function to suit your needs. It currently creates a list for files, links and images in these variables:</p>
<ul>
<li>$post_images (hold the values given to &#8220;image1&#8243;, &#8220;image2&#8243;, &#8220;image*&#8221;)</li>
<li>$post_images_label (holds the values given to &#8220;image1_label&#8221;, &#8220;image2_label&#8221;, &#8220;image*_label&#8221;. If no label is specified but an image*-key is, the label for that image will be the default label specified in the script. This goes for all _label arrays.</li>
<li>$post_files (holds the values given to &#8220;file1&#8243;, &#8220;file2&#8243;, &#8220;file*&#8221;)</li>
<li>$post_files_label (holds the values given to &#8220;file1_label&#8221;, &#8220;file2_label&#8221;, &#8220;file*_label&#8221;)</li>
<li>$post_links (holds the values given to &#8220;link1&#8243;, &#8220;link2&#8243;, &#8220;link*&#8221;)</li>
<li>$post_links_label (holds the values given to &#8220;link1_label&#8221;, &#8220;link2_label&#8221;, &#8220;link*_label&#8221;)</li>
</ul>
<p>All information for these arrays is included in the $types-variable. The only thing you need to do to add a type is adding that type to the array. For example if you want to output a list of your cats names and pictures, you&#8217;d need this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// fill in all types you'd like to list in an array, and</span>
<span style="color: #666666; font-style: italic;">// the label they should get if no label is defined.</span>
<span style="color: #666666; font-style: italic;">// example: each file should get label &quot;Download&quot; if no</span>
<span style="color: #666666; font-style: italic;">// label is set for that particular file.</span>
<span style="color: #000088;">$types</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'image'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'no info available'</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'file'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Download'</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'link'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Read more...'</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'cat'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'This cat has no name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>With this example you could add Custom Keys named &#8220;cat1&#8243;, &#8220;cat1_label&#8221;, &#8220;cat2&#8243;, &#8220;cat2_label&#8221;, &#8220;cat*&#8221;, &#8220;cat*_label&#8221; where the &#8220;cat*&#8221;-key would hold the cats picture, and the &#8220;cat*_label&#8221;-key would be the cats name.<br />
This function would create the arrays &#8220;$post_cats&#8221; and &#8220;$post_cats_label&#8221;, containing each cats picture and name.</p>
<h3>Using the parsed Custom Fields in your theme</h3>
<p>We now have our arrays which contain the values of the Custom Fields we&#8217;ve set up. You can use these as regular PHP arrays, here&#8217;s how I did it:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&nbsp;
 &lt;!-- Start the Loop. --&gt;
 <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</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> <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: #339933;">;</span> 
<span style="color: #666666; font-style: italic;">// call the function in our functions.php file</span>
bd_parse_post_variables<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #666666; font-style: italic;">// these variables are now available:</span>
<span style="color: #666666; font-style: italic;">// $post_var</span>
<span style="color: #666666; font-style: italic;">// $post_images and $post_images_label</span>
<span style="color: #666666; font-style: italic;">// $post_links and $post_links_label</span>
<span style="color: #666666; font-style: italic;">// $post_files and $post_files_label</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
 &lt;!-- Display the Post's Content in a div box. --&gt;
 &lt;div class=&quot;entry&quot;&gt;
   <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
 &lt;/div&gt;
&nbsp;
&nbsp;
&lt;!-- Display our Custom Field --&gt;
&lt;div class=&quot;link&quot;&gt;
   link1: &quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #990000;">echo</span> <span style="color: #000088;">$post_var</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'myField'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;
 &lt;/div&gt;
&nbsp;
&lt;!-- Display the list of links --&gt;
&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><span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_files</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
 &lt;li class=&quot;file&quot;&gt;
&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #990000;">echo</span> <span style="color: #990000;">array_shift</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_files</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; title=&quot;Click to download this file&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #990000;">echo</span> <span style="color: #990000;">array_shift</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_files_label</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</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;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;
&nbsp;
 &lt;!-- Stop The Loop (but note the &quot;else:&quot; - see next line). --&gt;
 <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">else</span><span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
 &lt;!-- The very first &quot;if&quot; tested to see if there were any Posts to --&gt;
 &lt;!-- display.  This &quot;else&quot; part tells what do if there weren't any. --&gt;
 &lt;p&gt;Sorry, no posts matched your criteria.&lt;/p&gt;
&nbsp;
 &lt;!-- REALLY stop The Loop. --&gt;
 <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>This example will output something like my list of links and files below. The image slideshow is created in the same way, but it uses the lightbox script.</p>
<p>I hope you&#8217;ve found this explenation usefull. If you used my code or made changes to it to increase its function, please let me know ;-)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bydust.com/using-custom-fields-in-wordpress-to-attach-images-or-files-to-your-posts/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Playr, the best actionscript music player out there</title>
		<link>http://www.bydust.com/playr-the-best-actionscript-music-player-out-there/</link>
		<comments>http://www.bydust.com/playr-the-best-actionscript-music-player-out-there/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 19:36:21 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
		
		<category><![CDATA[Actionscript]]></category>

		<category><![CDATA[Flash]]></category>

		<category><![CDATA[Links]]></category>

		<category><![CDATA[Noteworthy]]></category>

		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.bydust.com/?p=241</guid>
		<description><![CDATA[Playr is an open source Flash Actionscript 3 class which takes the heavy lifting off your hands and makes the building of any kind of music player a piece of cake. Yes! Thats the short description right there.
If you need a music player in your site, this is what you need. Playr makes it incredible [...]]]></description>
			<content:encoded><![CDATA[<p>Playr is an open source Flash Actionscript 3 class which takes the heavy lifting off your hands and makes the building of any kind of music player a piece of cake. Yes! Thats the short description right there.</p>
<p>If you need a music player in your site, this is what you need. Playr makes it incredible easy to implement any kind of music player in your flash website. And the best part of it, you only need two (<span style="text-decoration: underline;">2</span>!) lines of actionscript to get it working. <span id="more-241"></span><br />
For all you hard asses that don&#8217;t believe me, here&#8217;s an example:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">nocreativity</span>.<span style="color: #006600;">playr</span>.<span style="color: #006600;">Playr</span>;
<span style="color: #000000; font-weight: bold;">var</span> playr:Playr= <span style="color: #000000; font-weight: bold;">new</span> Playr<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;/assets/playlist.xml&quot;</span>,<span style="color: #ff0000;">&quot;/assets/music/&quot;</span>,<span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;</pre></td></tr></table></div>

<p>Or a bit more advanced:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">nocreativity</span>.<span style="color: #006600;">playr</span>.<span style="color: #66cc66;">*</span>;
<span style="color: #000000; font-weight: bold;">var</span> playr:Playr= <span style="color: #000000; font-weight: bold;">new</span> Playr<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;/assets/playlist.xml&quot;</span>,<span style="color: #ff0000;">&quot;/assets/music/&quot;</span>,<span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
playr.<span style="color: #006600;">registerPlayButton</span><span style="color: #66cc66;">&#40;</span>btnPlay<span style="color: #66cc66;">&#41;</span>;
playr.<span style="color: #006600;">registerPauseButton</span><span style="color: #66cc66;">&#40;</span>btnPause<span style="color: #66cc66;">&#41;</span>;
playr.<span style="color: #006600;">registerNextButton</span><span style="color: #66cc66;">&#40;</span>btnNext<span style="color: #66cc66;">&#41;</span>;
playr.<span style="color: #006600;">registerPreviousButton</span><span style="color: #66cc66;">&#40;</span>btnPrevious<span style="color: #66cc66;">&#41;</span>;
playr.<span style="color: #006600;">registerStopButton</span><span style="color: #66cc66;">&#40;</span>btnStop<span style="color: #66cc66;">&#41;</span>;
playr.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>PlayrErrorEvent.<span style="color: #006600;">PLAYLIST_STREAM_ERROR</span>, playlistStreamErrorHandler<span style="color: #66cc66;">&#41;</span>;
playr.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>PlayrErrorEvent.<span style="color: #006600;">SOUND_STREAM_ERROR</span>, soundStreamErrorHandler<span style="color: #66cc66;">&#41;</span>;
playr.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>PlayrErrorEvent.<span style="color: #006600;">PLAYLIST_INVALID_XML</span>, playlistInvalidXMLErrorHandler<span style="color: #66cc66;">&#41;</span>;
playr.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>PlayrErrorEvent.<span style="color: #006600;">TRACK_NOT_ADDED_TO_PLAYLIST</span>, trackNotAddedToPlaylistErrorHandler<span style="color: #66cc66;">&#41;</span>;</pre></td></tr></table></div>

<p>You can download Playr and see more information and examples at <a title="Click to go to the Playr homepage" href="http://playr.nocreativity.com/">playr.nocreativity.com</a>.<br />
The Playr documentation is available at <a title="Click and the Playr documentation will magically appear !" href="http://playr.nocreativity.com/docs/">playr.nocreativity.com/docs/</a></p>
<p>Playr has been developed by the local Flashguru, <a title="Visit Ronny Welters homepage" href="http://www.nocreativity.com">Ronny Welter</a> .<br />
No animals were hurt or killed during the development of Playr. Ronny had a headache tho.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bydust.com/playr-the-best-actionscript-music-player-out-there/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Fhi-zin, free AJAX Wordpress theme template for Portfolio and Photography</title>
		<link>http://www.bydust.com/fhi-zin-free-ajax-wordpress-theme-template-for-portfolio-and-photography/</link>
		<comments>http://www.bydust.com/fhi-zin-free-ajax-wordpress-theme-template-for-portfolio-and-photography/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 17:01:42 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
		
		<category><![CDATA[AJAX]]></category>

		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Javascript]]></category>

		<category><![CDATA[Noteworthy]]></category>

		<category><![CDATA[Photography]]></category>

		<category><![CDATA[Projects]]></category>

		<category><![CDATA[Themes]]></category>

		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.bydust.com/?p=192</guid>
		<description><![CDATA[Fhi-zin is one of the best Wordpress themes for Portfolio and Photography websites on the web, and with its unique design it doesn&#8217;t even look like a Wordpress website ! On top of that, its completely driven by an AJAX engine, is Googlefriendly, SEO-optimised and capable of attaching an unlimited amount of images on each [...]]]></description>
			<content:encoded><![CDATA[<p>Fhi-zin is one of the best Wordpress themes for Portfolio and Photography websites on the web, and with its unique design it doesn&#8217;t even look like a Wordpress website ! On top of that, its completely driven by an AJAX engine, is Googlefriendly, SEO-optimised and capable of attaching an unlimited amount of images on each post.</p>
<p><span id="more-192"></span></p>
<p>Like I said before, Fhi-zin is completely <strong>AJAX-driven</strong>. It&#8217;s powered by my <a href="http://www.bydust.com/ajaxed-website-automatically-convert-to-ajax-website-combydustajax/">com.bydust.ajax</a> class, which automatically converts a static website into an AJAX-driven website. The theme runs smoothly on computers with javascript disabled, for example older browsers and search engines. Whenever a javascript error occurs - which should be never, but you never know - the ajax class should commit suicide and your theme will run without the ajax-functions. Offcourse that never happens, its just in case ;-)</p>
<p>Fhi-zin will most likely be used for <strong>portfolio sites </strong>and <strong>photography galleries </strong>which will use Wordpress as a CMS-system. The possibility of <strong>attaching an unlimited amount of high-resolution images</strong> to each post can be used to create a separate gallery from each post in your Wordpress site, which you can group in the standard Wordpress categories. There is no maximum dimension size for these images, but if you pick large dimensions some users may have problems viewing the images since they dont fit on their screen. If you keep the dimensions smaller than 1000&#215;700 things should be fine :)</p>
<p>Apart from the unlimited images, you can define<strong> external links</strong> and <strong>downloadable files</strong> for each post too. There is a live demo available for you, and the theme is up for download on Wordpress.org.</p>
<p>When the theme is activated, there will be an information page available in your Wordpress administration. This can be very usefull for adding images and links. If you still have some questions or remarks, please post them here.</p>
<p>For all users who want <strong>scrollbars </strong>in the post/page content text, I&#8217;ve made a modified theme which includes scrollbars. You can download it <a href="http://www.bydust.com/wp-content/uploads/2008/11/fhi-zin-content-scroller.zip">here</a>. If you already uploaded the Fhi-zin theme, you just need to replace the files &#8220;style.css&#8221;, &#8220;single.php&#8221; and &#8220;js/main.js&#8221;.</p>
<p>I&#8217;ve found already quite a few websites who use Fhi-zin, here are a few nice examples:</p>
<ul>
<li><a href="http://namouda.fr/">Namouda</a><a href="http://namouda.fr/"><br />
<img class="alignnone" src="http://www.bydust.com/wp-content/uploads/2008/11/namouda.jpg" alt="" width="200" height="150" /></a></li>
<li><a href="http://www.pencil-to-paper.co.uk/">Pencil to Paper<br />
</a><a href="http://www.pencil-to-paper.co.uk/"><img class="alignleft" src="http://www.bydust.com/wp-content/uploads/2008/11/penciltopaper.jpg" alt="" width="200" height="150" /></a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.bydust.com/fhi-zin-free-ajax-wordpress-theme-template-for-portfolio-and-photography/feed/</wfw:commentRss>
		</item>
		<item>
		<title>AJAXed website - Automatically convert to AJAX website - com.bydust.ajax</title>
		<link>http://www.bydust.com/ajaxed-website-automatically-convert-to-ajax-website-combydustajax/</link>
		<comments>http://www.bydust.com/ajaxed-website-automatically-convert-to-ajax-website-combydustajax/#comments</comments>
		<pubDate>Fri, 17 Oct 2008 22:46:01 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
		
		<category><![CDATA[AJAX]]></category>

		<category><![CDATA[Browsers]]></category>

		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Javascript]]></category>

		<category><![CDATA[Noteworthy]]></category>

		<category><![CDATA[Projects]]></category>

		<category><![CDATA[Themes]]></category>

		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.bydust.com/?p=167</guid>
		<description><![CDATA[The com.bydust.ajax class is simply a javascript class that automatically converts your static website into a full-blown ajaxed website. Whenever a user visits your website, the class will perform a browser-check. If your visitor&#8217;s browser is capable of running the needed javascript, it will convert the website automatically. If not, the script deactivates itself and [...]]]></description>
			<content:encoded><![CDATA[<p>The com.bydust.ajax class is simply a javascript class that automatically converts your static website into a full-blown ajaxed website. Whenever a user visits your website, the class will perform a browser-check. If your visitor&#8217;s browser is capable of running the needed javascript, it will convert the website automatically. If not, the script deactivates itself and the visitor browses through your website as it is ( without ajax request etc. ).</p>
<p>You can download the script and view the howto at <a class="bda_ignore" href="http://www.bydust.com/examples/com.bydust.ajax/">http://www.bydust.com/examples/com.bydust.ajax/</a></p>
<p><span id="more-167"></span></p>
<p><strong>Basic implementation</strong></p>
<p>The implementation of the javascript class is really easy, you just need to add a few lines of code into your pages. These will load and launch the script, and mark the area&#8217;s you want to refresh on each page. Look at the implementation page on the <a href="http://www.bydust.com/examples/com.bydust.ajax/">manual</a> for more information.</p>
<p><strong>Customizable animations</strong></p>
<p>Yes, animations. Its only eye-candy, but it improves the style of your website alot, and the users impression of your website.<br />
There are two types of animations available in the script, we have the tweens who smoothly fit your content into your page, and the alpha transitions which display your content with a nice fade in. As if that isn&#8217;t enough yet, these animations are customizable !<br />
There are 13 types of tweens available, from normal easeIn or easeOut tweens to elastic and bouncy. There&#8217;s also an option to disable the tweens and alpha transitions, this might be good for large pages since they demand some CPU usage from the visitors computer. Don&#8217;t think you&#8217;ll need to disable tho :)</p>
<p>You can add more eye-candy in the customizable loading-messages, for example a nice loading image in gif-format or even little flash-movies. By adding CSS-styles in the loading-messages this can be very easy.</p>
<p><strong>Functionalities</strong></p>
<p>Its a bit more than your average &#8220;Hey-I-can-do-ajax&#8221;-script. With this script you can add event listeners, set up custom rules and custom animations, manage the filetypes handled by the script, and so on.</p>
<p>Attaching <strong>event listeners</strong> to certain events launched by the script allows you to execute certain pieces of code whenever an event happens, for example on errors ( but offcourse these never occur :) ) or page loads. Attaching an event listener is very easy, you can attach an event with one line of code. Just like in actionscript, we can use the &#8220;addEventListener&#8221;-function with the same two parameters, the event and the function to execute.</p>
<p><strong>Custom rules</strong> allow us to tell the script to discard certain links or forms, or even to only notify the server when a user has clicked a certain link or posted a form. These rules can come in handy when you don&#8217;t want certain links to be parsed in ajax, for example feeds or trackbacks. When implemented in a Wordpress theme, you&#8217;ll need to add these rules for the wp-admin folder, feed and trackback links.</p>
<p><strong>Error handling</strong> is often overlooked, but not here. The class is able to discover whenever an error occured, and will fix it when possible. If it notices that there is no way to fix the error, for example if one of the requested pages doesn&#8217;t have the information it needs, it will shut down itself and serve the page as a normal browser request, without any ajax. The ajax-class will then load again when the new page is fully loaded. If the script is able to fix the error, an error-event containing all information will be raised and an appropriate message will be shown. These messages are also customizable offcourse :)</p>
<p>Webpages often contain images, thats why I&#8217;ve built in some <strong>image preloading</strong> functions. When the ajax-class receives the new page from the server, it starts looking for images in the content areas that need to be refreshed. As long as its preloading, a ( customizable ! ) message will be shown to the user. When the images are fully loaded or the maximum load time has been reached the script will display the page. And, as you can guess, the maximum load time can also be specified by the user.</p>
<p>Since this is a pretty big project I&#8217;ve set up <a class="bda_ignore" href="http://www.bydust.com/examples/com.bydust.ajax/">a small howto-website</a> with loads of information about the script, and an example for you to download. You&#8217;ll find a detailed manual for the basic implementation there, along with the more advanced stuff.</p>
<p>The script is completely free for non-commercial use, but I&#8217;d like you to leave the credits in the classfiles and maybe a small link back to this page - if its not too much trouble. I&#8217;ll link back to your website if you&#8217;re using the script, so others have some more working examples. Contact me for commercial use :)</p>
<p>Com.bydust.ajax has been featured on several websites and communities:</p>
<ul>
<li><a title="View the article on webresourcedepot" href="http://www.webresourcesdepot.com/ajaxify-a-static-website-in-minutes/">webresourcesdepot.com</a></li>
<li><a title="View the article on hotajax" href="http://www.hotajax.org/others/photos--other-plugins/581-ajaxify-a-static-website-in-minutes-using-combydustajax.html">hotajax.org</a></li>
<li><a title="View the article on hotscripts" href="http://www.hotscripts.com/Detailed/84976.html">hotscripts.com</a></li>
<li><a title="View the article on Coliss" href="http://coliss.com/articles/build-websites/operation/javascript/1750.html">coliss.com</a></li>
<li><a title="View the article on e-siber" href="http://www.e-siber.com/web-teknolojileri/statik-bir-web-sitesini-kolayca-ajaxli-hale-getirin/">e-siber.com</a></li>
<li><a title="View the article on qvado" href="http://qvado.ru/2008/11/10/ajaxify/">qvado.ru</a></li>
<li><a href="http://nocreativity.com/blog/ajaxed-websites-done-right">noCreativity.com</a> (Dutch article)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.bydust.com/ajaxed-website-automatically-convert-to-ajax-website-combydustajax/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Google Chrome: the revolutionary browser ?</title>
		<link>http://www.bydust.com/google-chrome-the-revolutionary-browser/</link>
		<comments>http://www.bydust.com/google-chrome-the-revolutionary-browser/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 18:37:51 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
		
		<category><![CDATA[Browsers]]></category>

		<category><![CDATA[Noteworthy]]></category>

		<category><![CDATA[Reviews]]></category>

		<guid isPermaLink="false">http://www.bydust.com/?p=142</guid>
		<description><![CDATA[Yesterday Google released their brand-new browser Chrome, but is this the revolutionary browser we have all been waiting for ? I&#8217;ve tested this browser for about 10hours now, I&#8217;ll discuss a few things about it here.
Lets start with the good things, because there are quite a few. The Chrome browser is designed to give the [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday Google released their brand-new browser Chrome, but is this the revolutionary browser we have all been waiting for ? I&#8217;ve tested this browser for about 10hours now, I&#8217;ll discuss a few things about it here.</p>
<p><span id="more-142"></span>Lets start with the good things, because there are quite a few. The Chrome browser is designed to give the user as much space as possible to display web content. There is no statusbar, no menubar and no titlebar. Ok, maybe this looks a bit different from what we&#8217;re all used to, but in my opinion its a pretty good improvement. For us who use the statusbar ( including me ), don&#8217;t panic. Whenever you hover over a link, a small statusbar pops up at the bottom of the browserscreen. This goes for some other actions too, so its not that different from your average browser.</p>
<p>The Chrome layout is fresh, simple and it makes the browser easy to use. There isn&#8217;t a flood of information available at first sight, we just focus on the webpage here. History, downloads and favorites are only one click away, there is a possibility to display a favorites-bar too.  The options-window is pretty small, it only contains what we really need. Take a look at picture 3 for the layout and favorites.</p>
<p>Its not the lightest browser however, when we look at the stats Google Chrome created for us ( and we can see those in picture 2 ), we see that Opera still has the crown there. Chrome has its own task manager, and statistics page for each tab. It also displays other browsers, if they are running on the host computer. To clearify the statistics on picture 2, I opened the bydust.com mainpage in 5 different browsers, just to see the differences between browsers there.</p>
<p>Pages load faster too, the Google guys didn&#8217;t lie about that. Whenever you open a large page, you get the idea that its loaded faster than on whatever browser you&#8217;ve used before. Same goes for executing javascript, thats one point more for Google Chrome.</p>
<p>On Chrome&#8217;s default start page you can see your most visited websites, including thumbnails. Pretty nice Google, but it would be nicer if we could set our own websites on the quickdial function. Lets hope this will be one of the first plugins released for Google Chrome.</p>
<p>According to Google Chrome shouldn&#8217;t freeze or lock up whenever something bad happens in one of its tabs, the problem should be kept in that particular tab. Well, thats a pretty nice idea and it works most of the time, but I&#8217;ve had a few freezes already. Mostly its nothing, I close a tab or make a request and the browser freezes for a second, but right before I started writing this review I had to kill the process because it was taking all available CPU recources. I was browsing for an image file, maybe it had a little problem with explorer - I don&#8217;t know.</p>
<p>Another &#8220;bad&#8221; thing about Chrome are the resizable textarea&#8217;s. Thats pretty usefull indeed, but whatever you type in those things isn&#8217;t shown as it should be. Sometimes parts of words are dissapearing, or a whole sentence vanishes. Its still there, we just don&#8217;t see it.</p>
<p>Ok, this must be the longest blogpost ever (from me, that is). Hope this was interesting for you :)</p>
<p>Small edit: after reading Robert Accettura&#8217;s blogposts about Google Chrome I thought you guys might find this interesting.<br />
Here are <a href="http://robert.accettura.com/blog/2008/09/02/initial-thoughts-on-google-chrome/" target="_blank">his initial thoughts on Chrome</a>, and <a href="http://robert.accettura.com/blog/2008/09/03/aboutinternets/" target="_blank">the easter egg</a> he discovered.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bydust.com/google-chrome-the-revolutionary-browser/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Top 49 of best free Wordpress Themes and Templates</title>
		<link>http://www.bydust.com/top-49-of-best-free-wordpress-themes-and-templates/</link>
		<comments>http://www.bydust.com/top-49-of-best-free-wordpress-themes-and-templates/#comments</comments>
		<pubDate>Sat, 16 Aug 2008 15:26:19 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
		
		<category><![CDATA[Noteworthy]]></category>

		<category><![CDATA[Themes]]></category>

		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.bydust.com/?p=111</guid>
		<description><![CDATA[Lots of people are looking for some good and colorfull Wordpress themes for their blog, and even more people have alot of trouble finding the one they need. Thats why I&#8217;ve set up my top 49 of free Wordpress themes for you to download.

You might want to check out my Fhi-zin theme, its a flashy [...]]]></description>
			<content:encoded><![CDATA[<p>Lots of people are looking for some good and colorfull Wordpress themes for their blog, and even more people have alot of trouble finding the one they need. Thats why I&#8217;ve set up my top 49 of free Wordpress themes for you to download.</p>
<p><span id="more-111"></span></p>
<p>You might want to check out my <a href="http://www.bydust.com/fhi-zin-free-ajax-wordpress-theme-template-for-portfolio-and-photography/">Fhi-zin theme</a>, its a flashy AJAX theme which is perfect for a portfolio or photography website.</p>
<p>Enough said, start looking!</p>
<table id="table_button_links" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Aalglatt</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/aalglatt.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.felixkrusch.de/testthemes2/">View demo</a></p>
<p><a href="http://www.felixkrusch.de/?s=aalglatt&amp;x=0&amp;y=0">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Aspire</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/aspire.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.infocreek.com/webdesign/aspire.html">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Autumn Concept</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/autumnconcept.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.tenbytwenty.com/products/wordpress-themes/autumn-concept">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>deLight</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/delight.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.nattywp.com/test.php?theme_id=140">View demo</a></p>
<p><a href="http://www.nattywp.com/view-theme.php?theme_id=140&amp;theme_name=deLight">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>dfMarine</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/dfmarine.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://marine.dezinerfolio.com/">View demo</a></p>
<p><a href="http://www.dezinerfolio.com/2007/10/22/dfmarine-wordpress-theme/">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>dilectio</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/dilectico.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.wp-themes.designdisease.com/testrun/?theme=dilectio">View   demo</a></p>
<p><a href="http://www.smashingmagazine.com/2007/12/21/dilectio-a-smashing-wordpress-theme/">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Dreamplace</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/dreamplace.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.nattywp.com/test-natty.php?theme_id=99902">View   demo</a></p>
<p><a href="http://www.nattywp.com/view-natty-theme.php?theme_id=99902&amp;theme_name=Dreamplace">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Elegance</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/elegance.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.nattywp.com/test.php?theme_id=65">View demo</a></p>
<p><a href="http://www.nattywp.com/view-theme.php?theme_id=65&amp;theme_name=Elegance">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Fauna</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/fauna.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.noscope.com/fauna/">View demo</a></p>
<p><a href="http://www.noscope.com/fauna/">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Fluid Solution</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/fluidsolution.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.wpdemo.kaushalsheth.com/index.php?wptheme=Fluid+Solution">View   demo</a></p>
<p><a href="http://www.kaushalsheth.com/fluid-solution-wordpress-theme-released/">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Freshy</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/freshy.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.jide.fr/english/downloads/template-freshy-wordpress/">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Glossy blue</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/glossyblue.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.ndesign-studio.com/resources/wp-themes/glossyblue/">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Gossip City</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/gossipcity.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.wp-themes.designdisease.com/testrun/?theme=wp_gossipcity2/gossipcity">View   demo</a></p>
<p><a href="http://www.celebrific.com/gossip-city-wordpress-theme-release/">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Gridline lite</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/gridline.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://gridline.thadallender.com/index.php?wptheme=Gridline+Lite">View   demo</a></p>
<p><a href="http://graphpaperpress.com/2007/12/09/gridline-lite/">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Hello Wiki</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/hellowiki.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://hellowiki.com/2007/02/28/wordpress-theme-hello-2007/">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>I3 theme brothers, Left and Right!</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/i3themebrothers.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.mangoorange.com/2007/06/18/i3theme-brothers-left-and-right/">View   demo</a></p>
<p><a href="http://www.mangoorange.com/2007/06/18/i3theme-brothers-left-and-right/">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>I feel dirty</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/ifeeldirty.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://studio.st/i-feel-dirty/">View demo</a></p>
<p><a href="http://studio.st/i-feel-dirty/">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Illacrimo</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/illacrimo.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.wp-themes.designdisease.com/testrun/?theme=wp_illacrimo/illacrimo">View   demo</a></p>
<p><a href="http://wp-themes.designdisease.com/category/free-blog-themes/illacrimo/">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Intrablog</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/intrablog.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.anieto2k.com/2006/11/23/intrablog-ahora-para-wordpress/">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Jello Wala Mello</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/jellowallamelo.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.wpdesigner.com/2007/10/06/jello-wala-mello-wordpress-theme/">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>JSTheme V1.1</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/jstheme1.1.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://jsbox.net/264">View demo</a></p>
<p><a href="http://jsbox.net/264">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>JSTheme</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/jstheme.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://jsbox.net/389">View demo</a></p>
<p><a href="http://jsbox.net/389">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Light</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/light.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://wpzone.net/demo/?wpzone_theme=Light">View demo</a></p>
<p><a href="http://wpzone.net/free-wordpress-themes/light/">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Metamorph tropicforest</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/metamorph.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.nattywp.com/test.php?theme_id=92">View demo</a></p>
<p><a href="http://www.nattywp.com/view-theme.php?theme_id=92&amp;theme_name=metamorph_tropicforest">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Modern</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/modern.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.ulfpettersson.se/design/modern/">View demo</a></p>
<p><a href="http://www.ulfpettersson.se/design/modern/">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Modicus Remix</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/modicusremix.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.artculture.com/news/art-culture/modicus-wordpress-theme-remix">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>New order</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/neworder.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.wpsnap.com/test/?wptheme=73">View demo</a></p>
<p><a href="http://www.wpsnap.com/2007/07/25/new-order/">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Nishita</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/nishita.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.clipthephotos.com/">View demo</a></p>
<p><a href="http://www.brajeshwar.com/2006/nishita-another-free-photo-blog-wordpress-theme/">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Not so fresh</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/notsofresh.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.xsized.de/wordpress-theme-not-so-fresh/">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Peacefull rush</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/peacefullrush.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.wpdesigner.com/2007/01/17/peaceful-rush-wordpress-theme/">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>PocketT</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/pockett.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.nyssajbrown.net/pockett/">View demo</a></p>
<p><a href="http://www.nyssajbrown.net/2007/11/04/pockett-wordpress-theme/">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Resurrection</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/resurrection.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://vikiworks.com/2007/09/11/wp-theme-resurrection/">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Rugged</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/rugged.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.nattywp.com/test.php?theme_id=144">View demo</a></p>
<p><a href="http://www.nattywp.com/view-theme.php?theme_id=144&amp;theme_name=RuggedWordPressTheme">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Sakena</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/sakena.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://wordpress.diy-template.com/">View demo</a></p>
<p><a href="http://shaziamistry.com/webdesign/blog/introducing_sakeena_for_wordpress/">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>School&#8217;s in session</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/schoolsinsession.jpg" alt="" /></td>
<td width="242" valign="top"><a href="http://nuwen.com/media/wordpress-themes">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Several</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/several.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://several3.jeremyreviews.com/">View demo</a></p>
<p><a href="http://themespack.com/several3-wordpress-theme.html">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Sharpfolio</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/sharpfolio.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://webrevolutionary.com/sharpfolio-wordpress-portfolio-theme/">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Simplicity</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/simplicity.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.koch-werkstatt.de/2007/03/24/wordpress-theme-simplicity/">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>SimPress</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/simpress.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://sv2.dezinerfolio.com/">View demo</a></p>
<p><a href="http://www.dezinerfolio.com/2007/10/10/just-another-wodpress-theme/">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Smashing theme</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/smashingtheme.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.wp-themes.designdisease.com/testrun/?theme=wp_smashingtheme">View   demo</a></p>
<p><a href="http://www.smashingmagazine.com/2007/09/07/smashing-freefont-and-wordpress-theme">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>So Suechtig</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/sosuechtig.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.sosuechtig.de/2008/02/03/sosuechtig-29-beta5/">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Supermini</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/supermini.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://nocreativity.com/blog/wordpress-theme-supermini-reloaded/comment-page-1">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>The morning after</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/themorningafter.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://themasterplan.in/themes/the-morning-after/">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Trendy cork</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/trendycork.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.nattywp.com/test.php?theme_id=91">View demo</a></p>
<p><a href="http://www.nattywp.com/view-theme.php?theme_id=91&amp;theme_name=TrendyCork">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Vector Plain</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/vectorplain.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.nattywp.com/test.php?theme_id=149">View demo</a></p>
<p><a href="http://www.nattywp.com/view-theme.php?theme_id=149&amp;theme_name=VectorPlain1.0">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Winter stream</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/winterstream.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://www.nattywp.com/test.php?theme_id=6">View demo</a></p>
<p><a href="http://www.nattywp.com/view-theme.php?theme_id=6&amp;theme_name=Winterstream">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>WP Premium</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/wppremium.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://cssace.com/?preview_theme=WP_Premium">View demo</a></p>
<p><a href="http://cssace.com/free-wp-premium-theme-is-here/">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>xPlosive reloaded</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/xplosive-reloaded.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://wpthemes.blogohblog.net/index.php?wptheme=Xplosive+Reloaded">View   demo</a></p>
<p><a href="http://www.freeminders.org/temas/544">Download</a></td>
</tr>
<tr>
<td colspan="2" width="558" valign="top">
<h2>Yoghourt</h2>
</td>
</tr>
<tr>
<td width="316" valign="top"><img src="http://www.bydust.com/wp-content/uploads/bestwpthemes/yoghourt.jpg" alt="" width="300" height="200" /></td>
<td width="242" valign="top"><a href="http://web-kreation.com/wp_yoghourt/">Download</a></td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.bydust.com/top-49-of-best-free-wordpress-themes-and-templates/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Firebug, web development evolved</title>
		<link>http://www.bydust.com/firebug-web-development-evolved/</link>
		<comments>http://www.bydust.com/firebug-web-development-evolved/#comments</comments>
		<pubDate>Sat, 16 Aug 2008 13:56:19 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
		
		<category><![CDATA[Browsers]]></category>

		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Javascript]]></category>

		<category><![CDATA[Noteworthy]]></category>

		<category><![CDATA[Reviews]]></category>

		<category><![CDATA[XML]]></category>

		<category><![CDATA[XSD]]></category>

		<category><![CDATA[XSL]]></category>

		<guid isPermaLink="false">http://www.bydust.com/?p=101</guid>
		<description><![CDATA[Firebug integrates with Firefox to put a wealth of web development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page.

This is a must-have tool for any developer who&#8217;s frequently coding in javascript, CSS and HTML. The Firebug webpage offers you alot of [...]]]></description>
			<content:encoded><![CDATA[<p>Firebug integrates with Firefox to put a wealth of web development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page.</p>
<p><span id="more-101"></span></p>
<p>This is a must-have tool for any developer who&#8217;s frequently coding in javascript, CSS and HTML. The Firebug webpage offers you alot of info and help on almost anything you need.</p>
<p>If you&#8217;re interested in this, you might want to read my post about another Firefox add-on, the <a href="http://www.bydust.com/firefox-addon-web-developer/">Webdeveloper toolbar</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bydust.com/firebug-web-development-evolved/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Javascript Motion Tween</title>
		<link>http://www.bydust.com/javascript-motion-tween/</link>
		<comments>http://www.bydust.com/javascript-motion-tween/#comments</comments>
		<pubDate>Thu, 28 Feb 2008 17:39:20 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
		
		<category><![CDATA[Javascript]]></category>

		<category><![CDATA[Links]]></category>

		<category><![CDATA[Noteworthy]]></category>

		<guid isPermaLink="false">http://www.bydust.com/javascript-motion-tween/</guid>
		<description><![CDATA[Motion tweens are often used in Flash, but they have been ported to other scriptlanguages as well. A few days ago I discovered JSTween, a lightweight javascript animation engine that is very easy to use and works crossbrowser.
]]></description>
			<content:encoded><![CDATA[<p>Motion tweens are often used in Flash, but they have been ported to other scriptlanguages as well. A few days ago I discovered JSTween, a lightweight javascript animation engine that is very easy to use and works crossbrowser.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bydust.com/javascript-motion-tween/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
<br />
<b>Parse error</b>:  syntax error, unexpected ',' in <b>/home/keyshiaw/public_html/bbclone/var/access.php</b> on line <b>20769</b><br />
