1
Hello all,
For educational purpose, I'm trying to put a dummy block in a dummy module:
In a fresh installation of xoops 2.5.9, Instaled dummy module wich is basically an very simple module sample (Developed by Trabis).
Edited xoops_version.php, and put the lines at the end of file:
le="color: #000000"><?php $modversion['blocks'][0]['file'] = "blocks/dummy_block.php"; $modversion['blocks'][0]['name'] = "Dummy"; $modversion['blocks'][0]['description'] = "A Dummy block"; $modversion['blocks'][0]['show_func'] = "b_dummy_block_show";
then created the folder blocks and the file dummy_block.php with the coontent:
<?php function b_dummy_block_show () { $moduleDirName = basename(dirname(__DIR__)); echo $moduleDirName; } ?>
After module updated, could see it on admin/blocks section... enabled it and droped it on my center block, but not shows on the user side...
Where did I miss something?