<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.technologyandsocialaction.org" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Technology and Social Action - Creating an ULTRALAB hot seat clone in drupal - Comments</title>
 <link>http://www.technologyandsocialaction.org/node/243</link>
 <description>Comments for &quot;Creating an ULTRALAB hot seat clone in drupal&quot;</description>
 <language>en</language>
<item>
 <title>Theming and rendering refinements</title>
 <link>http://www.technologyandsocialaction.org/node/243#comment-217</link>
 <description>&lt;p&gt;The nodecomment module provides two views for comments &lt;/p&gt;
&lt;p&gt;1. Threaded &lt;/p&gt;
&lt;p&gt;2. Flat &lt;/p&gt;
&lt;p&gt;There is a requirement to have a semi threaded view though. This is where replies indent one level, but no more after that. I&#039;ve quickly done this the &lt;i&gt;wrong &lt;/i&gt;way.  By hacking the prebuilt views.  :-( &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Heres the diff &lt;/p&gt;
&lt;p&gt;diff nodecomment_views.inc nodecomment_views.inc.drupal&lt;br /&gt;
368,371c368,369&lt;br /&gt;
&amp;lt;       if ($last_depth &amp;lt; 1 ) {&lt;br /&gt;
&amp;lt;               $divs++;&lt;br /&gt;
&amp;lt;               $output .= &#039;&amp;lt;div class=&amp;quot;indented&amp;quot;&amp;gt;&#039;;&lt;br /&gt;
&amp;lt;       }&lt;br /&gt;
---&lt;br /&gt;
&amp;gt;       $divs++;&lt;br /&gt;
&amp;gt;       $output .= &#039;&amp;lt;div class=&amp;quot;indented&amp;quot;&amp;gt;&#039;;&lt;br /&gt;
376,379c374,375&lt;br /&gt;
&amp;lt;         if ($last_depth &amp;gt; 0) {&lt;br /&gt;
&amp;lt;         $divs--;&lt;br /&gt;
&amp;lt;         $output .= &#039;&amp;lt;/div&amp;gt;&#039;;&lt;br /&gt;
&amp;lt;       }&lt;br /&gt;
---&lt;br /&gt;
&amp;gt;         $divs--;&lt;br /&gt;
&amp;gt;         $output .= &#039;&amp;lt;/div&amp;gt;&#039;; &lt;/p&gt;
&lt;p&gt;Anyhow that works OK... until we need a full threaded view again. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The &lt;b&gt;correct&lt;/b&gt; way would be to read the theming views documentation and create a new view and corresponding theme for the semithreaded view. .. later ;-) &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also there was a requirement to remove the &amp;quot;reply&amp;quot; link from the indented nodes.  A change to the .tpl.php sorted this. &lt;/p&gt;
&lt;p&gt;&amp;lt;?php&lt;br /&gt;
$node-&amp;gt;depth = count(explode(&#039;.&#039;, $node-&amp;gt;thread)) - 1;&lt;br /&gt;
if ($node-&amp;gt;depth == 0): ?&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;links clear-block&amp;quot;&amp;gt;&amp;lt;?php print $links ?&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;?php endif; ?&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Ie only print the links at the bottom if the nodecomment is a first level, rather than a reply to a reply.   This should probably be refined further, so that users with the correct access rights / roles ( administer nodes ? comments ? ) will still see the links. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;br class=&quot;clear&quot; /&gt;</description>
 <pubDate>Sun, 21 Oct 2007 22:40:58 +0100</pubDate>
 <dc:creator>alan dawson</dc:creator>
 <guid isPermaLink="false">comment 217 at http://www.technologyandsocialaction.org</guid>
</item>
<item>
 <title>Creating an ULTRALAB hot seat clone in drupal</title>
 <link>http://www.technologyandsocialaction.org/node/243</link>
 <description>&lt;p&gt;OK .. rough notes on work in progress of the hot seat software ... basically so I can remember how to do it again.&lt;/p&gt;
&lt;p&gt;There are quite a lot of settings to get right.  Some through drupal, others on a shell on the webserver ( or however you mod the files on there )&lt;/p&gt;
&lt;p&gt;Its work in progress but at this date can be found at &lt;a href=&quot;http://hs.technologyandsocialaction.org/&quot;&gt;http://hs.technologyandsocialaction.org&lt;/a&gt;&lt;/p&gt;
&lt;br class=&quot;clear&quot; /&gt;&lt;p&gt;&lt;a href=&quot;http://www.technologyandsocialaction.org/node/243&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.technologyandsocialaction.org/node/243#comments</comments>
 <category domain="http://www.technologyandsocialaction.org/taxonomy/term/74">drupal</category>
 <category domain="http://www.technologyandsocialaction.org/taxonomy/term/125">hotseat</category>
 <category domain="http://www.technologyandsocialaction.org/taxonomy/term/55">Online Environment Development</category>
 <category domain="http://www.technologyandsocialaction.org/taxonomy/term/51">Other discussion topics</category>
 <category domain="http://www.technologyandsocialaction.org/taxonomy/term/107">ultralab</category>
 <enclosure url="http://www.technologyandsocialaction.org/system/files/formtweaker-diff.txt" length="351" type="text/plain" />
 <pubDate>Fri, 12 Oct 2007 14:49:28 +0100</pubDate>
 <dc:creator>alan dawson</dc:creator>
 <guid isPermaLink="false">243 at http://www.technologyandsocialaction.org</guid>
</item>
</channel>
</rss>
