cotonti.com : Work in progress: Basic gallery with jQuery Lightbox https://www.cotonti.com Последние сообщения в теме Cotonti en Sun, 01 Feb 2026 20:39:09 -0000 Dave im not sure if i can say "Fixed" cuz its releated to Updated PFS Sytem?!

and IMO thats the rason why it wont work for now, we have to be patient, i gues.

I like this gal, its very simple (thats how i love things).

There is older version of it @ 1st page, it does work on cot 0.6.10(r1300), archiwe file name is gallery_2.rar
-Dave

PS. A small tip that I'd do:

$t-> assign(array(
	"PLUGIN_GALLERY_TIP" => $L['help1']
));

$L['help1'] = "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";

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.]]>
чт, 09 дек 2010 21:59:13 -0000
booka
2010-12-08 22:36
Fatal error : SQL error : Unknown column 'pff.pff_path' in 'field list']]>
чт, 09 дек 2010 06:37:25 -0000
GHengeveld ср, 17 ноя 2010 21:42:54 -0000 The Stig # Koradhil : 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.

Added 2 hours 31 minutes later:

Ok, here's the Gallery v2.0.
This uses folder storage mode in PFS config for switching between classic and physical folders mode.
You will probably need to add a DB table column in sed_pfs_folders, named 'pff_path' (varchar 256).
A preview of this plugin in action is here.

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.]]>
вт, 16 ноя 2010 22:21:33 -0000
booka
require("system/config.extensions.php");

to

require("datas/extensions.php");


Добавлено 5 Минут спустя:

and how to show icon instead of thumbnail?

Добавлено 42 Минуты спустя:

and another problem - {PLUGIN_RANDIMG} just show all pictures from folder... and lighbox doesn't work with that tag

Добавлено 9 Минут спустя:

think problem is somewhere with SQL request, because phpmyadmin returns a lot of files instead of one:

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


Добавлено 3 Минуты спустя:

ouh...

this would be correct:

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

but I still have problem with light box here... it is ok on plugin page

Добавлено 27 Минут спустя:

so this is a working code (changed to footer.tags):

<?PHP

/* ====================
Cotonti - Content Management Framework
Copyright Cotonti Team
http://www.cotonti.com

[BEGIN_SED]
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')
[END_SED]

[BEGIN_SED_EXTPLUGIN]
Code=gallery
Part=footer
File=gallery.footer
Hooks=footer.tags
Tags=rooter.tpl:{PLUGIN_FOOTER_RANDIMG_TITLE},{PLUGIN_FOOTER_RANDIMG}
Order=10
[END_SED_EXTPLUGIN]
==================== */

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

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

require("plugins/gallery/lang/gallery.".$cfg['defaultlang'].".lang.php");

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

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



$sql = sed_sql_query("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");
if (mysql_num_rows($sql)>0) {
	$randimg .= "<div style='text-align:left; width:100%;'>";
	while ($row = mysql_fetch_array($sql)) {
		$randimg .= '<div id=\'gallery\'><div id="image"><a href=https://www.cotonti.com/"datas/users/'.$row['pfs_file'].'"><img src=https://www.cotonti.com/"datas/thumbs/'.$row['pfs_file'].'" alt="" /></a></div></div>';
		$randimg .= $L['gal_from'].': <a href=https://www.cotonti.com/"'.$folderurl.$row['pff_id'].'">'.$img.$row['pff_title'].'</a><br /><br />';
	}
	$randimg .= '</div>';
}
else {
	$randimg .= $L['gal_none'];
}

$t-> assign(array(
	"PLUGIN_FOOTER_RANDIMG_TITLE" => $L['gal_randimg'],
	"PLUGIN_FOOTER_RANDIMG" => $randimg,
));

?>


Добавлено 20 дней спустя:

I have 1 bug with random image:

http://www.bestfest.ru/plug.php?e=gallery

2 images from the left... why? )]]>
пн, 26 апр 2010 03:35:38 -0000
zboy812 чт, 05 ноя 2009 03:00:15 -0000 pieter See post http://www.cotonti.com/forums.php?m=posts&q=2657
Put it is an old one.]]>
вт, 29 сен 2009 16:23:38 -0000
donP ...it will be compatible with Cotonti 1.0.0 Renaissance (which will include the new PFS and dynamic thumbnail feature).
but this ticket says that the new PFS will be added in Siena 0.7... is it true?

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...]]>
вт, 29 сен 2009 16:07:45 -0000
GHengeveld
SELECT * FROM $db_pfs_folders WHERE pff_ispublic=1 AND pff_isgallery=1
You should add something like this:
ORDER BY pff_updated DESC
]]>
вт, 18 авг 2009 04:09:39 -0000
pieter
I tried, but not succeded.

I was wondering, Slimbox+ImageScale plugin has the next and previous working.
Why? I'm not that good with code.

Added 2 minutes later:

Suggestion.
Can you add a selection box about the order.
I want the newest gallery first.

Or can you tell me were to change the code?]]>
пн, 17 авг 2009 20:14:08 -0000
GHengeveld here.]]> вт, 11 авг 2009 05:36:49 -0000 SparrozzoIT вт, 11 авг 2009 01:17:39 -0000 GHengeveld new PFS system which supports unlimited subfolders. You will need this in order to be able to use subfolders in the gallery.

Prev/next buttons are included with the lightbox script which you have to install manually (download here).

Oh and I forgot to say it users Smart Image Resizer for generating thumbnails. You will need to put the image.php inside /datas and rename it to thumb.php.

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).]]>
вт, 11 авг 2009 00:40:06 -0000
pieter Or as you wish the subfolders. Because I love the idea to have subfolders.

- 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.]]>
пн, 10 авг 2009 22:12:19 -0000
GHengeveld
Added 2 hours 31 minutes later:

Ok, here's the Gallery v2.0.
This uses folder storage mode in PFS config for switching between classic and physical folders mode.
You will probably need to add a DB table column in sed_pfs_folders, named 'pff_path' (varchar 256).]]>
пн, 10 авг 2009 18:12:25 -0000
SparrozzoIT пн, 10 авг 2009 06:39:08 -0000 esclkm And What about comments and rating fot images?]]> пн, 10 авг 2009 04:09:23 -0000 Trustmaster here]]> пн, 10 авг 2009 03:34:39 -0000 pieter
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?

In your preview picture it is there. But for me it is not working.]]>
пн, 10 авг 2009 02:53:10 -0000
chobblr вс, 10 мая 2009 05:15:26 -0000 GHengeveld here.

Note that this is a beta, so it will likely require some work.

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.]]>
вс, 15 фев 2009 06:36:19 -0000
musashi9 ]]> сб, 14 фев 2009 00:36:10 -0000 pieter
Any progress? I like to try it, together with the file import.
With this I can convert my old gallery (NOT seditio, but gallery.sf.net) to Cotonti.

Pieter]]>
пт, 13 фев 2009 15:37:02 -0000
Dayver чт, 05 фев 2009 15:05:43 -0000 Trustmaster чт, 05 фев 2009 14:36:52 -0000 GHengeveld jQuery Lightbox plugin.
Here's some screenshots.



What it does:
- Display a list of PFS folders which are public and gallery, with a random thumbnail from that folder
- Display thumbnails of all images inside a folder
- Display the original image with Lightbox]]>
чт, 05 фев 2009 08:01:28 -0000