<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
  <title>aC forum: Project Image taken from Client Image</title>
  <link>http://www.activecollab.com/forums/topic/2159/</link>
  <description>Recent posts on topic: Project Image taken from Client Image</description>
  <dc:language>en-us</dc:language>
  <pubDate>Sat, 06 Sep 2008 13:01:06 CDT</pubDate>
  
  <item>
    <link>http://www.activecollab.com/forums/post/12440/#post12440</link>
    <guid>http://www.activecollab.com/forums/post/12440/#post12440</guid>
    <title>Post #9 by Valdemar</title>
    <dc:creator>Valdemar</dc:creator>
    <description><![CDATA[<p>Just added this to our current installation, to make it easier for the finance dept. to find client project among regular projects, works on 1.0.6. Replace the getIconUrl() function at around line ~397 in /activecollab/application/modules/system/models/projects/Project.class.php:<br />
<br />
<pre name="code" class="html">
    function getIconUrl($large = false) {
      $size = $large ? '40x40' : '16x16';
      $company_id = $this-&gt;getCompanyId();
      if(is_file($this-&gt;getIconPath($large))) {
        return ROOT_URL . '/projects_icons/' . $this-&gt;getId() . &quot;.$size.gif&quot;;
      } elseif(is_file(ENVIRONMENT_PATH . '/' . PUBLIC_FOLDER_NAME . '/logos/' . $company_id . &quot;.$size.jpg&quot;)) {
            return ROOT_URL . '/' . PUBLIC_FOLDER_NAME .'/logos/'. $company_id .&quot;.$size.jpg&quot;;
      } else {
        return ROOT_URL . &quot;/projects_icons/default.$size.gif&quot;;
      } // if
    } // getAvatarUrl
</pre><br />
<br />
Ilija, please consider patching this in 1.1, and making it a switch in Administration, if possible.</p>]]></description>
    <pubDate>Wed, 16 Apr 2008 02:28:53 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/10533/#post10533</link>
    <guid>http://www.activecollab.com/forums/post/10533/#post10533</guid>
    <title>Post #8 by adamld</title>
    <dc:creator>adamld</dc:creator>
    <description><![CDATA[<p>I have too many changes to keep track of as it is that I need to change back once I apply 1.0.4<br />
<br />
I will just wait and hope they see the sense of implementing this in a future update not too far away.<br />
<br />
I hope they have documented all the changes in this update so I know what not to fix.</p>]]></description>
    <pubDate>Sun, 04 Nov 2007 18:59:24 CST</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/10528/#post10528</link>
    <guid>http://www.activecollab.com/forums/post/10528/#post10528</guid>
    <title>Post #7 by cyandesign</title>
    <dc:creator>cyandesign</dc:creator>
    <description><![CDATA[<p>Hey Valdemar, This worked great in 1.0.4.<br />
<br />
I had to remove the <br />
<br />
'/' . PUBLIC_FOLDER_NAME . <br />
<br />
Because my config file had &quot;/public&quot; in the URL. But other than that, it works great.<br />
<br />
Thanks.</p>]]></description>
    <pubDate>Sun, 04 Nov 2007 00:30:40 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/10521/#post10521</link>
    <guid>http://www.activecollab.com/forums/post/10521/#post10521</guid>
    <title>Post #6 by Valdemar</title>
    <dc:creator>Valdemar</dc:creator>
    <description><![CDATA[<p>Where there's a will, there's a way.<br />
<br />
Add these lines DIRECTLY after line 397 in /activecollab/application/modules/system/models/projects/Project.class.php (the one saying <i>&quot;$size = $large ? '40x40' : '16x16';&quot;</i> in the beginning of the getIconUrl() function)<br />
<br />
<pre name="code" class="php">
      $company_id = $this-&gt;getCompanyId();
      if (is_file(ENVIRONMENT_PATH . '/' . PUBLIC_FOLDER_NAME . '/logos/' . $company_id . &quot;.$size.jpg&quot;)) {
          return ROOT_URL . '/' . PUBLIC_FOLDER_NAME .'/logos/'. $company_id .&quot;.$size.jpg&quot;;
        } else {
          return ROOT_URL . '/' . PUBLIC_FOLDER_NAME .&quot;/logos/default.$size.gif&quot;;
      } // if
</pre><br />
<br />
Please note, messing with the core breaks updates! - Works here on 1.0.3, haven't updated to 1.0.4, tho I don't see why it wouldn't work there aswell. It's a dirty and very quick hack, and normal project icons won't work afterwards. But it should point you in the right direction if you really need this.</p>]]></description>
    <pubDate>Fri, 02 Nov 2007 09:42:32 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/10508/#post10508</link>
    <guid>http://www.activecollab.com/forums/post/10508/#post10508</guid>
    <title>Post #5 by kthomas</title>
    <dc:creator>kthomas</dc:creator>
    <description><![CDATA[<p>1++</p>]]></description>
    <pubDate>Thu, 01 Nov 2007 19:21:57 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/10413/#post10413</link>
    <guid>http://www.activecollab.com/forums/post/10413/#post10413</guid>
    <title>Post #4 by Sebastian Tänzer</title>
    <dc:creator>Sebastian Tänzer</dc:creator>
    <description><![CDATA[<p>+1<br />
<br />
Really useful!</p>]]></description>
    <pubDate>Fri, 26 Oct 2007 11:49:46 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/10384/#post10384</link>
    <guid>http://www.activecollab.com/forums/post/10384/#post10384</guid>
    <title>Post #3 by cyandesign</title>
    <dc:creator>cyandesign</dc:creator>
    <description><![CDATA[<p>That would be cool. I'd actually use the images then.<br />
<br />
+1<br />
</p>]]></description>
    <pubDate>Thu, 25 Oct 2007 15:11:16 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/10373/#post10373</link>
    <guid>http://www.activecollab.com/forums/post/10373/#post10373</guid>
    <title>Post #2 by caffeine_twitch</title>
    <dc:creator>caffeine_twitch</dc:creator>
    <description><![CDATA[<p>I agree. By default it should take the client's image, but have the option to add a different one if you so choose.</p>]]></description>
    <pubDate>Thu, 25 Oct 2007 08:34:19 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/10267/#post10267</link>
    <guid>http://www.activecollab.com/forums/post/10267/#post10267</guid>
    <title>Post #1 by adamld</title>
    <dc:creator>adamld</dc:creator>
    <description><![CDATA[<p>Can we have the Project Image automatically taken from the default Client image?<br />
<br />
It would save some time as it stands you add a client, add an image, and then have to add the same image for each project.</p>]]></description>
    <pubDate>Sun, 21 Oct 2007 18:19:50 CDT</pubDate>
  </item>
</channel>
</rss>