1
Hello,
so, my request was to create a new block in a module (xoopstube, mytube). i had choice to make a simple XOOPS custom block, but my content should be dynamique, and it's so complicated so i've prefered to add a Block to module MyTube
steps :
[size=x-large]
1[/size]
$modversion['blocks'][11]['file'] = "mytube_block_home.php";
$modversion['blocks'][11]['name'] = _MI_XTUBE_BNAME20;
$modversion['blocks'][11]['show_func'] = "mytube_home_block_top_show";
$modversion['blocks'][11]['description'] = "Show Home Page Video";
$modversion['blocks'][11]['template'] = 'mytube_block_home.html';
$modversion['blocks'][11]['can_clone'] = true ;
i've created files : mytube_block_home.php & mytube_block_home.html
[size=x-large]
2[/size]
added _MI_XTUBE_BNAME11 equivalence in language file of module mytube
[size=x-large]3[/size]i created an empty function function
mytube_home_block_top_show()
{
}
in mytube_block_home.php
and i've let template file mytube_block_home.html empty too
[size=x-large]
4[/size]
module updated, block installed, i can find in bloc administration. permission and every thing ! but when i activate it (show = yes) i have nothing in my website ! no title, no bloc, in DEBUG MODE, XOOPS don't made request to bring up the block !!
any idea !!!!ps : excuse my bad english, i come from French XOOPS Community ... frxoops.org becomes really so bad and commercial .. that i prefere learn english to come here ! we love xoops. heuumm !!! i'm the maker of Message Icon used in xoops.org :p