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

Maintenance Screen 1.0.3

No white page for your visitors when installing addons, languages, phrases, etc.

  1. wmtech

    wmtech Well-Known Member

    wmtech submitted a new resource:

    Maintenance Screen (version 1.0.0) - No white page for your visitors when installing addons, languages, phrases, etc.

    Read more about this resource...
     
    karll likes this.
  2. Mouth

    Mouth Well-Known Member

    Brilliant! Thanks.
     
    HWS likes this.
  3. Adam Howard

    Adam Howard Well-Known Member

    Small code clean up for sorry.html

    Lines 8, 9, 10 and 15

    PHP:
    ;    }
    should be

    PHP:
    ;}

    I think they also started with

    PHP:
    {    code
    Should be
    PHP:
    {code
    Not technically a big deal. But there are some older browsers (and mobile webs) that will scream murder over such little things.
     
  4. Adam Howard

    Adam Howard Well-Known Member

    For full valid HTML 4.01 Transitional ;)

    Line 20 in sorry.html

    ends with

    PHP:
     />
    Remove the / symbol and replace it with

    PHP:
    alt="YOUR Site Title"
    End result will be

    PHP:
    alt="YOUR Site Title">
     
  5. Mouth

    Mouth Well-Known Member

    Minor fix ...

    Had to change library/WMTech/MaintenanceScreen/FrontController.php from

    PHP:
    $output '<body onload="self.location.href=\'sorry.html\';"><h1>We are working for you!</h1><p>Please come back later.</p><body>' ;
    to

    PHP:
    $output '<body onload="self.location.href=\'/sorry.html\';"><h1>We are working for you!</h1><p>Please come back later.</p><body>' ;
    to ensure it looked for sorry.html in the root
     
    Adam Howard likes this.
  6. Adam Howard

    Adam Howard Well-Known Member

    attached is the fixed version (with my code edits and examples)

    Change as needed
     

    Attached Files:

  7. Adam Howard

    Adam Howard Well-Known Member

    You're a fast one. lol

    (fast poster)
     
  8. Adam Howard

    Adam Howard Well-Known Member

    For full valid css on sorry.html ;)

    Line 13

    find

    PHP:
    .main {background#fff;
    Change to

    PHP:
    .main {background#ffffff;
    Line 15 ends with

    PHP:
    padding30px auto;}
    Remove "auto"

    End result will be

    PHP:
    padding30px;}

    attached is the fixed version (with my code edits and examples)

    Change as needed

    html files.... I like to play with them. lol
     

    Attached Files:

  9. Luke F

    Luke F Well-Known Member

    I think it's nicer to use $output = file_get_contents sorry.html rather than the redirect to it. That way visitors can spam f5 and eventually see the site as normal.


    That being said, excellent addon, can't believe no one has thought of this before!
     
  10. wmtech

    wmtech Well-Known Member

    If you know what you do, you can change that as you like. Even name another completely different file URL.

    PLEASE BE CAREFUL:
    If you do such edits, you have to know what you do, because the included instructions may be wrong.

    Forum root has not to be web server root. Accordingly the file "sorry.html" should be placed in forum root and not in server root per default. But, sure, everyone is free to adapt the code for his needs. To make it simple, I have decided to upload only one version of it. ;)
     
  11. wmtech

    wmtech Well-Known Member

    Thank you for your findings. :) But sorry.html should be redesigned by almost everyone using that addon. This is just a sample. :)
     
    Adam Howard likes this.
  12. wmtech

    wmtech Well-Known Member

    To keep it short and simple, it was released as a redirect.
    The trickiest part of this addon is to place sorry.html in the correct position and adapt the refresh. ;)
     
  13. Adam Howard

    Adam Howard Well-Known Member

    I know.
    But I figured I'd "tweak" it for the few lazy people who won't go past just editing in their links or know nothing about code or are happy with it "as is"
     
  14. wmtech

    wmtech Well-Known Member

    Hopefully those "people" won't use your file unedited, because it will redirect a lot of traffic to your Socially Uncensored forum. :D
     
    Adam Howard likes this.
  15. Mouth

    Mouth Well-Known Member


    Sorry (no pun intended :)), I disagree as it didn't fully work for me without this change.
    With sorry.html in the root of your XenForo installation (/ for me), then if the user is trying to load <xenforo>/misc/contact (/misc/contact) for me, then the Add-On will try to find sorry.html in <xenforo>/misc/sorry.html (/misc/sorry.html for me) which obviously fails as sorry.html is in <xenforo>/ (/ for me) and not in {xenforo}/misc/
     
  16. Adam Howard

    Adam Howard Well-Known Member

    I did comment (note) that...

    "attached is the fixed version (with my code edits and examples)

    Change as needed"

    Now if people don't read that or do anything with that..... Oh well .... More members for me :D:X3::LOL:;)(y):sneaky::whistle:
     
  17. HWS

    HWS Well-Known Member

    We have the exact same situation at our sites and no such problem until now.
    I'll take a look into that and release an update, if necessary. Thanks for your comment!
     
  18. Sheldon

    Sheldon Well-Known Member

    Are you kidding me? Your site is such a failure, you add your own code into add-ons now to get more traffic for you? Keep your trash elsewhere.
     
  19. wmtech

    wmtech Well-Known Member

  20. Sheldon

    Sheldon Well-Known Member

    Now I am curious as to how many of your "repackaged" add-ons you have thrown in for Auto-Installer have your trash in it as well.
     

Share This Page