Random Block With PHP 7.5 And gallery-1.4.4-pl2 ??

subfighter

Joined: 2004-09-17
Posts: 5
Posted: Fri, 2004-09-24 16:03

i am trying to get the random block to work on my clean install of gallery-1.4.4-pl2 on a new install of phpnuke 7.5. I read the STICKY post on how to get it work but it seems to be displaying the Random Image in the bottom of block thats above it.. And the RANDOM PHOTO BLOCK says there is No Content Available Right Now?? here is code for the block i created.

if (eregi("block-Gallery_Random_Photo.php", $_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}

include("http://www.subfighter.com/modules.php?op=modload&name=gallery&file=index&include=block-random.php"); 

but if i load the http://www.subfighter.com/modules.php?op=modload&name=gallery&file=index&include=block-random.php it seems to load in the browser fine and if i hit refresh seems to work perfect... the problem is getting it to display properly in the Block. I tried the right side, center, and left side and all the samething..

Any help appreciated as i dont know php :x

 
subfighter

Joined: 2004-09-17
Posts: 5
Posted: Mon, 2004-09-27 08:04

anyone get a random photo block working on phpnuke 7.5??

 
elric_melnibone

Joined: 2005-03-31
Posts: 2
Posted: Thu, 2005-03-31 21:17
subfighter wrote:
anyone get a random photo block working on phpnuke 7.5??

Wrap your include with:

ob_start();
include("http://www.subfighter.com/modules.php?op=modload&name=gallery&file=index&include=block-random.php");
$output = ob_get_contents();
ob_end_clean();
$content = $output;