Hiya,
I'm trying to find/create a random image block for my site, which is running nuke-evolution 2.01. (www.nuke-evolution.com). I've got a block up and running but there are a couple of errors I can't seem to get round.
* The images in the block link to /modules/gallery2/main.php rather than modules.php?name=gallery2&
* If i try to set the block so it is visible only to a certain usergroup, the block comes up with "This block is restricted to the following usergroup" as an error message.
Can anyone help?
Thanks
Code: ›
/*=======================================================================
Nuke-Evolution Basic: Enhanced PHP-Nuke Web Portal System
=======================================================================*/
if(!defined('NUKE_EVO')) exit;
if (is_user()) {
ob_start();
@readfile('http://xxx.org/modules/gallery2/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_maxSize=130&g2_show=none');
print "<br><br>";
@readfile('http://xxx.org/modules/gallery2/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_maxSize=130&g2_show=none');
$output = ob_get_contents();
ob_end_clean();
$content .= "<br><center>";
$content .= $output;
$content .= "</center>";
}