<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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>Comments on: How to Display Ratings with WordPress Links</title>
	<atom:link href="http://buildinternet.com/2009/07/how-to-display-ratings-with-wordpress-links/feed/" rel="self" type="application/rss+xml" />
	<link>http://buildinternet.com/2009/07/how-to-display-ratings-with-wordpress-links/</link>
	<description>Web Design, Development, and Business</description>
	<lastBuildDate>Wed, 08 Feb 2012 22:59:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Cody Burleson</title>
		<link>http://buildinternet.com/2009/07/how-to-display-ratings-with-wordpress-links/comment-page-1/#comment-29248</link>
		<dc:creator>Cody Burleson</dc:creator>
		<pubDate>Fri, 10 Jun 2011 02:58:43 +0000</pubDate>
		<guid isPermaLink="false">http://buildinternet.com/?p=4337#comment-29248</guid>
		<description>Ignore the code above, it was a bad paste! Trying again with a pre tag:

&lt;pre&gt;
/* START: RENDER CATEGORIZED BOOKMARKS */
$taxonomy = &#039;link_category&#039;;
$args =&#039;&#039;;
$terms = get_terms( $taxonomy, $args );




if ($terms) {
	foreach($terms as $term) {
		if ($term-&gt;count &gt; 0) {
			echo &#039;&#039; . $term-&gt;name . &#039;  &#039;;
			/* print_r($term); */
			/* was orderby &#039;name&#039; &#039;ASC&#039; */
			$bookmark_args = array(
			&#039;orderby&#039;        =&gt; &#039;rating&#039;,
			&#039;order&#039;          =&gt; &#039;DESC&#039;,
			&#039;limit&#039;          =&gt; -1, 
			&#039;category&#039;       =&gt; $term-&gt;term_id,
			&#039;hide_invisible&#039; =&gt; 1,
			&#039;show_updated&#039;   =&gt; 0 
			);
		  
			
			/*
			 * Returns list of bookmark row objects. Each bookmark object may contain the following:
			 * &#039;link_id&#039;, 
			 * &#039;link_url&#039;, 
			 * &#039;link_name&#039;, 
			 * &#039;link_image&#039;, 
			 * &#039;link_target&#039;, 
			 * &#039;link_category&#039;, 
			 * &#039;link_description&#039;, 
			 * &#039;link_visible&#039;, 
			 * &#039;link_owner&#039;, 
			 * &#039;link_rating&#039;, 
			 * &#039;link_updated&#039;, 
			 * &#039;link_rel&#039;, 
			 * &#039;link_notes&#039;, 
			 * &#039;link_rss&#039; 
			 */
			$bookmarks = get_bookmarks($bookmark_args);
			
			/* if( !empty($bookmarks) )  { */
				$str = &#039;&#039;;
				foreach ( $bookmarks as $bm ) {
					$str .= &#039;&#039;;
					
					if(!empty($bm-&gt;link_image) ){
						$str .= &#039;&lt;a&gt;link_target . &#039;&quot; class=&quot;relatedlink&quot; href=&quot;&#039; . $bm-&gt;link_url . &#039;&quot;&gt;&#039; . &#039;link_image . &#039;&quot; alt=&quot;&quot; align=&quot;left&quot; border=&quot;0&quot;/&gt;&#039; . &#039;&lt;/a&gt;&#039;;
					}
					
					$str .= &#039;&lt;a&gt;link_target . &#039;&quot; class=&quot;relatedlink&quot; href=&quot;&#039; . $bm-&gt;link_url . &#039;&quot;&gt;&#039; . $bm-&gt;link_name . &#039;&lt;/a&gt;&#039;;
					
					
					/* START: STAR RATINGS */
					
					if(!empty($bm-&gt;link_rating) ){
						
						$link_rating = $bm-&gt;link_rating;
						$str .= &#039;&#039;;
						if ($link_rating &gt;= 5){
							
							//If rating is five or greater, just assign a perfect score
							for ($i = 1; $i &lt; 6; $i++){ 
								$str .= &#039;&#039;;
							}
							
						} else {
							//If rating is under 5, display same number of stars.
							for ($i = 1; $i &lt;= $link_rating; $i++){
								$str .= &#039;&#039;;
							}
						}
						$str .= &#039;&#039;;
					}
					
					/* END: STAR RATINGS */
					
					
					if(!empty($bm-&gt;link_description) ){
						$str .= &#039;&#039; . $bm-&gt;link_description . &#039;&#039;;
					}
					
					
					
					

					
				}
				$str .= &quot;&quot;;
				echo $str;
			/* } */
			
		}
	}
}
/* END: RENDER CATEGORIZED BOOKMARKS */

&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Ignore the code above, it was a bad paste! Trying again with a pre tag:</p>
<pre>
/* START: RENDER CATEGORIZED BOOKMARKS */
$taxonomy = 'link_category';
$args ='';
$terms = get_terms( $taxonomy, $args );

if ($terms) {
	foreach($terms as $term) {
		if ($term-&gt;count &gt; 0) {
			echo '' . $term-&gt;name . '  ';
			/* print_r($term); */
			/* was orderby 'name' 'ASC' */
			$bookmark_args = array(
			'orderby'        =&gt; 'rating',
			'order'          =&gt; 'DESC',
			'limit'          =&gt; -1,
			'category'       =&gt; $term-&gt;term_id,
			'hide_invisible' =&gt; 1,
			'show_updated'   =&gt; 0
			);

			/*
			 * Returns list of bookmark row objects. Each bookmark object may contain the following:
			 * 'link_id',
			 * 'link_url',
			 * 'link_name',
			 * 'link_image',
			 * 'link_target',
			 * 'link_category',
			 * 'link_description',
			 * 'link_visible',
			 * 'link_owner',
			 * 'link_rating',
			 * 'link_updated',
			 * 'link_rel',
			 * 'link_notes',
			 * 'link_rss'
			 */
			$bookmarks = get_bookmarks($bookmark_args);

			/* if( !empty($bookmarks) )  { */
				$str = '';
				foreach ( $bookmarks as $bm ) {
					$str .= '';

					if(!empty($bm-&gt;link_image) ){
						$str .= '<a>link_target . '" class="relatedlink" href="' . $bm-&gt;link_url . '"&gt;' . 'link_image . '" alt="" align="left" border="0"/&gt;' . '</a>';
					}

					$str .= '<a>link_target . '" class="relatedlink" href="' . $bm-&gt;link_url . '"&gt;' . $bm-&gt;link_name . '</a>';

					/* START: STAR RATINGS */

					if(!empty($bm-&gt;link_rating) ){

						$link_rating = $bm-&gt;link_rating;
						$str .= '';
						if ($link_rating &gt;= 5){

							//If rating is five or greater, just assign a perfect score
							for ($i = 1; $i &lt; 6; $i++){
								$str .= &#039;';
							}

						} else {
							//If rating is under 5, display same number of stars.
							for ($i = 1; $i &lt;= $link_rating; $i++){
								$str .= &#039;';
							}
						}
						$str .= '';
					}

					/* END: STAR RATINGS */

					if(!empty($bm-&gt;link_description) ){
						$str .= '' . $bm-&gt;link_description . '';
					}

				}
				$str .= "";
				echo $str;
			/* } */

		}
	}
}
/* END: RENDER CATEGORIZED BOOKMARKS */
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cody Burleson</title>
		<link>http://buildinternet.com/2009/07/how-to-display-ratings-with-wordpress-links/comment-page-1/#comment-29247</link>
		<dc:creator>Cody Burleson</dc:creator>
		<pubDate>Fri, 10 Jun 2011 02:56:52 +0000</pubDate>
		<guid isPermaLink="false">http://buildinternet.com/?p=4337#comment-29247</guid>
		<description>Thanks! My links page now supports link images, link categories, and thanks to you, no link ratings!

http://www.codyburleson.com/links/

Here&#039;s the code for my whole bookmarks rendering routine in case anybody wants to do something similar (I hope the code is going to paste OK):


count &gt; 0) {
									echo &#039;&#039; . $term-&gt;name . &#039;  &#039;;
									/* print_r($term); */
									/* was orderby &#039;name&#039; &#039;ASC&#039; */
									$bookmark_args = array(
								    &#039;orderby&#039;        =&gt; &#039;rating&#039;,
								    &#039;order&#039;          =&gt; &#039;DESC&#039;,
								    &#039;limit&#039;          =&gt; -1, 
								    &#039;category&#039;       =&gt; $term-&gt;term_id,
								    &#039;hide_invisible&#039; =&gt; 1,
								    &#039;show_updated&#039;   =&gt; 0 
								    );
								  
								    
								    /*
									 * Returns list of bookmark row objects. Each bookmark object may contain the following:
									 * &#039;link_id&#039;, 
									 * &#039;link_url&#039;, 
									 * &#039;link_name&#039;, 
									 * &#039;link_image&#039;, 
									 * &#039;link_target&#039;, 
									 * &#039;link_category&#039;, 
									 * &#039;link_description&#039;, 
									 * &#039;link_visible&#039;, 
									 * &#039;link_owner&#039;, 
									 * &#039;link_rating&#039;, 
									 * &#039;link_updated&#039;, 
									 * &#039;link_rel&#039;, 
									 * &#039;link_notes&#039;, 
									 * &#039;link_rss&#039; 
									 */
								    $bookmarks = get_bookmarks($bookmark_args);
								    
									/* if( !empty($bookmarks) )  { */
										$str = &#039;&#039;;
										foreach ( $bookmarks as $bm ) {
											$str .= &#039;&#039;;
											
											if(!empty($bm-&gt;link_image) ){
										    	$str .= &#039;&lt;a&gt;link_target . &#039;&quot; class=&quot;relatedlink&quot; href=&quot;&#039; . $bm-&gt;link_url . &#039;&quot;&gt;&#039; . &#039;link_image . &#039;&quot; alt=&quot;&quot; align=&quot;left&quot; border=&quot;0&quot;/&gt;&#039; . &#039;&lt;/a&gt;&#039;;
										    }
											
										    $str .= &#039;&lt;a&gt;link_target . &#039;&quot; class=&quot;relatedlink&quot; href=&quot;&#039; . $bm-&gt;link_url . &#039;&quot;&gt;&#039; . $bm-&gt;link_name . &#039;&lt;/a&gt;&#039;;
										    
										    
										    /* START: STAR RATINGS */
										    
											if(!empty($bm-&gt;link_rating) ){
												
												$link_rating = $bm-&gt;link_rating;
										    	$str .= &#039;&#039;;
										    	if ($link_rating &gt;= 5){
										    		
										    		//If rating is five or greater, just assign a perfect score
										    		for ($i = 1; $i &lt; 6; $i++){ 
														$str .= &#039;&#039;;
													}
													
										    	} else {
										    		//If rating is under 5, display same number of stars.
													for ($i = 1; $i &lt;= $link_rating; $i++){
														$str .= &#039;&#039;;
													}
										    	}
										    	$str .= &#039;&#039;;
										    }
										    
										    /* END: STAR RATINGS */
										    
										    
										    if(!empty($bm-&gt;link_description) ){
										    	$str .= &#039;&#039; . $bm-&gt;link_description . &#039;&#039;;
										    }
										    
										    
										    
										    
					
										    
										}
										$str .= &quot;&quot;;
										echo $str;
									/* } */
									
								}
							}
						}
						/* END: RENDER CATEGORIZED BOOKMARKS */
						?&gt;</description>
		<content:encoded><![CDATA[<p>Thanks! My links page now supports link images, link categories, and thanks to you, no link ratings!</p>
<p><a href="http://www.codyburleson.com/links/" rel="nofollow">http://www.codyburleson.com/links/</a></p>
<p>Here&#8217;s the code for my whole bookmarks rendering routine in case anybody wants to do something similar (I hope the code is going to paste OK):</p>
<p>count &gt; 0) {<br />
									echo &#8221; . $term-&gt;name . &#8216;  &#8216;;<br />
									/* print_r($term); */<br />
									/* was orderby &#8216;name&#8217; &#8216;ASC&#8217; */<br />
									$bookmark_args = array(<br />
								    &#8216;orderby&#8217;        =&gt; &#8216;rating&#8217;,<br />
								    &#8216;order&#8217;          =&gt; &#8216;DESC&#8217;,<br />
								    &#8216;limit&#8217;          =&gt; -1,<br />
								    &#8216;category&#8217;       =&gt; $term-&gt;term_id,<br />
								    &#8216;hide_invisible&#8217; =&gt; 1,<br />
								    &#8216;show_updated&#8217;   =&gt; 0<br />
								    );</p>
<p>								    /*<br />
									 * Returns list of bookmark row objects. Each bookmark object may contain the following:<br />
									 * &#8216;link_id&#8217;,<br />
									 * &#8216;link_url&#8217;,<br />
									 * &#8216;link_name&#8217;,<br />
									 * &#8216;link_image&#8217;,<br />
									 * &#8216;link_target&#8217;,<br />
									 * &#8216;link_category&#8217;,<br />
									 * &#8216;link_description&#8217;,<br />
									 * &#8216;link_visible&#8217;,<br />
									 * &#8216;link_owner&#8217;,<br />
									 * &#8216;link_rating&#8217;,<br />
									 * &#8216;link_updated&#8217;,<br />
									 * &#8216;link_rel&#8217;,<br />
									 * &#8216;link_notes&#8217;,<br />
									 * &#8216;link_rss&#8217;<br />
									 */<br />
								    $bookmarks = get_bookmarks($bookmark_args);</p>
<p>									/* if( !empty($bookmarks) )  { */<br />
										$str = &#8221;;<br />
										foreach ( $bookmarks as $bm ) {<br />
											$str .= &#8221;;</p>
<p>											if(!empty($bm-&gt;link_image) ){<br />
										    	$str .= &#8216;<a>link_target . &#8216;&#8221; class=&#8221;relatedlink&#8221; href=&#8221;&#8216; . $bm-&gt;link_url . &#8216;&#8221;&gt;&#8217; . &#8216;link_image . &#8216;&#8221; alt=&#8221;" align=&#8221;left&#8221; border=&#8221;0&#8243;/&gt;&#8217; . &#8216;</a>&#8216;;<br />
										    }</p>
<p>										    $str .= &#8216;<a>link_target . &#8216;&#8221; class=&#8221;relatedlink&#8221; href=&#8221;&#8216; . $bm-&gt;link_url . &#8216;&#8221;&gt;&#8217; . $bm-&gt;link_name . &#8216;</a>&#8216;;</p>
<p>										    /* START: STAR RATINGS */</p>
<p>											if(!empty($bm-&gt;link_rating) ){</p>
<p>												$link_rating = $bm-&gt;link_rating;<br />
										    	$str .= &#8221;;<br />
										    	if ($link_rating &gt;= 5){</p>
<p>										    		//If rating is five or greater, just assign a perfect score<br />
										    		for ($i = 1; $i &lt; 6; $i++){<br />
														$str .= &#039;&#8217;;<br />
													}</p>
<p>										    	} else {<br />
										    		//If rating is under 5, display same number of stars.<br />
													for ($i = 1; $i &lt;= $link_rating; $i++){<br />
														$str .= &#039;&#8217;;<br />
													}<br />
										    	}<br />
										    	$str .= &#8221;;<br />
										    }</p>
<p>										    /* END: STAR RATINGS */</p>
<p>										    if(!empty($bm-&gt;link_description) ){<br />
										    	$str .= &#8221; . $bm-&gt;link_description . &#8221;;<br />
										    }</p>
<p>										}<br />
										$str .= &#8220;&#8221;;<br />
										echo $str;<br />
									/* } */</p>
<p>								}<br />
							}<br />
						}<br />
						/* END: RENDER CATEGORIZED BOOKMARKS */<br />
						?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 65 Of The Best WordPress Tutorials &#171; Junkiee.Net</title>
		<link>http://buildinternet.com/2009/07/how-to-display-ratings-with-wordpress-links/comment-page-1/#comment-11785</link>
		<dc:creator>65 Of The Best WordPress Tutorials &#171; Junkiee.Net</dc:creator>
		<pubDate>Sun, 21 Feb 2010 14:23:42 +0000</pubDate>
		<guid isPermaLink="false">http://buildinternet.com/?p=4337#comment-11785</guid>
		<description>[...] 23. How To Display Ratings With Wordpress Links [...]</description>
		<content:encoded><![CDATA[<p>[...] 23. How To Display Ratings With WordPress Links [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JG Ballard</title>
		<link>http://buildinternet.com/2009/07/how-to-display-ratings-with-wordpress-links/comment-page-1/#comment-11736</link>
		<dc:creator>JG Ballard</dc:creator>
		<pubDate>Fri, 19 Feb 2010 11:52:30 +0000</pubDate>
		<guid isPermaLink="false">http://buildinternet.com/?p=4337#comment-11736</guid>
		<description>Adding ratings is so useful, thank you!</description>
		<content:encoded><![CDATA[<p>Adding ratings is so useful, thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George</title>
		<link>http://buildinternet.com/2009/07/how-to-display-ratings-with-wordpress-links/comment-page-1/#comment-10411</link>
		<dc:creator>George</dc:creator>
		<pubDate>Sat, 26 Dec 2009 02:23:22 +0000</pubDate>
		<guid isPermaLink="false">http://buildinternet.com/?p=4337#comment-10411</guid>
		<description>Thanks very much for this, been looking how to add ratings for ages!!</description>
		<content:encoded><![CDATA[<p>Thanks very much for this, been looking how to add ratings for ages!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david w</title>
		<link>http://buildinternet.com/2009/07/how-to-display-ratings-with-wordpress-links/comment-page-1/#comment-10247</link>
		<dc:creator>david w</dc:creator>
		<pubDate>Wed, 16 Dec 2009 20:53:39 +0000</pubDate>
		<guid isPermaLink="false">http://buildinternet.com/?p=4337#comment-10247</guid>
		<description>Wow this is just what I need on my site. I need a link rating tool. Only problem is im not that familiar with code. Can anyone please tell me how, , , no not how I know how.... but where exactly within sidebar.php to paste these 2 sets of code?</description>
		<content:encoded><![CDATA[<p>Wow this is just what I need on my site. I need a link rating tool. Only problem is im not that familiar with code. Can anyone please tell me how, , , no not how I know how&#8230;. but where exactly within sidebar.php to paste these 2 sets of code?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexis Chatougri</title>
		<link>http://buildinternet.com/2009/07/how-to-display-ratings-with-wordpress-links/comment-page-1/#comment-10106</link>
		<dc:creator>Alexis Chatougri</dc:creator>
		<pubDate>Thu, 10 Dec 2009 11:57:22 +0000</pubDate>
		<guid isPermaLink="false">http://buildinternet.com/?p=4337#comment-10106</guid>
		<description>Thank you very much for this tip ! Exactly what I was looking for :-P</description>
		<content:encoded><![CDATA[<p>Thank you very much for this tip ! Exactly what I was looking for :-P</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Think2free.com &#187; 20 best tutorials and techniques to develop wordpress theme</title>
		<link>http://buildinternet.com/2009/07/how-to-display-ratings-with-wordpress-links/comment-page-1/#comment-10032</link>
		<dc:creator>Think2free.com &#187; 20 best tutorials and techniques to develop wordpress theme</dc:creator>
		<pubDate>Tue, 08 Dec 2009 04:30:02 +0000</pubDate>
		<guid isPermaLink="false">http://buildinternet.com/?p=4337#comment-10032</guid>
		<description>[...] How to Display Ratings with Wordpress Links [...]</description>
		<content:encoded><![CDATA[<p>[...] How to Display Ratings with WordPress Links [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 40+ Awesome Tutorials and Techniques For WordPress Theme Developers&#160;&#124;&#160;tripwire magazine</title>
		<link>http://buildinternet.com/2009/07/how-to-display-ratings-with-wordpress-links/comment-page-1/#comment-9760</link>
		<dc:creator>40+ Awesome Tutorials and Techniques For WordPress Theme Developers&#160;&#124;&#160;tripwire magazine</dc:creator>
		<pubDate>Mon, 30 Nov 2009 17:51:38 +0000</pubDate>
		<guid isPermaLink="false">http://buildinternet.com/?p=4337#comment-9760</guid>
		<description>[...] How to Display Ratings with Wordpress Links [...]</description>
		<content:encoded><![CDATA[<p>[...] How to Display Ratings with WordPress Links [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Automatically Highlight Admin Comments in Wordpress - ComponentGear.com Feed - ComponentGear.com</title>
		<link>http://buildinternet.com/2009/07/how-to-display-ratings-with-wordpress-links/comment-page-1/#comment-7915</link>
		<dc:creator>Automatically Highlight Admin Comments in Wordpress - ComponentGear.com Feed - ComponentGear.com</dc:creator>
		<pubDate>Thu, 03 Sep 2009 17:26:04 +0000</pubDate>
		<guid isPermaLink="false">http://buildinternet.com/?p=4337#comment-7915</guid>
		<description>[...] Author Comment Styles in Wordpress  When I first looked into making styled author comments,...How to Display Ratings with Wordpress Links  If you&#8217;re like me, the Wordpress Codex is an...How to Add an Announcement Box to Your [...]</description>
		<content:encoded><![CDATA[<p>[...] Author Comment Styles in WordPress  When I first looked into making styled author comments,&#8230;How to Display Ratings with WordPress Links  If you&#8217;re like me, the WordPress Codex is an&#8230;How to Add an Announcement Box to Your [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching using memcached
Object Caching 366/367 objects using disk: basic

Served from: buildinternet.com @ 2012-02-08 21:05:11 -->
