Maintenance mode

Forums Forums Slimbox2 plugin Maintenance mode

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #522

    Malcalevak, any chance you could set something like this up for the SlimBox2 plugin?

    It adds a maintenance mode. The menu can still be seen, but only if ?mln=on is appended to the URL. ie: https://geek.hellyer.kiwi/?mln=on would work (if I had the plugin installed here).

    I actually added this feature to allow users to turn it on and off in the PixoPoint Template Generator but then realised it was potentially useful for this purpose too.

    When ?mln=on is used, the menu will stay on until the session is killed (usually when you close the browser). It can be turned off by adding ?mln=off.

    If you did that I could add it as a demo inside the [iurl=https://geek.hellyer.kiwi/generator/]template generator[/iurl]. I don’t want to add it by default as I’m trying to keep my page loads to a minimum (it’s already swelling as is).

    #4560

    You can see how I did it in the latest beta, it’s all contained at the bottom of the source code in index.php.

    #4561
    malcalevak
    Moderator

    I’ll look into it.

    #4562

    Thanks. It’s not a big deal, but it makes it a little easier to demonstrate how it works when users can just click a button to activate it.

    #4563

    I wanted a demo up ASAP so I added the maintenance mode functionality in.

    Feel free to use it in the official plugin. Otherwise I’ll just use it here for the demo. It would be handy to be able to upgrade to whatever new version you may create though.

    #4564

    One mistake … the description box in the admin page is copy and pasted from another box so is entirely unrelated to the maintenance mode … just needs replaced with something more appropriate.

    Oh, and it’s activated by ?slimbox=on. So shortly the following URL will activate the plugin here on the site … https://geek.hellyer.kiwi/?slimbox=on and the following will turn it off … https://geek.hellyer.kiwi/?slimbox=off

    #4565
    malcalevak
    Moderator

    Thanks, Ryan. I’ll try to remember to incorporate this with the next release, that I hope will come in the next 8 hours or so.

    #4566

    Thanks. I just need this sort of functionality as I want to keep the load on the template generator to a minimum. Plus there’s no point loading a plugin if the user has no intention of ever implementing it. This way they can turn it on if they want to test it, or leave it off if they want. Plus I can set it to turn on or off depending on what part of the site they’re on.

    I suppose this could be used by theme authors too. If they want a SlimbBox on one part of their site, but not another, then this would be a way to do that.

    #4567
    malcalevak
    Moderator

    The coding for the next release is all done, but it’s late, so I’ll update the release tomorrow morning.

    Once it’s out would you mind taking a look at my implementation of the maintenance mode feature?  Your method seemed overly complicated (why were you setting a session variable?), I simplified it, and in my tests it appeared to be working, but I wanted to make sure I didn’t inadvertently cut something out.

    #4568

    I set a session variable so that when you moved to another page the plugin would still work. Without it, when you moved to another page with the ?slimbox=on in the URL, the plugin would not work.

    Since it only loads the session variable when in maintenance mode I didn’t worry about the extra server load of using the session variable.

    And yep, I’ll take a look for sure.

    #4569
    malcalevak
    Moderator

    The release got delayed, the picasaweb script was broken (I’m waiting to see if the author can fix it, but not I’ll likely try myself), I also can’t seem to set a session variable in my own WordPress install, which is confounding me.

    At first I thought I must’ve changed something in my code layout, but it didn’t work with the copy you provided either. I’m looking into the matter to see if I can find a simple resolution or not. I might switch to using a wordpress option, though I think this would be less than ideal.

    On the off chance I just did something wrong in my testing, I’ve attached the unofficial release for review.

    And unrelated to this issue, and probably actually an SMF issue, but when selecting reply with attachments it’d be nice to have any already typed reply copy over. Thankfully the back button still preserved the info.

    #4570

    [quote:3vn9yz81]And unrelated to this issue, and probably actually an SMF issue, but when selecting reply with attachments it’d be nice to have any already typed reply copy over.[/quote:3vn9yz81]

    Good point. I’m not sure how to do that though, could be tricky.

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.