<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
  <title>aC forum: Image viewing hack</title>
  <link>http://www.activecollab.com/forums/topic/896/</link>
  <description>Recent posts on topic: Image viewing hack</description>
  <dc:language>en-us</dc:language>
  <pubDate>Sun, 23 Nov 2008 05:01:41 CST</pubDate>
  
  <item>
    <link>http://www.activecollab.com/forums/post/7961/#post7961</link>
    <guid>http://www.activecollab.com/forums/post/7961/#post7961</guid>
    <title>Post #9 by bochenn</title>
    <dc:creator>bochenn</dc:creator>
    <description><![CDATA[<p>anyone can do a hack but using lightbox?<br />
<br />
for me it will be usefull as well.<br />
<br />
cheers, thanks</p>]]></description>
    <pubDate>Fri, 15 Jun 2007 13:08:05 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/7930/#post7930</link>
    <guid>http://www.activecollab.com/forums/post/7930/#post7930</guid>
    <title>Post #8 by anabelle</title>
    <dc:creator>anabelle</dc:creator>
    <description><![CDATA[<p>i love this hack, but i have a problem with it, it tries to expand all types of files, and not just images, i manage sound files also, how can i stop highslide from trying to expand sound files?</p>]]></description>
    <pubDate>Mon, 11 Jun 2007 14:14:02 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/4380/#post4380</link>
    <guid>http://www.activecollab.com/forums/post/4380/#post4380</guid>
    <title>Post #7 by yannisc</title>
    <dc:creator>yannisc</dc:creator>
    <description><![CDATA[<p>I tried to implement the above hack, but doesn't seem to work. I use 0.7RC2. Are you sure it works? When I click on an image, nothing happens...</p>]]></description>
    <pubDate>Thu, 02 Nov 2006 14:36:47 CST</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/4352/#post4352</link>
    <guid>http://www.activecollab.com/forums/post/4352/#post4352</guid>
    <title>Post #6 by anianem</title>
    <dc:creator>anianem</dc:creator>
    <description><![CDATA[<p>Great work with highslide. <br />
<br />
I agree with dobersch that lightbox is probably a better bet as it is open source. I've used it successfully on a couple of joomla sites I run and think it is an attractive way to view images. <br />
<br />
Not sure it really fits well with the minimal nature of aC... it is a bit too fancy. I love aC because it is so simple. A flash image loader maybe too much. <br />
<br />
Just my two cents...  </p>]]></description>
    <pubDate>Wed, 01 Nov 2006 17:10:50 CST</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/4073/#post4073</link>
    <guid>http://www.activecollab.com/forums/post/4073/#post4073</guid>
    <title>Post #5 by dobersch</title>
    <dc:creator>dobersch</dc:creator>
    <description><![CDATA[<p>Thanks askeeto for the explanation. I think the idea ist pretty cool, and it's closely related to some <a href="http://forum.activecollab.com/viewtopic.php?id=801" target="_blank" rel="nofollow">earlier posts</a> of mine where I made a feature request for a better image accessability in the file section.<br />
<br />
What I like about your solution is, that there's no need to open up another window, but I don't think that your solution will make it into the official aC package, as it's not free for commercial use.<br />
<br />
Personally I like <a href="http://www.huddletogether.com/projects/lightbox2/" target="_blank" rel="nofollow">lightbox</a> much more, for the following reasons:<br />
* it's free for commercial use (licensed under the Creative Commons Attribution 2.5 License)<br />
* you can right-click the opened picture to save it (this only works in Opera with highslide)<br />
* it's free ;)<br />
<br />
On the other hand, &quot;highslide&quot; has some advantages too, as being able to drag pics around or the possibility to open up more than one picture. But I could live without that.<br />
<br />
Thanks again for publishing your &quot;hack&quot;, so that anyone could reproduce your customization.<br />
<br />
Ilija, what do you think of an inclusion of such functionality (maybe through &quot;<a href="http://www.huddletogether.com/projects/lightbox2/" target="_blank" rel="nofollow">lightbox</a>&quot;) in a future version of aC?<br />
<br />
What do the other aC users think?<br />
<br />
cheers,<br />
Gabriel</p>]]></description>
    <pubDate>Fri, 20 Oct 2006 05:08:52 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/4071/#post4071</link>
    <guid>http://www.activecollab.com/forums/post/4071/#post4071</guid>
    <title>Post #4 by askeeto</title>
    <dc:creator>askeeto</dc:creator>
    <description><![CDATA[<p>When you click on an image thumbnail it expands to the big version of the picture in an ajax fashion.<br />
<br />
Go to this page <a href="http://vikjavev.no/highslide/" target="_blank" rel="nofollow">http://vikjavev.no/highslide/</a> and click on the images in the &quot;Examples with settings&quot; section. It does exactly that with the thumbnails from the images you uploaded.</p>]]></description>
    <pubDate>Fri, 20 Oct 2006 01:39:05 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/4038/#post4038</link>
    <guid>http://www.activecollab.com/forums/post/4038/#post4038</guid>
    <title>Post #3 by dobersch</title>
    <dc:creator>dobersch</dc:creator>
    <description><![CDATA[<p>Yeah askeeto, would be really nice, if you could take a screenshot of the outcome and post the link here in the thread.<br />
<br />
cheers,<br />
Gabriel</p>]]></description>
    <pubDate>Thu, 19 Oct 2006 11:50:42 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/4035/#post4035</link>
    <guid>http://www.activecollab.com/forums/post/4035/#post4035</guid>
    <title>Post #2 by karunnt</title>
    <dc:creator>karunnt</dc:creator>
    <description><![CDATA[<p>Does this create a gallery of thumbnail images which allow clicking to enlarge a select image?<br />
<br />
Thanks.</p>]]></description>
    <pubDate>Thu, 19 Oct 2006 11:33:10 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/4033/#post4033</link>
    <guid>http://www.activecollab.com/forums/post/4033/#post4033</guid>
    <title>Post #1 by askeeto</title>
    <dc:creator>askeeto</dc:creator>
    <description><![CDATA[<p>I am using activecollab to manage the renovation of our house and it involves a lot of images with samples of floors etc... I find the standard way of viewing the images is a little bit too cumbersome, so I integrated the highslide javascript ( http://vikjavev.no/highslide/ ) in the pages.<br />
<br />
please note that the library is free for non commercial use and 30$ for commercial use.<br />
<br />
To implement it in activecollab make the following changes. <br />
Iin the files <br />
\activecollab\application\layouts\account.php<br />
\activecollab\application\layouts\administration.php<br />
\activecollab\application\layouts\dashboard.php<br />
\activecollab\application\layouts\project_website.php<br />
<br />
replace the line<br />
<pre name="code" class="html">&lt;?php echo render_page_head() ?&gt;</pre><br />
by the following code<br />
<pre name="code" class="html">&lt;?php echo use_widget('highslide') ?&gt;
&lt;?php echo render_page_head() ?&gt;

&lt;script type=&quot;text/javascript&quot;&gt;    
    hs.graphicsDir = '/public/assets/javascript/widgets/highslide/graphics/';
    window.onload = function() {
        hs.preloadImages();
    }
&lt;/script&gt;</pre><br />
Then in the following files<br />
\activecollab\application\views\files\file_details.php<br />
\activecollab\application\views\files\index.php<br />
replace the code<br />
<pre name="code" class="html">&lt;img src=&quot;&lt;?php echo $file-&gt;getTypeIconUrl() ?&gt;&quot; alt=&quot;&lt;?php echo $file-&gt;getFilename() ?&gt;&quot; id=&quot;&lt;?php echo clean($file-&gt;getFilename()) ?&gt;&quot; /&gt;</pre><br />
by the following code<br />
<pre name="code" class="html">      &lt;a href=&quot;&lt;?php echo $file-&gt;getDownloadUrl()?&gt;&quot; class=&quot;highslide&quot; onclick=&quot;return hs.expand(this)&quot;&gt;
      &lt;img src=&quot;&lt;?php echo $file-&gt;getTypeIconUrl() ?&gt;&quot; alt=&quot;&lt;?php echo $file-&gt;getFilename() ?&gt;&quot; id=&quot;&lt;?php echo clean($file-&gt;getFilename()) ?&gt;&quot; /&gt;
      &lt;/a&gt;</pre><br />
Then copy the content of the hishslide folder from the higslide.zip archive to the folder <br />
\activecollab\public\assets\javascript\widgets\highslide\<br />
(If the highslide.js file is in the root of that folder you unzipped correctly.)<br />
<br />
rename highslide.js to widget.js and create a text file widget.css and copy paste the following code in that file:<br />
<br />
<pre name="code" class="html">.highslide {
	 cursor: url(graphics/zoomin.cur), pointer;
    outline: none;
}
.highslide img {
	border: 2px solid gray;
}
.highslide:hover img {
	border: 2px solid white;
}

.highslide-image {
    cursor: pointer; /* opera */
	 cursor: url(graphics/zoomout.cur), pointer;
    border: 2px solid white;
}
.highslide-image-blur {
    cursor: pointer;
    cursor: hand;
}
.highslide-caption {
    display: none;
    border: 2px solid white;
    border-top: none;
    font-family: Verdana, Helvetica;
    font-size: 10pt;
    padding: 5px;
    background-color: white;
}
.highslide-display-block {
    display: block;
}
.highslide-display-none {
    display: none;
}
.highslide-loading {
	display: block;
	color: white;
	font-style: normal;
	font-size: 9px;
	font-weight: bold;
	text-transform: uppercase;
	text-decoration: none;
	padding: 3px;
	opacity: 0.60; /* w3c */
	filter: alpha(opacity=60); /* ie */
	border-top: 1px solid white;
	border-bottom: 1px solid white;
	background-color: black;
	padding-left: 22px;
	background-image: url(graphics/loader.gif);
	background-repeat: no-repeat;
	background-position: 3px 1px;
}
a.highslide-credits,
a.highslide-credits i {
    padding: 2px;
    color: silver;
    text-decoration: none;
	font-size: 10px;
}
a.highslide-credits:hover,
a.highslide-credits:hover i {
    color: white;
    background-color: gray;
}</pre></p>]]></description>
    <pubDate>Thu, 19 Oct 2006 09:15:44 CDT</pubDate>
  </item>
</channel>
</rss>