Well, the good news is I figured out the gallery random pic block...i reread over the thread and it made more sense...anywho I get this error now...if i see at my index and refresh it, sometimes it displays the picture correctly and sometimes I get this error...im guessing something to do with the rand() function is whats messing it up...anyone have any ideas?
Code:
Warning: rand() expects parameter 2 to be long, string given in /home/wolskidk/public_html/iF/modules/gallery/block-random.php on line 138
ERROR: requested index [] out of bounds [2]
Fatal error: Call to a member function on a non-object in /home/wolskidk/public_html/iF/modules/gallery/classes/Album.php on line 642
And for reference purposes line 138 ( in block-random.php ) reads:
Code:
$choose = rand(1, $count);
And line 642 ( album.php )
Code:
return $photo->isHidden();