I'm not sure if this has been posted before but I thought I'd share the hack to get the lightbox effect in coppermine gallery while using mehdi's joomla-coppermine bridge.
Step 4. Extract the css, images & js folders into the newly created lightbox folder.
Step 5. In the js folder, edit lightbox.js to point to the correct image folder path for the loading and closelabel images. Find code:
Code:
var fileLoadingImage = "images/loading.gif"; var fileBottomNavCloseImage = "images/closelabel.gif";
Change to code:
Quote:
var fileLoadingImage = "themes/your_theme/lightbox/images/loading.gif"; var fileBottomNavCloseImage = "themes/your_theme/lightbox/images/closelabel.gif";
Step 6. Find this code in the joomla.integ.php file in your CPG bridge folder:
Step 7. Paste this code before the ?> at the end of your theme.php file
Code:
// Displays a picture function theme_html_picture() { global $CONFIG, $CURRENT_PIC_DATA, $CURRENT_ALBUM_DATA, $USER; global $album, $comment_date_fmt, $template_display_media; global $lang_display_image_php, $lang_picinfo;
$pid = $CURRENT_PIC_DATA['pid']; $pic_title = '';
if (!isset($USER['liv']) || !is_array($USER['liv'])) { $USER['liv'] = array(); } // Add 1 to hit counter if (!USER_IS_ADMIN && !in_array($pid, $USER['liv']) && isset($_COOKIE[$CONFIG['cookie_name'] . '_data'])) { add_hit($pid); if (count($USER['liv']) > 4) array_shift($USER['liv']); array_push($USER['liv'], $pid); }
if($CONFIG['thumb_use']=='ht' && $CURRENT_PIC_DATA['pheight'] > $CONFIG['picture_width'] ){ // The wierd comparision is because only picture_width is stored $condition = true; }elseif($CONFIG['thumb_use']=='wd' && $CURRENT_PIC_DATA['pwidth'] > $CONFIG['picture_width']){ $condition = true; }elseif($CONFIG['thumb_use']=='any' && max($CURRENT_PIC_DATA['pwidth'], $CURRENT_PIC_DATA['pheight']) > $CONFIG['picture_width']){ $condition = true; }else{ $condition = false; }
Users browsing this forum: No registered users and 11 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum