Lightbox2 and Gallerix
| Project: | Gallerix |
| Version: | 6.x-1.4 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
I've edited the gallerix.module like below. But I can't get rid of the /q= in the url's. I just want the direct picure links. Solution? Take a look at www.bk-atlas.no/?q=node/170&picture=grid. Click on one of the pictures.
function [themename]_gallerix_grid($node) {
$translucent = variable_get('gallerix_translucence', 1) ? ' translucent' : '';
$paths = _gallerix_album_paths($node, true);
$output = '';
$pictures = db_query('SELECT pid FROM {gallerix_pictures} WHERE nid = %d ORDER BY sort', $node->nid);
while ($pid = db_fetch_object($pictures)) {
$picture = gallerix_load_picture($pid->pid);
$thumbnail = theme('image', $picture->thumbnail, '', $picture->caption, array('class' => 'gallerix-thumbnail'. $translucent));
/*** Edited from here... ***/
$output .= l($thumbnail, $picture->original, array(
'attributes' => array(
'class' => 'gallerix-picture-link',
'rel' => 'lightshow[gallery]',
'title' => $picture->caption,
),
'html' => TRUE,
));
/*** ...to here ***/
}
return $output;
}

#1
#2
#3
#4
Just enable clean url's.