Album Tree - DHTML not working at all

melph

Joined: 2009-02-14
Posts: 12
Posted: Fri, 2012-06-29 23:37

Hi

I have installed the Album Tree module - however DHTML mode doesn't work. What is displayed is a list (not the same as the list option) and certainly no sub albums or graphics e.g. plus and minus signs, lines linking albums etc, folders

I am running this on a small test gallery and have tried several themes in case this had an effect - same problem.

I have searched the forums and google and I can't find anyone else reporting this exact same problem.

Any help would be greatly appreciated

Many thanks

Mark

Login or register to post comments
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 7892
Posted: Sat, 2012-06-30 19:29

url to afflicted site?

-s

Login or register to post comments
melph

Joined: 2009-02-14
Posts: 12
Posted: Sat, 2012-06-30 22:08

Hi - URL is http://www.wildlife-galleries.co.uk/gallery3/index.php/

Just checked this in firebug, and looks like the incorrect address is being called for the images - as ab example:

<img alt="" src="/gallery3/index.php/modules/albumtree/images/join.gif"

Surely the index.php should not be there? I have checked through the script but am not competent enough to find and alter this.

Many thanks

Login or register to post comments
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 7892
Posted: Sat, 2012-06-30 22:06
Login or register to post comments
melph

Joined: 2009-02-14
Posts: 12
Posted: Sat, 2012-06-30 22:10

Hi

I came to the same conclusion and had just edited my last post - I used firebug and can see it is calling the images incorrectly:

<img alt="" src="/gallery3/index.php/modules/albumtree/images/join.gif"

Surely the index.php should not be there, because without itin the url it would find the images. Any idea how I can chnage this in the script?

Login or register to post comments
melph

Joined: 2009-02-14
Posts: 12
Posted: Sat, 2012-06-30 22:13

Line 373 onwards on file albumtree/views/albumtree_block_dtree.html.php

would seem to be the likely place to start, but not sure what I can take out without causing the thing to crash.

Login or register to post comments
melph

Joined: 2009-02-14
Posts: 12
Posted: Sat, 2012-06-30 22:31

Worked it out...

Changed line 374 of albumtree/views/albumtree_block_dtree.html.php and used the full path to the images folder i.e

var albumTree_images = 'http://www.YOURDOMAINNAME.co.uk/gallery3/modules/albumtree/images/'

Also, to keep the folder tree open, I changed line 393v to true i.e

albumTree.config.useCookies = true;

Hope this helps anyone else who comes across this

Login or register to post comments