<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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">
	<channel>
		<title>Support Forum - Topic: Featured Badge</title>
		<link>http://www.kriesi.at/support/topic/featured-badge</link>
		<description>Support Forum - Topic: Featured Badge</description>
		<language>en-US</language>
		<pubDate>Fri, 24 May 2013 06:45:08 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/featured-badge" rel="self" type="application/rss+xml" />

		<item>
			<title>Dude on "Featured Badge"</title>
			<link>http://www.kriesi.at/support/topic/featured-badge#post-11778</link>
			<pubDate>Tue, 25 Jan 2011 10:07:04 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">11778@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Froh, dass ich helfen konnte :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Baris on "Featured Badge"</title>
			<link>http://www.kriesi.at/support/topic/featured-badge#post-11742</link>
			<pubDate>Mon, 24 Jan 2011 06:30:27 +0000</pubDate>
			<dc:creator>Baris</dc:creator>
			<guid isPermaLink="false">11742@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;danke Peter.Du bist great Supporter!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Featured Badge"</title>
			<link>http://www.kriesi.at/support/topic/featured-badge#post-11737</link>
			<pubDate>Sun, 23 Jan 2011 21:20:09 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">11737@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Ok it works now.&#60;/p&#62;
&#60;p&#62;Just call your post meta field wordpress, drupal, etc. and set the value to 1.&#60;/p&#62;
&#60;p&#62;I've set a drupal &#34;featured badge&#34;.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Baris on "Featured Badge"</title>
			<link>http://www.kriesi.at/support/topic/featured-badge#post-11735</link>
			<pubDate>Sun, 23 Jan 2011 19:47:27 +0000</pubDate>
			<dc:creator>Baris</dc:creator>
			<guid isPermaLink="false">11735@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;danke Peter, habe gerade account hinzugefügt.&#60;br /&#62;
Du hast schon bestimmt E-mail gekriegt....
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Featured Badge"</title>
			<link>http://www.kriesi.at/support/topic/featured-badge#post-11719</link>
			<pubDate>Sun, 23 Jan 2011 13:49:43 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">11719@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Can you create me an admin account and send me the login details to: &#60;a href=&#34;mailto:kriesi2000-dude@yahoo.com&#34;&#62;kriesi2000-dude@yahoo.com&#60;/a&#62; - I'll have a look into it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Baris on "Featured Badge"</title>
			<link>http://www.kriesi.at/support/topic/featured-badge#post-11679</link>
			<pubDate>Fri, 21 Jan 2011 17:51:56 +0000</pubDate>
			<dc:creator>Baris</dc:creator>
			<guid isPermaLink="false">11679@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey Dude,&#60;/p&#62;
&#60;p&#62;of course...I want to add joomla,magento and drupal badge.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Featured Badge"</title>
			<link>http://www.kriesi.at/support/topic/featured-badge#post-11660</link>
			<pubDate>Fri, 21 Jan 2011 14:15:40 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">11660@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;br /&#62;
did you use another name for your second custom field - so instead of &#34;premium&#34; use something else like &#34;special&#34; and adjust the code above (by replacing the word premium with special)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Baris on "Featured Badge"</title>
			<link>http://www.kriesi.at/support/topic/featured-badge#post-11606</link>
			<pubDate>Thu, 20 Jan 2011 05:48:31 +0000</pubDate>
			<dc:creator>Baris</dc:creator>
			<guid isPermaLink="false">11606@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Excellent tutorial Kriesi, thanks.&#60;br /&#62;
If I want to add more custom fields like this , it does not work.&#60;br /&#62;
What sould I do ?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kriesi on "Featured Badge"</title>
			<link>http://www.kriesi.at/support/topic/featured-badge#post-1152</link>
			<pubDate>Wed, 28 Jul 2010 10:18:03 +0000</pubDate>
			<dc:creator>Kriesi</dc:creator>
			<guid isPermaLink="false">1152@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey! &#60;/p&#62;
&#60;p&#62; my pleasure ;) &#60;/p&#62;
&#60;p&#62; Best regards,&#60;br /&#62;
Kriesi
&#60;/p&#62;</description>
		</item>
		<item>
			<title>crazywp on "Featured Badge"</title>
			<link>http://www.kriesi.at/support/topic/featured-badge#post-1121</link>
			<pubDate>Wed, 28 Jul 2010 03:29:11 +0000</pubDate>
			<dc:creator>crazywp</dc:creator>
			<guid isPermaLink="false">1121@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Awesome thanks alot
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kriesi on "Featured Badge"</title>
			<link>http://www.kriesi.at/support/topic/featured-badge#post-1103</link>
			<pubDate>Tue, 27 Jul 2010 21:24:27 +0000</pubDate>
			<dc:creator>Kriesi</dc:creator>
			<guid isPermaLink="false">1103@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;you can try the following:&#60;/p&#62;
&#60;p&#62;instead of &#60;/p&#62;
&#60;pre&#62;
$premium = get_post_meta($post-&#38;gt;ID, &#34;premium&#34;, true); 	//check if post has a premium mark
&#60;/pre&#62;
&#60;p&#62;you can try this:&#60;/p&#62;
&#60;pre&#62;
$posttags = get_the_tags();
$premium = $posttags[0]-&#38;gt;name;
&#60;/pre&#62;
&#60;p&#62;and instead of this:&#60;/p&#62;
&#60;pre&#62;
if($premium == 1) echo &#34;&#38;lt;span class='featured_entry premium'&#38;gt;&#38;lt;/span&#38;gt;&#34;;
&#60;/pre&#62;
&#60;p&#62;use this:&#60;/p&#62;
&#60;pre&#62;
if($premium == 'tagname') echo &#34;&#38;lt;span class='featured_entry premium'&#38;gt;&#38;lt;/span&#38;gt;&#34;;
&#60;/pre&#62;
&#60;p&#62;of course you need to exchange tagname with the tagname you entered. also this will only work for the first tag applied to the entry
&#60;/p&#62;</description>
		</item>
		<item>
			<title>crazywp on "Featured Badge"</title>
			<link>http://www.kriesi.at/support/topic/featured-badge#post-974</link>
			<pubDate>Tue, 27 Jul 2010 01:43:14 +0000</pubDate>
			<dc:creator>crazywp</dc:creator>
			<guid isPermaLink="false">974@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Awesome trying it now&#60;/p&#62;
&#60;p&#62;Working gr8 tyvm&#60;/p&#62;
&#60;p&#62;But can i use tag instead of field ?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kriesi on "Featured Badge"</title>
			<link>http://www.kriesi.at/support/topic/featured-badge#post-795</link>
			<pubDate>Sun, 25 Jul 2010 16:00:14 +0000</pubDate>
			<dc:creator>Kriesi</dc:creator>
			<guid isPermaLink="false">795@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey guys. Indeed a nice idea, but I am not sure yet if i will add this option since there are too many possibilitys to include them all. I will rather teach you how it is done ;)&#60;/p&#62;
&#60;p&#62;first of all you need to creat a new custom field when writing a post. Lets name it &#34;premium&#34; for now. now set the value to &#34;1&#34;;&#60;/p&#62;
&#60;p&#62;once that is done you need to tell the template file to do something with this value. I will demonstrate it at the example of index.php but you can also might add it to the single.php file, the galler y archive, etc.&#60;/p&#62;
&#60;p&#62;in index.php look out for line 30 which should read:&#60;/p&#62;
&#60;pre&#62;
$featured = get_post_meta($post-&#38;gt;ID, &#34;_prev_featured&#34;, true);
&#60;/pre&#62;
&#60;p&#62;add the following:&#60;/p&#62;
&#60;pre&#62;
$premium = get_post_meta($post-&#38;gt;ID, &#34;premium&#34;, true); 	//check if post has a premium mark
&#60;/pre&#62;
&#60;p&#62;now at line 57 you should find this:&#60;/p&#62;
&#60;pre&#62;
if($featured == 'yes') echo &#34;&#38;lt;span class='featured_entry'&#38;gt;&#38;lt;/span&#38;gt;&#34;;
&#60;/pre&#62;
&#60;p&#62;this controlls if the featured_entry badge is shown by adding a span that gets a background image applied within your css files. simply follow it up with:&#60;/p&#62;
&#60;pre&#62;
if($premium == 1) echo &#34;&#38;lt;span class='featured_entry premium'&#38;gt;&#38;lt;/span&#38;gt;&#34;;
&#60;/pre&#62;
&#60;p&#62;last thing to do is to add a new rule to your style.css file at the bottom that overwrites the featured background image that gets applied to the featured_entry class. thats the reason we set an additional premium class:&#60;/p&#62;
&#60;pre&#62;
#top .premium{
background:url(&#34;images/skin1/premium.png&#34;) no-repeat scroll 0 top transparent;
}

now you just need to create a badge called premium.png and you are done ;)
&#60;/pre&#62;</description>
		</item>
		<item>
			<title>James Morrison on "Featured Badge"</title>
			<link>http://www.kriesi.at/support/topic/featured-badge#post-627</link>
			<pubDate>Sat, 24 Jul 2010 11:10:28 +0000</pubDate>
			<dc:creator>James Morrison</dc:creator>
			<guid isPermaLink="false">627@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;This isn't built into the theme, but with a little customisation you could easily add this. I'll pass this onto Kriesi for an answer as to whether this will make it into an updated version as a new function.&#60;/p&#62;
&#60;p&#62;Cheers
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Baris on "Featured Badge"</title>
			<link>http://www.kriesi.at/support/topic/featured-badge#post-384</link>
			<pubDate>Thu, 22 Jul 2010 08:03:59 +0000</pubDate>
			<dc:creator>Baris</dc:creator>
			<guid isPermaLink="false">384@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;nice idea ;) it would be really great
&#60;/p&#62;</description>
		</item>
		<item>
			<title>crazywp on "Featured Badge"</title>
			<link>http://www.kriesi.at/support/topic/featured-badge#post-365</link>
			<pubDate>Thu, 22 Jul 2010 01:59:08 +0000</pubDate>
			<dc:creator>crazywp</dc:creator>
			<guid isPermaLink="false">365@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Can i add new badges ? Like Premium Free Using Custom Fileds or tags?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
