1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Implemented Change blank page while installing addons/rebuilding templates.

Discussion in 'Closed Suggestions' started by The Dark Wizard, Oct 2, 2012.

  1. The Dark Wizard

    The Dark Wizard Well-Known Member

  2. MsJacquiiC

    MsJacquiiC Well-Known Member


    I'm absolutely not sure why such a modification hasn't been shared yet. The blank page is so annoying. Hopefully some generous coder will share such a modification with the community!

    surfsup likes this.
  3. surfsup

    surfsup Well-Known Member

    We seriously need a plugin for this.....all my members are online as well and bam they think we shutdown etc.
    Adam Howard likes this.
  4. The Dark Wizard

    The Dark Wizard Well-Known Member


    Perhaps people will do this if everyone interested pools money, thats how a lot of the bigger addons have gotten made, with great quality I may add.
  5. ddmmh

    ddmmh Well-Known Member

    This needs to be a core feature of XenForo not a paid add-on. Im sure the devs are working on something.
    Adam Howard and MsJacquiiC like this.
  6. intradox

    intradox Well-Known Member

    I remember someone stating it probably won't be a core feature (can't remember why) but hopefully someone makes an addon solving this issue as I would rather a simple text message stating upgrades/maintenance than nothing at all.
  7. karll

    karll Well-Known Member

    Definitely need a fix for this.
  8. Adam Howard

    Adam Howard Well-Known Member

    ~ Sign ~

    I think I've suggested this about a dozen times, including calling it a "bug" .... Was always told that it is "as design" or "design flaw" . ..... Depends on which member of KAM was talking

    Would love to see this resolved. On vBulletin, phpBB, IPB, and even WordPress you can install or edit without everything going "poof"
  9. Digital Doctor

    Digital Doctor Well-Known Member

    Most admins don't know how disrupted members are when installing addons and rebuilding templates.
  10. Digital Doctor

    Digital Doctor Well-Known Member

    Is there a way to give them "something to do" (some content, etc.) while Xenforo is working ? (but it won't interfere with the admin process)
    Is there a way to display a message from the admin ?
  11. HWS

    HWS Well-Known Member

    This should be in core. If no template can be rendered (=empty), a customizable error page should be shown (via a redirect, since templates are out of order at that time).
    It is also not too complicated to code.
  12. DRE

    DRE Well-Known Member

    Put it in XF 1.2 please or don't release it at all.
    Adam Howard likes this.
  13. HWS

    HWS Well-Known Member

    This is an VERY easy fix.

    Step 1)
    Create a wonderful individually customized HTML page named sorry.html and place it in the root of your servers web directory.
    Important: Even if you installed XenForo into a subdirectory, sorry.html always has be placed in web server root!
    This file will be shown to your visitors, if XenForo templates are not available (during recaching, addon installation, etc, etc). The blank white page will be gone forever! ;)

    Step 2)
    Open the file /library/XenForo/FrontController.php

    Right after line 201:
    add the following line of new code:
    if ($content == '') {$content '<body onload="self.location.href=\'/sorry.html\';"><h1>We are working for YOU!</h1><p>Please come back later.</p></body>' ;}

    Overview: After you added that code the situation in /library/XenForo/FrontController.php would look like:
                if (is_string($content) && $content && !ob_get_level() && XenForo_Application::get('config')->enableContentLength)
    $this->_response->setHeader('Content-Length'strlen($content), true);
    if (
    $content == '') {$content '<body onload="self.location.href=\'/sorry.html\';"><h1>We are working for YOU!</h1><p>Please come back later.</p></body>' ;}
                if (
    $content instanceof XenForo_FileOutput)
    Save /library/XenForo/FrontController.php and you're all set.

    Bye, bye, white blank page. :)
  14. MsJacquiiC

    MsJacquiiC Well-Known Member

    Wow! Great share! Exquisite directions.

    I've just created my page at http://jpicforum.info/unavailable.html which has a meta-refresh every 15 seconds that loads the JPiC portal --- Now the blank, white page is replaced by the new, custom page = NICE!

    Someone should maybe post this workaround in the resources section maybe? I'd be happy to, sharing a custom page that folks can use, giving full credit for the code to you HWS...

    Anyway = Thanks so much! You're officially AWESOME! [​IMG]

    sandis and 8thos like this.
  15. DRE

    DRE Well-Known Member

    Been awhile since I looked at it but wow your forum is beautiful!
    MsJacquiiC likes this.
  16. The Dark Wizard

    The Dark Wizard Well-Known Member

    What about mine :(?
  17. DRE

    DRE Well-Known Member

    Is it possible that you could add a gold color to the list?

    I know it sounds like an odd request, but all of the flieur di lis or however you spell it, keep making me think of the Saint's football team. :ROFLMAO:
  18. The Dark Wizard

    The Dark Wizard Well-Known Member

    No it's going away >_>.......

    I'll share the PM with you.
    8thos likes this.
  19. DRE

    DRE Well-Known Member

  20. HWS

    HWS Well-Known Member

    I'll post in in Resources as soon as I've time for it. ;)

    This needs to be implemented in the core product, since it tampers with the _run function of FrontController and must look like a gruel hack for Mike. :)
    MsJacquiiC, Dan and Bob like this.

Share This Page