Jump to content

Marketplace

Toggle Developers Mode On/Off 3

   (1 review)

3 Screenshots

About This File

1. Does there exist in the world a better gif to use as a primary screenshot?
No.

2. If you install this on a live site to toggle dev mode on and off you ain't real smarts. If I've done my url check right, this cannot be used on live sites. 

3. CIC user? Why are you here? You can't run developers mode on CIC. Also, I check for CIC installation and then stop you from doing something stupid like using this.

4. You must already have a constants.php file; this won't make one for you.

5. This constants file should have the define( 'IN_DEV', TRUE ); line already in there. True or false; either one. 

6. If you don't have a constants.php file and try to turn dev mode on/off the plugin will insult you, or just tell you it can't be found. 

7. Another good thing to have is a dev folder. I check for that. Just the folder. If you want to enable developers mode with an empty dev folder that's up to you.

8. This grabs the constants.php content, case insensitive regex for the in_dev true or false, switches yonder true/false, then redirects. You can choose between the Application page or the Plugin page for the redirect in settings.

9. I'm targeting single quotes for 'IN_DEV', so don't use "IN_DEV" in your constants.php. Yes I could deal with that. I could...

10. The toggle you seek is on your ACP usermenu.

devmodetoggle1.PNG.edf46e0bf6cce53be0e5ee3605d66ee3.PNG

11. Can't stand the flask icon? Change them up in settings.

12.dmt_on and dmt_off are the language bits you want if the existing words are not to your tastes.

13. 4.3 and later users of this can now format the warning square and screen edge line that we got with the 4.3 series. Don't want construction yellow and candy stripe edge line? I got ya.

4.2.x should use 1.1, 4.3.x can use 1.1 or later versions.


What's New in Version 3   See changelog

Released

  • Safety check for edge case where just maybe, for reasons (or choices, not necessarily sane ones), ACP is coming up before license data is rebuilt in a cleared out data store. Don't ask...
  • Both on and off toggles now with wait 3 due to speed improvements with PHP 7 and IPS 4.4 and your possibly stupid-fast dev machine.



User Feedback

You may only provide a review once you have downloaded the file.


Adriano Faria

   1 of 1 member found this review helpful 1 / 1 member

Useful. :thumbsup:

Share this review


Link to review
×
×
  • Create New...

Important Information

We use technologies, such as cookies, to customise content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy