tarique
Forum Replies Created
-
Forum: Plugins
In reply to: Plugin psnGallery : Coppermine in WordPressIn that case an
if (isset($CONFIG['thumb_use']))will do the trick…Forum: Plugins
In reply to: Plugin psnGallery : Coppermine in WordPress$CONFIG[‘thumb_use’] is not in 1.1D but then as you might know 1.1D is deprecated version, 1.3 should be out soon
Forum: Plugins
In reply to: Plugin psnGallery : Coppermine in WordPressYes that should fix it the way you have programmed it, But I noticed that you are not using the $CONFIG[‘thumb_use’] to calculate the $ratio – this can give you wrong sizes for thumbs in portrait mode…. use something like
//Calculate the thumbnail dimensions
if ($CONFIG['thumb_use'] == 'ht') {
$ratio = $height / $CONFIG['thumb_width'] ;
} elseif ($CONFIG['thumb_use'] == 'wd') {
$ratio = $width / $CONFIG['thumb_width'] ;
} else {
$ratio = max($width, $height) / $CONFIG['thumb_width'] ;
}
P.S. the above code has been written off hand and not tested – but will give you the idea 🙂Forum: Plugins
In reply to: Plugin psnGallery : Coppermine in WordPressAnother bug 🙂
The image size in the <img > tag is always that of the thumbnail – this apparently shows even the normal or fullsize pictures as thumbnails.Forum: Plugins
In reply to: Plugin psnGallery : Coppermine in WordPressA possible bug
<cpg_album>1|5</cpg_album>
Will list all the pictures of album 1 one per row without any $beforeCol $afterCol etc – to make it work, that is give 5 columns per row you have to add an additional | character like
<cpg_album>1|5|</cpg_album>Forum: Plugins
In reply to: Plugin psnGallery : Coppermine in WordPress@idaho your fix for the bug worked – however it has been lost in the forum rollback.
Also did you get my note about the $CONFIG not present as global in the get url function?