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 |
|
Posts: 5
anyone get a random photo block working on phpnuke 7.5??
Posts: 2
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;