I try the create my first Zikula block that displays a random image from my gallery
Whit this code:
Code
<?php @readfile('http://micware.nl/gallery2/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=title'); ?>
The above pice of code is from the developer , see : http://codex.gallery…:Modules:imageblock
My PHP skills are limited but this is what I have:
Code
<?php
// -----------------------------------------------------------------------------------
/**
* Randon external images block
* Purpose of file: Show randon images
*/
// -----------------------------------------------------------------------------------
function erandom_block()
{
return array(
'module' => 'mGallery2',
'text_type' => 'External_random_Block',
'text_type_long' => 'External_random_Block',
'allow_multiple' => false,
'form_content' => false,
'form_refresh' => false,
'show_preview' => true
);
}
@readfile('http://micware.nl/gallery2/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=title');
?>
// -----------------------------------------------------------------------------------
/**
* Randon external images block
* Purpose of file: Show randon images
*/
// -----------------------------------------------------------------------------------
function erandom_block()
{
return array(
'module' => 'mGallery2',
'text_type' => 'External_random_Block',
'text_type_long' => 'External_random_Block',
'allow_multiple' => false,
'form_content' => false,
'form_refresh' => false,
'show_preview' => true
);
}
@readfile('http://micware.nl/gallery2/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=title');
?>
What happens! (see image) when I’m in the create a block menu the intended block/image show above my header. The block name is not visible/selectable in the block dropdown menu.

I looked at many other blocks but can see/find the solution
Thx for everybody that’s helps on the forum
