1.Place block-random.php in your Gallery directory.
this should be
modules/gallery/
In your theme.php file Just below this line
|
Code:
|
function themesidebox($title, $content) { |
paste this
|
Code:
|
if (@file_exists($content)) {
$fp = fopen ($content, "r");
$content = fread($fp, filesize($content));
fclose ($fp);
$content = "?>$content<?";
$content = eval($content);
} else if (eregi("^http", $content)) {
$fp = fopen ($content, "r");
$content = fread($fp, 65535);
fclose ($fp);
} |
Then in Nuke Admin/Blocks add the block and the http link like this
Notice there are NO quotes around the http link
Make sure you change the name=gallery if you changed the name of your gallery module. It IS case sensitive.
mikem