Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#108 SiteClose.class.php absolute file path

Legacy
open
gigamaster
5
2011-12-31
2011-12-18
gigamaster
No

legacy/preload/Primary/SiteClose.class.php

// @todo filebase template with absolute file path
$xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/legacy/templates/legacy_site_closed.html');

Can't customize theme template!

Discussion

  • HIKAWA Kilica
    HIKAWA Kilica
    2011-12-23

    You can customize this by

    1) Edit legacy_site_closed.html with altsys or other

    2) Use your own preload file copy of SiteClose.class.php.
    $this->mController->mSetupUser->add("YourPreloadClass_SiteClose::callbackSetupUser");

    Can't you fulfill your request by the above ways ?

     
  • HIKAWA Kilica
    HIKAWA Kilica
    2011-12-23

    • labels: 963736 -->
     
  • gigamaster
    gigamaster
    2011-12-23

    Sure. Both solutions work. That said its not part of Legacy but a 'custom hack'.
    That way, designers cannot deliver a complete theme with templates.
    Same issue with admin themes.

     
  • gigamaster
    gigamaster
    2011-12-31

    check if file_exists
    /themes/' . $xoopsConfig['theme_set'] . '/templates/legacy_site_closed.html

     
  • gigamaster
    gigamaster
    2011-12-31

    • labels: --> Interface Improvement
    • milestone: --> Legacy
    • assigned_to: nobody --> xoopserver