Fork me on GitHub

BlockHome - Problems displaying blocks and setting width  Bottom

  • I just installed BlockHome (v1.1.1?) and love what it can do.

    I found some quirky behaviour and not sure how to resolve them. I am testing with PN .750 and also have AT .7. I am using the CORE/STORY TITLES block.

    1. I can only get blocks to display with BlockHome when 'Block Style = Left'. If I display with any other block style they dont appear.

    2. When the blocks do display (i.e. Block style=left) they dont span the entire width of the cell.

    Please see http://www.securityhive.com/dev for a example of what I mean.

    I appreciate any comments people may have.

    Brian
  • Hey,

    I have the same deal on .726. Installed Blockhome everything was working fine. Updated AutoTheme to .7 and updated themes to .7. Now I get empty space in my news page but on alternate page everything is fine. using Centre section on both. One is blank the other has all the content. If I change to left block info appears centre block nothing on this particular page.
  • brain_anon, It sounds like the default right block zone "r" is missing or not set in the theme you are using... I would check that, or create a custom AT block (or designate a style for the BlockHome custom zones, bh1, bh2), etc...

    BH was tested with AT-L .7 and AT (next to latest version)? on PN .726

    As to the width of the blocks, they use the style defined by the zone, thus is you tell a block in BH to display as a left-block style (it does not have to be defined in Blocks as a left block per se), it will use whatever HTML is defined for the left blocks in your HTML. As is often the case, left and right blocks layouts are set to an absolute width instead of 100%, which is why they won't display.

    In either case, it might be a good idea to use a custom block zone (style) for the blocks you want to display in the center zone - if only to set them apart from the left/right/other blocks on the page...

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • I just got this to work properly, at least i think it's right.

    In AutoTheme I did something I had not thought of yet did another module like this.

    I put the Module name "Blockhome" in AutoTheme and things started cookin. Left block is normal, no right block , assigned centre block and it looks like I have a happy web site again.

    Later
    rocket98
  • How do you mean you entered Blockhome in AutoTheme?

    I have since discovered that when I use centre clock style, the block does indeed use a relative width instead of absolute. However, this only displays on the home page (when I change the home page module to Blockhome instead of news). Clicking the preview link displays an empty table (though home page includes all the blosk).

    Any ideas? Again, http://www.securityhive.com/dev and http://www.securityhive.com/dev/index.php?module=BlockHome&func=main&pid=1 will demonstrate the problem.
  • Nate: I also have a feature request for BlockHome. Might it be possible to specify a header image for each cell/block (with a URL link)?

    I'm looking for samples on how to develop a block so I can consider doing this in the block (though all my immediate prayers would be answered if BlockHome had this feature).

    Thanks again for such a quality module.
  • brian_anon

    Thanks again for such a quality module.

    You're welcome. :)

    As for your request, that is somewhat out of the realm of BlockHome and is best dealt within the block & theme themselves.

    Blockhome allows you to specify "custom" block zones for the blocks in which you can add that kind of image/title substitution tweak (within the theme). There are some posts on this forum on that subject or check the theme tweaks here.

    Additionally, the Group "descriptions" can include whatever HTML you like and can be output via your theme as well, along with custom Open/Close functions you place in your theme which could produce the result you are looking for. (See the readme for details)

    The interaction with your theme is the key to BlockHome's flexiblity, though it does take a little tweaking on your part. Good luck!

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • brian_anon

    Nate: I also have a feature request for BlockHome. Might it be possible to specify a header image for each cell/block (with a URL link)?

    I'm looking for samples on how to develop a block so I can consider doing this in the block (though all my immediate prayers would be answered if BlockHome had this feature).

    Thanks again for such a quality module.


    AutoTheme does this automagically for the image. Put an image in the theme images/ dir and name it lowercase the same as the block but remove spaces and illegal characters. Who's Online would be whosonline.gif or .jpg or.png

    Is even better in AutoTheme 1.7 and the coming soon AT-Lite .8.

    Or you can create custom block templates to include the image and the link for each individual block.

    -Shawn

    --
    Get the Revolutionary AutoTheme HTML Theme System! Currently for Zikula, PHP-Nuke, CRE Loaded, osCommerce and Wordpress!
  • You can use this code for the blocks:

    Code

    <table border="0" cellpadding="3" cellspacing="0" width="100%">
    <?php        if (!empty($block['title'])) {      ?>

        <tr>
            <td align=left>
            <span class="boxtitle"><b>
    <?php
    /* ATTENTION THEMES DEVELOPER IF YOU WANT TO USE THE GRAPHICAL SIDEBLOCK TITLE CODE PLEASE GIVE THIS CREDIT
    Graphics sideblock title by Brumie, Dracos & E.Prodromou based on Rabbitt's code        */


    $img_name=explode(" ",$block[title]);
    $img_nametwo=$img_name[0];
    if(file_exists("themes/PostNukeSilver/blocks/$img_nametwo.gif")) {
    echo "<IMG SRC=\"themes/PostNukeSilver/blocks/$img_nametwo.gif\" >";
            } else {
    echo "$block[title]\n";
    }
    ?>
            </b></span>
            </td>
        </tr>
    </table>
    <?php        }     ?>
            <table border="0" cellpadding="3" cellspacing="0" width="169">
            <tr valign="top">
            <td>
    <?php   echo "$block[content]\n"; ?>
            </td>
        </tr>
    </table><br />
  • 0 users

This list is based on users active over the last 60 minutes.