Random Block not working in IPBNuke?

clothahump
clothahump's picture

Joined: 2002-11-26
Posts: 127
Posted: Thu, 2004-12-02 22:52

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.

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Thu, 2004-12-02 22:56

You may need to add <?php and ?> around the include, if it's not working.

 
clothahump
clothahump's picture

Joined: 2002-11-26
Posts: 127
Posted: Thu, 2004-12-02 23:07

Tried that and now nothing shows in the block?

 
clothahump
clothahump's picture

Joined: 2002-11-26
Posts: 127
Posted: Sun, 2004-12-05 03:27

Anybody help???

 
Dove

Joined: 2004-10-20
Posts: 17
Posted: Wed, 2004-12-15 08:47
 
clothahump
clothahump's picture

Joined: 2002-11-26
Posts: 127
Posted: Wed, 2004-12-15 09:46
 
josephhand

Joined: 2003-01-01
Posts: 25
Posted: Mon, 2005-06-20 15:44

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...

clothahump wrote:
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.

 
clothahump
clothahump's picture

Joined: 2002-11-26
Posts: 127
Posted: Mon, 2005-06-20 17:13

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;
?>