Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

this module is not remember the last slide correctly

i checked the cookie which set and tried to correct its value but still ignore the cookie

i see it depends on wrong computations how to fix it

note (i added

function hook_init() {
 $c=$_COOKIE['id'];
 $_COOKIE['gallery_slideshow-block']=end(str_split($c));
 drupal_add_js('
 jQuery(document).ready(function($){ 
 $("#' . $c . '").siblings().removeClass("active");
 $("#' . $c . '").addClass("activeme");
 alert("'.$c.'+'.$_COOKIE['gallery_slideshow-block'].'");
 $(".views-content-field-image").click(function(){
 var id=$(this).parent().parent().attr("id");
  document.cookie="id="+id+"; expires=Thu, 2 Aug 2013 20:47:11 UTC; path=/";
   location.reload(true)
  })
  })
  ', 'inline');

to refresh on click an remember last slide viewed with defined cookie

so why it doesn't read the cookie every time it loads the to find correct one

please help thanks in advance

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.