Fork me on GitHub

Maximize module? Full screen display like PNphpBB2?  Bottom

  • Hi everyone,

    I'm working on writing my first module, and I pretty much have everything working properly now. I would like a particular function in my module to display in a full screen, without the postnuke header and blocks. Does anyone know how to do this? The PNphpBB2 forum module has this feature, but I've looked over the source and only found this little bit of code in index.php that might be helpful:

    Code

    // Begin PNphpBB2 Module - Minimize/Maximize Mod
    if ( isset($HTTP_GET_VARS['minmax']) || isset($HTTP_POST_VARS['minmax']) && $board_config['pnphpbb2_allow_full_page'] == 1)
    {
         $fullpage = ( isset($HTTP_POST_VARS['minmax']) ) ? $HTTP_POST_VARS['minmax'] : $HTTP_GET_VARS['minmax'];
         pnSessionSetVar('fullpage', $fullpage);
    }    
    // End PNphpBB2 Module - Minimize/Maximize Mod


    I thought that this might be a function of postnuke, activated by the 'fullpage' variable, so I tried setting that to '1' and various other values with no luck. Anyone know how to do this or have any ideas?

    Thanks,
    Nov
  • If your module is a pnRender one, you can achieve this by doing the following:

    Quote


    echo $pnRender->fetch(mytemplate.htm);

    return true;


    By returning 'true' you indicate to the core that the module has handled all the output, and therefore the theme wrappings will not be displayed.

    Alternatively, with an Xanthia theme, you can create a module specific template to remove all the wrappings of the theme. You can see this in my site by looking at the 'pnGuide Online' link

    --
    itbegins.co.uk - Zikula Consulting

    birtwistle.me.uk - Personal Blog


    Please read the Support Guide
  • Great, thanks for the help!

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