Hi!

With the Image module it is possible to reference the image using the node's id. In this case the image url has this kind of syntax: image/view/<nodeID>[/<preset>]. I've added a replace call to remove the preset of these kind of links to reference the original image.

22,24d21
<           /* CsNo: Image module uses image/view/<nodeID>[/<preset>] links to reference directly to the images.
<            * My replace call removes the preset from the end to reference the original image.
<            */
27c24
<             href: $(child).attr("src").replace(".thumbnail", "").replace(/(image\/view\/\d+)(\/\w*)/, "$1")
---
>             href: $(child).attr("src").replace(".thumbnail", "")
32d28

Regards,
Norbert.

Comments

csiknor’s picture

Actually I've made a mistake. To reference the original image we have to use the "_original" preset.

            href: $(child).attr("src").replace(".thumbnail", "").replace(/(image\/view\/\d+)(\/\w*)/, "$1/_original")

Norbert

stella’s picture

Assigned: Unassigned » stella
Status: Needs review » Fixed

Hi,

I've added this patch to CVS and it will be included in the next release. In future, please follow the Creating Patches guidelines. Thanks.

Cheers,
Stella

Anonymous’s picture

Status: Fixed » Closed (fixed)
stella’s picture

Released in Lightbox V2 5.x-2.2.

Cheers,
Stella