random image on click

pablov / 2013-09-23 06:50:28   

This may be useful to make the random image refresh the image when you click... it is based on code by arsondpi on a previous thread, but that code was not working on firefox. This one is working for all browsers I have tried so far...

find line 45 in the format.random_image.php file and change it from:
$s .= "";
to:
$s .= "";

pablov / 2013-09-23 06:52:53   

This may be useful to make the random image refresh the image when you click... it is based on code by arsondpi on a previous thread, but that code was not working on firefox. This one is working for all browsers I have tried so far...

  1. find line 45 in the format.random_image.php file and change it from:
  2. $s .= "<img src='" . $OBJ->vars->images[0][$rand]['media_path'] . "' />";
  3. to
  4. $s .= "<a href='location.reload(true); '><img src='" . $OBJ->vars->images[0][$rand]['media_path'] . "' /></a>";

This thread has been closed, thank you.