4
I have made so
ADD to DB:
INSERT INTO `xoops_modules` VALUES (47, 'index1', 100, 1104183105, 1, 1, 'sample_mod', 1, 1, 1, 1, 1, 1);
INSERT INTO `xoops_modules` VALUES (48, 'index2', 100, 1104183105, 1, 1, 'sample_mod', 1, 1, 1, 1, 1, 1);
header.php--->
{
$xoopsTpl->assign('xoops_pagetitle', htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES));
if(preg_match("/index1\.php$/i", xoops_getenv('PHP_SELF')) && $xoopsModule->getVar('dirname') =='sample_mod')
{
$block_arr =& $xoopsblock->getAllByGroupModule($xoopsUser->getGroups(),47, false, XOOPS_BLOCK_VISIBLE);
}
elseif(preg_match("/index2\.php$/i", xoops_getenv('PHP_SELF')) && $xoopsModule->getVar('dirname') =='sample_mod')
{
$block_arr =& $xoopsblock->getAllByGroupModule($xoopsUser->getGroups(),48, false, XOOPS_BLOCK_VISIBLE);
}elseif(!empty($xoopsOption['show_cblock'])) {
$block_arr =& $xoopsblock->getAllByGroupModule($xoopsUser->getGroups(), 0, true, XOOPS_BLOCK_VISIBLE);
} else {
$block_arr =& $xoopsblock->getAllByGroupModule($xoopsUser->getGroups(),0, false, XOOPS_BLOCK_VISIBLE);
}
}
admin->blocks->> add need bock to index1 & index2