Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#19 [patch] need more supported block placement options

XOOPS_2.0.x
closed
nobody
Core (214)
5
2012-09-25
2003-04-10
Matthew Bogosian
No

It would be really nice to have more block placement
options. So far we have:

left
center-center
center-left
center-right
right

It would be nice to replace the center-* placement
options with the following:

center-top-center
center-top-left
center-top-right
center-before-comments-center (see userinfo.php)
center-before-comments-left
center-before-comments-right
center-bottom-center
center-bottom-left
center-bottom-right

This would allow much greater flexibility to the admin
who wants to arrange blocks differently on his/her site.

Discussion

  • Logged In: YES
    user_id=714646

    Why not make it top-center instead of center-top-center, and
    bottom-center instead of center-bottom-center, etc? I.e.
    adding top- and bottom-. This would leave the current
    center-* positioning untouched.

    Dunno, perhaps this is all well for the comments.

    So we end up with:

    left
    top-left
    top-center
    top-right
    center-left
    center-center
    center-right
    before-comments-left
    before-comments-center (see userinfo.php)
    before-comments-right
    bottom-left
    bottom-center
    bottom-right
    right

    And there is still room for additions in the logo/banner
    area :-)

     
  • Logged In: YES
    user_id=79080

    I'm uploading a patch to add the notion of bottom-center
    blocks (in addition to the center blocks already used by
    XOOPS). This includes the necessary modifications to the
    default and phpkaox themes (but not x2t, because it handles
    center blocks differently).

    The archive includes the following files:
    html/
    html/class/
    html/class/xoopsblock.php
    html/header.php
    html/include/
    html/include/common.php
    html/include/old_functions.php
    html/modules/
    html/modules/system/
    html/modules/system/admin/
    html/modules/system/admin/blocksadmin/
    html/modules/system/admin/blocksadmin/blockform.php
    html/modules/system/admin/blocksadmin/blocksadmin.php
    html/modules/system/language/
    html/modules/system/language/english/
    html/modules/system/language/english/admin/
    html/modules/system/language/english/admin/blocksadmin.php
    html/themes/
    html/themes/default/
    html/themes/default/theme.html
    html/themes/phpkaox/
    html/themes/phpkaox/theme.html

    These files are from XOOPS2 2.0.0. I've also included a
    diff/patch file for those of you who want to apply the patch
    directly to your 2.0.1 or 2.0.2 release to get the same
    functionality.

     
  • patched php files to enable bottom-center blocks

     
    Attachments
  • diff/patch file to enable bottom-center blocks in your XOOPS2 release sources

     
    Attachments
  • Logged In: YES
    user_id=79080

    To use the diff/patch file, go to your XOOPS2 html directory
    and run the patch command:

    cd /.../xoops2/html
    patch -p2 </.../bcblocks.patch