<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: How to Hack a Pligg Template</title>
	<link>http://www.upstartblogger.com/how-to-hack-a-pligg-template</link>
	<description>Successful Blogging Made Simple</description>
	<pubDate>Fri, 25 Jul 2008 17:34:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Robert Ellis</title>
		<link>http://www.upstartblogger.com/how-to-hack-a-pligg-template#comment-11606</link>
		<dc:creator>Robert Ellis</dc:creator>
		<pubDate>Wed, 06 Jun 2007 18:09:25 +0000</pubDate>
		<guid>http://www.upstartblogger.com/how-to-hack-a-pligg-template#comment-11606</guid>
		<description>Mariam, I believe Beta 9.6 is the latest version.

Yes, you're right. There is some hard code in sidebar_stories.php. I don't know what you're trying to do, so you'll just have to play with it, but you can probably just copy and edit this code, name it whatever you want to call your template, and make some adjustments:

&lt;code&gt;elseif ($the_template == "yget [change this to your template name]") {
	
	echo "&lt;div class=tlb&gt;&lt;span&gt;&lt;a onclick=\"new Effect.toggle('ssstories','blind', {queue: 'end'}); \"&gt; &lt;img src=\"".my_base_url.my_pligg_base."/templates/".The_Template."/images/expand.png\" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;a href=\"".$ss-&gt;link."\"&gt;".$ss-&gt;header."&lt;/a&gt;&lt;/div&gt;&lt;div id=ssstories style=padding-bottom:2px&gt;";
	$ss-&gt;template = $the_template . '/sidebar_stories.tpl';
	$ss-&gt;show();
	echo "&lt;/div&gt;";
	
	}
&lt;/code&gt;

Oh, and waiting for v1.0 is sensible, if you're not in a hurry. Things look to be changing radically and porting and creating templates should be &lt;b&gt;much&lt;/b&gt; easier.</description>
		<content:encoded><![CDATA[<p>Mariam, I believe Beta 9.6 is the latest version.</p>
<p>Yes, you&#8217;re right. There is some hard code in sidebar_stories.php. I don&#8217;t know what you&#8217;re trying to do, so you&#8217;ll just have to play with it, but you can probably just copy and edit this code, name it whatever you want to call your template, and make some adjustments:</p>
<p><code>elseif ($the_template == "yget [change this to your template name]") {</p>
<p>	echo "
<div class=tlb><span><a onclick=\"new Effect.toggle('ssstories','blind', {queue: 'end'}); \"> <img src=\"".my_base_url.my_pligg_base."/templates/".The_Template."/images/expand.png\" /></a></span><a href=\"".$ss->link.&#8221;\&#8221;>&#8221;.$ss->header.&#8221;</a></div>
<div id=ssstories style=padding-bottom:2px>&#8220;;<br />
	$ss->template = $the_template . &#8216;/sidebar_stories.tpl&#8217;;<br />
	$ss->show();<br />
	echo &#8220;</div>
<p>&#8220;;</p>
<p>	}<br />
</code></p>
<p>Oh, and waiting for v1.0 is sensible, if you&#8217;re not in a hurry. Things look to be changing radically and porting and creating templates should be <b>much</b> easier.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mariam Ayyash</title>
		<link>http://www.upstartblogger.com/how-to-hack-a-pligg-template#comment-11605</link>
		<dc:creator>Mariam Ayyash</dc:creator>
		<pubDate>Wed, 06 Jun 2007 17:37:29 +0000</pubDate>
		<guid>http://www.upstartblogger.com/how-to-hack-a-pligg-template#comment-11605</guid>
		<description>well thank you Bob :) im still working on the layout though

seems to me like the version i got is old or something! its Pligg Beta 9.6 :s is there any newer version? What i am referring to is actually code in sidebar_stories.php that referred to "yget" template name, hard-coded, when i changed the template it messed up the side bar because of this... well maybe i should wait for the 1.0 version :) [I love wordpress!]</description>
		<content:encoded><![CDATA[<p>well thank you Bob :) im still working on the layout though</p>
<p>seems to me like the version i got is old or something! its Pligg Beta 9.6 :s is there any newer version? What i am referring to is actually code in sidebar_stories.php that referred to &#8220;yget&#8221; template name, hard-coded, when i changed the template it messed up the side bar because of this&#8230; well maybe i should wait for the 1.0 version :) [I love wordpress!]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Ellis</title>
		<link>http://www.upstartblogger.com/how-to-hack-a-pligg-template#comment-11604</link>
		<dc:creator>Robert Ellis</dc:creator>
		<pubDate>Wed, 06 Jun 2007 14:41:24 +0000</pubDate>
		<guid>http://www.upstartblogger.com/how-to-hack-a-pligg-template#comment-11604</guid>
		<description>Hi, Mariam. Yes, the sidebar code in Pligg &lt;em&gt;is&lt;/em&gt; a mess. I'm not exactly sure what you're asking, though. You can add your template name and path to &lt;b&gt;/templates/templates.tpl&lt;/b&gt;, which should add it to the list in your Admin, but I don't think you should have to change any other files outside of the template directory (but I haven't played with Pligg for a while, so my memory is a little fuzzy). But don't be surprised by anything in Pligg. It's not like WordPress. It should be very easy to work with templates after v1.0, however.

BTW, took a look at your site. I love it. Beautiful design! Love the multicolumn newspaper layout!</description>
		<content:encoded><![CDATA[<p>Hi, Mariam. Yes, the sidebar code in Pligg <em>is</em> a mess. I&#8217;m not exactly sure what you&#8217;re asking, though. You can add your template name and path to <b>/templates/templates.tpl</b>, which should add it to the list in your Admin, but I don&#8217;t think you should have to change any other files outside of the template directory (but I haven&#8217;t played with Pligg for a while, so my memory is a little fuzzy). But don&#8217;t be surprised by anything in Pligg. It&#8217;s not like WordPress. It should be very easy to work with templates after v1.0, however.</p>
<p>BTW, took a look at your site. I love it. Beautiful design! Love the multicolumn newspaper layout!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mariam Ayyash</title>
		<link>http://www.upstartblogger.com/how-to-hack-a-pligg-template#comment-11603</link>
		<dc:creator>Mariam Ayyash</dc:creator>
		<pubDate>Wed, 06 Jun 2007 12:21:02 +0000</pubDate>
		<guid>http://www.upstartblogger.com/how-to-hack-a-pligg-template#comment-11603</guid>
		<description>Hi,
I noticed there is a bit of chaos in the sidebar code, sometimes the wrapper calls another well done tpl like categories, some other time it calls a php file on the root, that has conditional blocks with HARDCODED template names, like yget, i donno, is this expected? so do i have to write a new block of code in the original php to account for my new template?

thanx for the efforts</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I noticed there is a bit of chaos in the sidebar code, sometimes the wrapper calls another well done tpl like categories, some other time it calls a php file on the root, that has conditional blocks with HARDCODED template names, like yget, i donno, is this expected? so do i have to write a new block of code in the original php to account for my new template?</p>
<p>thanx for the efforts</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Ellis</title>
		<link>http://www.upstartblogger.com/how-to-hack-a-pligg-template#comment-11570</link>
		<dc:creator>Robert Ellis</dc:creator>
		<pubDate>Fri, 01 Jun 2007 16:30:13 +0000</pubDate>
		<guid>http://www.upstartblogger.com/how-to-hack-a-pligg-template#comment-11570</guid>
		<description>Devendra, I'm not sure I understand what you're asking. The &lt;b&gt;wrapper.tpl&lt;/b&gt; files are called from &lt;b&gt;sidebar.tpl&lt;/b&gt; and live in the &lt;b&gt;/sidebar_modules&lt;/b&gt; sub-folder.</description>
		<content:encoded><![CDATA[<p>Devendra, I&#8217;m not sure I understand what you&#8217;re asking. The <b>wrapper.tpl</b> files are called from <b>sidebar.tpl</b> and live in the <b>/sidebar_modules</b> sub-folder.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Devendra</title>
		<link>http://www.upstartblogger.com/how-to-hack-a-pligg-template#comment-11567</link>
		<dc:creator>Devendra</dc:creator>
		<pubDate>Fri, 01 Jun 2007 15:40:06 +0000</pubDate>
		<guid>http://www.upstartblogger.com/how-to-hack-a-pligg-template#comment-11567</guid>
		<description>hello robert, where is wrapper .tpl declared in the sidebar.tpl?</description>
		<content:encoded><![CDATA[<p>hello robert, where is wrapper .tpl declared in the sidebar.tpl?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pligg.com</title>
		<link>http://www.upstartblogger.com/how-to-hack-a-pligg-template#comment-7989</link>
		<dc:creator>pligg.com</dc:creator>
		<pubDate>Fri, 16 Mar 2007 18:36:05 +0000</pubDate>
		<guid>http://www.upstartblogger.com/how-to-hack-a-pligg-template#comment-7989</guid>
		<description>&lt;strong&gt;How to Hack a Pligg Template...&lt;/strong&gt;

If you&#8217;ve read my post on Understanding Pligg Template Files and want to take a crack at hacking a template of your own, you may find these tips helpful. This is my workflow for porting a template to Pligg....</description>
		<content:encoded><![CDATA[<p><strong>How to Hack a Pligg Template&#8230;</strong></p>
<p>If you&rsquo;ve read my post on Understanding Pligg Template Files and want to take a crack at hacking a template of your own, you may find these tips helpful. This is my workflow for porting a template to Pligg&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Understanding Pligg Template Files</title>
		<link>http://www.upstartblogger.com/how-to-hack-a-pligg-template#comment-7922</link>
		<dc:creator>Understanding Pligg Template Files</dc:creator>
		<pubDate>Thu, 15 Mar 2007 20:41:59 +0000</pubDate>
		<guid>http://www.upstartblogger.com/how-to-hack-a-pligg-template#comment-7922</guid>
		<description>[...] tutorial on how to decipher Pligg template files.  I&#8217;ve written a followup to this post, How to Hack a Pligg Template. If you&#8217;re looking for tips for creating or modifying a Pligg template, have a [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] tutorial on how to decipher Pligg template files.  I&#8217;ve written a followup to this post, How to Hack a Pligg Template. If you&#8217;re looking for tips for creating or modifying a Pligg template, have a [&#8230;]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
