Project:Gallerix
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:AlexisWilke
Status:closed (fixed)

Issue Summary

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

#1

Status:closed (fixed)» active

#2

Version:6.x-1.4» 5.x-1.x-dev
Assigned to:josgle» Anonymous

#3

Version:5.x-1.x-dev» 6.x-1.4

#4

Just enable clean url's.

#5

Version:6.x-1.4» 6.x-1.x-dev

#6

Assigned to:Anonymous» 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

#7

Status:fixed» closed (fixed)

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