Difference between revisions of "UMSP plugin development"
(Added instructions for troubleshooting) |
(Added disclaimer) |
||
Line 1: | Line 1: | ||
+ | This page is under development and may not be very useful --[[User:Mad ady|Mad ady]] 12:51, 16 December 2010 (UTC) | ||
+ | |||
==How UMSP works== | ==How UMSP works== | ||
* TODO - High-level explanation | * TODO - High-level explanation |
Revision as of 04:51, 16 December 2010
This page is under development and may not be very useful --Mad ady 12:51, 16 December 2010 (UTC)
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 On your PC browse to: http://wdtvlive-IP/tmp/umsp2html.php?path=0