1
I hacked blocksadmin 0.33 for XOOPS 2.0.14
in file
myblocksadmin.php line 103 replace
$sseln = $ssel0 = $ssel1 = $ssel2 = $ssel3 = $ssel4 = "";
$scoln = $scol0 = $scol1 = $scol2 = $scol3 = $scol4 = "#FFFFFF";
by
$sseln = $ssel0 = $ssel1 = $ssel2 = $ssel3 = $ssel4 = $ssel5 = $ssel6 = $ssel7 = "";
$scoln = $scol0 = $scol1 = $scol2 = $scol3 = $scol4 = $scol5 = $scol6 = $scol7 = "#FFFFFF";
in file
myblocksadmin.php add lines (in red), after the line 137
case XOOPS_CENTERBLOCK_CENTER :
$ssel3 = " checked='checked'";
$scol3 = "#00FF00";
break ; [color=0000FF]line 137[/color]
[color=CC0000]case XOOPS_CENTERBLOCK_BOTTOMLEFT :
$ssel5 = " checked='checked'";
$scol5 = "#00FF00";
break ;
case XOOPS_CENTERBLOCK_BOTTOMRIGHT :
$ssel6 = " checked='checked'";
$scol6 = "#00FF00";
break ;
case XOOPS_CENTERBLOCK_BOTTOM :
$ssel7 = " checked='checked'";
$scol7 = "#00FF00";
break ;
[/color]
in file
myblocksadmin.php line 220 replace
<div style='float:left;background-color:$scol0;'>
<input type='radio' name='side[$bid]' value='".XOOPS_SIDEBLOCK_LEFT."' style='background-color:$scol0;' $ssel0 />
div>
<div style='float:left;'>-div>
<div style='float:left;background-color:$scol2;'>
<input type='radio' name='side[$bid]' value='".XOOPS_CENTERBLOCK_LEFT."' style='background-color:$scol2;' $ssel2 />
div>
<div style='float:left;background-color:$scol3;'>
<input type='radio' name='side[$bid]' value='".XOOPS_CENTERBLOCK_CENTER."' style='background-color:$scol3;' $ssel3 />
div>
<div style='float:left;background-color:$scol4;'>
<input type='radio' name='side[$bid]' value='".XOOPS_CENTERBLOCK_RIGHT."' style='background-color:$scol4;' $ssel4 />
div>
<div style='float:left;'>-div>
<div style='float:left;background-color:$scol1;'>
<input type='radio' name='side[$bid]' value='".XOOPS_SIDEBLOCK_RIGHT."' style='background-color:$scol1;' $ssel1 />
div>
by
<div align='center' >
<input style='background-color:$scol2;' type='radio' name='side[$bid]' value='".XOOPS_CENTERBLOCK_LEFT."'$ssel2 />
<input style='background-color:$scol3;'type='radio' name='side[$bid]' value='".XOOPS_CENTERBLOCK_CENTER."'$ssel3 />
<input style='background-color:$scol4;'type='radio' name='side[$bid]' value='".XOOPS_CENTERBLOCK_RIGHT."'$ssel4 />
div>
<div>
<span style='float:right'>
<input style='background-color:$scol1;' type='radio' name='side[$bid]' value='".XOOPS_SIDEBLOCK_RIGHT."'$ssel1 />
span>
<div align='left'>
<input style='background-color:$scol0;' type='radio' name='side[$bid]' value='".XOOPS_SIDEBLOCK_LEFT."'$ssel0 />
div>
div>
<div align='center'>
<input style='background-color:$scol5;' type='radio' name='side[$bid]' value='".XOOPS_CENTERBLOCK_BOTTOMLEFT."'$ssel5 />
<input style='background-color:$scol7;' type='radio' name='side[$bid]' value='".XOOPS_CENTERBLOCK_BOTTOM."'$ssel7 />
<input style='background-color:$scol6;' type='radio' name='side[$bid]' value='".XOOPS_CENTERBLOCK_BOTTOMRIGHT."'$ssel6 />
div>
in file
myblockform.php line 39 replace
$side_select->addOptionArray(array(0 => _AM_SBLEFT, 1 => _AM_SBRIGHT, 3 => _AM_CBLEFT, 4 => _AM_CBRIGHT, 5 => _AM_CBCENTER, ));
by
$side_select->addOptionArray(array(0 => _AM_SBLEFT, 1 => _AM_SBRIGHT, 3 => _AM_CBLEFT, 4 => _AM_CBRIGHT, 5 => _AM_CBCENTER, 7 => _AM_CBBOTTOMLEFT, 8 => _AM_CBBOTTOMRIGHT, 9 => _AM_CBBOTTOM, ));