Code Monkey home page Code Monkey logo

wp-maintenance-mode's Introduction

LightStart - Maintenance Mode, Coming Soon and Landing Page Builder

Contributors: themeisle
Plugin Name: LightStart - Maintenance Mode, Coming Soon and Landing Page Builder
Plugin URI: https://themeisle.com/
Author: Themeisle
Author URI: https://themeisle.com/
Tags: maintenance mode, admin, administration, unavailable, coming soon, multisite, landing page, under construction, contact form, subscribe, countdown
Requires at least: 4.7
Tested up to: 6.5
Stable tag: 2.6.11
Requires PHP: 5.6
License: GPL-2.0+

Easy Drag & Drop Page Builder that adds a splash page to your site that it's perfect for a coming soon page, maintenance or landing page.

Description

Add a maintenance page to your blog that lets visitors know your blog is down for maintenance, add a coming soon page for a new website or create a landing page for an existing site. User with admin rights gets full access to the blog including the front end.

Activate the plugin and your blog is in maintenance-mode, works and only registered users with enough rights can see the front end. You can use a date with a countdown timer for visitor information or set a value and unit for information.

Also works with WordPress Multisite installs (each blog from the network has its own maintenance settings).

Features

  • Fully customizable (change colors, texts and backgrounds).
  • Subscription form (export emails to .csv file).
  • Countdown timer (remaining time).
  • Contact form (receive emails from visitors).
  • Coming soon page;
  • Landing page templates;
  • WordPress multisite;
  • Responsive design;
  • Social media icons;
  • Works with any WordPress theme;
  • SEO options;
  • Exclude URLs from maintenance;
  • Bot functionality to collect the emails in a friendly and efficient way;
  • GDPR Ready;

Bugs, technical hints or contribute

Please give us feedback, contribute and file technical bugs on GitHub Repo.

Credits

Developed by Themeisle

What's Next

If you like this plugin, then consider checking out our other projects:

  • Optimole - Optimole is your all-in-one image optimization solution for WordPress & beyond.
  • WPShout - In-Depth WordPress Tutorials for Developers
  • Revive Social - Revive Old Posts helps you keep your content alive and in front the audiences that matter.
  • CodeinWP - CodeinWP stands for all-things-WordPress. From web design to freelancing and from development to business, your questions are covered.
  • DomainWheel - Free Short Website name generator, with the help of AI, for instant ideas.

Check-out our blog to learn from our WordPress Reviews and see other WordPress plugins.

Installation

  1. Unpack the download package
  2. Upload all files to the /wp-content/plugins/ directory, include folders
  3. Activate the plugin through the 'Plugins' menu in WordPress
  4. Go to Settings page, where you can change what settings you need (pay attention to Exclude option!)

Screenshots

  1. Maintenance Mode Example
  2. Maintenance Mode Example #2
  3. Bot Example
  4. Dashboard General Settings
  5. Dashboard Design Settings
  6. Dashboard Modules Settings
  7. Dashboard Bot Settings
  8. Contact Form

Frequently Asked Questions

How to use plugin filters

Check out our Snippet Library.

Cache Plugin Support

WP Maintenance Mode can be unstable due to the cache plugins; we recommend deactivating any cache plugin when maintenance mode is active. If you really want to use a cache plugin, make sure you delete the entire cache after each change.

Exclude list

If you change your login url, please add the new slug (url: http://domain.com/newlogin, then you should add: newlogin) to Exclude list from plugin settings -> General Tab.

Notice: wp-cron.php is excluded by default.

Changelog

Version 2.6.11 (2024-04-18)

Improvements

​- Updated internal dependencies:​​ Enhanced performance and security.

Version 2.6.10 (2024-02-28)

Fixes

  • Updated dependencies
Version 2.6.9 (2023-12-22)

Bug Fixes

  • Fixed compatibility issue with WP 6.4
  • Fixed broken templates layout issue on the Safari browser
  • Enhanced security
  • Fixed compatibility issue with WP-Optimize
Version 2.6.8 (2023-06-07)
  • Fix the Save button Module tab not working
  • Codebase updates
Version 2.6.7 (2023-04-01)
  • Bug fix: Addressed an unnecessary 'no maintenance page' error occurrence.
Version 2.6.6 (2023-03-31)
  • Remove error notice for users that use an overriding custom template
  • Update dependencies
Version 2.6.5 (2023-03-01)

Update dependencies

Version 2.6.4 (2023-02-24)
  • Add the option to manage maintenance status on all sites from the network dashboard
  • Update dependencies
Version 2.6.3 (2023-02-06)
  • Update dependencies
Version 2.6.2 (2022-12-16)
  • Add the option in the wizard to skip importing a template and installing Otter
  • Improve the quality of the template screenshots
  • Fix the template overriding issue
Version 2.6.1 (2022-11-03)
  • Add a notice to announce the rebrand of the plugin

Version 2.6.0 (2022-11-02)

  • Adds Landing pages templates
  • Adds more Coming soon and Maintenance mode templates
  • Rebrand the plugin into LightStart
Version 2.5.4 (2022-10-10)
  • Fix subscribers entry export for legacy forms.
  • Fix PHP notice showing up on edge cases new installs.
Version 2.5.3 (2022-09-28)
  • Fix wrong template loaded when the current post template is empty.
Version 2.5.2 (2022-09-27)
  • Fix maintenance mode issue for previously logged users #321
  • Allow comments into exclude textarea so that you can comment on the IP addresses for location, props @joostdekeijzer
  • Fix PHP notice errors on specific scenarios #324
  • Fix Otter for saving subscriber entry
Version 2.5.1 (2022-09-08)
  • Fixes a bug which was causing error on some instances

Version 2.5.0 (2022-09-08)

  • New Feature: Adds compatibility with Block Editor or any page builder for building the maintenance mode page.
  • New Feature: Adds coming soon and maintenance mode starting templates.
Version 2.4.7 (2022-08-08)
Fixes
  • Fix login form display
  • Fix email collecting by the bot
  • Improve accessibility of the maintenance page thanks to @SophieWeb
Version 2.4.6 (2022-06-15)
  • Improve data sanitizations for custom css and contact module
Version 2.4.5 (2022-06-15)
  • Harden security and improve release process
Version 2.4.4 (2022-02-10)

Update dependencies

Version 2.4.3 (2022-01-27)
  • Change ownership to Themeisle

2.4.2 (18/01/2022)

  • Misc: 900 000 Active Installs Celebrations!
  • Misc: WordPress 5.9 compatibility
  • Fix: jQuery UI CSS theme reference from jQuery CDN
  • Misc: Text fixes in the dashboard

2.4.1 (20/07/2021)

  • Misc: WordPress 5.8 compatibility

2.4.0 (13/05/2021)

  • Design: add "Custom CSS" setting; Finally! :)
  • Design: add "Footer links" color setting
  • Design: add a list of available shortcodes under the "Text" editor
  • Bot: make {visitor_name} placeholder work in all messages after the visitor types his name
  • Misc: add [embed] shortcode for responsive video embeds; Compatible with YouTube, Vimeo, DailyMotion.
  • Misc: make the exclude mechanism work with Cyrillic characters
  • Misc: add wpmm_maintenance_template filter; It works the same way as the wpmm_contact_template filter, but for the maintenance template.
  • Misc: now you can override the contact email template too; Check /views/contact.php for more details.
  • Misc: better compatibility with translation plugins like Loco Translate
  • Misc: the image uploaders (from the dashboard) are now translatable
  • Misc: improve uninstall routine
  • Misc: add wpmm_delete_cache action; It is called after each setting change.
  • Misc: add support for cache plugins like WP Rocket, WP Fastest Cache, Endurance Page Cache, Swift Performance Lite, Cache Enabler, SG Optimizer, LiteSpeed Cache, Nginx Helper;
  • Misc: remove wpmm_count_where helper function
  • Misc: code improvements

2.3.0 (07/12/2020)

  • Modules: add support for Google Analytics 4 measurement ID
  • Design: enable media buttons on wp_editor (now you can add images from the editor)
  • Bot: fix translation issue
  • Misc: add filters for capabilities wpmm_settings_capability, wpmm_subscribers_capability, and wpmm_all_actions_capability (the last one can be used to override all capabilities)
  • Misc: fix [loginform] shortcode redirect attribute
  • Misc: a few CSS & Javascript improvements
  • Misc: bump "Tested up to" version to 5.6

2.2.4 (20/05/2019)

  • bump "Tested up to" to 5.2.0
  • fix typo in Italian translation (it_IT)
  • Bot: add a note about how you can export the list of subscribers #195
  • Bot: add client-side sanitization to the input fields #176

2.2.3 (20/02/2019)

  • bump "Tested up to" version to 5.1.0
  • replace "wpmu_new_blog" action with "wp_initialize_site" action for WP 5.1.0 users because the first one is deprecated in the new version
  • small improvement to "check_exclude" method from "WP_Maintenance_Mode" class

2.2.2 (27/11/2018)

  • Google Analytics module: migrate from analytics.js to gtag.js + add ip anonymization #178
  • GDPR module: accept links inside texareas + add policy link target #188
  • add charset meta tag #200
  • fix PHP Notice: Undefined index: HTTP_USER_AGENT
  • add plural and single form translation for subscribers number (settings page)

Earlier versions

For the changelog of earlier versions, please refer to the full changelog.

wp-maintenance-mode's People

Contributors

abaicus avatar adevade avatar andreiglingeanu avatar andrianvaleanu avatar arinaturcu avatar benedettogit avatar bueltge avatar controlcde avatar dependabot[bot] avatar dhunink avatar eruizdechavez avatar georgejipa avatar girishpanchal30 avatar hardeepasrani avatar harshitarora-in avatar ineagu avatar jonatasaraujo avatar joostdekeijzer avatar k0ssi avatar kcmckell avatar odie2 avatar p-verbrugge avatar pedro-mendonca avatar pirate-bot avatar preda-bogdan avatar selul avatar sergiu-radu avatar sitedesignusa avatar vytisbulkevicius avatar zreedeecom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wp-maintenance-mode's Issues

wp_login_link() instead of site_url()

However, I also often use a plugin called Better WP Security with the option to rewrite the /wp-admin/ and /wp-login.php links to /admin/ and /login/.
But when I do this the button in your HTML template, Admin-Login, does not work.

Would it be possible to use the function wp_login_link() instead of site_url() in your code? I use this in my themes and it works just fine!

German Language files

Hi.
It is possible to get back the write access to the repo, then I will push the german language files for the rewritten current version?
Best regards.

Paint theme

The entire area of text needs to move up about an 2 cm.
Could be a padding or margin issue as well.
I am using Firefox.
Thank you for your time! Great plugin, looks great!
I have to be careful because on a recent update I activated the screen by accident when it was not suppose to be on.

http://wordpress.org/support/topic/configuring-paint-theme

wp maintenance mode is taking over my site!!! URGENT

Hi, I am very confused with this plugin.

the maintenance mode won't go away, I get to visit the wp-login.php page but nothing happens when I insert username & pass, it redirects me to the maintenance mode.

I have cleaned up the site and set up a subdomain showing in the same directory as my main domain name. The subdirectory works just fine but the main domain keeps showing the maintenance page.

I can't find the files anywhere. There is no wp maintenance folder on my server!!!!

Please help me, its seems to have taken over the domain name, how is that possible.

Here's the main domain: www.ukmed.gr
Here's the subdomain: ukmed2.ukmed.gr

Thank you for your help,
Zeta

Deactivates on update?

Pretty sure the plugin is deacitvating when it gets updated, or at least reasonably sure it happened today with the 1.8.11 to 2.0.2 update.

Searchengines?

What exactly happens when a searchengine spider comes along while the page is in maintainence mode? I suspect that you're using 301 which will have impact on SEO.
Is there a chance that you'll implement the 503 with 'retry-later' which should be the best method to deal with search engines IMHO:

header('Status: 503 Service Temporarily Unavailable');
header('Retry-After: 3600');// 1hr

This is what 'ultimate maintainance mode' does ... but this pluggy doesen't look as good as this one.

[Cosmetic] Handle div class=response by default in style.css

I edited the style.css file to match with my own style. The .response class coming from scripts.js#L67 :
`$('.contact .form').append('

' + data.response + '
');``

Should be handelt in style.css:

diff --git a/assets/css/style.css b/assets/css/style.css
index 2f50405..83f7cae 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -315,6 +315,10 @@ body {
 .contact .form .col.last {
     float: right;
 }
+.contact .form .response {
+    color: #fff;
+    font-size: 15px;
+}
 .contact .form .submit {
     margin: 30px 0 0;
     text-align: center;

Check login redirect

function only_admins_login_area( $redirect_to, $request, $user ) {
    global $user;

    if ( isset( $user->roles ) && is_array( $user->roles ) ) {
        //check for admins
        if ( in_array( 'administrator', $user->roles ) ) {
            // Redirect to default admin area
            return $redirect_to;
        }
    }

    return home_url();
}

add_filter( 'login_redirect', 'only_admins_login_area', 10, 3 );

Responsive Images?

I have an image that I want to be responsive, and no larger than 600px. When I use style="width:100%;max-width:600px;" the max-width setting keeps getting removed. Even if I set up a container div with just style="max-width:600px;" the style setting is removed. Was able to do this in the previous iteration of wp-maintenance-mode. LOVE this plugin, btw.

WP Maintenance Mode no longer appear on wordpress.org???

Hi Frank,
Today I was going to install your plugin on my site and it didn't appear on my dashboard plugin search, then I searched on wordpress.org and it didn't appeared their as well, then I browsed your profile and strangely your profile is not showing it as your listed plugin as well :( ? Then I found a direct link to your plugin and haaaaaaaaa invalid link :(.

Are you aware of this?? If yes why is this happening???

WP Maintenance Mode switching off by itself

The plugin switches off by itself, we are running the latest updated version. I would appreciate it if you would look into this as soon as possible. We have used this plugin and really enjoyed its functionality. However this is very frustrating and we do not want our website public due to being under construction.
Thank you!

move assets to orphan branch called 'assets'

I hate the assets to be tracked in the dev, master and all other working branches.
A clean orphan branch for the screenshots and possibly other upcoming files for the wp.org repo would move the binary files "out of the way".

What do you think? I don't want to move everything upside down without asking you.

Ambiguous Instructions

The readme says you can add your own html markup, and stylesheet, but it doesn't say how. The stylesheet part is easy to figure out, as is modifying the hooks, but this:

You can add your own html and stylesheet and add the url of this style to the options of the plugin. Write your style to this markup and upload to the webspace; after add the url include http:// to the settings of this plugin and change th theme to "Own Theme":

Is ambiguous, and leads to more questions:

  • Given some markup, where do you upload to? The theme directory? Uploads? A subdir of the plugin?
  • "after add the url include http:// to the settings of this plugin" doesn't specify which setting, the user has to figure this bit out and it is not clear.
  • There is the 'Own Style' option, but no Own Theme, I don't know if this is a mistake or it's been renamed, or if they're two separate options

Login Frontend for IPs

Would it be easy to amend this plug-in with a new setting to always allow access whether logged in or not, based on user's IP address? Then I can carry out site testing without having to enable/disable the plug-in all the time.

That would be great.

Thanks

Please Add Support For cleantalk.org

Hi,

Would be great if the contact form could please support cleantalk.org.

That or easy way to add contact form 7 form to the maintenance page which already supports cleantalk.org.

Thanks,

Will

Website in maintenance mode can still be accessed by adding ?feed at the end of URL

Since I saw it with a website that's not mine, I cannot give much informations about installed stuff.
From profile page, it seems to be running WP 3.8.4.
From website.tld/wp-content/plugins/WP-Maintenance-Mode/readme.txt: "Stable tag: 1.8.11"

I did managed to access, login and post a comment.
adding ?feed to any page gives access to it as if it was not in maintenance mode.
To post a comment, i used firebug (but I believe firefox dev tools can do the trick too) to change form post from /wp-comments-post.php to /wp-comments-post.php?feed

Send Retry-After Header With Dynamic Time In Seconds Data

Hi, I just added a bit of code to your plugin on my site and thought you might like to tweak it for coming updates.

I inserted this around line 836

                $rolestatus = 'norights';

/* ------------------------- Start TJ code ------------------------------------------- */       
    $td = WPMaintenanceMode::check_datetime();
    if ( isset($td[2]) && 0 !== $td[2] ) {
        $locale = substr($locale, 0, 2);
$tj_shutdown = gmdate('U', strtotime( $td[0][0] ));

$tj_remaining = $tj_shutdown - gmdate('U');

}
else {

$tj_remaining = "$backtime";

}

if ($tj_remaining <= 0) {
$tj_remaining = 3600;
}


/* ------------------------- END TJ code ------------------------------------------- */         

                // helpful for header problems
                // @see: http://www.arclab.com/products/webformbuilder/php-warning-cannot-modify-header-information-headers-already-sent.html 

                nocache_headers();
                ob_start();
header( "Content-type: text/html; charset=$charset" );
header( "$protocol $status_code Service Unavailable", TRUE, $status_code );
header( "Retry-After: $tj_remaining" );

I know it's crude and primitive, but the idea is that when you use the countdown, then this calculates the seconds and it is put into the header "Retry-After" for search engines to see and respond to instead of the static backtime.

If the backtime and countdown are zero then goes to 1 hour for the Retry-After header.

Hope it might be useful.

Love your plugin.

-TJ

SSL Support

After installing ur plugin, I was unable to login to my sites Admin. And my CPanel also not allowing me to login to my account. And a link to the authors site returning an error 401 when i verified with tools.pingdom.com/fpt.
This miss-function is due to "WordPress HTTPS (SSL)" plugin installation in my site. Now I removed all these and re-installed "WP Maintenance" plugin, now its working except timer on the interface.

Allow Index optional

Add option to set index on splash Page optional to follow and index via search engines.

Plugin simply isn't working

This plugin used to work, but now it isn't. I uninstalled and reinstalled, and then dropped a wp-maintenance-mode.php file into my wp-content folder, and it simply isn't finding it. Is there anything specifically I should check to make this work?

W3C Cache

Updaten, the admin page use the Get-param: w3tc_flush_all

flush_pgcache()  //page cache
flush_dbcache()  // database cache
flush_minify()  // minify cache
flush_all() //all caches

and you just need to call it like this:

 $w3_plugin_totalcache->flush_all();

Workaround For Nginx Servers

Nginx sees the 503 error and just stops. I've played with it on the nginx side and can't figure out.

Anybody else think this would be a nice addition?

Thank you for the plugin. It works great on apache and even does what it's supposed to on nginx 'til the time comes to display the "Maintenance page" and just throws nginx error page.

Thanks again.

Settings don't keep my German "Umlauts"

Hi Frank,

I use your plugin within WP multisite and it is currently active in an English site and in a German site. So far, so good, works fine.

Only one thing is nerved:
At the German site, I have put my German text into the plugin's settings with the German "umlauts" (ä, ö, ü) - so far, so good, they are correctly displayed at the frontend.

But: every time I go back in the backend to the plugin's settings page, these settings don't remember my "umlauts". Everywhere, where I put
ä etc., there are again ä and I must enter the correct code again ä, so that it is displayed right at the site.

Guess, this is a bug or how can I "tell" the plugin, to remember my umlaut settings, when I return to the settings' page?

@see: http://wordpress.org/support/topic/plugin-wp-maintenance-mode-settings-dont-keep-my-german-umlauts?replies=2#post-3012908

Settings Page

This could be avoided if the plugin had a separate page for "Settings".

Invite per URL

per Cookie auf die Site zulassen, Anfrage per Link im Frontend

InfiniteWP cannot connect to website if Maintenance Mode is active [solution]

Hi, i have found a way to let MAintenance Mode compatible with InfiniteWP:

Add this method in MaintenanceMode Class:

function iwp_compatibility(){

    if(!isset($HTTP_RAW_POST_DATA))
        $HTTP_RAW_POST_DATA = file_get_contents('php://input');

    if(base64_encode(base64_decode( $HTTP_RAW_POST_DATA, true) ) === $HTTP_RAW_POST_DATA){

        $data = base64_decode($HTTP_RAW_POST_DATA);

        if(is_serialized($data))                    
            return true;

    }

    return false;

}

Now, inside "ApplyMaintenanceMode" method goto point 6 (around line 126) and modify in this way:

if ( is_admin() || strstr(htmlspecialchars($_SERVER['REQUEST_URI']), '/wp-admin/') ) {

  if(iwp_compatibility())
        return;

    ...

} else {

  if(iwp_compatibility())
        return;

...

}

Add a direct link to admin dashboard in Maintenance view

First I don't know if it's the right place to ask an enhancement, so my apologize if it's not.

Is it possible to add the possibility (in options menu) to have a direct link to admin dashboard page when you are in Maintenance view (/views/maintenance.php) ?

It was one of the features of the former plugin.

Thanks you for you job.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.