<?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>unwittinglyrad &#187; Web</title>
	<atom:link href="http://unwittinglyrad.com/category/web/feed/" rel="self" type="application/rss+xml" />
	<link>http://unwittinglyrad.com</link>
	<description>The thoughts and ramblings of Rad.</description>
	<lastBuildDate>Mon, 02 Apr 2012 04:00:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Disable &#8216;add to cart&#8217; for certain products</title>
		<link>http://unwittinglyrad.com/2012/03/21/disable-add-to-cart-for-certain-products/</link>
		<comments>http://unwittinglyrad.com/2012/03/21/disable-add-to-cart-for-certain-products/#comments</comments>
		<pubDate>Wed, 21 Mar 2012 01:41:58 +0000</pubDate>
		<dc:creator>Rad</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://unwittinglyrad.com/?p=3168</guid>
		<description><![CDATA[Disabling the &#8216;add to cart&#8217; button in Magento is a lot easier than you think. Initially, I sifted through a lot of useless information and complex workarounds to this problem before I decided to code up a solution myself. Prerequisites By following this guide, I&#8217;m assuming you have some knowledge with the following things: an [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://unwittinglyrad.com/wp-content/uploads/2012/03/magento-disablecart.png" alt="" title="magento-disablecart" width="960" height="450" class="alignnone size-full wp-image-3169" /></p>
<p><span class="introparagraph">Disabling the &#8216;add to cart&#8217; button in Magento is a lot easier than you think. Initially, I sifted through a lot of useless information and complex workarounds to this problem before I decided to code up a solution myself.</span></p>
<p><span class="subtitle">Prerequisites</span><br />
By following this guide, I&#8217;m assuming you have some knowledge with the following things: an understanding of how Magento&#8217;s attributes and attribute sets work along with a basic knowledge of customising Magento themes. Finally a basic knowledge of PHP coding to edit the code to suit your needs.</p>
<p><span id="more-3168"></span></p>
<p><span class="subtitle">Step 1a</span><br />
The first step of the process is to create an attribute in your Magento admin for the product(s) you want to limit availability to. In order to do this, log into Magento admin and navigate to the Manage Attributes interface, then create a new attribute:</p>
<pre class="grey">Catalog -> Attributes -> Manage Attributes -> Add New Attribute</pre>
<p>From here, you need to create the attribute. For example, I have used <span class="highlight">instore_only</span> as my attribute code. Below is an example of how I have set mine up, you will need to create your attribute based on your needs. </p>
<p>In the Properties tab:</p>
<pre class="grey">
Attribute Code: instore_only
Catalog Input Type for Store Owner: Yes/No

Use in Quick Search: No
Use in Advanced Search: No
Comparable on Front-end: No
Visible on Product View Page on Front-end: No
Used in Product Listing: No
Used for Sorting in Product Listing: No
</pre>
<p>In the Manage Label / Options tab:</p>
<pre class="grey">
Admin: In Store Only
English: In Store Only
</pre>
<p>After the attribute is configured:</p>
<pre>Save Attribute</pre>
<p><span class="subtitle">Step 1b</span><br />
From here, we will need to assign our attribute to a group so that we&#8217;re able to use it. In order to do this, browse to the Attribute Sets interface and select the set it&#8217;ll be going into, normally &#8216;default&#8217;:</p>
<pre class="grey">Catalog -> Attributes -> Manage Attributes Sets -> Select set</pre>
<p>From here you&#8217;ll be able to insert the newly created attribute into a group. You&#8217;ll see the attribute you created under the &#8216;unassigned attributes&#8217; on the right hand side. Simply drag it into a group, I usually put it at the bottom of the &#8216;General&#8217; group as this is the first screen you see when adding a new product.</p>
<p>After you&#8217;ve put your attribute in the desired group:</p>
<pre>Save Attribute Set</pre>
<p><span class="subtitle">Step 2</span><br />
This step involves inserting a PHP function into your product view template code. You&#8217;ll need to navigate to the folder where <span class="highlight">view.phtml</span> is located: </p>
<pre class="grey">app/design/frontend/default/<span class="highlight">your theme</span>/template/catalog/product/view</pre>
<p>With view.phtml opened, find the following block of code:</p>
<pre class="grey">
&lt;?php if (!$this-&gt;hasOptions()):?&gt;
&lt;div class="add-to-box"&gt;
&lt;?php if($_product-&gt;isSaleable()): ?&gt;
&lt;?php echo $this-&gt;getChildHtml('addtocart') ?&gt;
&lt;?php if( $this-&gt;helper('wishlist')-&gt;isAllow() || $_compareUrl=$this-&gt;helper('catalog/product_compare')-&gt;getAddUrl($_product)): ?&gt;
&lt;span class="or"&gt;&lt;?php echo $this-&gt;__('OR') ?&gt;&lt;/span&gt;
&lt;?php endif; ?&gt;
&lt;?php endif; ?&gt;
&lt;?php echo $this-&gt;getChildHtml('addto') ?&gt;
&lt;/div&gt;
&lt;?php echo $this-&gt;getChildHtml('extra_buttons') ?&gt;
&lt;?php elseif (!$_product-&gt;isSaleable()): ?&gt;
&lt;div class="add-to-box"&gt;
&lt;?php echo $this-&gt;getChildHtml('addto') ?&gt;
&lt;/div&gt;
&lt;?php endif; ?&gt;
</pre>
<p>and replace it with the following block of code:</p>
<pre>
<span class="highlight">&lt;?php
//Check if the "Available in store only" variable is set to 'Yes':
if(($_product-&gt;getAttributeText('instore_only')) == "Yes"){
//If set to Yes, tell PHP what to output:
echo "";
}
//If set to No, then show the 'add to cart box' as normal.
else {
?&gt;</span>

&lt;?php if (!$this-&gt;hasOptions()):?&gt;
&lt;div class="add-to-box"&gt;
&lt;?php if($_product-&gt;isSaleable()): ?&gt;
&lt;?php echo $this-&gt;getChildHtml('addtocart') ?&gt;
&lt;?php if( $this-&gt;helper('wishlist')-&gt;isAllow() || $_compareUrl=$this-&gt;helper('catalog/product_compare')-&gt;getAddUrl($_product)): ?&gt;
&lt;span class="or"&gt;&lt;?php echo $this-&gt;__('OR') ?&gt;&lt;/span&gt;
&lt;?php endif; ?&gt;
&lt;?php endif; ?&gt;
&lt;?php echo $this-&gt;getChildHtml('addto') ?&gt;
&lt;/div&gt;
&lt;?php echo $this-&gt;getChildHtml('extra_buttons') ?&gt;
&lt;?php elseif (!$_product-&gt;isSaleable()): ?&gt;
&lt;div class="add-to-box"&gt;
&lt;?php echo $this-&gt;getChildHtml('addto') ?&gt;
&lt;/div&gt;
&lt;?php endif; ?&gt;

<span class="highlight">&lt;?php
}
?&gt;</span>
</pre>
<p>What does this bit of code do? Well, in the first PHP if statement we retrieve the instore_only variable and check to see if it is set to yes. If it is set to yes, then we make PHP output a specific bit of code. The <span class="highlight">echo &#8220;&#8221;;</span> bit can be edited to whatever you want PHP to do if the value is returned as &#8216;Yes&#8217;. If the value is returned as no, then PHP simply outputs the &#8216;Add to cart&#8217; box as normal.</p>
<p>That&#8217;s all there is to it.</p>
]]></content:encoded>
			<wfw:commentRss>http://unwittinglyrad.com/2012/03/21/disable-add-to-cart-for-certain-products/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>IPB: Pinned Topic background colours</title>
		<link>http://unwittinglyrad.com/2009/09/11/ipb-pinned-topic-background-colours/</link>
		<comments>http://unwittinglyrad.com/2009/09/11/ipb-pinned-topic-background-colours/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 05:10:25 +0000</pubDate>
		<dc:creator>Rad</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[IPB]]></category>

		<guid isPermaLink="false">http://unwittinglyrad.com/?p=1327</guid>
		<description><![CDATA[So, through necessity I&#8217;ve figured out a way to highlight the background colours of pinned topics for Invision Power Board 2.3.x and thought I&#8217;d share my solution with everyone. Getting the pinned topics to highlight is quite a simple procedure and takes approximately 10 minutes to complete. It involves editing two template files found in [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://unwittinglyrad.com/wp-content/uploads/2009/09/ipbtopics.jpg" alt="" title="ipbtopics" width="960" height="450" class="alignnone size-full wp-image-2369" /></p>
<p><span class="introparagraph">So, through necessity I&#8217;ve figured out a way to highlight the background colours of pinned topics for Invision Power Board 2.3.x and thought I&#8217;d share my solution with everyone.</span></p>
<p>Getting the pinned topics to highlight is quite a simple procedure and takes approximately 10 minutes to complete. It involves editing two template files found in <span class="highlightgrey">Forum Index</span>, these are: <span class="highlightgrey">render_pinned_start</span> and <span class="highlightgrey">render_forum_row</span>. Code edits are highlighted in <span class="highlight">blue</span>.</p>
<hr />
<p><span class="subtitle">Step 1</span></p>
<p>Involves adding a <span class="highlightgrey">style=&quot;background:#;&quot;</span> to the td in render_pinned_start. This will overwrite the background property that is defined in the darkrow1 class. This edit adjusts the background colour for the Important Topics title.</p>
<blockquote class="blockquotecode"><p>&lt;!&#8211;PINNED&#8211;&gt;<br />
&lt;if=&quot;$show == 1&quot;&gt;<br />
&lt;tr&gt;<br />
&lt;td class=&quot;darkrow1&quot; colspan=&quot;8&quot; <span class="highlight">style=&quot;background:#fbf2ca;&quot;</span>&gt;&lt;b&gt;{$this-&gt;ipsclass-&gt;lang[&#39;pinned_start&#39;]}&lt;/b&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/if&gt;<br />
&lt;!&#8211; END PINNED &#8211;&gt;</p></blockquote>
<hr />
<p><span class="subtitle">Step 2</span></p>
<p>This is the more time consuming part and involves adding some if, else statements and style code to render_forum_row. What you see below is pretty much the <em>standard</em> code duplicated in order to use the functionality of if, else statements.</p>
<p>Open your favourite text editor, then simply copy and paste the content from render_forum_row in it. Then duplicate the code from <span class="highlightgrey">&lt;tr&gt;</span> to <span class="highlightgrey">&lt;/tr&gt;</span> within your text document. You then want to add <span class="highlightgrey">&lt;if=&quot;$data[&#39;tid&#39;] == your-topic-id || $data[&#39;tid&#39;] == your-topic-id&quot;&gt;</span> at the very top of your code. Replace your-topic-id with the pinned topic ID&#8217;s off your forum (you will find them if you view source).</p>
<p>The example in my code shows <em>two</em> ID variables because I have more than one pinned topic. You will need to add an additional <span class="highlightgrey">|| $data[&#39;tid&#39;] == </span> for each topic ID.</p>
<p>Where the first <span class="highlightgrey">&lt;/tr&gt;</span> ends and  second <span class="highlightgrey">&lt;tr&gt;</span> begins, between these two you want to place an <span class="highlightgrey">&lt;else /&gt;</span> statement. This basically tells IPB how to display topics if the ID&#8217;s from the if statement don&#8217;t match. At the end of the second <span class="highlightgrey">&lt;/tr&gt;</span>, place an <span class="highlightgrey">&lt;/if&gt;</span>, this will close off the if statement which you started at the very top of all the code.</p>
<p>From here, all that is left to do is add <span class="highlightgrey">style=&quot;background:#;&quot;</span> with your own colour code to each of the td cells <em>above</em> the <span class="highlightgrey">&lt;else /&gt;</span> line of code. My final step was to add <span class="highlightgrey">style=&quot;font-weight:bold;&quot;</span> to pinned topic title so that it stands out more.</p>
<p><span class="subtitle">The final result, complete code:</span></p>
<blockquote class="blockquotecode"><p><span class="highlight">&lt;if=&quot;$data[&#39;tid&#39;] == your-topic-id || $data[&#39;tid&#39;] == your-topic-id&quot;&gt;</span><br />
&lt;!&#8211; Begin Topic Entry {$data[&#39;tid&#39;]} &#8211;&gt;<br />
&lt;tr&gt;<br />
	&lt;td align=&quot;center&quot; class=&quot;$class2&quot; <span class="highlight">style=&quot;background:#fffbe9;&quot;</span> id=&#39;tid-folder-{$data[&#39;tid&#39;]}&#39; onclick=&#39;return topic_toggle_folder(&quot;{$data[&#39;tid&#39;]}&quot;, &quot;{$data[&#39;state&#39;]}&quot;);&#39;&gt;{$data[&#39;folder_img&#39;]}&lt;/td&gt;<br />
	&lt;td align=&quot;center&quot; class=&quot;$class2&quot; <span class="highlight">style=&quot;background:#fffbe9;&quot;</span>&gt;&lt;/td&gt;<br />
	&lt;td class=&quot;$class2&quot; valign=&quot;middle&quot; <span class="highlight">style=&quot;background:#fffbe9;&quot;</span>&gt;<br />
	    &lt;div style=&#39;float:right&#39;&gt;{$data[&#39;_rate_img&#39;]}&lt;/div&gt;<br />
		&lt;div&gt;<br />
			{$data[&#39;go_new_post&#39;]}{$data[&#39;prefix&#39;]} {$data[&#39;attach_img&#39;]}&lt;span id=&#39;tid-span-{$data[&#39;tid&#39;]}&#39;&gt;&lt;a id=&quot;tid-link-{$data[&#39;tid&#39;]}&quot; href=&quot;{$this-&gt;ipsclass-&gt;base_url}showtopic={$data[&#39;tid&#39;]}&quot; title=&quot;{$this-&gt;ipsclass-&gt;lang[&#39;topic_started_on&#39;]} {$data[&#39;start_date&#39;]}&quot; <span class="highlight">style=&quot;font-weight:bold;&quot;</span>&gt;{$data[&#39;title&#39;]}&lt;/a&gt;&lt;/span&gt; {$data[&#39;PAGES&#39;]}<br />
			&lt;div class=&quot;desc&quot;&gt;&lt;span onclick=&#39;return span_desc_to_input(&quot;{$data[&#39;tid&#39;]}&quot;);&#39; id=&#39;tid-desc-{$data[&#39;tid&#39;]}&#39;&gt;{$data[&#39;description&#39;]}&lt;/span&gt;&lt;/div&gt;<br />
		&lt;/div&gt;<br />
	&lt;/td&gt;<br />
	&lt;td align=&#39;center&#39; class=&quot;$classposts&quot; <span class="highlight">style=&quot;background:#fffbe9;&quot;</span>&gt;<br />
     {$data[&#39;posts&#39;]}<br />
&lt;if=&quot;$data[&#39;_hasqueued&#39;] == 1 and $inforum == 1&quot;&gt;<br />
&amp;nbsp;&lt;a href=&quot;{$this-&gt;ipsclass-&gt;base_url}showtopic={$data[&#39;tid&#39;]}&amp;amp;modfilter=invisible_posts&quot;&gt;&lt;{BC_QUEUED_POSTS}&gt;&lt;/a&gt;<br />
&lt;/if&gt;<br />
    &lt;/td&gt;<br />
	&lt;td align=&quot;center&quot; class=&quot;$class2&quot; <span class="highlight">style=&quot;background:#fffbe9;&quot;</span>&gt;{$data[&#39;starter&#39;]}&lt;/td&gt;<br />
	&lt;td align=&quot;center&quot; class=&quot;$class1&quot; <span class="highlight">style=&quot;background:#fffbe9;&quot;</span>&gt;{$data[&#39;views&#39;]}&lt;/td&gt;<br />
	&lt;td class=&quot;$class2&quot; <span class="highlight">style=&quot;background:#fffbe9;&quot;</span>&gt;&lt;span class=&quot;lastaction&quot;&gt;{$data[&#39;last_post&#39;]}&lt;br /&gt;&lt;a href=&quot;{$this-&gt;ipsclass-&gt;base_url}showtopic={$data[&#39;tid&#39;]}&amp;amp;view=getlastpost&quot;&gt;{$data[&#39;last_text&#39;]}&lt;/a&gt; &lt;b&gt;{$data[&#39;last_poster&#39;]}&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;<br />
&lt;if=&quot;$this-&gt;ipsclass-&gt;member[&#39;is_mod&#39;] == 1 and $inforum == 1 and $data[&#39;tidon&#39;] == 1&quot;&gt;<br />
&lt;td align=&quot;center&quot; class=&quot;$class1&quot;&gt;&lt;input type=&#39;hidden&#39; name=&#39;tid_{$data[&#39;real_tid&#39;]}&#39; id=&#39;tid_{$data[&#39;real_tid&#39;]}&#39; /&gt;&lt;a href=&quot;#&quot; title=&quot;{$this-&gt;ipsclass-&gt;lang[&#39;click_for_mod&#39;]}&quot; onclick=&quot;forum_toggle_tid(&#39;{$data[&#39;real_tid&#39;]}&#39;); return false;&quot;&gt;&lt;img name=&quot;img{$data[&#39;real_tid&#39;]}&quot; id=&#39;ipb-topic-{$data[&#39;real_tid&#39;]}&#39; src=&quot;{$this-&gt;ipsclass-&gt;vars[&#39;img_url&#39;]}/topic_selected.gif&quot; alt=&#39;&#39; /&gt;&lt;/a&gt;&lt;/td&gt;<br />
&lt;/if&gt;<br />
&lt;if=&quot;$this-&gt;ipsclass-&gt;member[&#39;is_mod&#39;] == 1 and $inforum == 1 and $data[&#39;tidon&#39;] == 0&quot;&gt;<br />
&lt;td align=&quot;center&quot; class=&quot;$class1&quot; <span class="highlight">style=&quot;background:#fffbe9;&quot;</span>&gt;&lt;input type=&#39;hidden&#39; name=&#39;tid_{$data[&#39;real_tid&#39;]}&#39; id=&#39;tid_{$data[&#39;real_tid&#39;]}&#39; /&gt;&lt;a href=&quot;#&quot; title=&quot;{$this-&gt;ipsclass-&gt;lang[&#39;click_for_mod&#39;]}&quot; onclick=&quot;forum_toggle_tid(&#39;{$data[&#39;real_tid&#39;]}&#39;); return false;&quot;&gt;&lt;img name=&quot;img{$data[&#39;real_tid&#39;]}&quot; id=&#39;ipb-topic-{$data[&#39;real_tid&#39;]}&#39; src=&quot;{$this-&gt;ipsclass-&gt;vars[&#39;img_url&#39;]}/topic_unselected.gif&quot; alt=&#39;&#39; /&gt;&lt;/a&gt;&lt;/td&gt;<br />
&lt;/if&gt;<br />
&lt;/tr&gt;<br />
<span class="highlight">&lt;else /&gt;</span></span><br />
&lt;tr&gt;<br />
	&lt;td align=&quot;center&quot; class=&quot;$class2&quot; id=&#39;tid-folder-{$data[&#39;tid&#39;]}&#39; onclick=&#39;return topic_toggle_folder(&quot;{$data[&#39;tid&#39;]}&quot;, &quot;{$data[&#39;state&#39;]}&quot;);&#39;&gt;{$data[&#39;folder_img&#39;]}&lt;/td&gt;<br />
	&lt;td align=&quot;center&quot; class=&quot;$class2&quot;&gt;{$data[&#39;topic_icon&#39;]}&lt;/td&gt;<br />
	&lt;td class=&quot;$class2&quot; valign=&quot;middle&quot;&gt;<br />
	    &lt;div style=&#39;float:right&#39;&gt;{$data[&#39;_rate_img&#39;]}&lt;/div&gt;<br />
		&lt;div&gt;<br />
			{$data[&#39;go_new_post&#39;]}{$data[&#39;prefix&#39;]} {$data[&#39;attach_img&#39;]}&lt;span id=&#39;tid-span-{$data[&#39;tid&#39;]}&#39;&gt;&lt;a id=&quot;tid-link-{$data[&#39;tid&#39;]}&quot; href=&quot;{$this-&gt;ipsclass-&gt;base_url}showtopic={$data[&#39;tid&#39;]}&quot; title=&quot;{$this-&gt;ipsclass-&gt;lang[&#39;topic_started_on&#39;]} {$data[&#39;start_date&#39;]}&quot;&gt;{$data[&#39;title&#39;]}&lt;/a&gt;&lt;/span&gt; {$data[&#39;PAGES&#39;]}<br />
			&lt;div class=&quot;desc&quot;&gt;&lt;span onclick=&#39;return span_desc_to_input(&quot;{$data[&#39;tid&#39;]}&quot;);&#39; id=&#39;tid-desc-{$data[&#39;tid&#39;]}&#39;&gt;{$data[&#39;description&#39;]}&lt;/span&gt;&lt;/div&gt;<br />
		&lt;/div&gt;<br />
	&lt;/td&gt;<br />
	&lt;td align=&#39;center&#39; class=&quot;$classposts&quot;&gt;<br />
     {$data[&#39;posts&#39;]}<br />
&lt;if=&quot;$data[&#39;_hasqueued&#39;] == 1 and $inforum == 1&quot;&gt;<br />
&amp;nbsp;&lt;a href=&quot;{$this-&gt;ipsclass-&gt;base_url}showtopic={$data[&#39;tid&#39;]}&amp;amp;modfilter=invisible_posts&quot;&gt;&lt;{BC_QUEUED_POSTS}&gt;&lt;/a&gt;<br />
&lt;/if&gt;<br />
    &lt;/td&gt;<br />
	&lt;td align=&quot;center&quot; class=&quot;$class2&quot;&gt;{$data[&#39;starter&#39;]}&lt;/td&gt;<br />
	&lt;td align=&quot;center&quot; class=&quot;$class1&quot;&gt;{$data[&#39;views&#39;]}&lt;/td&gt;<br />
	&lt;td class=&quot;$class2&quot;&gt;&lt;span class=&quot;lastaction&quot;&gt;{$data[&#39;last_post&#39;]}&lt;br /&gt;&lt;a href=&quot;{$this-&gt;ipsclass-&gt;base_url}showtopic={$data[&#39;tid&#39;]}&amp;amp;view=getlastpost&quot;&gt;{$data[&#39;last_text&#39;]}&lt;/a&gt; &lt;b&gt;{$data[&#39;last_poster&#39;]}&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;<br />
&lt;if=&quot;$this-&gt;ipsclass-&gt;member[&#39;is_mod&#39;] == 1 and $inforum == 1 and $data[&#39;tidon&#39;] == 1&quot;&gt;<br />
&lt;td align=&quot;center&quot; class=&quot;$class1&quot;&gt;&lt;input type=&#39;hidden&#39; name=&#39;tid_{$data[&#39;real_tid&#39;]}&#39; id=&#39;tid_{$data[&#39;real_tid&#39;]}&#39; /&gt;&lt;a href=&quot;#&quot; title=&quot;{$this-&gt;ipsclass-&gt;lang[&#39;click_for_mod&#39;]}&quot; onclick=&quot;forum_toggle_tid(&#39;{$data[&#39;real_tid&#39;]}&#39;); return false;&quot;&gt;&lt;img name=&quot;img{$data[&#39;real_tid&#39;]}&quot; id=&#39;ipb-topic-{$data[&#39;real_tid&#39;]}&#39; src=&quot;{$this-&gt;ipsclass-&gt;vars[&#39;img_url&#39;]}/topic_selected.gif&quot; alt=&#39;&#39; /&gt;&lt;/a&gt;&lt;/td&gt;<br />
&lt;/if&gt;<br />
&lt;if=&quot;$this-&gt;ipsclass-&gt;member[&#39;is_mod&#39;] == 1 and $inforum == 1 and $data[&#39;tidon&#39;] == 0&quot;&gt;<br />
&lt;td align=&quot;center&quot; class=&quot;$class1&quot;&gt;&lt;input type=&#39;hidden&#39; name=&#39;tid_{$data[&#39;real_tid&#39;]}&#39; id=&#39;tid_{$data[&#39;real_tid&#39;]}&#39; /&gt;&lt;a href=&quot;#&quot; title=&quot;{$this-&gt;ipsclass-&gt;lang[&#39;click_for_mod&#39;]}&quot; onclick=&quot;forum_toggle_tid(&#39;{$data[&#39;real_tid&#39;]}&#39;); return false;&quot;&gt;&lt;img name=&quot;img{$data[&#39;real_tid&#39;]}&quot; id=&#39;ipb-topic-{$data[&#39;real_tid&#39;]}&#39; src=&quot;{$this-&gt;ipsclass-&gt;vars[&#39;img_url&#39;]}/topic_unselected.gif&quot; alt=&#39;&#39; /&gt;&lt;/a&gt;&lt;/td&gt;<br />
&lt;/if&gt;<br />
&lt;/tr&gt;<br />
<span class="highlight">&lt;/if&gt;</span><br />
&lt;!&#8211; End Topic Entry {$data[&#39;tid&#39;]} &#8211;&gt;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://unwittinglyrad.com/2009/09/11/ipb-pinned-topic-background-colours/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

