<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Peyc Media Limited</title>
	<atom:link href="http://www.peycmedia.co.uk/feed" rel="self" type="application/rss+xml" />
	<link>http://www.peycmedia.co.uk</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Tue, 10 Aug 2010 08:18:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Jquery Tools and MooTools Conflict</title>
		<link>http://www.peycmedia.co.uk/27-jquery-tools-and-mootools-conflict</link>
		<comments>http://www.peycmedia.co.uk/27-jquery-tools-and-mootools-conflict#comments</comments>
		<pubDate>Fri, 06 Aug 2010 11:35:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[mootools]]></category>
		<category><![CDATA[noconflict]]></category>

		<guid isPermaLink="false">http://www.peycmedia.co.uk/?p=27</guid>
		<description><![CDATA[A simple way to use jQuery and Mootools on the same page, without conflict.]]></description>
			<content:encoded><![CDATA[<p>As a general rule, &#8220;global&#8221; objects are stored inside the jQuery namespace as well, so you shouldn&#8217;t get a clash between jQuery and any other library (like Prototype, MooTools, or YUI). That said, there is one caveat: By default, jQuery uses &#8220;$&#8221; as a shortcut for &#8220;jQuery&#8221;.</p>
<p>However, you can override that default by calling jQuery.noConflict() at any point after jQuery and the other library have both loaded. For example:</p>
<p><code>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;script src="mootools.js"&gt;&lt;/script&gt;<br />
&lt;script src="jquery.js"&gt;&lt;/script&gt;<br />
&lt;script&gt;</p>
<p>var $j = jQuery.noConflict();</p>
<p>// Use jQuery via $j(...)</p>
<p>$j(document).ready(function(){</p>
<p>$j("div").hide();</p>
<p>});</p>
<p>// Use mootools with $(...), etc.</p>
<p>$('someid').hide();</p>
<p>&lt;/script&gt;</p>
<p>&lt;/head&gt;</p>
<p>&lt;body&gt;&lt;/body&gt;</p>
<p>&lt;/html&gt;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.peycmedia.co.uk/27-jquery-tools-and-mootools-conflict/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>YourDownloadPlace.com</title>
		<link>http://www.peycmedia.co.uk/21-yourdownloadplace-com</link>
		<comments>http://www.peycmedia.co.uk/21-yourdownloadplace-com#comments</comments>
		<pubDate>Wed, 04 Aug 2010 06:00:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Peyc Network]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://www.peycmedia.co.uk/?p=21</guid>
		<description><![CDATA[YourDownloadPlace.com is a software repository allowing visitors to download and buy softwares]]></description>
			<content:encoded><![CDATA[<p>Site dedicated to the software, shareware and Games.</p>
<p>Content: Software Repository, Downloads, Games, Shareware, Feeware.</p>
<p>Visite The Website : <a href="http://www.yourdownloadplace.com/">YourDownloadPlace.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.peycmedia.co.uk/21-yourdownloadplace-com/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL: Remove Duplicate Entries</title>
		<link>http://www.peycmedia.co.uk/23-mysql-remove-duplicate-entries</link>
		<comments>http://www.peycmedia.co.uk/23-mysql-remove-duplicate-entries#comments</comments>
		<pubDate>Wed, 04 Aug 2010 05:59:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.peycmedia.co.uk/?p=23</guid>
		<description><![CDATA[Remove duplicate entries in your Database is fairly hardcore, and should be dangerous. Two easy possibilities allow to remove duplicate entries]]></description>
			<content:encoded><![CDATA[<p><strong>Before, make a backup of your database</strong>. Now, The frist simple way, without modify the structure of your table, is to copy your table in a new one, by selecting only distinct rows :</p>
<p><code><br />
INSERT INTO newtable SELECT DISTINCT uniqueid FROM duplicatetable GROUP BY uniqueid<br />
</code></p>
<p>Now, in newtable, you have distinct records of duplicatetable. You just have to empty duplicatetable and replace by records from newtable.</p>
<p>You can also simply alter your table, by adding a unique index. The other approach is to simply add a UNIQUE index to the current table and thereby let MySQL do the hardcore identification and deletion job.</p>
<p><code><br />
ALTER IGNORE TABLE  'duplicatetable' ADD UNIQUE  'nameOfTheIndex' (  'uniqueid' ( 255 ) )<br />
</code></p>
<p>That&#8217;s all, the table is clean </p>
]]></content:encoded>
			<wfw:commentRss>http://www.peycmedia.co.uk/23-mysql-remove-duplicate-entries/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amalgame.com</title>
		<link>http://www.peycmedia.co.uk/20-amalgame-com</link>
		<comments>http://www.peycmedia.co.uk/20-amalgame-com#comments</comments>
		<pubDate>Tue, 03 Aug 2010 04:58:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Peyc Network]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://www.peycmedia.co.uk/?p=20</guid>
		<description><![CDATA[Play Online Games, Save your scores and meet friends]]></description>
			<content:encoded><![CDATA[<p>Site dedicated to online Games (flash based).</p>
<p>Content: flash games.</p>
<p>Visite The Website : <a href="http://www.amalgame.com">Amalgame.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.peycmedia.co.uk/20-amalgame-com/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Starovore.co.uk</title>
		<link>http://www.peycmedia.co.uk/18-starovore-co-uk</link>
		<comments>http://www.peycmedia.co.uk/18-starovore-co-uk#comments</comments>
		<pubDate>Mon, 02 Aug 2010 02:38:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Peyc Network]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://www.peycmedia.co.uk/?p=18</guid>
		<description><![CDATA[Introducing the new version of our Celebrity Web Site : Starovore.co.uk]]></description>
			<content:encoded><![CDATA[<p>Site dedicated to the daily news of the stars and celebrities. </p>
<p>Content: Daily News, interviews, quotes, romance, covers events.</p>
<p>Visite The Website : <a href="http://www.starovore.co.uk/">Starovore.co.uk</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.peycmedia.co.uk/18-starovore-co-uk/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress : How to Use get_the_post_thumbnail to Set Your Post’s Thumbnail</title>
		<link>http://www.peycmedia.co.uk/9-wordpress-how-to-use-get_the_post_thumbnail-to-set-your-post%e2%80%99s-thumbnail</link>
		<comments>http://www.peycmedia.co.uk/9-wordpress-how-to-use-get_the_post_thumbnail-to-set-your-post%e2%80%99s-thumbnail#comments</comments>
		<pubDate>Mon, 02 Aug 2010 01:36:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[get_the_post_thumbnail]]></category>

		<guid isPermaLink="false">http://www.peycmedia.co.uk/?p=9</guid>
		<description><![CDATA[Since WordPress 2.9, there's a new function called get_the_post_thumbnail that was added to allow you to select and display a post’s thumbnail image. The end of the Custom Fields ...]]></description>
			<content:encoded><![CDATA[<p>In your wp-includes folder, you will find a file called post-thumbnail-template.php. inside it, you will find the get_the_post_thumbnail() function. As you can see, the get_the_post_thumbnail WordPress function will return your thumbnail in an html img tag.</p>
<p>To use the get_the_post_thumbnail(), you MUST first edit your Theme Functions file (functions.php) and add the following line within the php opening and close tags:</p>
<p><code>add_theme_support( 'post-thumbnails' );</code></p>
<p>Now you will see  the “Post Thumbnail” widget in your post editor called &#8220;Featured Image&#8221;. This code will also activate an option in your image browser, “Use as featured Image”, which allows you to set your post’s thumbnail  right after you upload an image.</p>
<p>This is a much pretty way to manage your images a simple than the Custom Fields to set the path to your image.</p>
<p>The last thing you have to do is to add this line wherever you want to display thumbnail :</p>
<p><code>&lt;?php echo get_the_post_thumbnail($post-&gt;ID, 'thumbnail'); ?&gt;</code></p>
<p><strong>Usage Syntax:</strong></p>
<p>Usage Parameters:</p>
<p><strong>Usage Parameters:</strong><br />
$id</p>
<ul>
<li>(int) (Required) Post ID.</li>
<li>Default: None</li>
</ul>
<p>$size</p>
<ul>
<li>(int) (Optional) Image size.</li>
<li>Default: ‘thumbnail’</li>
</ul>
<p>$attr</p>
<ul>
<li>(int) (Optional)</li>
<li>Default: None</li>
</ul>
<p><strong>Usage Examples:</strong><br />
get_the_post_thumbnail($id); // without parameter -&gt; Thumbnail<br />
get_the_post_thumbnail($id, ‘thumbnail’); // Thumbnail<br />
get_the_post_thumbnail($id, ‘medium’); // Medium resolution<br />
get_the_post_thumbnail($id, ‘large’); // Large resolution<br />
get_the_post_thumbnail($id, array(100,100) ); // Other resolutions</p>
<p>To apply a css style :</p>
<p>&lt;?php $small = get_the_post_thumbnail($post-&gt;ID, &#8216;thumbnail&#8217;, array(&#8216;class&#8217; =&gt; &#8216;css-thumb&#8217;)) ?&gt;</p>
<p>To get only the src url, you can use preg_match or create a new simple function:</p>
<p><code>$large = get_the_post_thumbnail($post-&gt;ID, 'medium');<br />
preg_match_all('/src=("[^"]*")/i',$large, $large_img);</code></p>
<p>&lt;img src=&#8221;&lt;?php echo $image[1] ?&gt;&#8221; alt=&#8221;&lt;?php the_title(); ?&gt;&#8221; /&gt;</p>
<p>If you prefer create a new function, you can find the &#8220;_thumbnail_id&#8221; in the wp_postmeta table. you just have to get the meta_value where post_id=ID and meta_key=_thumbnail_id.</p>
<p><code><br />
function getThumbUrlFeatured($pid)<br />
{<br />
 $meta_values = get_post_meta($pid, '_thumbnail_id', true);<br />
 $src=get_permalink( $meta_values );<br />
 return $src;<br />
}<br />
</code></p>
<p>Then, when you need the SRC URL, just call the function :<br />
<code><br />
$srcUrl=getThumbUrlFeatured($post->ID);<br />
echo $srcUrl;<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.peycmedia.co.uk/9-wordpress-how-to-use-get_the_post_thumbnail-to-set-your-post%e2%80%99s-thumbnail/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Permalinks with WordPress</title>
		<link>http://www.peycmedia.co.uk/5-using-permalinks-with-wordpress</link>
		<comments>http://www.peycmedia.co.uk/5-using-permalinks-with-wordpress#comments</comments>
		<pubDate>Sun, 01 Aug 2010 23:55:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Permalinks]]></category>

		<guid isPermaLink="false">http://www.peycmedia.co.uk/?p=5</guid>
		<description><![CDATA[Permalinks are the permanent URLs to your individual weblog posts, as well as categories and other lists of weblog postings. ]]></description>
			<content:encoded><![CDATA[<p>A permalink is what another weblogger will use to link to your article (or section), or how you might send a link to your story in an e-mail message. The URL to each post should be permanent, and never change — hence <em>perma</em>link.</p>
<h2>Choosing your permalink structure</h2>
<p>In the Settings → Permalinks panel (Options → Permalinks before WordPress 2.5), you can choose one of the &#8220;common&#8221; structures or enter your own in the &#8220;Custom structure&#8221; field using the <em>structure tags</em>.</p>
<h3>Structure Tags</h3>
<p>You can use these tags to customize your &#8220;Pretty&#8221; or &#8220;Almost Pretty&#8221; permalinks. A few hints:</p>
<ul>
<li>Make sure to end your structure with either <tt>%post_id%</tt> or <tt>%postname%</tt> (e.g. <tt>/%year%/%monthnum%/%day%/%postname%/</tt>) so that each permalink points to an individual post.</li>
<li>For performance reasons, it is <em>not</em> a good idea to start your permalink structure with the category, tag, author, or postname fields. The reason is that these are text fields, and using them at the beginning of your permalink structure it takes more time for WordPress to distinguish your Post URLs from Page URLs (which always use the text &#8220;page slug&#8221; as the URL), and to compensate, WordPress stores a lot of extra information in its database (so much that sites with lots of Pages have experienced difficulties). So, it is best to start your permalink structure with a numeric field, such as the year or post ID.</li>
</ul>
<dt><strong>%year%</strong> </dt>
<dd>The year of the post, four digits, for example <tt>2004</tt></dd>
<dt><strong>%monthnum%</strong> </dt>
<dd>Month of the year, for example <tt>05</tt></dd>
<dt><strong>%day%</strong> </dt>
<dd>Day of the month, for example <tt>28</tt></dd>
<dt><strong>%hour%</strong> </dt>
<dd>Hour of the day, for example <tt>15</tt></dd>
<dt><strong>%minute%</strong> </dt>
<dd>Minute of the hour, for example <tt>43</tt></dd>
<dt><strong>%second%</strong> </dt>
<dd>Second of the minute, for example <tt>33</tt></dd>
<dt><strong>%postname%</strong> </dt>
<dd>A sanitized version of the title of the post (<em>post slug</em> field on Edit Post/Page panel). So “This Is A Great Post!” becomes <tt>this-is-a-great-post</tt> in the URI . <strong>Starting Permalinks with %postname% is strongly not recommended for performance reasons.</strong>.</dd>
<dt><strong>%post_id%</strong> </dt>
<dd>The unique ID # of the post, for example <tt>423</tt></dd>
<dt><strong>%category%</strong> </dt>
<dd>A sanitized version of the category name (<em>category slug</em> field on New/Edit Category panel). Nested sub-categories appear as nested directories in the URI. <strong>Starting Permalinks with %category% is strongly not recommended for performance reasons</strong>.</dd>
<dt><strong>%tag%</strong> </dt>
<dd>A sanitized version of the tag name (<em>tag slug</em> field on New/Edit Tag panel). <strong>Starting Permalinks with %tag% is strongly not recommended for performance reasons</strong></dd>
<dt><strong>%author%</strong> </dt>
<dd>A sanitized version of the author name. <strong>Starting Permalinks with %author% is strongly not recommended for performance reasons</strong></dd>
]]></content:encoded>
			<wfw:commentRss>http://www.peycmedia.co.uk/5-using-permalinks-with-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

