When an album is shown on the front page, clicking the picture doesn't work.

the link goes node/

but it's referred to

node//picture

Using drupal 5.3. No other modules installed.

Comments

Zarei’s picture

It was supposed to be

the link goes to node/*nbr*

Zarei’s picture

I found a solution:

in function theme_gallerix_album_teaser

change the line

$output .= '<a href="' . base_path() . 'node/' . $node->nid . '">';

to

$output .= '<a href="' . base_path() . 'index.php?q=node/' . $node->nid . '">';

silviogutierrez’s picture

Zarei,

Although your solution works, it'll show 'index.php' in the link, which is sort of again coding standards. I'll still fix it and give you credit, but I'll use a different solution. Thanks for bringing it up.
Also, I strongly recommend installing Views instead of using the standard teaser view, which I just added as a placeholder for those not using Views. It's not really a supported feature.

Thanks again,

Silvio

PS. If you have more questions, please redirect them to my site, under the release of Gallerix you're using, as a comment, since I check that more often.

mohammadzme-1’s picture

Project: Gallerix » Documentation
Version: 5.x-1.x-dev »
Component: Code » New documentation

Dear all,

I need your help please

I have image gallery on my site but the next button dose not work on the lightbox.
http://www.jwico.com/?q=node/240#30

i work use Gallerix and lightbox 2

i cant show the other image by the next button.

Please help

johnnoc’s picture

Status: Active » Closed (won't fix)

Marking as won't fix. I cannot move this issue back to Gallerix because the module's issue queue is disabled. The original issue is on Gallerix so I didn't move this to Lightbox2 either. I sent an e-mail to the poster of #4 regarding where to get support.