Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #217096
    #217113

    Hi jeffstrahl!

    Try:

    
    if($this->config['type'] == 'slider')
    {
                $aux = array();
                $keys = array_keys($this->id_array);
                shuffle($keys);
                foreach($keys as $key) {
                    $aux[$key] = $this->id_array[$key];
                    unset($this->id_array[$key]);
                }
                $this->id_array = $aux;
    }
    

    Regards,
    Peter

    #217116

    Hey Peter,
    Thanks for that, it worked perfectly, in regards to random slider, but static grid. Nice!

    Now, the only other challenge to this riddle is the links following the right logos. On the slider (that’s now been randomized), the links are not on the respective logo. They obviously match on the grid, since it’s static, but not on the randomized slider.

    Thoughts?

    Thanks,
    -jeff

    #217358

    Hi!

    I updated the code a bit – it should work now :)

    Regards,
    Peter

    #217516

    Works perfectly.
    I really appreciate the quick response and help.

    Thanks,
    -jeff

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘randomize partner/logo (further questions)’ is closed to new replies.