Posted by Starminder on April 5, 2009 at 2:40am
Jump to:
| Project: | album photos |
| Version: | 6.x-2.6-beta3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
Now when viewing Latest Albums from the menu, there is no picture to represent the album. I've set to thumbnail in the settings, but no go.
Comments
#1
you need to enable page and teaser settings and let user to specify. I think it's a bug.
#2
Those settings are enabled, and the cover photo is selected, but they still don't show.
#3
you should check your php.ini to see if short tag is enabled.
#4
How do I restrict the users from specifying the page and teaser settings and only enable the default settings defined by the admin??
Thanks
#5
Still need help with this one, thanks
#6
Yeah, i am having the same issue as the OP
PRETTY SURE I FIGURED OUT WHAT IS WRONG:
Image display size(by list): *
and
Image display size(by page): *
when you edit the album configuration. Do not use thumbnail. That *seems* to be it. Need more testing
#7
I'm running into the same issue. If you disable the users from modifying the page and teaser settings on a per-album basis, then the cover/thumbnails don't show correctly on the "Latest albums" page. Interestingly, the default "http://www.example.com/photos" link shows the proper cover thumb, but the "http://www.example.com/photos/album" does not display the cover thumbnail.
If I modify the settings to allow the individual user to modify the page/teaser settings, and then set the cover photo in the album, then the display is correct. This looks like a bug.
@billybag - not sure I understand what you mean.
Subscribing.
#8
I think I found the problem. The display type was not looking at the global settings, only at the album settings. This patch worked for me. (minor edit 4/15/2009 - changed default values of the global settings to zero from 1)
--- photos.module-2.6 2010-04-12 15:23:06.000000000 -0600+++ photos.module 2010-04-12 15:19:11.000000000 -0600
@@ -397,9 +397,11 @@
case 'view':
if($node->album['pid']){
if($teaser){
- $album = _photos_node_view($node, $node->album['teaser_display'], 'teaser');
+ $dtype = $node->album['teaser_display'] ? $node->album['teaser_display'] : variable_get('photos_display_teaser_display', 0);
+ $album = _photos_node_view($node, $dtype , 'teaser');
}else{
- $album = _photos_node_view($node, $node->album['page_display'], 'page');
+ $dtype = $node->album['page_display'] ? $node->album['page_display'] : variable_get('photos_display_page_display', 0);
+ $album = _photos_node_view($node, $dtype , 'page');
}
if($album){
$node->content['album']['#value'] = '<div class="clear-block">'.$album . '</div>';
@@ -459,7 +461,7 @@
#9
@chakrax thanks It worked for me too...
#10
Hi Chakrax,
I tried this in my problem but still the album does not display the pictures in the thumbnails but show the filename instead. What could be the problem?
Thanks in advance for your help.
Robert