Fork me on GitHub

NEW MODULE: BlockHome - Custom pages of news and blocks  Bottom

Go to page 1 - 2 - 3 ... 9 - 10 - 11 [+1]:

  • BlockHome is a PN .726 module which allows the administrator to construct multiple pages composed of Postnuke blocks and news articles. The pages are constructed by creating groups (rows) and them placing any number of blocks or story groups within these groups.

    Each page you create can be referred to by a distinct web address and a number of options allow you to customize the look of the blocks, the news items and the row groups you place in each page.

    The module works very closely with your Postnuke theme functions, so you should have an understanding of these to get the most out of BlockHome. For a simple “classic” theme tutorial, see my post on the pnForums here.

    The ZIP package can be downloaded here:
    http://www.natewelch.com/postnuke/

    Check the readme.txt in the docs directory for more information.

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

    Cape Cod Travel Info...
  • Hello Nate,
    Guess this module won't work for postnuke version 723? I'm getting various "include" errors. Have tried tweaking the include statements (paths/syntax) to work with 723, without success.
    What can you throw at me . . . . I'd like to try and use your module.
    Anyone with Postnuke 723 try this yet? Additional Feedback is good.

    alphaseven-
  • OK, found my answer.
    It does work just fine with postnuke 723. It experiences problems on my local test platform (see below), but works just fine on my live site. Actually, this module is really awesome! I haven't tried the block yet.

    My problems surfaced using my local test platform using Win XP, nuclei blocks and countless other variables not needing to identify here. Tried it with several themes. I resolved the include problems on my local test platform but started getting:

    Fatal error: Call to undefined function: ctype_digit() within the pnadmin.php and pnuser.php files.

    My live online site is Unix (BSD) and isn't using nuclei blocks.

    Anyway, fantastic addition! Think I'm gonna love this one. Great job and thank you . . . .

    alphaseven-
  • You're welcome and thanks for the kind words.

    I hadn't tested it with .723, but there have only been minor changes to the Blocks mod since then. Not sure what the include stuff was about as the module was actually created/tested on a home XP/Apache/PHP/mySQL setup but I guess you got it sorted out. (Would suggest a PN upgrade for security purposes, though)

    As for the ctype_digit, that is a built in PHP function to check if a string is a digit. According to the PHP site it is good for (PHP 4 >= 4.0.4). Perhaps you had an old version of PHP on your home system?

    Not sure what you are referring to by "the block" you haven't tried yet, but if you mean the custom block mod also available for download, that was done using the .726 files so I'd definately make a backup of your existing files before applying it (that is a cool mod as well, IMHO!).

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

    Cape Cod Travel Info...
  • I´m trying to run BlockHome under 723 but i´m getting this kind of error messages:

    Warning: main(pnconfig.php): failed to open stream: No such file or directory in /modules/BlockHome/pnadmin.php on line 30

    Warning: main(): Failed opening 'pnconfig.php' for inclusion (include_path='') in /modules/BlockHome/pnadmin.php on line 30

    As far as i remember I´m not using the Nuclei module.

    Help would be appreciated
  • Hmmm - strange. First, make sure that that file is in with the other files under 'modules/BlockHome'

    If it is and you're still getting the error try changing

    Code

    include('pnconfig.php');

    to

    Code

    include('modules/BlockHome/pnconfig.php');

    in the pnadmin.php file...

    If that doesn't work, *replace* the include statement with the contents of the pnconfig.php file...

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

    Cape Cod Travel Info...
  • Hello,

    I am new to postNuke and I am not familiar with PHP; I recently installed the BlockHome module because I would like to have more pages controlled with the PostNuke without multiple installations.

    Everything is working fine, except that I'd like to have more blocks in the right column. And I tried it with creating more groups, but in this case the next group/row starts after the first one and even though there is space in the right column below the first row, the next group starts after the end of the first center block (which takes more space). Is there a way to get the right block to move up?

    I searched through this discussion board but did not find any answers except one, where it said that I could create a table where I would call certain blocks. I guess if there is no other way then I'll have to do this.


    Thank you for your help.

    Best regards,
    Peter
  • Hi, the columns are all contained in rows, so there is no column of blocks that goes down the page.... You are probably referring to the right column in your *theme*, in which case you would use the blocks/admin to add blocks there (and the blocks would appear on all pages with a right column)....

    The blocks displayed on the pages you create with this module will appear strictly wherever you have the module output set to appear on your page (generally in the center of the page)...

    Unless you are talking simply about displaying a block in a group aligned right (with no other blocks)... In which case, you can monkey around with the column width settings...

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

    Cape Cod Travel Info...
  • Thank you for your reply.

    Quote

    You are probably referring to the right column in your *theme*, in which case you would use the blocks/admin to add blocks there (and the blocks would appear on all pages with a right column)....


    Yes, I would like the right column to be displayed and that it would contain three blocks (like on the main page where it shows if you enable it under settings). And I would like this on a few pages that I created with the BlockHome module because I want to show different blocks in the middle. If I change the theme so that the right block will always be displayed, it will also be there when displaying admin area, poll results, search,... and when discoussion board is displayed and I do not want that. I would like to have the right column with those blocks on certain pages and not on all. Is there a way to do it?

    Is there a way that one group could display one block in the center and two at the right side, one below the other? Because adding the third block automatically created three columns. Or is there a way to define within your module to display the right block? If your module crates a file I could edit it manually and call that certain block and modify the layout with a table? If yes, where could I find this file?

    Regards,
    Peter
  • In your theme.php where it says somethng to the effect of

    Code

    if ($GLOBALS['index'] == 1) {
       blocks('right');
    }

    (generally in themefooter or whatever HTML file is included therein) change to:

    Code

    if ($GLOBALS['index'] == 1 || $GLOBALS['ModName'] == 'BlockHome') {
       blocks('right');
    }

    ... or set BlockHome as the home page of your site under Admin->Settings ;)

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

    Cape Cod Travel Info...
  • alphaseven


    Fatal error: Call to undefined function: ctype_digit() within the pnadmin.php and pnuser.php files.


    weired but solved...

    i also had this prb but found 1 URL where stated to this error

    http://archives.neohapsis.com/archives/php/2002-12/0040.html

    so i replace the line from ctype_digit to this is_numeric

    Code

    //      if (ctype_digit($cols[$j]['bid'])) {
    if (is_numeric($cols[$j]['bid'])) {


    it's solve all my prb and running fly!
  • This isn't a support question but I just installed BlockHome and it is soooooo cooool!!!! I just had to say "thanks!"

    I first thought PostNuke was a little lacking in some areas but modules like this are what supercharge PN. Great job!
  • You're welcome, Hiram...

    It's my first *complete* module and served to familiarize me with the 'Nuke API and has allowed me to make others. Not sure if any upgrades are on the way (though I can change that "c_type" to "is_numeric" as mentioned above if a lot of folks have trouble with it) - but as always any suggestions for improvements are welcome.

    Remember, it's a semi-API compliant module, so in your Menublock you can link to the "default" BlockHome page with the shorthand {BlockHome}; and to really get some juice out of it, you'll need to work with your theme.

    Thanks again for the nice comments.

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

    Cape Cod Travel Info...
  • thank you for this module. works as expected and no problems.

    I have been looking for something like this for quite some time. :D

Go to page 1 - 2 - 3 ... 9 - 10 - 11 [+1]:

  • 0 users

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