Thank ScubaKing22.
It doesn't show any error, but doesn't work.
script 1:
for($tempi=1;$tempi<=60; $tempi++){
define('MI_HIWEEDBLOCKS_BNAME'.$tempi,'group'.$tempi);};
define('MI_HIWEEDBLOCKS_BNAME61','otherthings');
the purpose of script 1 is:
define('MI_HIWEEDBLOCKS_BNAME1','group1');
define('MI_HIWEEDBLOCKS_BNAME2','group2');
...
define('MI_HIWEEDBLOCKS_BNAME60','group60');
define('MI_HIWEEDBLOCKS_BNAME61','otherthings');
script 2:
for($tempi=1;$tempi<=60;$tempi++){
$modversion['blocks'][$tempi]['file'] = "latest_of_topic.php";
$modversion['blocks'][$tempi]['name'] = 'MI_HIWEEDBLOCKS_BNAME$tempi';
$modversion['blocks'][$tempi]['description'] = "Shows the last x articles of a topic";
$modversion['blocks'][$tempi]['show_func'] = "latest_of_topic_show";
$modversion['blocks'][$tempi]['edit_func'] = "latest_of_topic_edit";
$modversion['blocks'][$tempi]['options'] = "News|10|1";
}
$modversion['blocks'][61]['file'] = "random_partner.php";
$modversion['blocks'][61]['name'] = MI_HIWEEDBLOCKS_BNAME61;
$modversion['blocks'][61]['description'] = "Shows a block with 1 random partner banner";
$modversion['blocks'][61]['show_func'] = "random_partners_show";
script 2 purpose is:
$modversion['blocks'][1]['file'] = "latest_of_topic.php";
$modversion['blocks'][1]['name'] = MI_HIWEEDBLOCKS_BNAME1;
$modversion['blocks'][1]['description'] = "Shows the last x articles of a topic";
$modversion['blocks'][1]['show_func'] = "latest_of_topic_show";
$modversion['blocks'][1]['edit_func'] = "latest_of_topic_edit";
$modversion['blocks'][1]['options'] = "News|10|1";
.....
$modversion['blocks'][60]['file'] = "latest_of_topic.php";
$modversion['blocks'][60]['name'] = MI_HIWEEDBLOCKS_BNAME60;
$modversion['blocks'][60]['description'] = "Shows the last x articles of a topic";
$modversion['blocks'][60]['show_func'] = "latest_of_topic_show";
$modversion['blocks'][60]['edit_func'] = "latest_of_topic_edit";
$modversion['blocks'][60]['options'] = "News|10|1";
$modversion['blocks'][61]['file'] = "random_partner.php";
$modversion['blocks'][61]['name'] = _MI_HIWEEDBLOCKS_BNAME61;
$modversion['blocks'][61]['description'] = "Shows a block with 1 random partner banner";
$modversion['blocks'][61]['show_func'] = "random_partners_show";
Thanks a lot.
Best regards
David