1
DuGris
[fixed] blocksadmin and xoops 2.0.14
  • 2006/6/4 23:49

  • DuGris

  • Core Developer

  • Posts: 67

  • Since: 2004/3/14


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(=> _AM_SBLEFT=> _AM_SBRIGHT=> _AM_CBLEFT=> _AM_CBRIGHT=> _AM_CBCENTER, ));


by
$side_select->addOptionArray(array(=> _AM_SBLEFT=> _AM_SBRIGHT=> _AM_CBLEFT=> _AM_CBRIGHT=> _AM_CBCENTER=> _AM_CBBOTTOMLEFT=> _AM_CBBOTTOMRIGHT=> _AM_CBBOTTOM, ));

2
Quest
Re: [fixed] blocksadmin and xoops 2.0.14
  • 2006/6/7 14:20

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


Where is the myblocksadmin.php file? I found blocksadmin.php. But the line locations of the recommended changes do not correspond. Help please, my top and bottom center blocks worked fine until I upgraded to the 2.0.14 RC1 version.

Quest

3
Quest
Re: [fixed] blocksadmin and xoops 2.0.14
  • 2006/6/7 14:42

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


DOH!

I did some further checking in the blocksadmin for XOOPS version 2.0.14 RC1 and everything looked just fine. I got to thinking , scary thought I know. And I took a look at the default theme.html file that came with the 2.014.RC1 version. It was apperent from what I saw that some changes needed to be made to the my theme.html in order for it to work properly again. So I copied this to my theme in the appropriate location and it works great now!

P.S.- Big thanks to the developers for adding this to the core. Excellent!


<!Begin Center Blocks Below Content-->
<{if $xoBlocks.page_bottomleft or $xoBlocks.page_bottomright or $xoBlocks.page_bottomcenter}>
<table cellspacing="0">
<{if $xoBlocks.page_bottomcenter}>
<tr><td id="bottomCcolumn" colspan="2">
<{foreach from=$xoBlocks.page_bottomcenter item=block}><{include file="default/theme_blockcenter_c.html"}><{/foreach}>
</td>
</tr>
<{/if}>
<{if $xoBlocks.page_bottomleft or $xoBlocks.page_bottomright}>
<tr>
<td id="bottomLcolumn">
<{foreach from=$xoBlocks.page_bottomleft item=block}><{include file="default/theme_blockcenter_l.html"}><{/foreach}>
</td>
<td id="bottomRcolumn">
<{foreach from=$xoBlocks.page_bottomright item=block}><{include file="default/theme_blockcenter_r.html"}><{/foreach}>
</td>
</tr>
<{/if}>
</table>
<{/if}>
</td>
<!--END Center Blocks Below Content-->

Login

Who's Online

230 user(s) are online (141 user(s) are browsing Support Forums)


Members: 1


Guests: 229


kenaanna,

more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits