Hows your PHP? I am having problems with using block-random in a phpnuke site, I have used the code provided by signe but all I get is an extended block showing the code, any idea what I might be doing wrong?
include("http://www.*************.com/modules.php?op=modload&name=Gallery3&file=index&include=block-random.php");
Tim.
Posts: 2322
You may need to add <?php and ?> around the include, if it's not working.
Posts: 127
Tried that and now nothing shows in the block?
Posts: 127
Anybody help???
Posts: 17
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=22048&highlight=
^^ maybe try that block
Posts: 127
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=23798 :D
Posts: 25
I am using phpnuke 7.7 and I get the same thing. The instructions say "Create a Core PHP Block wuth the following..." I create a block and it just shows the code in the block. please help me...
Posts: 127
Try this, create a block using the following text, upload to blocks directory then enable it in admin panel.
<?php
if (eregi("block-gallery,php", $PHP_SELF)) {
Header("Location: index.php");
die();
}
global $prefix, $forumspath, $nukeurl, $dbi;
ob_start();
include("http://www.YOURWEBSITE.com/modules.php?op=modload&name=Gallery3&file=index&include=block-random.php");
$output = ob_get_contents();
ob_end_clean();
$content = $output;
?>