<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Work in progress: Basic gallery with jQuery Lightbox</title>
		<link>https://www.cotonti.com</link>
		<description>Laatste forum onderwerpen</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Mon, 06 Apr 2026 05:37:18 -0000</pubDate>

		<item>
			<title>Dave</title>
			<description><![CDATA[i &quot;fixed&quot; that thing on my own but i stoped @ pff_parentid<br />
im not sure if i can say &quot;Fixed&quot; cuz its releated to <a href="http://www.cotonti.com/forums.php?m=posts&amp;q=2657&amp;d=60">Updated PFS Sytem</a>?!<br />
<br />
and IMO thats the rason why it wont work for now, we have to be patient, i gues.<br />
<br />
I like this gal, its very simple (thats how i love things).<br />
<br />
There is older version of it @ 1st page, it does work on cot 0.6.10(r1300), archiwe file name is gallery_2.rar<br />
-Dave<br />
<br />
PS. A small tip that I'd do:<br />
<br />
<pre class="code">$t-&gt; assign(array(
	&quot;PLUGIN_GALLERY_TIP&quot; =&gt; $L&#091;'help1'&#093;
));</pre>
<br />
<pre class="code">
$L&#091;'help1'&#093; = &quot;If you want to make your own gallery u have to go to your PFS (Personal File Space) and make new folder, name of it doesnt matter but it has to be Public and Gallery&quot;;</pre>
<br />
I know it might be silly but im helping as admin/mod @ huge site (~50k members) and there will be always some1 that will need a help how to make hes own gallery.]]></description>
			<pubDate>Thu, 09 Dec 2010 21:59:13 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=1912&d=0#post27450]]></link>
		</item>
		<item>
			<title>booka</title>
			<description><![CDATA[Koradhil - is it dead now? I tried to run it but it shows me:<br />
<br />
2010-12-08 22:36<br />
Fatal error : SQL error : Unknown column 'pff.pff_path' in 'field list']]></description>
			<pubDate>Thu, 09 Dec 2010 06:37:25 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=1912&d=0#post27433]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[Sorry, you shouldn't register at that site. The management has apparently restricted guest access to their gallery. I have no other site running it that I know of, so I can't provide another link.]]></description>
			<pubDate>Wo, 17 Nov 2010 21:42:54 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=1912&d=0#post27105]]></link>
		</item>
		<item>
			<title>The Stig</title>
			<description><![CDATA[<blockquote><a href="https://www.cotonti.com/forums.php?m=posts&amp;p=15773#15773">#</a> <strong>Koradhil :</strong>
Yesterday I've largely rewritten this plugin (again). It now uses template tags so it is skinnable, and it works with the new PFS' physical folder system.<br />
<br />
<strong>Added 2 hours 31 minutes later:</strong><br />
<br />
Ok, here's the <a href="http://www.cotonti.com/datas/users/gallery_68.rar">Gallery v2.0</a>.<br />
This uses folder storage mode in PFS config for switching between classic and physical folders mode.<br />
You will probably need to add a DB table column in sed_pfs_folders, named 'pff_path' (varchar 256).<br />
A preview of this plugin in action is <a href="http://www.squadraat.nl/plug.php?e=gallery" rel="nofollow">here</a>.<br />
</blockquote>
<br />
I would love to see this demo but i can't register on your site as it is asking for education as required element and as i studied in uk this is impossible.]]></description>
			<pubDate>Di, 16 Nov 2010 22:21:33 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=1912&d=0#post27071]]></link>
		</item>
		<item>
			<title>booka</title>
			<description><![CDATA[<div class="highlight"><pre class="php">require(&quot;system/config.extensions.php&quot;);</pre></div>
<br />
to<br />
<br />
<div class="highlight"><pre class="php">require(&quot;datas/extensions.php&quot;);</pre></div><br /><br /><b>Добавлено 5 Минут спустя:</b><br /><br />and how to show icon instead of thumbnail?<br /><br /><b>Добавлено 42 Минуты спустя:</b><br /><br />and another problem - {PLUGIN_RANDIMG} just show all pictures from folder... and lighbox doesn't work with that tag<br /><br /><b>Добавлено 9 Минут спустя:</b><br /><br />think problem is somewhere with SQL request, because phpmyadmin returns a lot of files instead of one:<br />
<br />
<div class="highlight"><pre class="mysql">SELECT pfs.pfs_file, pff.pff_id, pff.pff_title FROM sed_pfs AS pfs INNER JOIN sed_pfs_folders AS pff ON pfs.pfs_folderid=pff.pff_id WHERE pff.pff_ispublic='1' AND pff.pff_isgallery='1' ORDER BY RAND() LIMIT 20</pre></div><br /><br /><b>Добавлено 3 Минуты спустя:</b><br /><br />ouh... <br />
<br />
this would be correct:<br />
<br />
<div class="highlight"><pre class="mysql">SELECT pfs.pfs_file, pff.pff_id, pff.pff_title FROM sed_pfs AS pfs INNER JOIN sed_pfs_folders AS pff ON pfs.pfs_folderid=pff.pff_id WHERE pff.pff_ispublic='1' AND pff.pff_isgallery='1' ORDER BY RAND() LIMIT 1</pre></div>
<br />
but I still have problem with light box here... it is ok on plugin page<br /><br /><b>Добавлено 27 Минут спустя:</b><br /><br />so this is a working code (changed to footer.tags):<br />
<br />
<div class="highlight"><pre class="php">
&lt;?PHP

/* ====================
Cotonti - Content Management Framework
Copyright Cotonti Team
<a href="http://www.cotonti.com">http://www.cotonti.com</a>

&#091;BEGIN_SED&#093;
File=plugins/gallery/gallery.footer.php
Version=100
Updated=2008-feb-5
Type=Plugin
Author=Koradhil
Description=Display a gallery of PFS images (marked 'public' and 'gallery')
&#091;END_SED&#093;

&#091;BEGIN_SED_EXTPLUGIN&#093;
Code=gallery
Part=footer
File=gallery.footer
Hooks=footer.tags
Tags=rooter.tpl:{PLUGIN_FOOTER_RANDIMG_TITLE},{PLUGIN_FOOTER_RANDIMG}
Order=10
&#091;END_SED_EXTPLUGIN&#093;
==================== */

/**
 * @package Cotonti
 * @version 0.0.2
 * @copyright Partial copyright (c) 2008 Cotonti Team
 * @license BSD License
 */

if (!defined('SED_CODE')) { die('Wrong URL.'); }

require(&quot;plugins/gallery/lang/gallery.&quot;.$cfg&#091;'defaultlang'&#093;.&quot;.lang.php&quot;);

//Link to gallery folder (without ID, for rewrite purposes)
$folderurl = 'plug.php?e=gallery&amp;amp;f=';

$randimg ='
&lt;link href=https://www.cotonti.com/&quot;js/jquery.lightbox-0.5.css&quot; type=&quot;text/css&quot; rel=&quot;stylesheet&quot; media=&quot;screen&quot; /&gt;
&lt;script type=&quot;text/javascript&quot; src=https://www.cotonti.com/&quot;js/jquery.lightbox-0.5.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt; 
    $(function() {
        $(\'#gallery a\').lightBox();
    });
&lt;/script&gt;
';



$sql = sed_sql_query(&quot;SELECT pfs.pfs_file, pff.pff_id, pff.pff_title FROM $db_pfs AS pfs INNER JOIN $db_pfs_folders AS pff ON pfs.pfs_folderid=pff.pff_id WHERE pff.pff_ispublic='1' AND pff.pff_isgallery='1' ORDER BY RAND() LIMIT 1&quot;);
if (mysql_num_rows($sql)&gt;0) {
	$randimg .= &quot;&lt;div style='text-align:left; width:100%;'&gt;&quot;;
	while ($row = mysql_fetch_array($sql)) {
		$randimg .= '&lt;div id=\'gallery\'&gt;&lt;div id=&quot;image&quot;&gt;&lt;a href=https://www.cotonti.com/&quot;datas/users/'.$row&#091;'pfs_file'&#093;.'&quot;&gt;&lt;img src=https://www.cotonti.com/&quot;datas/thumbs/'.$row&#091;'pfs_file'&#093;.'&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;';
		$randimg .= $L&#091;'gal_from'&#093;.': &lt;a href=https://www.cotonti.com/&quot;'.$folderurl.$row&#091;'pff_id'&#093;.'&quot;&gt;'.$img.$row&#091;'pff_title'&#093;.'&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;';
	}
	$randimg .= '&lt;/div&gt;';
}
else {
	$randimg .= $L&#091;'gal_none'&#093;;
}

$t-&gt; assign(array(
	&quot;PLUGIN_FOOTER_RANDIMG_TITLE&quot; =&gt; $L&#091;'gal_randimg'&#093;,
	&quot;PLUGIN_FOOTER_RANDIMG&quot; =&gt; $randimg,
));

?&gt;
</pre></div><br /><br /><b>Добавлено 20 дней спустя:</b><br /><br />I have 1 bug with random image:<br />
<br />
<a href="http://www.bestfest.ru/plug.php?e=gallery" rel="nofollow">http://www.bestfest.ru/plug.php?e=gallery</a><br />
<br />
2 images from the left... why? )]]></description>
			<pubDate>Ma, 26 Apr 2010 03:35:38 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=1912&d=0#post24346]]></link>
		</item>
		<item>
			<title>zboy812</title>
			<description><![CDATA[Thank you, this is my favorite gallery, its so simple and so clean, its great for a clean corporate website look that i was after.]]></description>
			<pubDate>Thu, 05 Nov 2009 03:00:15 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=1912&d=0#post18394]]></link>
		</item>
		<item>
			<title>pieter</title>
			<description><![CDATA[There was already a demo available: <br />
See post <a href="http://www.cotonti.com/forums.php?m=posts&amp;q=2657">http://www.cotonti.com/forums.php?m=posts&amp;q=2657</a><br />
Put it is an old one.]]></description>
			<pubDate>Di, 29 Sep 2009 16:23:38 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=1912&d=0#post17326]]></link>
		</item>
		<item>
			<title>donP</title>
			<description><![CDATA[<blockquote>...it will be compatible with Cotonti 1.0.0 Renaissance (which will include the new PFS and dynamic thumbnail feature).</blockquote>
<br />
but <a href="http://trac.cotonti.com/ticket/302">this ticket</a> says that <strong>the new PFS</strong> will be added in Siena 0.7... is it true?<br />
<br />
And for me would be a grat feature to have it now, also in beta testing (if you could send me the revised PFS), cause my site development has really stopped due to the very poor actual PFS. I think this was the Achilles' heel of Sedtio and now of Cotonti...]]></description>
			<pubDate>Di, 29 Sep 2009 16:07:45 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=1912&d=0#post17325]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[You need to add an ORDER BY statement in the SQL, I guess it's in gallery.inc.php or something (working on another PC so I dont have the code here). I think the SQL looks like this<br />
<pre class="code">SELECT * FROM $db_pfs_folders WHERE pff_ispublic=1 AND pff_isgallery=1</pre>
You should add something like this:<br />
<pre class="code">ORDER BY pff_updated DESC</pre>]]></description>
			<pubDate>Di, 18 Aug 2009 04:09:39 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=1912&d=0#post16159]]></link>
		</item>
		<item>
			<title>pieter</title>
			<description><![CDATA[Koradhil,<br />
<br />
I tried, but not succeded.<br />
<br />
I was wondering, Slimbox+ImageScale plugin has the next and previous working.<br />
Why? I'm not that good with code.<br /><br /><b>Added 2 minutes later:</b><br /><br />Suggestion.<br />
Can you add a selection box about the order.<br />
I want the newest gallery first.<br />
<br />
Or can you tell me were to change the code?]]></description>
			<pubDate>Ma, 17 Aug 2009 20:14:08 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=1912&d=0#post16145]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[Download the Smart Image Resizer <a href="http://www.cotonti.com/downloads/plugins/files-images/slir">here</a>.]]></description>
			<pubDate>Di, 11 Aug 2009 05:36:49 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=1912&d=0#post15785]]></link>
		</item>
		<item>
			<title>SparrozzoIT</title>
			<description><![CDATA[great plugin ! I have install this plug on my site...for smart image resizer...support the PHP 5.1.0 ?]]></description>
			<pubDate>Di, 11 Aug 2009 01:17:39 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=1912&d=0#post15781]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[Subfolders are done using the <a href="http://www.cotonti.com/forums.php?m=posts&amp;q=2657">new PFS system</a> which supports unlimited subfolders. You will need this in order to be able to use subfolders in the gallery.<br />
<br />
Prev/next buttons are included with the lightbox script which you have to install manually (<a href="http://www.lokeshdhakar.com/projects/lightbox2/" rel="nofollow">download here</a>).<br />
<br />
Oh and I forgot to say it users <a href="http://shiftingpixel.com/2008/03/03/smart-image-resizer/" rel="nofollow">Smart Image Resizer</a> for generating thumbnails. You will need to put the image.php inside /datas and rename it to thumb.php.<br />
<br />
Basically, this plugin isn't for everyone just yet. It requires some know-how to get it all working. In the end it will be compatible with Cotonti 1.0.0 Renaissance (which will include the new PFS and dynamic thumbnail feature).]]></description>
			<pubDate>Di, 11 Aug 2009 00:40:06 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=1912&d=0#post15780]]></link>
		</item>
		<item>
			<title>pieter</title>
			<description><![CDATA[- How did you made the mainfolders?<br />
Or as you wish the subfolders. Because I love the idea to have subfolders.<br />
<br />
- Can you add the next and previous button? Next and previous works in your example, but is not indicated. I have users on my site (e.g. my parents) that are not that IT minded and will not find how to go to the next one.]]></description>
			<pubDate>Ma, 10 Aug 2009 22:12:19 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=1912&d=0#post15775]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[Yesterday I've largely rewritten this plugin (again). It now uses template tags so it is skinnable, and it works with the new PFS' physical folder system.<br />
<br />
<strong>Added 2 hours 31 minutes later:</strong><br />
<br />
Ok, here's the <a href="http://www.cotonti.com/datas/users/gallery_68.rar">Gallery v2.0</a>.<br />
This uses folder storage mode in PFS config for switching between classic and physical folders mode.<br />
You will probably need to add a DB table column in sed_pfs_folders, named 'pff_path' (varchar 256).]]></description>
			<pubDate>Ma, 10 Aug 2009 18:12:25 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=1912&d=0#post15773]]></link>
		</item>
		<item>
			<title>SparrozzoIT</title>
			<description><![CDATA[nice plugin !]]></description>
			<pubDate>Ma, 10 Aug 2009 06:39:08 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=1912&d=0#post15764]]></link>
		</item>
		<item>
			<title>esclkm</title>
			<description><![CDATA[I dislike JS galleries)))<br />
And What about comments and rating fot images?]]></description>
			<pubDate>Ma, 10 Aug 2009 04:09:23 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=1912&d=0#post15760]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Hmm, I think this plugin deserves being listed <a href="http://www.cotonti.com/downloads/plugins/files-images/">here</a>]]></description>
			<pubDate>Ma, 10 Aug 2009 03:34:39 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=1912&d=0#post15759]]></link>
		</item>
		<item>
			<title>pieter</title>
			<description><![CDATA[@Koradhil:<br />
<br />
I installed it and it looks nice. Is there a way to get a next and previous button to scroll thru all the images in the folder?<br />
<br />
In your preview picture it is there. But for me it is not working.]]></description>
			<pubDate>Ma, 10 Aug 2009 02:53:10 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=1912&d=0#post15756]]></link>
		</item>
		<item>
			<title>chobblr</title>
			<description><![CDATA[just downloaded it, nice and simple, great not to edit anything :D]]></description>
			<pubDate>Zo, 10 Mei 2009 05:15:26 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=1912&d=0#post12312]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[Ok I uploaded my current plugin files, so you can download it <a href="http://www.dutchcotonti.com/datas/users/gallery_2.rar" rel="nofollow">here</a>.<br />
<br />
Note that this is a beta, so it will likely require some work.<br />
<br />
As for the final release this will be somewhere in the coming months. I'm planning to include more functions and options, as well as more jQuery niceness. I also might enable the plugin to communicate with Picasa, Hyves or Flick though the APIs of these particular services, but this is something that I'm only experimenting with at the moment. In the end it all comes down to how much time I have and the effort required to implement such features.]]></description>
			<pubDate>Zo, 15 Feb 2009 06:36:19 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=1912&d=0#post8035]]></link>
		</item>
		<item>
			<title>musashi9</title>
			<description><![CDATA[Looking good  <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/inlove.gif" alt=":-X" />]]></description>
			<pubDate>Za, 14 Feb 2009 00:36:10 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=1912&d=0#post7852]]></link>
		</item>
		<item>
			<title>pieter</title>
			<description><![CDATA[@Koradhil,<br />
<br />
Any progress? I like to try it, together with the file import.<br />
With this I can convert my old gallery (NOT seditio, but <a href="http://gallery.menalto.com/" rel="nofollow">gallery.sf.net</a>) to Cotonti.<br />
<br />
Pieter]]></description>
			<pubDate>Vr, 13 Feb 2009 15:37:02 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=1912&d=0#post7818]]></link>
		</item>
		<item>
			<title>Dayver</title>
			<description><![CDATA[Nice, Well wait for final results]]></description>
			<pubDate>Thu, 05 Feb 2009 15:05:43 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=1912&d=0#post6847]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Cool.]]></description>
			<pubDate>Thu, 05 Feb 2009 14:36:52 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=1912&d=0#post6842]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[I'm working on a very basic version of the Seditio Gallery plugin. I've rewritten the whole thing and left out a lot of stuff that isn't really necessary for a basic image gallery. I did however add the <a href="http://leandrovieira.com/projects/jquery/lightbox/" rel="nofollow">jQuery Lightbox</a> plugin.<br />
Here's some screenshots.<br />
<br />
<a href="http://www.dutchcotonti.com/datas/users/galleryhome_2.jpg" rel="nofollow"><img src="http://www.dutchcotonti.com/datas/thumbs/galleryhome_2.jpg" alt="" /></a> <a href="http://www.dutchcotonti.com/datas/users/galleryfolder_2.jpg" rel="nofollow"><img src="http://www.dutchcotonti.com/datas/thumbs/galleryfolder_2.jpg" alt="" /></a> <a href="http://www.dutchcotonti.com/datas/users/galleryimage_2.jpg" rel="nofollow"><img src="http://www.dutchcotonti.com/datas/thumbs/galleryimage_2.jpg" alt="" /></a><br />
<br />
What it does:<br />
- Display a list of PFS folders which are public and gallery, with a random thumbnail from that folder<br />
- Display thumbnails of all images inside a folder<br />
- Display the original image with Lightbox]]></description>
			<pubDate>Thu, 05 Feb 2009 08:01:28 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=1912&d=0#post6813]]></link>
		</item>
	</channel>
</rss>