Lightbox2 and Gallerix

josgle - August 18, 2009 - 07:36
Project:Gallerix
Version:6.x-1.4
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

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

josgle - August 18, 2009 - 07:40
Status:closed» active

#2

josgle - August 18, 2009 - 07:45
Version:6.x-1.4» 5.x-1.x-dev
Assigned to:josgle» Anonymous

#3

josgle - August 18, 2009 - 07:51
Version:5.x-1.x-dev» 6.x-1.4

#4

josgle - August 18, 2009 - 13:49

Just enable clean url's.

 
 

Drupal is a registered trademark of Dries Buytaert.