UMSP plugin development
From WikiDLXTV
Revision as of 04:29, 16 December 2010 by Mad ady (Talk | contribs) (Changed the code to a link, for now.)
Contents
How UMSP works
- TODO - High-level explanation
Plugin architecture
- TODO - explain how the plugins are structured and how they intercommunicate
Plugin API
Here is a list of functions that can be used by your plugins, provided by the UMSP server:
- TODO
Sample plugin
- TODO - when I learn a bit more about the process :)
Plugins with proxies
- TODO What should proxies do; how to support navigation, etc.
Logs
You can log your errors/warnings/etc to /var/www/php5/error_log by using
error_log("whatever you're trying to log");
As a best practice rule you can add a script name and a sevrity to help with filtering later on:
error_log("yt-subscriptions-proxy: INFO: whatever you're trying to log");
It is recommended (for your own troubleshooting ease) to enable logs only when you need them and disable them (except for errors) before commiting to SVN.
The same log file will hold syntax errors and other PHP errors. More information: http://forum.wdlxtv.com/viewtopic.php?f=3&t=2756&start=0
Troubleshooting
User PaulF submitted a test script for UMSP plugins that can show output and errors. Save the file as /tmp/www-tmp/umsp2html.php: http://forum.wdlxtv.com/viewtopic.php?f=3&t=2756#p21358