Random Block in IPBNuke.

clothahump
clothahump's picture

Joined: 2002-11-26
Posts: 127
Posted: Sat, 2004-12-11 23:10

Create a new block using the following.

<?php
if (eregi("block-gallery,php", $PHP_SELF)) {
Header("Location: index.php");
die();
}
global $prefix, $forumspath, $nukeurl, $dbi;
ob_start();
include("http://your.server/modules.php?op=modload&name=your-gallery-name&file=index&include=block-random.php");
$output = ob_get_contents();
ob_end_clean();
$content = $output;
?>