Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 4    Views: 94

chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
02/26/13 09:04 AM (12 years ago)

tip for creating plugins

Here's a tip for doing work on control panels when creating plugins: In the main config.php file (not the one for your plugin, but the one at the main server directory), there's a section of code that's commented out, around line 125: //UNCOMMENT THIS TO SHOQ PHP ERROR AND WARNING DETAILS ON EACH SCREEN /* echo "<div style='border:1px solid red;padding:10px;margin:10px;background-color:#FFFFFF;'>"; echo "Oops, a PHP error was trapped."; echo "<hr>"; echo $info; echo "<div>"; exit(); */ You should uncomment that to find errors in your work. Installs at buzztouchmods.com apparently already have it uncommented.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
02/26/13 09:14 AM (12 years ago)
Thank you @chris1! LA
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
02/26/13 09:16 AM (12 years ago)
Thanks for the tip Chris
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
02/26/13 11:30 AM (12 years ago)
excellent tip!
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/26/13 12:34 PM (12 years ago)
VERY excellent tip! Thanks Chris!! Cheers! -- Smug
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.