Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

[Solved] Credit line - Page Mngr Pages

edited March 2007 in Vanilla 1.0 Help
Thanks to squirrel, I have successfully made a Page Manager page the default for my forum.

Page Mng add-on: How to make tab to be the default homepage for my site? # 9

A slight glitch is that the Product of Lussumo credit line does not appear on this particular page.

How can I fix this, is there an array I should add the new default page to?

Posted: Tuesday, 13 March 2007 at 8:51AM (AEDT)

Comments

  • Options
    imageBumppic

    Posted: Friday, 16 March 2007 at 3:56PM (AEDT)

  • Options
    One option is to not fuss about it. Its works right. thats imp
  • Options
    But it's the intro page, it really should appear there, that's where anyone wanting to know would look.
    If I can't sort it out soon I'll hard code it on the page.

    Posted: Saturday, 17 March 2007 at 3:43PM (AEDT)

  • Options
    The About Vanilla Notice is added to the end of the panel and if the panel doesn't appear on your page it won't appear either. I presume the PageManager processes the page_end.php file, so if you want the notice included at the end of the page, make a new folder with your own theme-name in the /themes/ directory and copy the file page_end.php in there.

    Open up the new copy in your directory and replace it with this (1 line added with PageFooter):
    <?php
    // Note: This file is included from the library/Framework/Framework.Control.PageEnd.php class.
    echo '<div id="PageFooter">'.$Context->GetDefinition('PanelFooter').'</div>';
    echo '</body>
    </html>';
    ?>
    
    Switch to the new theme in the settings to get it to show (it will show in all pages that process page_end.php including the login pages) and position the div#PageFooter how you want it using css.
  • Options
    But the panel does appear already, just not the credit line.
    Don't want a new theme, will have to scratch my head and work this out, actually, none of the Page Manager pages display the credit line.

    Posted: Saturday, 17 March 2007 at 7:35PM (AEDT)

  • Options
    Ah, then the call is missing from the PageManager add-on. I've not used it but I imagine you need to add this line somewhere near the very bottom of PageManager's default.php
    $Panel->AddString($Context->GetDefinition('PanelFooter'), 500);
    I'm guessing just before the $Page->FireEvents(); or above the group above it. You may have to experiment to find the right position. Else ask SirNot to include it.
  • Options
    Beauty jakob_r thanks heaps,

    after:$Body->CssClass = 'Discussions';
    added:$Panel->AddString($Context->GetDefinition('PanelFooter'), 500);

    Worked a treat, on all Page Manager pages.

    Posted: Saturday, 17 March 2007 at 9:38PM (AEDT)

This discussion has been closed.