Jump to content
4.4.6
Sign in to follow this  
Sipsb

Toggle Developers Mode On/Off

Recommended Posts

Sipsb

Toggle Developers Mode On/Off


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. 

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

7) 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. 

8) 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.

9) 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.

10) 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...

11) The toggle you seek is on your ACP usermenu.

devmodetoggle1.PNG.edf46e0bf6cce53be0e5ee3605d66ee3.PNG

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

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

14) 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.


 

  • Смех 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...