Support » Plugins » Random Image call for Gallery2?

  • Hi All,
    I’m slowly losing my mind trying to figure out this problem.

    I’ve got Gallery 2 running with WP 1.5, but for some reaon I can’t get the random image to work properly in a block. I’m fairly close but I don’t know where to look really to finish it.

    If I try to execute the following code:

    <?php readfile('http://www.idiotabroad.com/photos/main.php?g2_view=imageblock:External&g2_blocks=randomImage&g2_show=title'); ?>

    It returns:

    Warning: readfile(http://www.idiotabroad.com/photos/main.php?g2_view=imageblock:External&g2_blocks=randomImage&g2_show=title): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found in /home/e-smith/files/ibays/blog/html/foo.php on line 1

    However, if I try:


    <?php readfile('http://127.0.0.1/photos/main.php?g2_view=imageblock:External&g2_blocks=randomImage&g2_show=title'); ?>

    I at least get a broken image (image doesn’t stream).
    I’ve got allow_url_fopen enabled in my php.ini file, so I don’t have a clue why this prob is happening.

    Anyone run into this?

    Geoffrey

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Random Image call for Gallery2?’ is closed to new replies.