Announcement

  •  » Requests
  •  » piwigo - first impressions

#1 2010-08-10 19:08:45

Gusty
Guest

piwigo - first impressions

Hi

Been looking around the internets for quite a while to find the optimal gallery for my photos, requirements being things like clean interface (byebye flickr), nested folders (byebye picasa), mass upload web interface etc, and piwigo is the closest to what im looking for so far.

A great thing aboug piwigo is the customization, but what surprises me is that even though its got lots of fancy functionality and settings, it seems to lack an easy way of setting the very first/basic things one could think of when it comes to a configuring a new web gallery from a photographers (not programmers) POV:

*thumbnail size

*number of thumbs per page (There is a user setting for this somewhere, but it doesnt actually seem to do anything?)

*setting the default sort order for thumbnails. I found a forum post with a piece of code to insert, but it either does nothing or crashes)

*max file size/dimensions.


Thanks,
Gusty

 

#2 2010-08-11 01:01:55

Gusty
Guest

Re: piwigo - first impressions

Oh hey
"Figured out" the sort order. Copied and pasted the wrong thing as there was a correction in a later post where I found the bit of code.

Still, wouldnt happen if it was part of the config web interface :)

 

#3 2010-08-11 02:08:44

Gusty
Guest

Re: piwigo - first impressions

God how stupid do I feel now.. Just found where to set the thumbnail sizes (tho im not sure if its a plugin that does it or not). A bit annoying though it wont let you change the res once they are done..

:D

 

#4 2010-08-11 08:08:56

rio
Piwigo Team
Paris
2006-07-24
1431

Re: piwigo - first impressions

:-))


-> /<Ä®¿M <-
http://riohome.free.fr
Il forum è anche in ITALIANO

Offline

 

#5 2010-08-11 12:52:19

Gusty
Guest

Re: piwigo - first impressions

Another thing about the thumb size then: I made my thumbs larger, but now the category title doesnt adjust to the new thumb size and overlaps the thumbnail in a really ugly way...
Maybe its a problem with the theme, not piwigo - but I get it in every theme I have got installed!

Gusty

 

#6 2010-08-12 10:40:26

rio
Piwigo Team
Paris
2006-07-24
1431

Re: piwigo - first impressions

Hi,
You can adjust the value of this page.
For example, you can edit your own rules.css.
Go to plugin's menu, local file editor, CSS tab and edit the file.

Code:

/* Set some sizes according to your maximum thumbnail width and height */
#content UL.thumbnails SPAN,
#content UL.thumbnails SPAN.wrap2 A,
#content UL.thumbnails SPAN.wrap2 LABEL,
#content DIV.thumbnailCategory DIV.illustration {
  width: 152px;      /* max thumbnail width + 2px */
}
#content UL.thumbnails SPAN.wrap2,
#content DIV.thumbnailCategory DIV.description {
  height: 152px;    /* max thumbnail height + 2px */
}
#content DIV.comment BLOCKQUOTE {
  margin-left: 172px;    /*maximum thumbnail width + ~10px */
}

You can chage value of max thumbnail width, max thumbnail height and max thumbnail margin.
I let you try to see the result.
Another way is by using a personal plugin. I'll give you this solution later.

:-))


-> /<Ä®¿M <-
http://riohome.free.fr
Il forum è anche in ITALIANO

Offline

 

#7 2010-08-13 15:13:32

rio
Piwigo Team
Paris
2006-07-24
1431

Re: piwigo - first impressions

With local file edito, go to personal plugin tab
Insert these lines

Code:

add_event_handler('loc_end_page_header', 'personal_large_thumbnail');
 
function personal_large_thumbnail()
{
  global $conf, $template;
  $W = $conf['tn_width'] + 2;
  $H = $conf['tn_height'] + 2;
  $M = $conf['tn_width'] + 10;
 
  $template->assign_block_vars('head_element', array('CONTENT' => '
<style type="text/css">
/* Set some sizes according to your maximum thumbnail width and height */
#content UL.thumbnails SPAN,
#content UL.thumbnails SPAN.wrap2 A,
#content UL.thumbnails SPAN.wrap2 LABEL,
#content DIV.thumbnailCategory DIV.illustration {
  width: '.$W.'px      /* max thumbnail width + 2px */
}
#content UL.thumbnails SPAN.wrap2,
#content DIV.thumbnailCategory DIV.description {
  height: '.$H.'px    /* max thumbnail height + 2px */
}
#content DIV.comment BLOCKQUOTE {
  margin-left: '.$M.'px    /*maximum thumbnail width + ~10px */
}
</style>
  '));
}

Remember, you must activate your personal plugin.

:-))


-> /<Ä®¿M <-
http://riohome.free.fr
Il forum è anche in ITALIANO

Offline

 
  •  » Requests
  •  » piwigo - first impressions

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact