Fork me on GitHub

MTmodular + nuclei Blocks  Bottom

  • Hi all,

    I read the sample code changes at the nuclei website, but there are a lot of difference in the sample theme.php and the files around (no sideblock htmls in MTmodular by example).

    So before I try to include nuclei block working I like to ask people for their experience with it. (I like to have 1 sideblockcolumn right side the news means leftblock | news | newblockarea | rightblock.

    Thank you for all answers.
  • smokinghead

    Hi all,

    I read the sample code changes at the nuclei website, but there are a lot of difference in the sample theme.php and the files around (no sideblock htmls in MTmodular by example).

    So before I try to include nuclei block working I like to ask people for their experience with it. (I like to have 1 sideblockcolumn right side the news means leftblock | news | newblockarea | rightblock.

    Thank you for all answers.


    I saw your post while surfing the forums. Could you give me the link to the nuclei website?

    Given that I don't know anything about nuclei blocks, I don't understand enough to answer your question, even though I know alot about the MTmodular theme. (I'm the author. :D ) But I am interested in how folks use the theme and resolving any issues...

    If you have any problems or questions with the MTmodular theme, send me an email at crs@mtrad.com. Also, there will be a new release out in a week or so. Check for it at http://www.mtrad.com.
  • Here is the link to http://tangant.com/index.php where nuclei blocks can be found. I for one, wouldn't leave home without my nuclei blocks - the amount of flexibility it gives over additional block placement ( I can choose from 11 different block locations just using the default install) is great. And I would consider myself an almost beginner in running a postnuke site but even I could figure out how to use the mod using the documentation on the site and hitting the forums.

    I am using the nucleus-xl theme available from tangant.com as well since it already had the nuclei blocks capability built into it. I will probably just modify this theme when I get tired of it. I have not tried to use them on anyone else's theme though.

    The developer - Demo - has been away for several months but is due back in the near future and promises to be more available for assistance thru his forums.

    Hope this helps,
    Mark
  • I think if the feature of nuclei blocks could be included (maybe ready to go with some samples) the MTModular will be one of the best themes for PN. I have modifiet the graphics and now after a smaller font for headers I am ready to go with a new blockarea beside the news ( use for some contentExpress Blocks I think).
    icon_rolleyes
    Have a look at it at http://www.sk-kaltenkirchen.de/html/index.php
  • smokinghead

    I think if the feature of nuclei blocks could be included (maybe ready to go with some samples) the MTModular will be one of the best themes for PN.


    I couldn't agree with you more - as I was using MTmodular before I moved to nuclei blocks enabled themes as just haven't had the time to modify an existing theme myself to use the blocks.

    Still don't know if the NoMoreBlocks module in postnuke can accomplish what you want as I have just not used it yet. I know Envolution gave the option for an additional block next to the news block and they are back to developing that again - just released version 1.2. That works with any postnuke compatible themes as long as you add the file "pninit.php" from one of the default themes to your new theme directory.

    Really like your site even though I didn't understand a word of it :)
  • some folks

    I think if the feature of nuclei blocks could be included (maybe ready to go with some samples) the MTModular will be one of the best themes for PN.

    Well, I just looked at the Tangant site and read some of the documentation for nuclei blocks. There's no reason why MTmodular won't work with nuclei blocks. But I'm not sure you'll get the results you want. I'm not sure if you really could put blocks wherever you want without something else breaking in the theme.

    Here's how I would do it, if I had the time and inclination. If someone else wants to try, I'd be happy to help them by answering their questions and checking their work... wink

    In MTmodular, edit the theme.php file. Go to the themesidebox() function and copy all the lines from the first echo with "Start Block Box" to the last echo with "End Block Box". Put those into a new file called defaultblock.html.

    Now, go back to themesidebox() function and replace all that code that you copied with this:

    Code

    switch ($block['position'] ) {
        case 'l':
            include("themes/$thename/defaultblock.html");
            break;
        case 'r':
            include("themes/$thename/defaultblock.html");
            break;
        case 'c':
            include("themes/$thename/defaultblock.html");
            break;
        case 't':
            include("themes/$thename/defaultblock.html");
            break;
        case 'b':
            include("themes/$thename/defaultblock.html");
            break;
        case '1':
            include("themes/$thename/defaultblock.html");
            break;
        case '2':
            include("themes/$thename/defaultblock.html");
            break;
        case '3':
            include("themes/$thename/defaultblock.html");
            break;
        case '4':
            include("themes/$thename/defaultblock.html");
            break;
        case '5':
            include("themes/$thename/defaultblock.html");
            break;
        case '6':
            include("themes/$thename/defaultblock.html");
            break;
        case '7':
            include("themes/$thename/defaultblock.html");
            break;
        case '8':
            include("themes/$thename/defaultblock.html");
            break;
        case '9':
            include("themes/$thename/defaultblock.html");
            break;
    }

    This code should work without any other tweaking or messing with any other blocks. If it doesn't, then fix it before going further.

    Now, if you want to use a block someplace, you just use insert the call to blocks() as documented on Tangant. If you want to change the look of the block, or need to do some other HTML stuff to make the block work with the rest of the theme, then copy defaultblock.html to a new name, preferably something like "area_4_block.html". Then change the include in the appropriate case clause of the switch structure in themesidebox() to reference "area_4_block.html" instead of "defaultblock.html".

    That should be it. Let me know how it works or if you have any questions or suggestions. Email is the quickest way to reach me at crs@mtrad.com.
  • Thank you CRS!

    First I have some problem with the implementation, but after then I put your changes between PHP tags and save it as defaultblock.php.
    After changing the calling also to this defaultblock.php it works fine.

    If someone like to see how it works so look at


    http://www.sk-kalten…n.de/html/index.php

    Yes icon_lol it is really MTmodular with its good functions
  • smokinghead

    First I have some problem with the implementation, but after then I put your changes between PHP tags and save it as defaultblock.php.

    After changing the calling also to this defaultblock.php it works fine.

    If someone like to see how it works so look at

    http://www.sk-kalten…n.de/html/index.php

    Yes icon_lol it is really MTmodular with its good functions


    Hmmm... yeah, you're right. I'd ring those up as typos.... icon_redface

    I'll add this to the doc for the next release of MTmodular, which is coming up soon given that I got the bug in PrintAnyPage resolved and the statistics module released...
  • 0 users

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