in *.module @~ll.99 there is:

        } else {        
          $num = variable_get('views_galleriffic_path_num',0);

Value of $num is caching between sessions. I am not sure why you are doing this, versus calculating the number of elements in the array and incrementing?

Comments

1kenthomas’s picture

P.S., in case this is not clear, once the value goes out of range, you get a null result for the paths.

acouch’s picture

This is a hacky way of dealing with the the way that views outputs multiple fields per row. I am thinking I am going to get rid of this and make a separate module to deal with multiple images from a single node. Is there a better way to increment that you can think of? If so please let me know what you are thinking or submit a patch.

1kenthomas’s picture

Hello-- sorry-- I didn't get into rewriting, because I wasn't sure what you were up to or where you might want to go with it, and then the client/PM decided to use another gallery (before your reply).

You could probably solve the issue above by resetting $num when views is run; otherwise, yes, a module would probably be better. If I have a change to work on again, I'll try to get you some code.

acouch’s picture

Status: Active » Closed (fixed)

I've removed this $num stuff. Please try the dev version or new release tomorrow.