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;
}

Comments

josgle’s picture

Status: Closed (fixed) » Active
josgle’s picture

Version: 6.x-1.4 » 5.x-1.x-dev
Assigned: josgle » Unassigned
josgle’s picture

Version: 5.x-1.x-dev » 6.x-1.4
josgle’s picture

Just enable clean url's.

AlexisWilke’s picture

Version: 6.x-1.4 » 6.x-1.x-dev
AlexisWilke’s picture

Assigned: Unassigned » AlexisWilke
Status: Active » Fixed

This is great. I implemented it in 6.x-1.x-dev and will have it in 6.x-1.5-beta2.

I added two flags so you can choose whether to have lightbox used for the grid and/or the viewer.

Thank you for the code. I tweaked it quite a bit since I wanted to support the default implementation as well, but it's great this way.

Best,
Alexis Wilke

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.